diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88e6ca3a..8b4fb974 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -181,7 +181,7 @@ jobs: **SDK CLI:** ```bash - npm install -g bitbadgesjs-sdk + npm install -g bitbadges ``` ## Binaries diff --git a/.gitignore b/.gitignore index 9c13fffb..2bf159fe 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,7 @@ output.txt export-genesis.json -bitbadgeschaind +/bitbadgeschaind genesis-test.json diff --git a/Makefile b/Makefile index d796423e..ca6d40e0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Version must be provided as a CLI argument -VERSION := v29 +VERSION := v30 # Common ldflags for version information LDFLAGS := -X github.com/cosmos/cosmos-sdk/version.Name=bitbadgeschain \ diff --git a/api/anchor/genesis.pulsar.go b/api/anchor/genesis.pulsar.go deleted file mode 100644 index e9123192..00000000 --- a/api/anchor/genesis.pulsar.go +++ /dev/null @@ -1,892 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package anchor - -import ( - _ "cosmossdk.io/api/amino" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_GenesisState_4_list)(nil) - -type _GenesisState_4_list struct { - list *[]*AnchorData -} - -func (x *_GenesisState_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AnchorData) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AnchorData) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_4_list) AppendMutable() protoreflect.Value { - v := new(AnchorData) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_4_list) NewElement() protoreflect.Value { - v := new(AnchorData) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_4_list) IsValid() bool { - return x.list != nil -} - -var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_port_id protoreflect.FieldDescriptor - fd_GenesisState_nextLocationId protoreflect.FieldDescriptor - fd_GenesisState_anchorData protoreflect.FieldDescriptor -) - -func init() { - file_anchor_genesis_proto_init() - md_GenesisState = File_anchor_genesis_proto.Messages().ByName("GenesisState") - fd_GenesisState_params = md_GenesisState.Fields().ByName("params") - fd_GenesisState_port_id = md_GenesisState.Fields().ByName("port_id") - fd_GenesisState_nextLocationId = md_GenesisState.Fields().ByName("nextLocationId") - fd_GenesisState_anchorData = md_GenesisState.Fields().ByName("anchorData") -} - -var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) - -type fastReflection_GenesisState GenesisState - -func (x *GenesisState) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisState)(x) -} - -func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_genesis_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType -var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} - -type fastReflection_GenesisState_messageType struct{} - -func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisState)(nil) -} -func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} -func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { - return _fastReflection_GenesisState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisState) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { - return (*GenesisState)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_GenesisState_params, value) { - return - } - } - if x.PortId != "" { - value := protoreflect.ValueOfString(x.PortId) - if !f(fd_GenesisState_port_id, value) { - return - } - } - if x.NextLocationId != "" { - value := protoreflect.ValueOfString(x.NextLocationId) - if !f(fd_GenesisState_nextLocationId, value) { - return - } - } - if len(x.AnchorData) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.AnchorData}) - if !f(fd_GenesisState_anchorData, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.GenesisState.params": - return x.Params != nil - case "anchor.GenesisState.port_id": - return x.PortId != "" - case "anchor.GenesisState.nextLocationId": - return x.NextLocationId != "" - case "anchor.GenesisState.anchorData": - return len(x.AnchorData) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.GenesisState")) - } - panic(fmt.Errorf("message anchor.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.GenesisState.params": - x.Params = nil - case "anchor.GenesisState.port_id": - x.PortId = "" - case "anchor.GenesisState.nextLocationId": - x.NextLocationId = "" - case "anchor.GenesisState.anchorData": - x.AnchorData = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.GenesisState")) - } - panic(fmt.Errorf("message anchor.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.GenesisState.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "anchor.GenesisState.port_id": - value := x.PortId - return protoreflect.ValueOfString(value) - case "anchor.GenesisState.nextLocationId": - value := x.NextLocationId - return protoreflect.ValueOfString(value) - case "anchor.GenesisState.anchorData": - if len(x.AnchorData) == 0 { - return protoreflect.ValueOfList(&_GenesisState_4_list{}) - } - listValue := &_GenesisState_4_list{list: &x.AnchorData} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.GenesisState")) - } - panic(fmt.Errorf("message anchor.GenesisState does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.GenesisState.params": - x.Params = value.Message().Interface().(*Params) - case "anchor.GenesisState.port_id": - x.PortId = value.Interface().(string) - case "anchor.GenesisState.nextLocationId": - x.NextLocationId = value.Interface().(string) - case "anchor.GenesisState.anchorData": - lv := value.List() - clv := lv.(*_GenesisState_4_list) - x.AnchorData = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.GenesisState")) - } - panic(fmt.Errorf("message anchor.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.GenesisState.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "anchor.GenesisState.anchorData": - if x.AnchorData == nil { - x.AnchorData = []*AnchorData{} - } - value := &_GenesisState_4_list{list: &x.AnchorData} - return protoreflect.ValueOfList(value) - case "anchor.GenesisState.port_id": - panic(fmt.Errorf("field port_id of message anchor.GenesisState is not mutable")) - case "anchor.GenesisState.nextLocationId": - panic(fmt.Errorf("field nextLocationId of message anchor.GenesisState is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.GenesisState")) - } - panic(fmt.Errorf("message anchor.GenesisState does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.GenesisState.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "anchor.GenesisState.port_id": - return protoreflect.ValueOfString("") - case "anchor.GenesisState.nextLocationId": - return protoreflect.ValueOfString("") - case "anchor.GenesisState.anchorData": - list := []*AnchorData{} - return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.GenesisState")) - } - panic(fmt.Errorf("message anchor.GenesisState does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.GenesisState", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GenesisState) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PortId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.NextLocationId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.AnchorData) > 0 { - for _, e := range x.AnchorData { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.AnchorData) > 0 { - for iNdEx := len(x.AnchorData) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.AnchorData[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.NextLocationId) > 0 { - i -= len(x.NextLocationId) - copy(dAtA[i:], x.NextLocationId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NextLocationId))) - i-- - dAtA[i] = 0x1a - } - if len(x.PortId) > 0 { - i -= len(x.PortId) - copy(dAtA[i:], x.PortId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PortId))) - i-- - dAtA[i] = 0x12 - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextLocationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.NextLocationId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AnchorData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.AnchorData = append(x.AnchorData, &AnchorData{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AnchorData[len(x.AnchorData)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: anchor/genesis.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenesisState defines the anchor module's genesis state. -type GenesisState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - NextLocationId string `protobuf:"bytes,3,opt,name=nextLocationId,proto3" json:"nextLocationId,omitempty"` - AnchorData []*AnchorData `protobuf:"bytes,4,rep,name=anchorData,proto3" json:"anchorData,omitempty"` -} - -func (x *GenesisState) Reset() { - *x = GenesisState{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_genesis_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisState) ProtoMessage() {} - -// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. -func (*GenesisState) Descriptor() ([]byte, []int) { - return file_anchor_genesis_proto_rawDescGZIP(), []int{0} -} - -func (x *GenesisState) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -func (x *GenesisState) GetPortId() string { - if x != nil { - return x.PortId - } - return "" -} - -func (x *GenesisState) GetNextLocationId() string { - if x != nil { - return x.NextLocationId - } - return "" -} - -func (x *GenesisState) GetAnchorData() []*AnchorData { - if x != nil { - return x.AnchorData - } - return nil -} - -var File_anchor_genesis_proto protoreflect.FileDescriptor - -var file_anchor_genesis_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x1a, 0x11, - 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, - 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x61, 0x6e, - 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x01, - 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, - 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, - 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x0e, 0x6e, 0x65, - 0x78, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x0c, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x04, 0x55, 0x69, 0x6e, 0x74, - 0x52, 0x0e, 0x6e, 0x65, 0x78, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x12, 0x38, 0x0a, 0x0a, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x41, 0x6e, - 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, - 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6d, 0x0a, 0x0a, 0x63, 0x6f, - 0x6d, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, - 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x19, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, - 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x63, - 0x68, 0x6f, 0x72, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, - 0x6f, 0x72, 0xca, 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xe2, 0x02, 0x12, 0x41, 0x6e, - 0x63, 0x68, 0x6f, 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_anchor_genesis_proto_rawDescOnce sync.Once - file_anchor_genesis_proto_rawDescData = file_anchor_genesis_proto_rawDesc -) - -func file_anchor_genesis_proto_rawDescGZIP() []byte { - file_anchor_genesis_proto_rawDescOnce.Do(func() { - file_anchor_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_anchor_genesis_proto_rawDescData) - }) - return file_anchor_genesis_proto_rawDescData -} - -var file_anchor_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_anchor_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: anchor.GenesisState - (*Params)(nil), // 1: anchor.Params - (*AnchorData)(nil), // 2: anchor.AnchorData -} -var file_anchor_genesis_proto_depIdxs = []int32{ - 1, // 0: anchor.GenesisState.params:type_name -> anchor.Params - 2, // 1: anchor.GenesisState.anchorData:type_name -> anchor.AnchorData - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_anchor_genesis_proto_init() } -func file_anchor_genesis_proto_init() { - if File_anchor_genesis_proto != nil { - return - } - file_anchor_params_proto_init() - file_anchor_tx_proto_init() - if !protoimpl.UnsafeEnabled { - file_anchor_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_anchor_genesis_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_anchor_genesis_proto_goTypes, - DependencyIndexes: file_anchor_genesis_proto_depIdxs, - MessageInfos: file_anchor_genesis_proto_msgTypes, - }.Build() - File_anchor_genesis_proto = out.File - file_anchor_genesis_proto_rawDesc = nil - file_anchor_genesis_proto_goTypes = nil - file_anchor_genesis_proto_depIdxs = nil -} diff --git a/api/anchor/module/module.pulsar.go b/api/anchor/module/module.pulsar.go deleted file mode 100644 index 0fe8200f..00000000 --- a/api/anchor/module/module.pulsar.go +++ /dev/null @@ -1,573 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package module - -import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Module protoreflect.MessageDescriptor - fd_Module_authority protoreflect.FieldDescriptor -) - -func init() { - file_anchor_module_module_proto_init() - md_Module = File_anchor_module_module_proto.Messages().ByName("Module") - fd_Module_authority = md_Module.Fields().ByName("authority") -} - -var _ protoreflect.Message = (*fastReflection_Module)(nil) - -type fastReflection_Module Module - -func (x *Module) ProtoReflect() protoreflect.Message { - return (*fastReflection_Module)(x) -} - -func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_module_module_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Module_messageType fastReflection_Module_messageType -var _ protoreflect.MessageType = fastReflection_Module_messageType{} - -type fastReflection_Module_messageType struct{} - -func (x fastReflection_Module_messageType) Zero() protoreflect.Message { - return (*fastReflection_Module)(nil) -} -func (x fastReflection_Module_messageType) New() protoreflect.Message { - return new(fastReflection_Module) -} -func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Module) Type() protoreflect.MessageType { - return _fastReflection_Module_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Module) New() protoreflect.Message { - return new(fastReflection_Module) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { - return (*Module)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_Module_authority, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.module.Module.authority": - return x.Authority != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.module.Module")) - } - panic(fmt.Errorf("message anchor.module.Module does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.module.Module.authority": - x.Authority = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.module.Module")) - } - panic(fmt.Errorf("message anchor.module.Module does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.module.Module.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.module.Module")) - } - panic(fmt.Errorf("message anchor.module.Module does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.module.Module.authority": - x.Authority = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.module.Module")) - } - panic(fmt.Errorf("message anchor.module.Module does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.module.Module.authority": - panic(fmt.Errorf("field authority of message anchor.module.Module is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.module.Module")) - } - panic(fmt.Errorf("message anchor.module.Module does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.module.Module.authority": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.module.Module")) - } - panic(fmt.Errorf("message anchor.module.Module does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.module.Module", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Module) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: anchor/module/module.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Module is the config object for the module. -type Module struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority defines the custom module authority. If not set, defaults to the governance module. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` -} - -func (x *Module) Reset() { - *x = Module{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_module_module_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Module) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Module) ProtoMessage() {} - -// Deprecated: Use Module.ProtoReflect.Descriptor instead. -func (*Module) Descriptor() ([]byte, []int) { - return file_anchor_module_module_proto_rawDescGZIP(), []int{0} -} - -func (x *Module) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -var File_anchor_module_module_proto protoreflect.FileDescriptor - -var file_anchor_module_module_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x61, 0x6e, - 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, - 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x34, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x2e, 0x0a, 0x2c, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, - 0x67, 0x65, 0x73, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x97, 0x01, 0x0a, 0x11, - 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x20, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x6d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x41, 0x4d, 0x58, 0xaa, 0x02, 0x0d, 0x41, 0x6e, 0x63, 0x68, 0x6f, - 0x72, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x0d, 0x41, 0x6e, 0x63, 0x68, 0x6f, - 0x72, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x19, 0x41, 0x6e, 0x63, 0x68, 0x6f, - 0x72, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x3a, 0x3a, 0x4d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_anchor_module_module_proto_rawDescOnce sync.Once - file_anchor_module_module_proto_rawDescData = file_anchor_module_module_proto_rawDesc -) - -func file_anchor_module_module_proto_rawDescGZIP() []byte { - file_anchor_module_module_proto_rawDescOnce.Do(func() { - file_anchor_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_anchor_module_module_proto_rawDescData) - }) - return file_anchor_module_module_proto_rawDescData -} - -var file_anchor_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_anchor_module_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: anchor.module.Module -} -var file_anchor_module_module_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_anchor_module_module_proto_init() } -func file_anchor_module_module_proto_init() { - if File_anchor_module_module_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_anchor_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Module); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_anchor_module_module_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_anchor_module_module_proto_goTypes, - DependencyIndexes: file_anchor_module_module_proto_depIdxs, - MessageInfos: file_anchor_module_module_proto_msgTypes, - }.Build() - File_anchor_module_module_proto = out.File - file_anchor_module_module_proto_rawDesc = nil - file_anchor_module_module_proto_goTypes = nil - file_anchor_module_module_proto_depIdxs = nil -} diff --git a/api/anchor/packet.pulsar.go b/api/anchor/packet.pulsar.go deleted file mode 100644 index 53481962..00000000 --- a/api/anchor/packet.pulsar.go +++ /dev/null @@ -1,1037 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package anchor - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_AnchorPacketData protoreflect.MessageDescriptor - fd_AnchorPacketData_noData protoreflect.FieldDescriptor -) - -func init() { - file_anchor_packet_proto_init() - md_AnchorPacketData = File_anchor_packet_proto.Messages().ByName("AnchorPacketData") - fd_AnchorPacketData_noData = md_AnchorPacketData.Fields().ByName("noData") -} - -var _ protoreflect.Message = (*fastReflection_AnchorPacketData)(nil) - -type fastReflection_AnchorPacketData AnchorPacketData - -func (x *AnchorPacketData) ProtoReflect() protoreflect.Message { - return (*fastReflection_AnchorPacketData)(x) -} - -func (x *AnchorPacketData) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_packet_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_AnchorPacketData_messageType fastReflection_AnchorPacketData_messageType -var _ protoreflect.MessageType = fastReflection_AnchorPacketData_messageType{} - -type fastReflection_AnchorPacketData_messageType struct{} - -func (x fastReflection_AnchorPacketData_messageType) Zero() protoreflect.Message { - return (*fastReflection_AnchorPacketData)(nil) -} -func (x fastReflection_AnchorPacketData_messageType) New() protoreflect.Message { - return new(fastReflection_AnchorPacketData) -} -func (x fastReflection_AnchorPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AnchorPacketData -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AnchorPacketData) Descriptor() protoreflect.MessageDescriptor { - return md_AnchorPacketData -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_AnchorPacketData) Type() protoreflect.MessageType { - return _fastReflection_AnchorPacketData_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AnchorPacketData) New() protoreflect.Message { - return new(fastReflection_AnchorPacketData) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AnchorPacketData) Interface() protoreflect.ProtoMessage { - return (*AnchorPacketData)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_AnchorPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Packet != nil { - switch o := x.Packet.(type) { - case *AnchorPacketData_NoData: - v := o.NoData - value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_AnchorPacketData_noData, value) { - return - } - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_AnchorPacketData) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.AnchorPacketData.noData": - if x.Packet == nil { - return false - } else if _, ok := x.Packet.(*AnchorPacketData_NoData); ok { - return true - } else { - return false - } - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorPacketData")) - } - panic(fmt.Errorf("message anchor.AnchorPacketData does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorPacketData) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.AnchorPacketData.noData": - x.Packet = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorPacketData")) - } - panic(fmt.Errorf("message anchor.AnchorPacketData does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AnchorPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.AnchorPacketData.noData": - if x.Packet == nil { - return protoreflect.ValueOfMessage((*NoData)(nil).ProtoReflect()) - } else if v, ok := x.Packet.(*AnchorPacketData_NoData); ok { - return protoreflect.ValueOfMessage(v.NoData.ProtoReflect()) - } else { - return protoreflect.ValueOfMessage((*NoData)(nil).ProtoReflect()) - } - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorPacketData")) - } - panic(fmt.Errorf("message anchor.AnchorPacketData does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.AnchorPacketData.noData": - cv := value.Message().Interface().(*NoData) - x.Packet = &AnchorPacketData_NoData{NoData: cv} - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorPacketData")) - } - panic(fmt.Errorf("message anchor.AnchorPacketData does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.AnchorPacketData.noData": - if x.Packet == nil { - value := &NoData{} - oneofValue := &AnchorPacketData_NoData{NoData: value} - x.Packet = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - switch m := x.Packet.(type) { - case *AnchorPacketData_NoData: - return protoreflect.ValueOfMessage(m.NoData.ProtoReflect()) - default: - value := &NoData{} - oneofValue := &AnchorPacketData_NoData{NoData: value} - x.Packet = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorPacketData")) - } - panic(fmt.Errorf("message anchor.AnchorPacketData does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AnchorPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.AnchorPacketData.noData": - value := &NoData{} - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorPacketData")) - } - panic(fmt.Errorf("message anchor.AnchorPacketData does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AnchorPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - case "anchor.AnchorPacketData.packet": - if x.Packet == nil { - return nil - } - switch x.Packet.(type) { - case *AnchorPacketData_NoData: - return x.Descriptor().Fields().ByName("noData") - } - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.AnchorPacketData", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AnchorPacketData) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorPacketData) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_AnchorPacketData) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_AnchorPacketData) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AnchorPacketData) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - switch x := x.Packet.(type) { - case *AnchorPacketData_NoData: - if x == nil { - break - } - l = options.Size(x.NoData) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AnchorPacketData) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - switch x := x.Packet.(type) { - case *AnchorPacketData_NoData: - encoded, err := options.Marshal(x.NoData) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AnchorPacketData) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AnchorPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AnchorPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - v := &NoData{} - if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - x.Packet = &AnchorPacketData_NoData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_NoData protoreflect.MessageDescriptor -) - -func init() { - file_anchor_packet_proto_init() - md_NoData = File_anchor_packet_proto.Messages().ByName("NoData") -} - -var _ protoreflect.Message = (*fastReflection_NoData)(nil) - -type fastReflection_NoData NoData - -func (x *NoData) ProtoReflect() protoreflect.Message { - return (*fastReflection_NoData)(x) -} - -func (x *NoData) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_packet_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_NoData_messageType fastReflection_NoData_messageType -var _ protoreflect.MessageType = fastReflection_NoData_messageType{} - -type fastReflection_NoData_messageType struct{} - -func (x fastReflection_NoData_messageType) Zero() protoreflect.Message { - return (*fastReflection_NoData)(nil) -} -func (x fastReflection_NoData_messageType) New() protoreflect.Message { - return new(fastReflection_NoData) -} -func (x fastReflection_NoData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_NoData -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_NoData) Descriptor() protoreflect.MessageDescriptor { - return md_NoData -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_NoData) Type() protoreflect.MessageType { - return _fastReflection_NoData_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_NoData) New() protoreflect.Message { - return new(fastReflection_NoData) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_NoData) Interface() protoreflect.ProtoMessage { - return (*NoData)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_NoData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_NoData) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.NoData")) - } - panic(fmt.Errorf("message anchor.NoData does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NoData) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.NoData")) - } - panic(fmt.Errorf("message anchor.NoData does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_NoData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.NoData")) - } - panic(fmt.Errorf("message anchor.NoData does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NoData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.NoData")) - } - panic(fmt.Errorf("message anchor.NoData does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NoData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.NoData")) - } - panic(fmt.Errorf("message anchor.NoData does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_NoData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.NoData")) - } - panic(fmt.Errorf("message anchor.NoData does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_NoData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.NoData", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_NoData) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NoData) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_NoData) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_NoData) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*NoData) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*NoData) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*NoData) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NoData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: anchor/packet.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type AnchorPacketData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Packet: - // - // *AnchorPacketData_NoData - Packet isAnchorPacketData_Packet `protobuf_oneof:"packet"` -} - -func (x *AnchorPacketData) Reset() { - *x = AnchorPacketData{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_packet_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AnchorPacketData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AnchorPacketData) ProtoMessage() {} - -// Deprecated: Use AnchorPacketData.ProtoReflect.Descriptor instead. -func (*AnchorPacketData) Descriptor() ([]byte, []int) { - return file_anchor_packet_proto_rawDescGZIP(), []int{0} -} - -func (x *AnchorPacketData) GetPacket() isAnchorPacketData_Packet { - if x != nil { - return x.Packet - } - return nil -} - -func (x *AnchorPacketData) GetNoData() *NoData { - if x, ok := x.GetPacket().(*AnchorPacketData_NoData); ok { - return x.NoData - } - return nil -} - -type isAnchorPacketData_Packet interface { - isAnchorPacketData_Packet() -} - -type AnchorPacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof"` -} - -func (*AnchorPacketData_NoData) isAnchorPacketData_Packet() {} - -type NoData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *NoData) Reset() { - *x = NoData{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_packet_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NoData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NoData) ProtoMessage() {} - -// Deprecated: Use NoData.ProtoReflect.Descriptor instead. -func (*NoData) Descriptor() ([]byte, []int) { - return file_anchor_packet_proto_rawDescGZIP(), []int{1} -} - -var File_anchor_packet_proto protoreflect.FileDescriptor - -var file_anchor_packet_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x22, 0x46, 0x0a, - 0x10, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x28, 0x0a, 0x06, 0x6e, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x4e, 0x6f, 0x44, 0x61, 0x74, - 0x61, 0x48, 0x00, 0x52, 0x06, 0x6e, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x70, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x08, 0x0a, 0x06, 0x4e, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x42, - 0x6c, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x0b, 0x50, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x19, 0x62, 0x69, - 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x06, - 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xca, 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xe2, - 0x02, 0x12, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_anchor_packet_proto_rawDescOnce sync.Once - file_anchor_packet_proto_rawDescData = file_anchor_packet_proto_rawDesc -) - -func file_anchor_packet_proto_rawDescGZIP() []byte { - file_anchor_packet_proto_rawDescOnce.Do(func() { - file_anchor_packet_proto_rawDescData = protoimpl.X.CompressGZIP(file_anchor_packet_proto_rawDescData) - }) - return file_anchor_packet_proto_rawDescData -} - -var file_anchor_packet_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_anchor_packet_proto_goTypes = []interface{}{ - (*AnchorPacketData)(nil), // 0: anchor.AnchorPacketData - (*NoData)(nil), // 1: anchor.NoData -} -var file_anchor_packet_proto_depIdxs = []int32{ - 1, // 0: anchor.AnchorPacketData.noData:type_name -> anchor.NoData - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_anchor_packet_proto_init() } -func file_anchor_packet_proto_init() { - if File_anchor_packet_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_anchor_packet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnchorPacketData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anchor_packet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NoData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_anchor_packet_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*AnchorPacketData_NoData)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_anchor_packet_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_anchor_packet_proto_goTypes, - DependencyIndexes: file_anchor_packet_proto_depIdxs, - MessageInfos: file_anchor_packet_proto_msgTypes, - }.Build() - File_anchor_packet_proto = out.File - file_anchor_packet_proto_rawDesc = nil - file_anchor_packet_proto_goTypes = nil - file_anchor_packet_proto_depIdxs = nil -} diff --git a/api/anchor/params.pulsar.go b/api/anchor/params.pulsar.go deleted file mode 100644 index 1d8f6625..00000000 --- a/api/anchor/params.pulsar.go +++ /dev/null @@ -1,493 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package anchor - -import ( - _ "cosmossdk.io/api/amino" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Params protoreflect.MessageDescriptor -) - -func init() { - file_anchor_params_proto_init() - md_Params = File_anchor_params_proto.Messages().ByName("Params") -} - -var _ protoreflect.Message = (*fastReflection_Params)(nil) - -type fastReflection_Params Params - -func (x *Params) ProtoReflect() protoreflect.Message { - return (*fastReflection_Params)(x) -} - -func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_params_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Params_messageType fastReflection_Params_messageType -var _ protoreflect.MessageType = fastReflection_Params_messageType{} - -type fastReflection_Params_messageType struct{} - -func (x fastReflection_Params_messageType) Zero() protoreflect.Message { - return (*fastReflection_Params)(nil) -} -func (x fastReflection_Params_messageType) New() protoreflect.Message { - return new(fastReflection_Params) -} -func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Params) Type() protoreflect.MessageType { - return _fastReflection_Params_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Params) New() protoreflect.Message { - return new(fastReflection_Params) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { - return (*Params)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.Params")) - } - panic(fmt.Errorf("message anchor.Params does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.Params")) - } - panic(fmt.Errorf("message anchor.Params does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.Params")) - } - panic(fmt.Errorf("message anchor.Params does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.Params")) - } - panic(fmt.Errorf("message anchor.Params does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.Params")) - } - panic(fmt.Errorf("message anchor.Params does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.Params")) - } - panic(fmt.Errorf("message anchor.Params does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.Params", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Params) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: anchor/params.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Params defines the parameters for the module. -type Params struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Params) Reset() { - *x = Params{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_params_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Params) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Params) ProtoMessage() {} - -// Deprecated: Use Params.ProtoReflect.Descriptor instead. -func (*Params) Descriptor() ([]byte, []int) { - return file_anchor_params_proto_rawDescGZIP(), []int{0} -} - -var File_anchor_params_proto protoreflect.FileDescriptor - -var file_anchor_params_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x1a, 0x11, 0x61, - 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x20, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x3a, 0x16, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x0d, 0x61, 0x6e, 0x63, 0x68, 0x6f, - 0x72, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x6c, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, - 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x19, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xca, - 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xe2, 0x02, 0x12, 0x41, 0x6e, 0x63, 0x68, 0x6f, - 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, - 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_anchor_params_proto_rawDescOnce sync.Once - file_anchor_params_proto_rawDescData = file_anchor_params_proto_rawDesc -) - -func file_anchor_params_proto_rawDescGZIP() []byte { - file_anchor_params_proto_rawDescOnce.Do(func() { - file_anchor_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_anchor_params_proto_rawDescData) - }) - return file_anchor_params_proto_rawDescData -} - -var file_anchor_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_anchor_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: anchor.Params -} -var file_anchor_params_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_anchor_params_proto_init() } -func file_anchor_params_proto_init() { - if File_anchor_params_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_anchor_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Params); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_anchor_params_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_anchor_params_proto_goTypes, - DependencyIndexes: file_anchor_params_proto_depIdxs, - MessageInfos: file_anchor_params_proto_msgTypes, - }.Build() - File_anchor_params_proto = out.File - file_anchor_params_proto_rawDesc = nil - file_anchor_params_proto_goTypes = nil - file_anchor_params_proto_depIdxs = nil -} diff --git a/api/anchor/query.pulsar.go b/api/anchor/query.pulsar.go deleted file mode 100644 index 8afcd072..00000000 --- a/api/anchor/query.pulsar.go +++ /dev/null @@ -1,1979 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package anchor - -import ( - _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/base/query/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_QueryParamsRequest protoreflect.MessageDescriptor -) - -func init() { - file_anchor_query_proto_init() - md_QueryParamsRequest = File_anchor_query_proto.Messages().ByName("QueryParamsRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) - -type fastReflection_QueryParamsRequest QueryParamsRequest - -func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(x) -} - -func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} - -type fastReflection_QueryParamsRequest_messageType struct{} - -func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(nil) -} -func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} -func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParamsRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsRequest")) - } - panic(fmt.Errorf("message anchor.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsRequest")) - } - panic(fmt.Errorf("message anchor.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsRequest")) - } - panic(fmt.Errorf("message anchor.QueryParamsRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsRequest")) - } - panic(fmt.Errorf("message anchor.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsRequest")) - } - panic(fmt.Errorf("message anchor.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsRequest")) - } - panic(fmt.Errorf("message anchor.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.QueryParamsRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryParamsRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryParamsResponse protoreflect.MessageDescriptor - fd_QueryParamsResponse_params protoreflect.FieldDescriptor -) - -func init() { - file_anchor_query_proto_init() - md_QueryParamsResponse = File_anchor_query_proto.Messages().ByName("QueryParamsResponse") - fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) - -type fastReflection_QueryParamsResponse QueryParamsResponse - -func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(x) -} - -func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_query_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} - -type fastReflection_QueryParamsResponse_messageType struct{} - -func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(nil) -} -func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} -func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParamsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_QueryParamsResponse_params, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.QueryParamsResponse.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsResponse")) - } - panic(fmt.Errorf("message anchor.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.QueryParamsResponse.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsResponse")) - } - panic(fmt.Errorf("message anchor.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.QueryParamsResponse.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsResponse")) - } - panic(fmt.Errorf("message anchor.QueryParamsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsResponse")) - } - panic(fmt.Errorf("message anchor.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.QueryParamsResponse.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsResponse")) - } - panic(fmt.Errorf("message anchor.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.QueryParamsResponse.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryParamsResponse")) - } - panic(fmt.Errorf("message anchor.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.QueryParamsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryParamsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGetValueAtLocationRequest protoreflect.MessageDescriptor - fd_QueryGetValueAtLocationRequest_locationId protoreflect.FieldDescriptor -) - -func init() { - file_anchor_query_proto_init() - md_QueryGetValueAtLocationRequest = File_anchor_query_proto.Messages().ByName("QueryGetValueAtLocationRequest") - fd_QueryGetValueAtLocationRequest_locationId = md_QueryGetValueAtLocationRequest.Fields().ByName("locationId") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetValueAtLocationRequest)(nil) - -type fastReflection_QueryGetValueAtLocationRequest QueryGetValueAtLocationRequest - -func (x *QueryGetValueAtLocationRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetValueAtLocationRequest)(x) -} - -func (x *QueryGetValueAtLocationRequest) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_query_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetValueAtLocationRequest_messageType fastReflection_QueryGetValueAtLocationRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetValueAtLocationRequest_messageType{} - -type fastReflection_QueryGetValueAtLocationRequest_messageType struct{} - -func (x fastReflection_QueryGetValueAtLocationRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetValueAtLocationRequest)(nil) -} -func (x fastReflection_QueryGetValueAtLocationRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetValueAtLocationRequest) -} -func (x fastReflection_QueryGetValueAtLocationRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetValueAtLocationRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetValueAtLocationRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetValueAtLocationRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetValueAtLocationRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetValueAtLocationRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetValueAtLocationRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetValueAtLocationRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetValueAtLocationRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetValueAtLocationRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGetValueAtLocationRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.LocationId != "" { - value := protoreflect.ValueOfString(x.LocationId) - if !f(fd_QueryGetValueAtLocationRequest_locationId, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetValueAtLocationRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationRequest.locationId": - return x.LocationId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationRequest")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValueAtLocationRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationRequest.locationId": - x.LocationId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationRequest")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetValueAtLocationRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.QueryGetValueAtLocationRequest.locationId": - value := x.LocationId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationRequest")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValueAtLocationRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationRequest.locationId": - x.LocationId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationRequest")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValueAtLocationRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationRequest.locationId": - panic(fmt.Errorf("field locationId of message anchor.QueryGetValueAtLocationRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationRequest")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetValueAtLocationRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationRequest.locationId": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationRequest")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetValueAtLocationRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.QueryGetValueAtLocationRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetValueAtLocationRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValueAtLocationRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetValueAtLocationRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetValueAtLocationRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetValueAtLocationRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.LocationId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetValueAtLocationRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.LocationId) > 0 { - i -= len(x.LocationId) - copy(dAtA[i:], x.LocationId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LocationId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetValueAtLocationRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetValueAtLocationRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetValueAtLocationRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LocationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.LocationId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGetValueAtLocationResponse protoreflect.MessageDescriptor - fd_QueryGetValueAtLocationResponse_anchorData protoreflect.FieldDescriptor -) - -func init() { - file_anchor_query_proto_init() - md_QueryGetValueAtLocationResponse = File_anchor_query_proto.Messages().ByName("QueryGetValueAtLocationResponse") - fd_QueryGetValueAtLocationResponse_anchorData = md_QueryGetValueAtLocationResponse.Fields().ByName("anchorData") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetValueAtLocationResponse)(nil) - -type fastReflection_QueryGetValueAtLocationResponse QueryGetValueAtLocationResponse - -func (x *QueryGetValueAtLocationResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetValueAtLocationResponse)(x) -} - -func (x *QueryGetValueAtLocationResponse) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_query_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetValueAtLocationResponse_messageType fastReflection_QueryGetValueAtLocationResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetValueAtLocationResponse_messageType{} - -type fastReflection_QueryGetValueAtLocationResponse_messageType struct{} - -func (x fastReflection_QueryGetValueAtLocationResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetValueAtLocationResponse)(nil) -} -func (x fastReflection_QueryGetValueAtLocationResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetValueAtLocationResponse) -} -func (x fastReflection_QueryGetValueAtLocationResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetValueAtLocationResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetValueAtLocationResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetValueAtLocationResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetValueAtLocationResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetValueAtLocationResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetValueAtLocationResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetValueAtLocationResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetValueAtLocationResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetValueAtLocationResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGetValueAtLocationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.AnchorData != nil { - value := protoreflect.ValueOfMessage(x.AnchorData.ProtoReflect()) - if !f(fd_QueryGetValueAtLocationResponse_anchorData, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetValueAtLocationResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationResponse.anchorData": - return x.AnchorData != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationResponse")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValueAtLocationResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationResponse.anchorData": - x.AnchorData = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationResponse")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetValueAtLocationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.QueryGetValueAtLocationResponse.anchorData": - value := x.AnchorData - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationResponse")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValueAtLocationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationResponse.anchorData": - x.AnchorData = value.Message().Interface().(*AnchorData) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationResponse")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValueAtLocationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationResponse.anchorData": - if x.AnchorData == nil { - x.AnchorData = new(AnchorData) - } - return protoreflect.ValueOfMessage(x.AnchorData.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationResponse")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetValueAtLocationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.QueryGetValueAtLocationResponse.anchorData": - m := new(AnchorData) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.QueryGetValueAtLocationResponse")) - } - panic(fmt.Errorf("message anchor.QueryGetValueAtLocationResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetValueAtLocationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.QueryGetValueAtLocationResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetValueAtLocationResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValueAtLocationResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetValueAtLocationResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetValueAtLocationResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetValueAtLocationResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.AnchorData != nil { - l = options.Size(x.AnchorData) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetValueAtLocationResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.AnchorData != nil { - encoded, err := options.Marshal(x.AnchorData) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetValueAtLocationResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetValueAtLocationResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetValueAtLocationResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AnchorData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.AnchorData == nil { - x.AnchorData = &AnchorData{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AnchorData); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: anchor/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryParamsRequest) Reset() { - *x = QueryParamsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsRequest) ProtoMessage() {} - -// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_anchor_query_proto_rawDescGZIP(), []int{0} -} - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // params holds all the parameters of this module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *QueryParamsResponse) Reset() { - *x = QueryParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsResponse) ProtoMessage() {} - -// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_anchor_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryParamsResponse) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -type QueryGetValueAtLocationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LocationId string `protobuf:"bytes,1,opt,name=locationId,proto3" json:"locationId,omitempty"` -} - -func (x *QueryGetValueAtLocationRequest) Reset() { - *x = QueryGetValueAtLocationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetValueAtLocationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetValueAtLocationRequest) ProtoMessage() {} - -// Deprecated: Use QueryGetValueAtLocationRequest.ProtoReflect.Descriptor instead. -func (*QueryGetValueAtLocationRequest) Descriptor() ([]byte, []int) { - return file_anchor_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryGetValueAtLocationRequest) GetLocationId() string { - if x != nil { - return x.LocationId - } - return "" -} - -type QueryGetValueAtLocationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AnchorData *AnchorData `protobuf:"bytes,1,opt,name=anchorData,proto3" json:"anchorData,omitempty"` -} - -func (x *QueryGetValueAtLocationResponse) Reset() { - *x = QueryGetValueAtLocationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetValueAtLocationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetValueAtLocationResponse) ProtoMessage() {} - -// Deprecated: Use QueryGetValueAtLocationResponse.ProtoReflect.Descriptor instead. -func (*QueryGetValueAtLocationResponse) Descriptor() ([]byte, []int) { - return file_anchor_query_proto_rawDescGZIP(), []int{3} -} - -func (x *QueryGetValueAtLocationResponse) GetAnchorData() *AnchorData { - if x != nil { - return x.AnchorData - } - return nil -} - -var File_anchor_query_proto protoreflect.FileDescriptor - -var file_anchor_query_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x1a, 0x11, 0x61, 0x6d, - 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, - 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x13, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x74, 0x78, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x48, 0x0a, 0x13, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x40, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, - 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x61, 0x6e, - 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, - 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, - 0x74, 0x61, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0a, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0x44, 0x61, 0x74, 0x61, 0x32, 0x90, 0x02, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x68, - 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1a, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, - 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x62, 0x69, 0x74, 0x62, - 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, - 0x72, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x26, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, - 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x74, - 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, - 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x7d, 0x42, 0x6b, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x61, - 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x19, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xa2, 0x02, - 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xca, 0x02, 0x06, - 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xe2, 0x02, 0x12, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x41, 0x6e, - 0x63, 0x68, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_anchor_query_proto_rawDescOnce sync.Once - file_anchor_query_proto_rawDescData = file_anchor_query_proto_rawDesc -) - -func file_anchor_query_proto_rawDescGZIP() []byte { - file_anchor_query_proto_rawDescOnce.Do(func() { - file_anchor_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_anchor_query_proto_rawDescData) - }) - return file_anchor_query_proto_rawDescData -} - -var file_anchor_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_anchor_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: anchor.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: anchor.QueryParamsResponse - (*QueryGetValueAtLocationRequest)(nil), // 2: anchor.QueryGetValueAtLocationRequest - (*QueryGetValueAtLocationResponse)(nil), // 3: anchor.QueryGetValueAtLocationResponse - (*Params)(nil), // 4: anchor.Params - (*AnchorData)(nil), // 5: anchor.AnchorData -} -var file_anchor_query_proto_depIdxs = []int32{ - 4, // 0: anchor.QueryParamsResponse.params:type_name -> anchor.Params - 5, // 1: anchor.QueryGetValueAtLocationResponse.anchorData:type_name -> anchor.AnchorData - 0, // 2: anchor.Query.Params:input_type -> anchor.QueryParamsRequest - 2, // 3: anchor.Query.GetValueAtLocation:input_type -> anchor.QueryGetValueAtLocationRequest - 1, // 4: anchor.Query.Params:output_type -> anchor.QueryParamsResponse - 3, // 5: anchor.Query.GetValueAtLocation:output_type -> anchor.QueryGetValueAtLocationResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_anchor_query_proto_init() } -func file_anchor_query_proto_init() { - if File_anchor_query_proto != nil { - return - } - file_anchor_params_proto_init() - file_anchor_tx_proto_init() - if !protoimpl.UnsafeEnabled { - file_anchor_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anchor_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anchor_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetValueAtLocationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anchor_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetValueAtLocationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_anchor_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_anchor_query_proto_goTypes, - DependencyIndexes: file_anchor_query_proto_depIdxs, - MessageInfos: file_anchor_query_proto_msgTypes, - }.Build() - File_anchor_query_proto = out.File - file_anchor_query_proto_rawDesc = nil - file_anchor_query_proto_goTypes = nil - file_anchor_query_proto_depIdxs = nil -} diff --git a/api/anchor/query_grpc.pb.go b/api/anchor/query_grpc.pb.go deleted file mode 100644 index a84dc40e..00000000 --- a/api/anchor/query_grpc.pb.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: anchor/query.proto - -package anchor - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Query_Params_FullMethodName = "/anchor.Query/Params" - Query_GetValueAtLocation_FullMethodName = "/anchor.Query/GetValueAtLocation" -) - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Query defines the gRPC querier service. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - GetValueAtLocation(ctx context.Context, in *QueryGetValueAtLocationRequest, opts ...grpc.CallOption) (*QueryGetValueAtLocationResponse, error) -} - -type queryClient struct { - cc grpc.ClientConnInterface -} - -func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetValueAtLocation(ctx context.Context, in *QueryGetValueAtLocationRequest, opts ...grpc.CallOption) (*QueryGetValueAtLocationResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGetValueAtLocationResponse) - err := c.cc.Invoke(ctx, Query_GetValueAtLocation_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -// All implementations must embed UnimplementedQueryServer -// for forward compatibility. -// -// Query defines the gRPC querier service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - GetValueAtLocation(context.Context, *QueryGetValueAtLocationRequest) (*QueryGetValueAtLocationResponse, error) - mustEmbedUnimplementedQueryServer() -} - -// UnimplementedQueryServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedQueryServer struct{} - -func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (UnimplementedQueryServer) GetValueAtLocation(context.Context, *QueryGetValueAtLocationRequest) (*QueryGetValueAtLocationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetValueAtLocation not implemented") -} -func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} -func (UnimplementedQueryServer) testEmbeddedByValue() {} - -// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to QueryServer will -// result in compilation errors. -type UnsafeQueryServer interface { - mustEmbedUnimplementedQueryServer() -} - -func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { - // If the following call pancis, it indicates UnimplementedQueryServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Query_ServiceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Params_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetValueAtLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetValueAtLocationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetValueAtLocation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GetValueAtLocation_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetValueAtLocation(ctx, req.(*QueryGetValueAtLocationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Query_ServiceDesc is the grpc.ServiceDesc for Query service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "anchor.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "GetValueAtLocation", - Handler: _Query_GetValueAtLocation_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "anchor/query.proto", -} diff --git a/api/anchor/tx.pulsar.go b/api/anchor/tx.pulsar.go deleted file mode 100644 index 9a9ccfee..00000000 --- a/api/anchor/tx.pulsar.go +++ /dev/null @@ -1,3217 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package anchor - -import ( - _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_MsgUpdateParams protoreflect.MessageDescriptor - fd_MsgUpdateParams_authority protoreflect.FieldDescriptor - fd_MsgUpdateParams_params protoreflect.FieldDescriptor -) - -func init() { - file_anchor_tx_proto_init() - md_MsgUpdateParams = File_anchor_tx_proto.Messages().ByName("MsgUpdateParams") - fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") - fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) - -type fastReflection_MsgUpdateParams MsgUpdateParams - -func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParams)(x) -} - -func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_tx_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{} - -type fastReflection_MsgUpdateParams_messageType struct{} - -func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateParams)(nil) -} -func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams) -} -func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateParams_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateParams)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgUpdateParams_authority, value) { - return - } - } - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_MsgUpdateParams_params, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.MsgUpdateParams.authority": - return x.Authority != "" - case "anchor.MsgUpdateParams.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParams")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.MsgUpdateParams.authority": - x.Authority = "" - case "anchor.MsgUpdateParams.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParams")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.MsgUpdateParams.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "anchor.MsgUpdateParams.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParams")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParams does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.MsgUpdateParams.authority": - x.Authority = value.Interface().(string) - case "anchor.MsgUpdateParams.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParams")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.MsgUpdateParams.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "anchor.MsgUpdateParams.authority": - panic(fmt.Errorf("field authority of message anchor.MsgUpdateParams is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParams")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.MsgUpdateParams.authority": - return protoreflect.ValueOfString("") - case "anchor.MsgUpdateParams.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParams")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.MsgUpdateParams", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateParams) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateParamsResponse protoreflect.MessageDescriptor -) - -func init() { - file_anchor_tx_proto_init() - md_MsgUpdateParamsResponse = File_anchor_tx_proto.Messages().ByName("MsgUpdateParamsResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) - -type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse - -func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParamsResponse)(x) -} - -func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_tx_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{} - -type fastReflection_MsgUpdateParamsResponse_messageType struct{} - -func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateParamsResponse)(nil) -} -func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParamsResponse) -} -func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParamsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateParamsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message anchor.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.MsgUpdateParamsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_AnchorCustomMsgType protoreflect.MessageDescriptor - fd_AnchorCustomMsgType_addCustomDataMsg protoreflect.FieldDescriptor -) - -func init() { - file_anchor_tx_proto_init() - md_AnchorCustomMsgType = File_anchor_tx_proto.Messages().ByName("AnchorCustomMsgType") - fd_AnchorCustomMsgType_addCustomDataMsg = md_AnchorCustomMsgType.Fields().ByName("addCustomDataMsg") -} - -var _ protoreflect.Message = (*fastReflection_AnchorCustomMsgType)(nil) - -type fastReflection_AnchorCustomMsgType AnchorCustomMsgType - -func (x *AnchorCustomMsgType) ProtoReflect() protoreflect.Message { - return (*fastReflection_AnchorCustomMsgType)(x) -} - -func (x *AnchorCustomMsgType) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_tx_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_AnchorCustomMsgType_messageType fastReflection_AnchorCustomMsgType_messageType -var _ protoreflect.MessageType = fastReflection_AnchorCustomMsgType_messageType{} - -type fastReflection_AnchorCustomMsgType_messageType struct{} - -func (x fastReflection_AnchorCustomMsgType_messageType) Zero() protoreflect.Message { - return (*fastReflection_AnchorCustomMsgType)(nil) -} -func (x fastReflection_AnchorCustomMsgType_messageType) New() protoreflect.Message { - return new(fastReflection_AnchorCustomMsgType) -} -func (x fastReflection_AnchorCustomMsgType_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AnchorCustomMsgType -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AnchorCustomMsgType) Descriptor() protoreflect.MessageDescriptor { - return md_AnchorCustomMsgType -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_AnchorCustomMsgType) Type() protoreflect.MessageType { - return _fastReflection_AnchorCustomMsgType_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AnchorCustomMsgType) New() protoreflect.Message { - return new(fastReflection_AnchorCustomMsgType) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AnchorCustomMsgType) Interface() protoreflect.ProtoMessage { - return (*AnchorCustomMsgType)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_AnchorCustomMsgType) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.AddCustomDataMsg != nil { - value := protoreflect.ValueOfMessage(x.AddCustomDataMsg.ProtoReflect()) - if !f(fd_AnchorCustomMsgType_addCustomDataMsg, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_AnchorCustomMsgType) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.AnchorCustomMsgType.addCustomDataMsg": - return x.AddCustomDataMsg != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorCustomMsgType")) - } - panic(fmt.Errorf("message anchor.AnchorCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorCustomMsgType) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.AnchorCustomMsgType.addCustomDataMsg": - x.AddCustomDataMsg = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorCustomMsgType")) - } - panic(fmt.Errorf("message anchor.AnchorCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AnchorCustomMsgType) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.AnchorCustomMsgType.addCustomDataMsg": - value := x.AddCustomDataMsg - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorCustomMsgType")) - } - panic(fmt.Errorf("message anchor.AnchorCustomMsgType does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorCustomMsgType) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.AnchorCustomMsgType.addCustomDataMsg": - x.AddCustomDataMsg = value.Message().Interface().(*MsgAddCustomData) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorCustomMsgType")) - } - panic(fmt.Errorf("message anchor.AnchorCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorCustomMsgType) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.AnchorCustomMsgType.addCustomDataMsg": - if x.AddCustomDataMsg == nil { - x.AddCustomDataMsg = new(MsgAddCustomData) - } - return protoreflect.ValueOfMessage(x.AddCustomDataMsg.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorCustomMsgType")) - } - panic(fmt.Errorf("message anchor.AnchorCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AnchorCustomMsgType) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.AnchorCustomMsgType.addCustomDataMsg": - m := new(MsgAddCustomData) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorCustomMsgType")) - } - panic(fmt.Errorf("message anchor.AnchorCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AnchorCustomMsgType) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.AnchorCustomMsgType", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AnchorCustomMsgType) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorCustomMsgType) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_AnchorCustomMsgType) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_AnchorCustomMsgType) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AnchorCustomMsgType) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.AddCustomDataMsg != nil { - l = options.Size(x.AddCustomDataMsg) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AnchorCustomMsgType) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.AddCustomDataMsg != nil { - encoded, err := options.Marshal(x.AddCustomDataMsg) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AnchorCustomMsgType) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AnchorCustomMsgType: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AnchorCustomMsgType: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AddCustomDataMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.AddCustomDataMsg == nil { - x.AddCustomDataMsg = &MsgAddCustomData{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AddCustomDataMsg); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgAddCustomData protoreflect.MessageDescriptor - fd_MsgAddCustomData_creator protoreflect.FieldDescriptor - fd_MsgAddCustomData_data protoreflect.FieldDescriptor -) - -func init() { - file_anchor_tx_proto_init() - md_MsgAddCustomData = File_anchor_tx_proto.Messages().ByName("MsgAddCustomData") - fd_MsgAddCustomData_creator = md_MsgAddCustomData.Fields().ByName("creator") - fd_MsgAddCustomData_data = md_MsgAddCustomData.Fields().ByName("data") -} - -var _ protoreflect.Message = (*fastReflection_MsgAddCustomData)(nil) - -type fastReflection_MsgAddCustomData MsgAddCustomData - -func (x *MsgAddCustomData) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAddCustomData)(x) -} - -func (x *MsgAddCustomData) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_tx_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgAddCustomData_messageType fastReflection_MsgAddCustomData_messageType -var _ protoreflect.MessageType = fastReflection_MsgAddCustomData_messageType{} - -type fastReflection_MsgAddCustomData_messageType struct{} - -func (x fastReflection_MsgAddCustomData_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAddCustomData)(nil) -} -func (x fastReflection_MsgAddCustomData_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAddCustomData) -} -func (x fastReflection_MsgAddCustomData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAddCustomData -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgAddCustomData) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAddCustomData -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgAddCustomData) Type() protoreflect.MessageType { - return _fastReflection_MsgAddCustomData_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAddCustomData) New() protoreflect.Message { - return new(fastReflection_MsgAddCustomData) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAddCustomData) Interface() protoreflect.ProtoMessage { - return (*MsgAddCustomData)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgAddCustomData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgAddCustomData_creator, value) { - return - } - } - if x.Data != "" { - value := protoreflect.ValueOfString(x.Data) - if !f(fd_MsgAddCustomData_data, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgAddCustomData) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.MsgAddCustomData.creator": - return x.Creator != "" - case "anchor.MsgAddCustomData.data": - return x.Data != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomData")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomData does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddCustomData) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.MsgAddCustomData.creator": - x.Creator = "" - case "anchor.MsgAddCustomData.data": - x.Data = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomData")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomData does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgAddCustomData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.MsgAddCustomData.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "anchor.MsgAddCustomData.data": - value := x.Data - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomData")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomData does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddCustomData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.MsgAddCustomData.creator": - x.Creator = value.Interface().(string) - case "anchor.MsgAddCustomData.data": - x.Data = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomData")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomData does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddCustomData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.MsgAddCustomData.creator": - panic(fmt.Errorf("field creator of message anchor.MsgAddCustomData is not mutable")) - case "anchor.MsgAddCustomData.data": - panic(fmt.Errorf("field data of message anchor.MsgAddCustomData is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomData")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomData does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgAddCustomData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.MsgAddCustomData.creator": - return protoreflect.ValueOfString("") - case "anchor.MsgAddCustomData.data": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomData")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomData does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgAddCustomData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.MsgAddCustomData", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgAddCustomData) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddCustomData) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgAddCustomData) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgAddCustomData) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAddCustomData) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Data) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAddCustomData) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Data) > 0 { - i -= len(x.Data) - copy(dAtA[i:], x.Data) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAddCustomData) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddCustomData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddCustomData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Data = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgAddCustomDataResponse protoreflect.MessageDescriptor - fd_MsgAddCustomDataResponse_locationId protoreflect.FieldDescriptor -) - -func init() { - file_anchor_tx_proto_init() - md_MsgAddCustomDataResponse = File_anchor_tx_proto.Messages().ByName("MsgAddCustomDataResponse") - fd_MsgAddCustomDataResponse_locationId = md_MsgAddCustomDataResponse.Fields().ByName("locationId") -} - -var _ protoreflect.Message = (*fastReflection_MsgAddCustomDataResponse)(nil) - -type fastReflection_MsgAddCustomDataResponse MsgAddCustomDataResponse - -func (x *MsgAddCustomDataResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgAddCustomDataResponse)(x) -} - -func (x *MsgAddCustomDataResponse) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_tx_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgAddCustomDataResponse_messageType fastReflection_MsgAddCustomDataResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgAddCustomDataResponse_messageType{} - -type fastReflection_MsgAddCustomDataResponse_messageType struct{} - -func (x fastReflection_MsgAddCustomDataResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgAddCustomDataResponse)(nil) -} -func (x fastReflection_MsgAddCustomDataResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgAddCustomDataResponse) -} -func (x fastReflection_MsgAddCustomDataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAddCustomDataResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgAddCustomDataResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgAddCustomDataResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgAddCustomDataResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgAddCustomDataResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgAddCustomDataResponse) New() protoreflect.Message { - return new(fastReflection_MsgAddCustomDataResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgAddCustomDataResponse) Interface() protoreflect.ProtoMessage { - return (*MsgAddCustomDataResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgAddCustomDataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.LocationId != "" { - value := protoreflect.ValueOfString(x.LocationId) - if !f(fd_MsgAddCustomDataResponse_locationId, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgAddCustomDataResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.MsgAddCustomDataResponse.locationId": - return x.LocationId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomDataResponse")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomDataResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddCustomDataResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.MsgAddCustomDataResponse.locationId": - x.LocationId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomDataResponse")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomDataResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgAddCustomDataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.MsgAddCustomDataResponse.locationId": - value := x.LocationId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomDataResponse")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomDataResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddCustomDataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.MsgAddCustomDataResponse.locationId": - x.LocationId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomDataResponse")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomDataResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddCustomDataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.MsgAddCustomDataResponse.locationId": - panic(fmt.Errorf("field locationId of message anchor.MsgAddCustomDataResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomDataResponse")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomDataResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgAddCustomDataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.MsgAddCustomDataResponse.locationId": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.MsgAddCustomDataResponse")) - } - panic(fmt.Errorf("message anchor.MsgAddCustomDataResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgAddCustomDataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.MsgAddCustomDataResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgAddCustomDataResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgAddCustomDataResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgAddCustomDataResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgAddCustomDataResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgAddCustomDataResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.LocationId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgAddCustomDataResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.LocationId) > 0 { - i -= len(x.LocationId) - copy(dAtA[i:], x.LocationId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LocationId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgAddCustomDataResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddCustomDataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAddCustomDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LocationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.LocationId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_AnchorData protoreflect.MessageDescriptor - fd_AnchorData_creator protoreflect.FieldDescriptor - fd_AnchorData_data protoreflect.FieldDescriptor - fd_AnchorData_timestamp protoreflect.FieldDescriptor -) - -func init() { - file_anchor_tx_proto_init() - md_AnchorData = File_anchor_tx_proto.Messages().ByName("AnchorData") - fd_AnchorData_creator = md_AnchorData.Fields().ByName("creator") - fd_AnchorData_data = md_AnchorData.Fields().ByName("data") - fd_AnchorData_timestamp = md_AnchorData.Fields().ByName("timestamp") -} - -var _ protoreflect.Message = (*fastReflection_AnchorData)(nil) - -type fastReflection_AnchorData AnchorData - -func (x *AnchorData) ProtoReflect() protoreflect.Message { - return (*fastReflection_AnchorData)(x) -} - -func (x *AnchorData) slowProtoReflect() protoreflect.Message { - mi := &file_anchor_tx_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_AnchorData_messageType fastReflection_AnchorData_messageType -var _ protoreflect.MessageType = fastReflection_AnchorData_messageType{} - -type fastReflection_AnchorData_messageType struct{} - -func (x fastReflection_AnchorData_messageType) Zero() protoreflect.Message { - return (*fastReflection_AnchorData)(nil) -} -func (x fastReflection_AnchorData_messageType) New() protoreflect.Message { - return new(fastReflection_AnchorData) -} -func (x fastReflection_AnchorData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AnchorData -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AnchorData) Descriptor() protoreflect.MessageDescriptor { - return md_AnchorData -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_AnchorData) Type() protoreflect.MessageType { - return _fastReflection_AnchorData_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AnchorData) New() protoreflect.Message { - return new(fastReflection_AnchorData) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AnchorData) Interface() protoreflect.ProtoMessage { - return (*AnchorData)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_AnchorData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_AnchorData_creator, value) { - return - } - } - if x.Data != "" { - value := protoreflect.ValueOfString(x.Data) - if !f(fd_AnchorData_data, value) { - return - } - } - if x.Timestamp != "" { - value := protoreflect.ValueOfString(x.Timestamp) - if !f(fd_AnchorData_timestamp, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_AnchorData) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "anchor.AnchorData.creator": - return x.Creator != "" - case "anchor.AnchorData.data": - return x.Data != "" - case "anchor.AnchorData.timestamp": - return x.Timestamp != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorData")) - } - panic(fmt.Errorf("message anchor.AnchorData does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorData) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "anchor.AnchorData.creator": - x.Creator = "" - case "anchor.AnchorData.data": - x.Data = "" - case "anchor.AnchorData.timestamp": - x.Timestamp = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorData")) - } - panic(fmt.Errorf("message anchor.AnchorData does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AnchorData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "anchor.AnchorData.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "anchor.AnchorData.data": - value := x.Data - return protoreflect.ValueOfString(value) - case "anchor.AnchorData.timestamp": - value := x.Timestamp - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorData")) - } - panic(fmt.Errorf("message anchor.AnchorData does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "anchor.AnchorData.creator": - x.Creator = value.Interface().(string) - case "anchor.AnchorData.data": - x.Data = value.Interface().(string) - case "anchor.AnchorData.timestamp": - x.Timestamp = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorData")) - } - panic(fmt.Errorf("message anchor.AnchorData does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.AnchorData.creator": - panic(fmt.Errorf("field creator of message anchor.AnchorData is not mutable")) - case "anchor.AnchorData.data": - panic(fmt.Errorf("field data of message anchor.AnchorData is not mutable")) - case "anchor.AnchorData.timestamp": - panic(fmt.Errorf("field timestamp of message anchor.AnchorData is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorData")) - } - panic(fmt.Errorf("message anchor.AnchorData does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AnchorData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "anchor.AnchorData.creator": - return protoreflect.ValueOfString("") - case "anchor.AnchorData.data": - return protoreflect.ValueOfString("") - case "anchor.AnchorData.timestamp": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: anchor.AnchorData")) - } - panic(fmt.Errorf("message anchor.AnchorData does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AnchorData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in anchor.AnchorData", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AnchorData) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AnchorData) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_AnchorData) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_AnchorData) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AnchorData) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Data) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Timestamp) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AnchorData) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Timestamp) > 0 { - i -= len(x.Timestamp) - copy(dAtA[i:], x.Timestamp) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Timestamp))) - i-- - dAtA[i] = 0x1a - } - if len(x.Data) > 0 { - i -= len(x.Data) - copy(dAtA[i:], x.Data) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Data))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AnchorData) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AnchorData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AnchorData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Data = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Timestamp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: anchor/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MsgUpdateParams is the Msg/UpdateParams request type. -type MsgUpdateParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority is the address that controls the module (defaults to x/gov unless overwritten). - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // NOTE: All parameters must be supplied. - Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *MsgUpdateParams) Reset() { - *x = MsgUpdateParams{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParams) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. -func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return file_anchor_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgUpdateParams) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgUpdateParams) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -type MsgUpdateParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateParamsResponse) Reset() { - *x = MsgUpdateParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParamsResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return file_anchor_tx_proto_rawDescGZIP(), []int{1} -} - -type AnchorCustomMsgType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AddCustomDataMsg *MsgAddCustomData `protobuf:"bytes,1,opt,name=addCustomDataMsg,proto3" json:"addCustomDataMsg,omitempty"` -} - -func (x *AnchorCustomMsgType) Reset() { - *x = AnchorCustomMsgType{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AnchorCustomMsgType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AnchorCustomMsgType) ProtoMessage() {} - -// Deprecated: Use AnchorCustomMsgType.ProtoReflect.Descriptor instead. -func (*AnchorCustomMsgType) Descriptor() ([]byte, []int) { - return file_anchor_tx_proto_rawDescGZIP(), []int{2} -} - -func (x *AnchorCustomMsgType) GetAddCustomDataMsg() *MsgAddCustomData { - if x != nil { - return x.AddCustomDataMsg - } - return nil -} - -type MsgAddCustomData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *MsgAddCustomData) Reset() { - *x = MsgAddCustomData{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_tx_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgAddCustomData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgAddCustomData) ProtoMessage() {} - -// Deprecated: Use MsgAddCustomData.ProtoReflect.Descriptor instead. -func (*MsgAddCustomData) Descriptor() ([]byte, []int) { - return file_anchor_tx_proto_rawDescGZIP(), []int{3} -} - -func (x *MsgAddCustomData) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgAddCustomData) GetData() string { - if x != nil { - return x.Data - } - return "" -} - -type MsgAddCustomDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ID of the anchor location. - LocationId string `protobuf:"bytes,1,opt,name=locationId,proto3" json:"locationId,omitempty"` -} - -func (x *MsgAddCustomDataResponse) Reset() { - *x = MsgAddCustomDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgAddCustomDataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgAddCustomDataResponse) ProtoMessage() {} - -// Deprecated: Use MsgAddCustomDataResponse.ProtoReflect.Descriptor instead. -func (*MsgAddCustomDataResponse) Descriptor() ([]byte, []int) { - return file_anchor_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgAddCustomDataResponse) GetLocationId() string { - if x != nil { - return x.LocationId - } - return "" -} - -type AnchorData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` -} - -func (x *AnchorData) Reset() { - *x = AnchorData{} - if protoimpl.UnsafeEnabled { - mi := &file_anchor_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AnchorData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AnchorData) ProtoMessage() {} - -// Deprecated: Use AnchorData.ProtoReflect.Descriptor instead. -func (*AnchorData) Descriptor() ([]byte, []int) { - return file_anchor_tx_proto_rawDescGZIP(), []int{5} -} - -func (x *AnchorData) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *AnchorData) GetData() string { - if x != nil { - return x.Data - } - return "" -} - -func (x *AnchorData) GetTimestamp() string { - if x != nil { - return x.Timestamp - } - return "" -} - -var File_anchor_tx_proto protoreflect.FileDescriptor - -var file_anchor_tx_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x06, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, - 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x01, 0x0a, 0x0f, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x31, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, - 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x4f, 0x82, 0xe7, 0xb0, 0x2a, - 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x3c, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, - 0x67, 0x65, 0x73, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5b, 0x0a, 0x13, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, - 0x10, 0x61, 0x64, 0x64, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x73, - 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x10, 0x61, 0x64, 0x64, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, - 0x4d, 0x73, 0x67, 0x22, 0x67, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x25, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x14, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2f, 0x41, - 0x64, 0x64, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x22, 0x48, 0x0a, 0x18, - 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xc8, 0xde, - 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x04, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x66, 0x0a, 0x0a, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, - 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x2a, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x04, 0x55, - 0x69, 0x6e, 0x74, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x32, 0xa3, - 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x48, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x17, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, - 0x1f, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4b, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x18, 0x2e, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, - 0x64, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x20, 0x2e, 0x61, 0x6e, - 0x63, 0x68, 0x6f, 0x72, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, - 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x68, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6e, 0x63, 0x68, - 0x6f, 0x72, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x19, 0x62, - 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, - 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0xca, 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, - 0xe2, 0x02, 0x12, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_anchor_tx_proto_rawDescOnce sync.Once - file_anchor_tx_proto_rawDescData = file_anchor_tx_proto_rawDesc -) - -func file_anchor_tx_proto_rawDescGZIP() []byte { - file_anchor_tx_proto_rawDescOnce.Do(func() { - file_anchor_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_anchor_tx_proto_rawDescData) - }) - return file_anchor_tx_proto_rawDescData -} - -var file_anchor_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_anchor_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: anchor.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: anchor.MsgUpdateParamsResponse - (*AnchorCustomMsgType)(nil), // 2: anchor.AnchorCustomMsgType - (*MsgAddCustomData)(nil), // 3: anchor.MsgAddCustomData - (*MsgAddCustomDataResponse)(nil), // 4: anchor.MsgAddCustomDataResponse - (*AnchorData)(nil), // 5: anchor.AnchorData - (*Params)(nil), // 6: anchor.Params -} -var file_anchor_tx_proto_depIdxs = []int32{ - 6, // 0: anchor.MsgUpdateParams.params:type_name -> anchor.Params - 3, // 1: anchor.AnchorCustomMsgType.addCustomDataMsg:type_name -> anchor.MsgAddCustomData - 0, // 2: anchor.Msg.UpdateParams:input_type -> anchor.MsgUpdateParams - 3, // 3: anchor.Msg.AddCustomData:input_type -> anchor.MsgAddCustomData - 1, // 4: anchor.Msg.UpdateParams:output_type -> anchor.MsgUpdateParamsResponse - 4, // 5: anchor.Msg.AddCustomData:output_type -> anchor.MsgAddCustomDataResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_anchor_tx_proto_init() } -func file_anchor_tx_proto_init() { - if File_anchor_tx_proto != nil { - return - } - file_anchor_params_proto_init() - if !protoimpl.UnsafeEnabled { - file_anchor_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anchor_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParamsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anchor_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnchorCustomMsgType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anchor_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAddCustomData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anchor_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgAddCustomDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_anchor_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnchorData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_anchor_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_anchor_tx_proto_goTypes, - DependencyIndexes: file_anchor_tx_proto_depIdxs, - MessageInfos: file_anchor_tx_proto_msgTypes, - }.Build() - File_anchor_tx_proto = out.File - file_anchor_tx_proto_rawDesc = nil - file_anchor_tx_proto_goTypes = nil - file_anchor_tx_proto_depIdxs = nil -} diff --git a/api/anchor/tx_grpc.pb.go b/api/anchor/tx_grpc.pb.go deleted file mode 100644 index 5f144501..00000000 --- a/api/anchor/tx_grpc.pb.go +++ /dev/null @@ -1,167 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: anchor/tx.proto - -package anchor - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Msg_UpdateParams_FullMethodName = "/anchor.Msg/UpdateParams" - Msg_AddCustomData_FullMethodName = "/anchor.Msg/AddCustomData" -) - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Msg defines the Msg service. -type MsgClient interface { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - AddCustomData(ctx context.Context, in *MsgAddCustomData, opts ...grpc.CallOption) (*MsgAddCustomDataResponse, error) -} - -type msgClient struct { - cc grpc.ClientConnInterface -} - -func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) AddCustomData(ctx context.Context, in *MsgAddCustomData, opts ...grpc.CallOption) (*MsgAddCustomDataResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgAddCustomDataResponse) - err := c.cc.Invoke(ctx, Msg_AddCustomData_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -// All implementations must embed UnimplementedMsgServer -// for forward compatibility. -// -// Msg defines the Msg service. -type MsgServer interface { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - AddCustomData(context.Context, *MsgAddCustomData) (*MsgAddCustomDataResponse, error) - mustEmbedUnimplementedMsgServer() -} - -// UnimplementedMsgServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedMsgServer struct{} - -func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") -} -func (UnimplementedMsgServer) AddCustomData(context.Context, *MsgAddCustomData) (*MsgAddCustomDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddCustomData not implemented") -} -func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} -func (UnimplementedMsgServer) testEmbeddedByValue() {} - -// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MsgServer will -// result in compilation errors. -type UnsafeMsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { - // If the following call pancis, it indicates UnimplementedMsgServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Msg_ServiceDesc, srv) -} - -func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateParams_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_AddCustomData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAddCustomData) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).AddCustomData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_AddCustomData_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AddCustomData(ctx, req.(*MsgAddCustomData)) - } - return interceptor(ctx, in, info, handler) -} - -// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "anchor.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateParams", - Handler: _Msg_UpdateParams_Handler, - }, - { - MethodName: "AddCustomData", - Handler: _Msg_AddCustomData_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "anchor/tx.proto", -} diff --git a/api/maps/balances.pulsar.go b/api/maps/balances.pulsar.go deleted file mode 100644 index 535dacc7..00000000 --- a/api/maps/balances.pulsar.go +++ /dev/null @@ -1,648 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package maps - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_UintRange protoreflect.MessageDescriptor - fd_UintRange_start protoreflect.FieldDescriptor - fd_UintRange_end protoreflect.FieldDescriptor -) - -func init() { - file_maps_balances_proto_init() - md_UintRange = File_maps_balances_proto.Messages().ByName("UintRange") - fd_UintRange_start = md_UintRange.Fields().ByName("start") - fd_UintRange_end = md_UintRange.Fields().ByName("end") -} - -var _ protoreflect.Message = (*fastReflection_UintRange)(nil) - -type fastReflection_UintRange UintRange - -func (x *UintRange) ProtoReflect() protoreflect.Message { - return (*fastReflection_UintRange)(x) -} - -func (x *UintRange) slowProtoReflect() protoreflect.Message { - mi := &file_maps_balances_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_UintRange_messageType fastReflection_UintRange_messageType -var _ protoreflect.MessageType = fastReflection_UintRange_messageType{} - -type fastReflection_UintRange_messageType struct{} - -func (x fastReflection_UintRange_messageType) Zero() protoreflect.Message { - return (*fastReflection_UintRange)(nil) -} -func (x fastReflection_UintRange_messageType) New() protoreflect.Message { - return new(fastReflection_UintRange) -} -func (x fastReflection_UintRange_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_UintRange -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_UintRange) Descriptor() protoreflect.MessageDescriptor { - return md_UintRange -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_UintRange) Type() protoreflect.MessageType { - return _fastReflection_UintRange_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_UintRange) New() protoreflect.Message { - return new(fastReflection_UintRange) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_UintRange) Interface() protoreflect.ProtoMessage { - return (*UintRange)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_UintRange) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Start != "" { - value := protoreflect.ValueOfString(x.Start) - if !f(fd_UintRange_start, value) { - return - } - } - if x.End != "" { - value := protoreflect.ValueOfString(x.End) - if !f(fd_UintRange_end, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_UintRange) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.UintRange.start": - return x.Start != "" - case "maps.UintRange.end": - return x.End != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.UintRange")) - } - panic(fmt.Errorf("message maps.UintRange does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_UintRange) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.UintRange.start": - x.Start = "" - case "maps.UintRange.end": - x.End = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.UintRange")) - } - panic(fmt.Errorf("message maps.UintRange does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_UintRange) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.UintRange.start": - value := x.Start - return protoreflect.ValueOfString(value) - case "maps.UintRange.end": - value := x.End - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.UintRange")) - } - panic(fmt.Errorf("message maps.UintRange does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_UintRange) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.UintRange.start": - x.Start = value.Interface().(string) - case "maps.UintRange.end": - x.End = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.UintRange")) - } - panic(fmt.Errorf("message maps.UintRange does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_UintRange) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.UintRange.start": - panic(fmt.Errorf("field start of message maps.UintRange is not mutable")) - case "maps.UintRange.end": - panic(fmt.Errorf("field end of message maps.UintRange is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.UintRange")) - } - panic(fmt.Errorf("message maps.UintRange does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_UintRange) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.UintRange.start": - return protoreflect.ValueOfString("") - case "maps.UintRange.end": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.UintRange")) - } - panic(fmt.Errorf("message maps.UintRange does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_UintRange) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.UintRange", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_UintRange) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_UintRange) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_UintRange) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_UintRange) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*UintRange) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Start) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.End) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*UintRange) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.End) > 0 { - i -= len(x.End) - copy(dAtA[i:], x.End) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.End))) - i-- - dAtA[i] = 0x12 - } - if len(x.Start) > 0 { - i -= len(x.Start) - copy(dAtA[i:], x.Start) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Start))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*UintRange) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: UintRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: UintRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Start = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field End", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.End = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/balances.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The UintRange is a range of IDs from some start to some end (inclusive). -// -// uintRanges are one of the core types used in the BitBadgesChain module. -// They are used for everything from token IDs to time ranges to min/max balance amounts. -// -// See the BitBadges documentation for more information. -type UintRange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The starting value of the range (inclusive). - Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` - // The ending value of the range (inclusive). - End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` -} - -func (x *UintRange) Reset() { - *x = UintRange{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_balances_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UintRange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UintRange) ProtoMessage() {} - -// Deprecated: Use UintRange.ProtoReflect.Descriptor instead. -func (*UintRange) Descriptor() ([]byte, []int) { - return file_maps_balances_proto_rawDescGZIP(), []int{0} -} - -func (x *UintRange) GetStart() string { - if x != nil { - return x.Start - } - return "" -} - -func (x *UintRange) GetEnd() string { - if x != nil { - return x.End - } - return "" -} - -var File_maps_balances_proto protoreflect.FileDescriptor - -var file_maps_balances_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61, 0x70, 0x73, 0x1a, 0x14, 0x67, 0x6f, 0x67, - 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x11, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x09, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x61, 0x6e, 0x67, - 0x65, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x0c, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x04, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x05, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x1e, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x0c, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x04, 0x55, 0x69, 0x6e, 0x74, - 0x52, 0x03, 0x65, 0x6e, 0x64, 0x42, 0x62, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x70, - 0x73, 0x42, 0x0d, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x17, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x58, - 0x58, 0xaa, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xca, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xe2, - 0x02, 0x10, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_maps_balances_proto_rawDescOnce sync.Once - file_maps_balances_proto_rawDescData = file_maps_balances_proto_rawDesc -) - -func file_maps_balances_proto_rawDescGZIP() []byte { - file_maps_balances_proto_rawDescOnce.Do(func() { - file_maps_balances_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_balances_proto_rawDescData) - }) - return file_maps_balances_proto_rawDescData -} - -var file_maps_balances_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_maps_balances_proto_goTypes = []interface{}{ - (*UintRange)(nil), // 0: maps.UintRange -} -var file_maps_balances_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_maps_balances_proto_init() } -func file_maps_balances_proto_init() { - if File_maps_balances_proto != nil { - return - } - file_maps_params_proto_init() - if !protoimpl.UnsafeEnabled { - file_maps_balances_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UintRange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_balances_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_maps_balances_proto_goTypes, - DependencyIndexes: file_maps_balances_proto_depIdxs, - MessageInfos: file_maps_balances_proto_msgTypes, - }.Build() - File_maps_balances_proto = out.File - file_maps_balances_proto_rawDesc = nil - file_maps_balances_proto_goTypes = nil - file_maps_balances_proto_depIdxs = nil -} diff --git a/api/maps/genesis.pulsar.go b/api/maps/genesis.pulsar.go deleted file mode 100644 index 590a24e7..00000000 --- a/api/maps/genesis.pulsar.go +++ /dev/null @@ -1,1229 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package maps - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_GenesisState_3_list)(nil) - -type _GenesisState_3_list struct { - list *[]*Map -} - -func (x *_GenesisState_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Map) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Map) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_3_list) AppendMutable() protoreflect.Value { - v := new(Map) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_3_list) NewElement() protoreflect.Value { - v := new(Map) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_3_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_4_list)(nil) - -type _GenesisState_4_list struct { - list *[]string -} - -func (x *_GenesisState_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_GenesisState_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_4_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field FullKeys as it is not of Message kind")) -} - -func (x *_GenesisState_4_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_4_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_GenesisState_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_5_list)(nil) - -type _GenesisState_5_list struct { - list *[]*ValueStore -} - -func (x *_GenesisState_5_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_5_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_GenesisState_5_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ValueStore) - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_5_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ValueStore) - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_5_list) AppendMutable() protoreflect.Value { - v := new(ValueStore) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_5_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_5_list) NewElement() protoreflect.Value { - v := new(ValueStore) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_GenesisState_5_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_GenesisState_6_list)(nil) - -type _GenesisState_6_list struct { - list *[]string -} - -func (x *_GenesisState_6_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_6_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_GenesisState_6_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_6_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_6_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field DuplicatesFullKeys as it is not of Message kind")) -} - -func (x *_GenesisState_6_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_6_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_GenesisState_6_list) IsValid() bool { - return x.list != nil -} - -var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_port_id protoreflect.FieldDescriptor - fd_GenesisState_maps protoreflect.FieldDescriptor - fd_GenesisState_full_keys protoreflect.FieldDescriptor - fd_GenesisState_values protoreflect.FieldDescriptor - fd_GenesisState_duplicates_full_keys protoreflect.FieldDescriptor -) - -func init() { - file_maps_genesis_proto_init() - md_GenesisState = File_maps_genesis_proto.Messages().ByName("GenesisState") - fd_GenesisState_params = md_GenesisState.Fields().ByName("params") - fd_GenesisState_port_id = md_GenesisState.Fields().ByName("port_id") - fd_GenesisState_maps = md_GenesisState.Fields().ByName("maps") - fd_GenesisState_full_keys = md_GenesisState.Fields().ByName("full_keys") - fd_GenesisState_values = md_GenesisState.Fields().ByName("values") - fd_GenesisState_duplicates_full_keys = md_GenesisState.Fields().ByName("duplicates_full_keys") -} - -var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) - -type fastReflection_GenesisState GenesisState - -func (x *GenesisState) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisState)(x) -} - -func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_maps_genesis_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType -var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} - -type fastReflection_GenesisState_messageType struct{} - -func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisState)(nil) -} -func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} -func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { - return _fastReflection_GenesisState_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisState) New() protoreflect.Message { - return new(fastReflection_GenesisState) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { - return (*GenesisState)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_GenesisState_params, value) { - return - } - } - if x.PortId != "" { - value := protoreflect.ValueOfString(x.PortId) - if !f(fd_GenesisState_port_id, value) { - return - } - } - if len(x.Maps) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.Maps}) - if !f(fd_GenesisState_maps, value) { - return - } - } - if len(x.FullKeys) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.FullKeys}) - if !f(fd_GenesisState_full_keys, value) { - return - } - } - if len(x.Values) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.Values}) - if !f(fd_GenesisState_values, value) { - return - } - } - if len(x.DuplicatesFullKeys) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_6_list{list: &x.DuplicatesFullKeys}) - if !f(fd_GenesisState_duplicates_full_keys, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.GenesisState.params": - return x.Params != nil - case "maps.GenesisState.port_id": - return x.PortId != "" - case "maps.GenesisState.maps": - return len(x.Maps) != 0 - case "maps.GenesisState.full_keys": - return len(x.FullKeys) != 0 - case "maps.GenesisState.values": - return len(x.Values) != 0 - case "maps.GenesisState.duplicates_full_keys": - return len(x.DuplicatesFullKeys) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.GenesisState")) - } - panic(fmt.Errorf("message maps.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.GenesisState.params": - x.Params = nil - case "maps.GenesisState.port_id": - x.PortId = "" - case "maps.GenesisState.maps": - x.Maps = nil - case "maps.GenesisState.full_keys": - x.FullKeys = nil - case "maps.GenesisState.values": - x.Values = nil - case "maps.GenesisState.duplicates_full_keys": - x.DuplicatesFullKeys = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.GenesisState")) - } - panic(fmt.Errorf("message maps.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.GenesisState.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "maps.GenesisState.port_id": - value := x.PortId - return protoreflect.ValueOfString(value) - case "maps.GenesisState.maps": - if len(x.Maps) == 0 { - return protoreflect.ValueOfList(&_GenesisState_3_list{}) - } - listValue := &_GenesisState_3_list{list: &x.Maps} - return protoreflect.ValueOfList(listValue) - case "maps.GenesisState.full_keys": - if len(x.FullKeys) == 0 { - return protoreflect.ValueOfList(&_GenesisState_4_list{}) - } - listValue := &_GenesisState_4_list{list: &x.FullKeys} - return protoreflect.ValueOfList(listValue) - case "maps.GenesisState.values": - if len(x.Values) == 0 { - return protoreflect.ValueOfList(&_GenesisState_5_list{}) - } - listValue := &_GenesisState_5_list{list: &x.Values} - return protoreflect.ValueOfList(listValue) - case "maps.GenesisState.duplicates_full_keys": - if len(x.DuplicatesFullKeys) == 0 { - return protoreflect.ValueOfList(&_GenesisState_6_list{}) - } - listValue := &_GenesisState_6_list{list: &x.DuplicatesFullKeys} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.GenesisState")) - } - panic(fmt.Errorf("message maps.GenesisState does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.GenesisState.params": - x.Params = value.Message().Interface().(*Params) - case "maps.GenesisState.port_id": - x.PortId = value.Interface().(string) - case "maps.GenesisState.maps": - lv := value.List() - clv := lv.(*_GenesisState_3_list) - x.Maps = *clv.list - case "maps.GenesisState.full_keys": - lv := value.List() - clv := lv.(*_GenesisState_4_list) - x.FullKeys = *clv.list - case "maps.GenesisState.values": - lv := value.List() - clv := lv.(*_GenesisState_5_list) - x.Values = *clv.list - case "maps.GenesisState.duplicates_full_keys": - lv := value.List() - clv := lv.(*_GenesisState_6_list) - x.DuplicatesFullKeys = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.GenesisState")) - } - panic(fmt.Errorf("message maps.GenesisState does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.GenesisState.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "maps.GenesisState.maps": - if x.Maps == nil { - x.Maps = []*Map{} - } - value := &_GenesisState_3_list{list: &x.Maps} - return protoreflect.ValueOfList(value) - case "maps.GenesisState.full_keys": - if x.FullKeys == nil { - x.FullKeys = []string{} - } - value := &_GenesisState_4_list{list: &x.FullKeys} - return protoreflect.ValueOfList(value) - case "maps.GenesisState.values": - if x.Values == nil { - x.Values = []*ValueStore{} - } - value := &_GenesisState_5_list{list: &x.Values} - return protoreflect.ValueOfList(value) - case "maps.GenesisState.duplicates_full_keys": - if x.DuplicatesFullKeys == nil { - x.DuplicatesFullKeys = []string{} - } - value := &_GenesisState_6_list{list: &x.DuplicatesFullKeys} - return protoreflect.ValueOfList(value) - case "maps.GenesisState.port_id": - panic(fmt.Errorf("field port_id of message maps.GenesisState is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.GenesisState")) - } - panic(fmt.Errorf("message maps.GenesisState does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.GenesisState.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "maps.GenesisState.port_id": - return protoreflect.ValueOfString("") - case "maps.GenesisState.maps": - list := []*Map{} - return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) - case "maps.GenesisState.full_keys": - list := []string{} - return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) - case "maps.GenesisState.values": - list := []*ValueStore{} - return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) - case "maps.GenesisState.duplicates_full_keys": - list := []string{} - return protoreflect.ValueOfList(&_GenesisState_6_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.GenesisState")) - } - panic(fmt.Errorf("message maps.GenesisState does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.GenesisState", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GenesisState) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PortId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.Maps) > 0 { - for _, e := range x.Maps { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.FullKeys) > 0 { - for _, s := range x.FullKeys { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.Values) > 0 { - for _, e := range x.Values { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.DuplicatesFullKeys) > 0 { - for _, s := range x.DuplicatesFullKeys { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.DuplicatesFullKeys) > 0 { - for iNdEx := len(x.DuplicatesFullKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.DuplicatesFullKeys[iNdEx]) - copy(dAtA[i:], x.DuplicatesFullKeys[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DuplicatesFullKeys[iNdEx]))) - i-- - dAtA[i] = 0x32 - } - } - if len(x.Values) > 0 { - for iNdEx := len(x.Values) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Values[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - } - if len(x.FullKeys) > 0 { - for iNdEx := len(x.FullKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.FullKeys[iNdEx]) - copy(dAtA[i:], x.FullKeys[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FullKeys[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.Maps) > 0 { - for iNdEx := len(x.Maps) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Maps[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.PortId) > 0 { - i -= len(x.PortId) - copy(dAtA[i:], x.PortId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PortId))) - i-- - dAtA[i] = 0x12 - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Maps", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Maps = append(x.Maps, &Map{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Maps[len(x.Maps)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FullKeys", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.FullKeys = append(x.FullKeys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Values = append(x.Values, &ValueStore{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Values[len(x.Values)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DuplicatesFullKeys", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.DuplicatesFullKeys = append(x.DuplicatesFullKeys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/genesis.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// GenesisState defines the maps module's genesis state. -type GenesisState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - Maps []*Map `protobuf:"bytes,3,rep,name=maps,proto3" json:"maps,omitempty"` - FullKeys []string `protobuf:"bytes,4,rep,name=full_keys,json=fullKeys,proto3" json:"full_keys,omitempty"` - Values []*ValueStore `protobuf:"bytes,5,rep,name=values,proto3" json:"values,omitempty"` - DuplicatesFullKeys []string `protobuf:"bytes,6,rep,name=duplicates_full_keys,json=duplicatesFullKeys,proto3" json:"duplicates_full_keys,omitempty"` -} - -func (x *GenesisState) Reset() { - *x = GenesisState{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_genesis_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenesisState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenesisState) ProtoMessage() {} - -// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. -func (*GenesisState) Descriptor() ([]byte, []int) { - return file_maps_genesis_proto_rawDescGZIP(), []int{0} -} - -func (x *GenesisState) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -func (x *GenesisState) GetPortId() string { - if x != nil { - return x.PortId - } - return "" -} - -func (x *GenesisState) GetMaps() []*Map { - if x != nil { - return x.Maps - } - return nil -} - -func (x *GenesisState) GetFullKeys() []string { - if x != nil { - return x.FullKeys - } - return nil -} - -func (x *GenesisState) GetValues() []*ValueStore { - if x != nil { - return x.Values - } - return nil -} - -func (x *GenesisState) GetDuplicatesFullKeys() []string { - if x != nil { - return x.DuplicatesFullKeys - } - return nil -} - -var File_maps_genesis_proto protoreflect.FileDescriptor - -var file_maps_genesis_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61, 0x70, 0x73, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x11, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0xeb, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x04, 0x6d, 0x61, 0x70, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, - 0x70, 0x52, 0x04, 0x6d, 0x61, 0x70, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, - 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, - 0x4b, 0x65, 0x79, 0x73, 0x12, 0x28, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x30, - 0x0a, 0x14, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x5f, 0x66, 0x75, 0x6c, - 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x64, 0x75, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x46, 0x75, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x73, - 0x42, 0x61, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x42, 0x0c, 0x47, 0x65, - 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x17, 0x62, 0x69, - 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x6d, 0x61, 0x70, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x04, 0x4d, 0x61, - 0x70, 0x73, 0xca, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xe2, 0x02, 0x10, 0x4d, 0x61, 0x70, 0x73, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x4d, - 0x61, 0x70, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_maps_genesis_proto_rawDescOnce sync.Once - file_maps_genesis_proto_rawDescData = file_maps_genesis_proto_rawDesc -) - -func file_maps_genesis_proto_rawDescGZIP() []byte { - file_maps_genesis_proto_rawDescOnce.Do(func() { - file_maps_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_genesis_proto_rawDescData) - }) - return file_maps_genesis_proto_rawDescData -} - -var file_maps_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_maps_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: maps.GenesisState - (*Params)(nil), // 1: maps.Params - (*Map)(nil), // 2: maps.Map - (*ValueStore)(nil), // 3: maps.ValueStore -} -var file_maps_genesis_proto_depIdxs = []int32{ - 1, // 0: maps.GenesisState.params:type_name -> maps.Params - 2, // 1: maps.GenesisState.maps:type_name -> maps.Map - 3, // 2: maps.GenesisState.values:type_name -> maps.ValueStore - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_maps_genesis_proto_init() } -func file_maps_genesis_proto_init() { - if File_maps_genesis_proto != nil { - return - } - file_maps_params_proto_init() - file_maps_tx_proto_init() - if !protoimpl.UnsafeEnabled { - file_maps_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_genesis_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_maps_genesis_proto_goTypes, - DependencyIndexes: file_maps_genesis_proto_depIdxs, - MessageInfos: file_maps_genesis_proto_msgTypes, - }.Build() - File_maps_genesis_proto = out.File - file_maps_genesis_proto_rawDesc = nil - file_maps_genesis_proto_goTypes = nil - file_maps_genesis_proto_depIdxs = nil -} diff --git a/api/maps/metadata.pulsar.go b/api/maps/metadata.pulsar.go deleted file mode 100644 index 54be719b..00000000 --- a/api/maps/metadata.pulsar.go +++ /dev/null @@ -1,645 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package maps - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "google.golang.org/protobuf/types/known/anypb" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Metadata protoreflect.MessageDescriptor - fd_Metadata_uri protoreflect.FieldDescriptor - fd_Metadata_customData protoreflect.FieldDescriptor -) - -func init() { - file_maps_metadata_proto_init() - md_Metadata = File_maps_metadata_proto.Messages().ByName("Metadata") - fd_Metadata_uri = md_Metadata.Fields().ByName("uri") - fd_Metadata_customData = md_Metadata.Fields().ByName("customData") -} - -var _ protoreflect.Message = (*fastReflection_Metadata)(nil) - -type fastReflection_Metadata Metadata - -func (x *Metadata) ProtoReflect() protoreflect.Message { - return (*fastReflection_Metadata)(x) -} - -func (x *Metadata) slowProtoReflect() protoreflect.Message { - mi := &file_maps_metadata_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Metadata_messageType fastReflection_Metadata_messageType -var _ protoreflect.MessageType = fastReflection_Metadata_messageType{} - -type fastReflection_Metadata_messageType struct{} - -func (x fastReflection_Metadata_messageType) Zero() protoreflect.Message { - return (*fastReflection_Metadata)(nil) -} -func (x fastReflection_Metadata_messageType) New() protoreflect.Message { - return new(fastReflection_Metadata) -} -func (x fastReflection_Metadata_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Metadata -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Metadata) Descriptor() protoreflect.MessageDescriptor { - return md_Metadata -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Metadata) Type() protoreflect.MessageType { - return _fastReflection_Metadata_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Metadata) New() protoreflect.Message { - return new(fastReflection_Metadata) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Metadata) Interface() protoreflect.ProtoMessage { - return (*Metadata)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Metadata) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Uri != "" { - value := protoreflect.ValueOfString(x.Uri) - if !f(fd_Metadata_uri, value) { - return - } - } - if x.CustomData != "" { - value := protoreflect.ValueOfString(x.CustomData) - if !f(fd_Metadata_customData, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Metadata) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.Metadata.uri": - return x.Uri != "" - case "maps.Metadata.customData": - return x.CustomData != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Metadata")) - } - panic(fmt.Errorf("message maps.Metadata does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Metadata) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.Metadata.uri": - x.Uri = "" - case "maps.Metadata.customData": - x.CustomData = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Metadata")) - } - panic(fmt.Errorf("message maps.Metadata does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Metadata) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.Metadata.uri": - value := x.Uri - return protoreflect.ValueOfString(value) - case "maps.Metadata.customData": - value := x.CustomData - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Metadata")) - } - panic(fmt.Errorf("message maps.Metadata does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Metadata) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.Metadata.uri": - x.Uri = value.Interface().(string) - case "maps.Metadata.customData": - x.CustomData = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Metadata")) - } - panic(fmt.Errorf("message maps.Metadata does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Metadata) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.Metadata.uri": - panic(fmt.Errorf("field uri of message maps.Metadata is not mutable")) - case "maps.Metadata.customData": - panic(fmt.Errorf("field customData of message maps.Metadata is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Metadata")) - } - panic(fmt.Errorf("message maps.Metadata does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Metadata) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.Metadata.uri": - return protoreflect.ValueOfString("") - case "maps.Metadata.customData": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Metadata")) - } - panic(fmt.Errorf("message maps.Metadata does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Metadata) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.Metadata", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Metadata) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Metadata) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Metadata) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Metadata) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Metadata) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Uri) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.CustomData) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Metadata) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.CustomData) > 0 { - i -= len(x.CustomData) - copy(dAtA[i:], x.CustomData) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CustomData))) - i-- - dAtA[i] = 0x12 - } - if len(x.Uri) > 0 { - i -= len(x.Uri) - copy(dAtA[i:], x.Uri) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Uri))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Metadata) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Metadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Uri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.CustomData = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/metadata.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This message defines the metadata for the map. -// The interpretation of this metadata should follow the map standard. -type Metadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The URI (Uniform Resource Identifier) associated with the map metadata. - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - // Custom data or additional information related to the map metadata. - CustomData string `protobuf:"bytes,2,opt,name=customData,proto3" json:"customData,omitempty"` -} - -func (x *Metadata) Reset() { - *x = Metadata{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_metadata_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Metadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Metadata) ProtoMessage() {} - -// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. -func (*Metadata) Descriptor() ([]byte, []int) { - return file_maps_metadata_proto_rawDescGZIP(), []int{0} -} - -func (x *Metadata) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -func (x *Metadata) GetCustomData() string { - if x != nil { - return x.CustomData - } - return "" -} - -var File_maps_metadata_proto protoreflect.FileDescriptor - -var file_maps_metadata_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61, 0x70, 0x73, 0x1a, 0x19, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x62, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, - 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x3c, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, - 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, - 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x42, - 0x62, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x42, 0x0d, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x17, 0x62, 0x69, - 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x6d, 0x61, 0x70, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x04, 0x4d, 0x61, - 0x70, 0x73, 0xca, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xe2, 0x02, 0x10, 0x4d, 0x61, 0x70, 0x73, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x4d, - 0x61, 0x70, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_maps_metadata_proto_rawDescOnce sync.Once - file_maps_metadata_proto_rawDescData = file_maps_metadata_proto_rawDesc -) - -func file_maps_metadata_proto_rawDescGZIP() []byte { - file_maps_metadata_proto_rawDescOnce.Do(func() { - file_maps_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_metadata_proto_rawDescData) - }) - return file_maps_metadata_proto_rawDescData -} - -var file_maps_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_maps_metadata_proto_goTypes = []interface{}{ - (*Metadata)(nil), // 0: maps.Metadata -} -var file_maps_metadata_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_maps_metadata_proto_init() } -func file_maps_metadata_proto_init() { - if File_maps_metadata_proto != nil { - return - } - file_maps_balances_proto_init() - if !protoimpl.UnsafeEnabled { - file_maps_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Metadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_metadata_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_maps_metadata_proto_goTypes, - DependencyIndexes: file_maps_metadata_proto_depIdxs, - MessageInfos: file_maps_metadata_proto_msgTypes, - }.Build() - File_maps_metadata_proto = out.File - file_maps_metadata_proto_rawDesc = nil - file_maps_metadata_proto_goTypes = nil - file_maps_metadata_proto_depIdxs = nil -} diff --git a/api/maps/module/module.pulsar.go b/api/maps/module/module.pulsar.go deleted file mode 100644 index c5728d65..00000000 --- a/api/maps/module/module.pulsar.go +++ /dev/null @@ -1,572 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package module - -import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Module protoreflect.MessageDescriptor - fd_Module_authority protoreflect.FieldDescriptor -) - -func init() { - file_maps_module_module_proto_init() - md_Module = File_maps_module_module_proto.Messages().ByName("Module") - fd_Module_authority = md_Module.Fields().ByName("authority") -} - -var _ protoreflect.Message = (*fastReflection_Module)(nil) - -type fastReflection_Module Module - -func (x *Module) ProtoReflect() protoreflect.Message { - return (*fastReflection_Module)(x) -} - -func (x *Module) slowProtoReflect() protoreflect.Message { - mi := &file_maps_module_module_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Module_messageType fastReflection_Module_messageType -var _ protoreflect.MessageType = fastReflection_Module_messageType{} - -type fastReflection_Module_messageType struct{} - -func (x fastReflection_Module_messageType) Zero() protoreflect.Message { - return (*fastReflection_Module)(nil) -} -func (x fastReflection_Module_messageType) New() protoreflect.Message { - return new(fastReflection_Module) -} -func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { - return md_Module -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Module) Type() protoreflect.MessageType { - return _fastReflection_Module_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Module) New() protoreflect.Message { - return new(fastReflection_Module) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { - return (*Module)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_Module_authority, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Module) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.module.Module.authority": - return x.Authority != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.module.Module")) - } - panic(fmt.Errorf("message maps.module.Module does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.module.Module.authority": - x.Authority = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.module.Module")) - } - panic(fmt.Errorf("message maps.module.Module does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.module.Module.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.module.Module")) - } - panic(fmt.Errorf("message maps.module.Module does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.module.Module.authority": - x.Authority = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.module.Module")) - } - panic(fmt.Errorf("message maps.module.Module does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.module.Module.authority": - panic(fmt.Errorf("field authority of message maps.module.Module is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.module.Module")) - } - panic(fmt.Errorf("message maps.module.Module does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.module.Module.authority": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.module.Module")) - } - panic(fmt.Errorf("message maps.module.Module does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.module.Module", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Module) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Module) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Module) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Module) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/module/module.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Module is the config object for the module. -type Module struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority defines the custom module authority. If not set, defaults to the governance module. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` -} - -func (x *Module) Reset() { - *x = Module{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_module_module_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Module) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Module) ProtoMessage() {} - -// Deprecated: Use Module.ProtoReflect.Descriptor instead. -func (*Module) Descriptor() ([]byte, []int) { - return file_maps_module_module_proto_rawDescGZIP(), []int{0} -} - -func (x *Module) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -var File_maps_module_module_proto protoreflect.FileDescriptor - -var file_maps_module_module_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x61, 0x70, 0x73, - 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, - 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5a, 0x0a, 0x06, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, - 0x79, 0x3a, 0x32, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x2c, 0x0a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x2f, - 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, - 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x42, 0x8b, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, - 0x70, 0x73, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, - 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x70, - 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xa2, 0x02, 0x03, 0x4d, 0x4d, 0x58, 0xaa, 0x02, - 0x0b, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xca, 0x02, 0x0b, 0x4d, - 0x61, 0x70, 0x73, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0xe2, 0x02, 0x17, 0x4d, 0x61, 0x70, - 0x73, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x4d, 0x61, 0x70, 0x73, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_maps_module_module_proto_rawDescOnce sync.Once - file_maps_module_module_proto_rawDescData = file_maps_module_module_proto_rawDesc -) - -func file_maps_module_module_proto_rawDescGZIP() []byte { - file_maps_module_module_proto_rawDescOnce.Do(func() { - file_maps_module_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_module_module_proto_rawDescData) - }) - return file_maps_module_module_proto_rawDescData -} - -var file_maps_module_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_maps_module_module_proto_goTypes = []interface{}{ - (*Module)(nil), // 0: maps.module.Module -} -var file_maps_module_module_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_maps_module_module_proto_init() } -func file_maps_module_module_proto_init() { - if File_maps_module_module_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_maps_module_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Module); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_module_module_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_maps_module_module_proto_goTypes, - DependencyIndexes: file_maps_module_module_proto_depIdxs, - MessageInfos: file_maps_module_module_proto_msgTypes, - }.Build() - File_maps_module_module_proto = out.File - file_maps_module_module_proto_rawDesc = nil - file_maps_module_module_proto_goTypes = nil - file_maps_module_module_proto_depIdxs = nil -} diff --git a/api/maps/packet.pulsar.go b/api/maps/packet.pulsar.go deleted file mode 100644 index e9fdf19e..00000000 --- a/api/maps/packet.pulsar.go +++ /dev/null @@ -1,1036 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package maps - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_MapsPacketData protoreflect.MessageDescriptor - fd_MapsPacketData_noData protoreflect.FieldDescriptor -) - -func init() { - file_maps_packet_proto_init() - md_MapsPacketData = File_maps_packet_proto.Messages().ByName("MapsPacketData") - fd_MapsPacketData_noData = md_MapsPacketData.Fields().ByName("noData") -} - -var _ protoreflect.Message = (*fastReflection_MapsPacketData)(nil) - -type fastReflection_MapsPacketData MapsPacketData - -func (x *MapsPacketData) ProtoReflect() protoreflect.Message { - return (*fastReflection_MapsPacketData)(x) -} - -func (x *MapsPacketData) slowProtoReflect() protoreflect.Message { - mi := &file_maps_packet_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MapsPacketData_messageType fastReflection_MapsPacketData_messageType -var _ protoreflect.MessageType = fastReflection_MapsPacketData_messageType{} - -type fastReflection_MapsPacketData_messageType struct{} - -func (x fastReflection_MapsPacketData_messageType) Zero() protoreflect.Message { - return (*fastReflection_MapsPacketData)(nil) -} -func (x fastReflection_MapsPacketData_messageType) New() protoreflect.Message { - return new(fastReflection_MapsPacketData) -} -func (x fastReflection_MapsPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MapsPacketData -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MapsPacketData) Descriptor() protoreflect.MessageDescriptor { - return md_MapsPacketData -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MapsPacketData) Type() protoreflect.MessageType { - return _fastReflection_MapsPacketData_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MapsPacketData) New() protoreflect.Message { - return new(fastReflection_MapsPacketData) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MapsPacketData) Interface() protoreflect.ProtoMessage { - return (*MapsPacketData)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MapsPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Packet != nil { - switch o := x.Packet.(type) { - case *MapsPacketData_NoData: - v := o.NoData - value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_MapsPacketData_noData, value) { - return - } - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MapsPacketData) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MapsPacketData.noData": - if x.Packet == nil { - return false - } else if _, ok := x.Packet.(*MapsPacketData_NoData); ok { - return true - } else { - return false - } - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapsPacketData")) - } - panic(fmt.Errorf("message maps.MapsPacketData does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapsPacketData) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MapsPacketData.noData": - x.Packet = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapsPacketData")) - } - panic(fmt.Errorf("message maps.MapsPacketData does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MapsPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MapsPacketData.noData": - if x.Packet == nil { - return protoreflect.ValueOfMessage((*NoData)(nil).ProtoReflect()) - } else if v, ok := x.Packet.(*MapsPacketData_NoData); ok { - return protoreflect.ValueOfMessage(v.NoData.ProtoReflect()) - } else { - return protoreflect.ValueOfMessage((*NoData)(nil).ProtoReflect()) - } - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapsPacketData")) - } - panic(fmt.Errorf("message maps.MapsPacketData does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapsPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MapsPacketData.noData": - cv := value.Message().Interface().(*NoData) - x.Packet = &MapsPacketData_NoData{NoData: cv} - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapsPacketData")) - } - panic(fmt.Errorf("message maps.MapsPacketData does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapsPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapsPacketData.noData": - if x.Packet == nil { - value := &NoData{} - oneofValue := &MapsPacketData_NoData{NoData: value} - x.Packet = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - switch m := x.Packet.(type) { - case *MapsPacketData_NoData: - return protoreflect.ValueOfMessage(m.NoData.ProtoReflect()) - default: - value := &NoData{} - oneofValue := &MapsPacketData_NoData{NoData: value} - x.Packet = oneofValue - return protoreflect.ValueOfMessage(value.ProtoReflect()) - } - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapsPacketData")) - } - panic(fmt.Errorf("message maps.MapsPacketData does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MapsPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapsPacketData.noData": - value := &NoData{} - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapsPacketData")) - } - panic(fmt.Errorf("message maps.MapsPacketData does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MapsPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - case "maps.MapsPacketData.packet": - if x.Packet == nil { - return nil - } - switch x.Packet.(type) { - case *MapsPacketData_NoData: - return x.Descriptor().Fields().ByName("noData") - } - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MapsPacketData", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MapsPacketData) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapsPacketData) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MapsPacketData) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MapsPacketData) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MapsPacketData) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - switch x := x.Packet.(type) { - case *MapsPacketData_NoData: - if x == nil { - break - } - l = options.Size(x.NoData) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MapsPacketData) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - switch x := x.Packet.(type) { - case *MapsPacketData_NoData: - encoded, err := options.Marshal(x.NoData) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MapsPacketData) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapsPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapsPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - v := &NoData{} - if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - x.Packet = &MapsPacketData_NoData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_NoData protoreflect.MessageDescriptor -) - -func init() { - file_maps_packet_proto_init() - md_NoData = File_maps_packet_proto.Messages().ByName("NoData") -} - -var _ protoreflect.Message = (*fastReflection_NoData)(nil) - -type fastReflection_NoData NoData - -func (x *NoData) ProtoReflect() protoreflect.Message { - return (*fastReflection_NoData)(x) -} - -func (x *NoData) slowProtoReflect() protoreflect.Message { - mi := &file_maps_packet_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_NoData_messageType fastReflection_NoData_messageType -var _ protoreflect.MessageType = fastReflection_NoData_messageType{} - -type fastReflection_NoData_messageType struct{} - -func (x fastReflection_NoData_messageType) Zero() protoreflect.Message { - return (*fastReflection_NoData)(nil) -} -func (x fastReflection_NoData_messageType) New() protoreflect.Message { - return new(fastReflection_NoData) -} -func (x fastReflection_NoData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_NoData -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_NoData) Descriptor() protoreflect.MessageDescriptor { - return md_NoData -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_NoData) Type() protoreflect.MessageType { - return _fastReflection_NoData_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_NoData) New() protoreflect.Message { - return new(fastReflection_NoData) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_NoData) Interface() protoreflect.ProtoMessage { - return (*NoData)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_NoData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_NoData) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.NoData")) - } - panic(fmt.Errorf("message maps.NoData does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NoData) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.NoData")) - } - panic(fmt.Errorf("message maps.NoData does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_NoData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.NoData")) - } - panic(fmt.Errorf("message maps.NoData does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NoData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.NoData")) - } - panic(fmt.Errorf("message maps.NoData does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NoData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.NoData")) - } - panic(fmt.Errorf("message maps.NoData does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_NoData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.NoData")) - } - panic(fmt.Errorf("message maps.NoData does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_NoData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.NoData", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_NoData) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_NoData) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_NoData) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_NoData) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*NoData) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*NoData) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*NoData) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NoData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/packet.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type MapsPacketData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Packet: - // - // *MapsPacketData_NoData - Packet isMapsPacketData_Packet `protobuf_oneof:"packet"` -} - -func (x *MapsPacketData) Reset() { - *x = MapsPacketData{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_packet_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MapsPacketData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MapsPacketData) ProtoMessage() {} - -// Deprecated: Use MapsPacketData.ProtoReflect.Descriptor instead. -func (*MapsPacketData) Descriptor() ([]byte, []int) { - return file_maps_packet_proto_rawDescGZIP(), []int{0} -} - -func (x *MapsPacketData) GetPacket() isMapsPacketData_Packet { - if x != nil { - return x.Packet - } - return nil -} - -func (x *MapsPacketData) GetNoData() *NoData { - if x, ok := x.GetPacket().(*MapsPacketData_NoData); ok { - return x.NoData - } - return nil -} - -type isMapsPacketData_Packet interface { - isMapsPacketData_Packet() -} - -type MapsPacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof"` -} - -func (*MapsPacketData_NoData) isMapsPacketData_Packet() {} - -type NoData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *NoData) Reset() { - *x = NoData{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_packet_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NoData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NoData) ProtoMessage() {} - -// Deprecated: Use NoData.ProtoReflect.Descriptor instead. -func (*NoData) Descriptor() ([]byte, []int) { - return file_maps_packet_proto_rawDescGZIP(), []int{1} -} - -var File_maps_packet_proto protoreflect.FileDescriptor - -var file_maps_packet_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61, 0x70, 0x73, 0x22, 0x42, 0x0a, 0x0e, 0x4d, 0x61, 0x70, - 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x0a, 0x06, 0x6e, - 0x6f, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x61, - 0x70, 0x73, 0x2e, 0x4e, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x06, 0x6e, 0x6f, 0x44, - 0x61, 0x74, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x08, 0x0a, - 0x06, 0x4e, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x42, 0x60, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, - 0x61, 0x70, 0x73, 0x42, 0x0b, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x17, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, - 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x58, - 0x58, 0xaa, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xca, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xe2, - 0x02, 0x10, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_maps_packet_proto_rawDescOnce sync.Once - file_maps_packet_proto_rawDescData = file_maps_packet_proto_rawDesc -) - -func file_maps_packet_proto_rawDescGZIP() []byte { - file_maps_packet_proto_rawDescOnce.Do(func() { - file_maps_packet_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_packet_proto_rawDescData) - }) - return file_maps_packet_proto_rawDescData -} - -var file_maps_packet_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_maps_packet_proto_goTypes = []interface{}{ - (*MapsPacketData)(nil), // 0: maps.MapsPacketData - (*NoData)(nil), // 1: maps.NoData -} -var file_maps_packet_proto_depIdxs = []int32{ - 1, // 0: maps.MapsPacketData.noData:type_name -> maps.NoData - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_maps_packet_proto_init() } -func file_maps_packet_proto_init() { - if File_maps_packet_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_maps_packet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MapsPacketData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_packet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NoData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_maps_packet_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*MapsPacketData_NoData)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_packet_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_maps_packet_proto_goTypes, - DependencyIndexes: file_maps_packet_proto_depIdxs, - MessageInfos: file_maps_packet_proto_msgTypes, - }.Build() - File_maps_packet_proto = out.File - file_maps_packet_proto_rawDesc = nil - file_maps_packet_proto_goTypes = nil - file_maps_packet_proto_depIdxs = nil -} diff --git a/api/maps/params.pulsar.go b/api/maps/params.pulsar.go deleted file mode 100644 index 9da13145..00000000 --- a/api/maps/params.pulsar.go +++ /dev/null @@ -1,495 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package maps - -import ( - _ "cosmossdk.io/api/amino" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_Params protoreflect.MessageDescriptor -) - -func init() { - file_maps_params_proto_init() - md_Params = File_maps_params_proto.Messages().ByName("Params") -} - -var _ protoreflect.Message = (*fastReflection_Params)(nil) - -type fastReflection_Params Params - -func (x *Params) ProtoReflect() protoreflect.Message { - return (*fastReflection_Params)(x) -} - -func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_maps_params_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Params_messageType fastReflection_Params_messageType -var _ protoreflect.MessageType = fastReflection_Params_messageType{} - -type fastReflection_Params_messageType struct{} - -func (x fastReflection_Params_messageType) Zero() protoreflect.Message { - return (*fastReflection_Params)(nil) -} -func (x fastReflection_Params_messageType) New() protoreflect.Message { - return new(fastReflection_Params) -} -func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { - return md_Params -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Params) Type() protoreflect.MessageType { - return _fastReflection_Params_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Params) New() protoreflect.Message { - return new(fastReflection_Params) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { - return (*Params)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Params")) - } - panic(fmt.Errorf("message maps.Params does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Params")) - } - panic(fmt.Errorf("message maps.Params does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Params")) - } - panic(fmt.Errorf("message maps.Params does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Params")) - } - panic(fmt.Errorf("message maps.Params does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Params")) - } - panic(fmt.Errorf("message maps.Params does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Params")) - } - panic(fmt.Errorf("message maps.Params does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.Params", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Params) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Params) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/params.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Params defines the parameters for the module. -type Params struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Params) Reset() { - *x = Params{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_params_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Params) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Params) ProtoMessage() {} - -// Deprecated: Use Params.ProtoReflect.Descriptor instead. -func (*Params) Descriptor() ([]byte, []int) { - return file_maps_params_proto_rawDescGZIP(), []int{0} -} - -var File_maps_params_proto protoreflect.FileDescriptor - -var file_maps_params_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61, 0x70, 0x73, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, - 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, - 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x44, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x3a, 0xe8, 0xa0, - 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x2f, 0x62, 0x69, 0x74, 0x62, - 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x6d, 0x61, 0x70, - 0x73, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x60, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, - 0x6d, 0x61, 0x70, 0x73, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x17, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0xa2, 0x02, 0x03, 0x4d, - 0x58, 0x58, 0xaa, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xca, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, - 0xe2, 0x02, 0x10, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_maps_params_proto_rawDescOnce sync.Once - file_maps_params_proto_rawDescData = file_maps_params_proto_rawDesc -) - -func file_maps_params_proto_rawDescGZIP() []byte { - file_maps_params_proto_rawDescOnce.Do(func() { - file_maps_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_params_proto_rawDescData) - }) - return file_maps_params_proto_rawDescData -} - -var file_maps_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_maps_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: maps.Params -} -var file_maps_params_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_maps_params_proto_init() } -func file_maps_params_proto_init() { - if File_maps_params_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_maps_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Params); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_params_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_maps_params_proto_goTypes, - DependencyIndexes: file_maps_params_proto_depIdxs, - MessageInfos: file_maps_params_proto_msgTypes, - }.Build() - File_maps_params_proto = out.File - file_maps_params_proto_rawDesc = nil - file_maps_params_proto_goTypes = nil - file_maps_params_proto_depIdxs = nil -} diff --git a/api/maps/permissions.pulsar.go b/api/maps/permissions.pulsar.go deleted file mode 100644 index 1a49527f..00000000 --- a/api/maps/permissions.pulsar.go +++ /dev/null @@ -1,1664 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package maps - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "google.golang.org/protobuf/types/known/anypb" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_ActionPermission_1_list)(nil) - -type _ActionPermission_1_list struct { - list *[]*UintRange -} - -func (x *_ActionPermission_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_ActionPermission_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_ActionPermission_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - (*x.list)[i] = concreteValue -} - -func (x *_ActionPermission_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - *x.list = append(*x.list, concreteValue) -} - -func (x *_ActionPermission_1_list) AppendMutable() protoreflect.Value { - v := new(UintRange) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_ActionPermission_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_ActionPermission_1_list) NewElement() protoreflect.Value { - v := new(UintRange) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_ActionPermission_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_ActionPermission_2_list)(nil) - -type _ActionPermission_2_list struct { - list *[]*UintRange -} - -func (x *_ActionPermission_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_ActionPermission_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_ActionPermission_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - (*x.list)[i] = concreteValue -} - -func (x *_ActionPermission_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - *x.list = append(*x.list, concreteValue) -} - -func (x *_ActionPermission_2_list) AppendMutable() protoreflect.Value { - v := new(UintRange) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_ActionPermission_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_ActionPermission_2_list) NewElement() protoreflect.Value { - v := new(UintRange) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_ActionPermission_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_ActionPermission protoreflect.MessageDescriptor - fd_ActionPermission_permanentlyPermittedTimes protoreflect.FieldDescriptor - fd_ActionPermission_permanentlyForbiddenTimes protoreflect.FieldDescriptor -) - -func init() { - file_maps_permissions_proto_init() - md_ActionPermission = File_maps_permissions_proto.Messages().ByName("ActionPermission") - fd_ActionPermission_permanentlyPermittedTimes = md_ActionPermission.Fields().ByName("permanentlyPermittedTimes") - fd_ActionPermission_permanentlyForbiddenTimes = md_ActionPermission.Fields().ByName("permanentlyForbiddenTimes") -} - -var _ protoreflect.Message = (*fastReflection_ActionPermission)(nil) - -type fastReflection_ActionPermission ActionPermission - -func (x *ActionPermission) ProtoReflect() protoreflect.Message { - return (*fastReflection_ActionPermission)(x) -} - -func (x *ActionPermission) slowProtoReflect() protoreflect.Message { - mi := &file_maps_permissions_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_ActionPermission_messageType fastReflection_ActionPermission_messageType -var _ protoreflect.MessageType = fastReflection_ActionPermission_messageType{} - -type fastReflection_ActionPermission_messageType struct{} - -func (x fastReflection_ActionPermission_messageType) Zero() protoreflect.Message { - return (*fastReflection_ActionPermission)(nil) -} -func (x fastReflection_ActionPermission_messageType) New() protoreflect.Message { - return new(fastReflection_ActionPermission) -} -func (x fastReflection_ActionPermission_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ActionPermission -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ActionPermission) Descriptor() protoreflect.MessageDescriptor { - return md_ActionPermission -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ActionPermission) Type() protoreflect.MessageType { - return _fastReflection_ActionPermission_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ActionPermission) New() protoreflect.Message { - return new(fastReflection_ActionPermission) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ActionPermission) Interface() protoreflect.ProtoMessage { - return (*ActionPermission)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ActionPermission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.PermanentlyPermittedTimes) != 0 { - value := protoreflect.ValueOfList(&_ActionPermission_1_list{list: &x.PermanentlyPermittedTimes}) - if !f(fd_ActionPermission_permanentlyPermittedTimes, value) { - return - } - } - if len(x.PermanentlyForbiddenTimes) != 0 { - value := protoreflect.ValueOfList(&_ActionPermission_2_list{list: &x.PermanentlyForbiddenTimes}) - if !f(fd_ActionPermission_permanentlyForbiddenTimes, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ActionPermission) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.ActionPermission.permanentlyPermittedTimes": - return len(x.PermanentlyPermittedTimes) != 0 - case "maps.ActionPermission.permanentlyForbiddenTimes": - return len(x.PermanentlyForbiddenTimes) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ActionPermission")) - } - panic(fmt.Errorf("message maps.ActionPermission does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ActionPermission) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.ActionPermission.permanentlyPermittedTimes": - x.PermanentlyPermittedTimes = nil - case "maps.ActionPermission.permanentlyForbiddenTimes": - x.PermanentlyForbiddenTimes = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ActionPermission")) - } - panic(fmt.Errorf("message maps.ActionPermission does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ActionPermission) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.ActionPermission.permanentlyPermittedTimes": - if len(x.PermanentlyPermittedTimes) == 0 { - return protoreflect.ValueOfList(&_ActionPermission_1_list{}) - } - listValue := &_ActionPermission_1_list{list: &x.PermanentlyPermittedTimes} - return protoreflect.ValueOfList(listValue) - case "maps.ActionPermission.permanentlyForbiddenTimes": - if len(x.PermanentlyForbiddenTimes) == 0 { - return protoreflect.ValueOfList(&_ActionPermission_2_list{}) - } - listValue := &_ActionPermission_2_list{list: &x.PermanentlyForbiddenTimes} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ActionPermission")) - } - panic(fmt.Errorf("message maps.ActionPermission does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ActionPermission) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.ActionPermission.permanentlyPermittedTimes": - lv := value.List() - clv := lv.(*_ActionPermission_1_list) - x.PermanentlyPermittedTimes = *clv.list - case "maps.ActionPermission.permanentlyForbiddenTimes": - lv := value.List() - clv := lv.(*_ActionPermission_2_list) - x.PermanentlyForbiddenTimes = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ActionPermission")) - } - panic(fmt.Errorf("message maps.ActionPermission does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ActionPermission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.ActionPermission.permanentlyPermittedTimes": - if x.PermanentlyPermittedTimes == nil { - x.PermanentlyPermittedTimes = []*UintRange{} - } - value := &_ActionPermission_1_list{list: &x.PermanentlyPermittedTimes} - return protoreflect.ValueOfList(value) - case "maps.ActionPermission.permanentlyForbiddenTimes": - if x.PermanentlyForbiddenTimes == nil { - x.PermanentlyForbiddenTimes = []*UintRange{} - } - value := &_ActionPermission_2_list{list: &x.PermanentlyForbiddenTimes} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ActionPermission")) - } - panic(fmt.Errorf("message maps.ActionPermission does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ActionPermission) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.ActionPermission.permanentlyPermittedTimes": - list := []*UintRange{} - return protoreflect.ValueOfList(&_ActionPermission_1_list{list: &list}) - case "maps.ActionPermission.permanentlyForbiddenTimes": - list := []*UintRange{} - return protoreflect.ValueOfList(&_ActionPermission_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ActionPermission")) - } - panic(fmt.Errorf("message maps.ActionPermission does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ActionPermission) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.ActionPermission", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ActionPermission) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ActionPermission) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ActionPermission) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ActionPermission) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ActionPermission) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.PermanentlyPermittedTimes) > 0 { - for _, e := range x.PermanentlyPermittedTimes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.PermanentlyForbiddenTimes) > 0 { - for _, e := range x.PermanentlyForbiddenTimes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ActionPermission) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.PermanentlyForbiddenTimes) > 0 { - for iNdEx := len(x.PermanentlyForbiddenTimes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.PermanentlyForbiddenTimes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.PermanentlyPermittedTimes) > 0 { - for iNdEx := len(x.PermanentlyPermittedTimes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.PermanentlyPermittedTimes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ActionPermission) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ActionPermission: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ActionPermission: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PermanentlyPermittedTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PermanentlyPermittedTimes = append(x.PermanentlyPermittedTimes, &UintRange{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PermanentlyPermittedTimes[len(x.PermanentlyPermittedTimes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PermanentlyForbiddenTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PermanentlyForbiddenTimes = append(x.PermanentlyForbiddenTimes, &UintRange{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PermanentlyForbiddenTimes[len(x.PermanentlyForbiddenTimes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_TimedUpdatePermission_1_list)(nil) - -type _TimedUpdatePermission_1_list struct { - list *[]*UintRange -} - -func (x *_TimedUpdatePermission_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_TimedUpdatePermission_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_TimedUpdatePermission_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - (*x.list)[i] = concreteValue -} - -func (x *_TimedUpdatePermission_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - *x.list = append(*x.list, concreteValue) -} - -func (x *_TimedUpdatePermission_1_list) AppendMutable() protoreflect.Value { - v := new(UintRange) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TimedUpdatePermission_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_TimedUpdatePermission_1_list) NewElement() protoreflect.Value { - v := new(UintRange) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TimedUpdatePermission_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_TimedUpdatePermission_2_list)(nil) - -type _TimedUpdatePermission_2_list struct { - list *[]*UintRange -} - -func (x *_TimedUpdatePermission_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_TimedUpdatePermission_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_TimedUpdatePermission_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - (*x.list)[i] = concreteValue -} - -func (x *_TimedUpdatePermission_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - *x.list = append(*x.list, concreteValue) -} - -func (x *_TimedUpdatePermission_2_list) AppendMutable() protoreflect.Value { - v := new(UintRange) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TimedUpdatePermission_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_TimedUpdatePermission_2_list) NewElement() protoreflect.Value { - v := new(UintRange) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TimedUpdatePermission_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_TimedUpdatePermission_3_list)(nil) - -type _TimedUpdatePermission_3_list struct { - list *[]*UintRange -} - -func (x *_TimedUpdatePermission_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_TimedUpdatePermission_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_TimedUpdatePermission_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - (*x.list)[i] = concreteValue -} - -func (x *_TimedUpdatePermission_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - *x.list = append(*x.list, concreteValue) -} - -func (x *_TimedUpdatePermission_3_list) AppendMutable() protoreflect.Value { - v := new(UintRange) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TimedUpdatePermission_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_TimedUpdatePermission_3_list) NewElement() protoreflect.Value { - v := new(UintRange) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_TimedUpdatePermission_3_list) IsValid() bool { - return x.list != nil -} - -var ( - md_TimedUpdatePermission protoreflect.MessageDescriptor - fd_TimedUpdatePermission_permanentlyPermittedTimes protoreflect.FieldDescriptor - fd_TimedUpdatePermission_permanentlyForbiddenTimes protoreflect.FieldDescriptor - fd_TimedUpdatePermission_timelineTimes protoreflect.FieldDescriptor -) - -func init() { - file_maps_permissions_proto_init() - md_TimedUpdatePermission = File_maps_permissions_proto.Messages().ByName("TimedUpdatePermission") - fd_TimedUpdatePermission_permanentlyPermittedTimes = md_TimedUpdatePermission.Fields().ByName("permanentlyPermittedTimes") - fd_TimedUpdatePermission_permanentlyForbiddenTimes = md_TimedUpdatePermission.Fields().ByName("permanentlyForbiddenTimes") - fd_TimedUpdatePermission_timelineTimes = md_TimedUpdatePermission.Fields().ByName("timelineTimes") -} - -var _ protoreflect.Message = (*fastReflection_TimedUpdatePermission)(nil) - -type fastReflection_TimedUpdatePermission TimedUpdatePermission - -func (x *TimedUpdatePermission) ProtoReflect() protoreflect.Message { - return (*fastReflection_TimedUpdatePermission)(x) -} - -func (x *TimedUpdatePermission) slowProtoReflect() protoreflect.Message { - mi := &file_maps_permissions_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_TimedUpdatePermission_messageType fastReflection_TimedUpdatePermission_messageType -var _ protoreflect.MessageType = fastReflection_TimedUpdatePermission_messageType{} - -type fastReflection_TimedUpdatePermission_messageType struct{} - -func (x fastReflection_TimedUpdatePermission_messageType) Zero() protoreflect.Message { - return (*fastReflection_TimedUpdatePermission)(nil) -} -func (x fastReflection_TimedUpdatePermission_messageType) New() protoreflect.Message { - return new(fastReflection_TimedUpdatePermission) -} -func (x fastReflection_TimedUpdatePermission_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_TimedUpdatePermission -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_TimedUpdatePermission) Descriptor() protoreflect.MessageDescriptor { - return md_TimedUpdatePermission -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_TimedUpdatePermission) Type() protoreflect.MessageType { - return _fastReflection_TimedUpdatePermission_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_TimedUpdatePermission) New() protoreflect.Message { - return new(fastReflection_TimedUpdatePermission) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_TimedUpdatePermission) Interface() protoreflect.ProtoMessage { - return (*TimedUpdatePermission)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_TimedUpdatePermission) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.PermanentlyPermittedTimes) != 0 { - value := protoreflect.ValueOfList(&_TimedUpdatePermission_1_list{list: &x.PermanentlyPermittedTimes}) - if !f(fd_TimedUpdatePermission_permanentlyPermittedTimes, value) { - return - } - } - if len(x.PermanentlyForbiddenTimes) != 0 { - value := protoreflect.ValueOfList(&_TimedUpdatePermission_2_list{list: &x.PermanentlyForbiddenTimes}) - if !f(fd_TimedUpdatePermission_permanentlyForbiddenTimes, value) { - return - } - } - if len(x.TimelineTimes) != 0 { - value := protoreflect.ValueOfList(&_TimedUpdatePermission_3_list{list: &x.TimelineTimes}) - if !f(fd_TimedUpdatePermission_timelineTimes, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_TimedUpdatePermission) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.TimedUpdatePermission.permanentlyPermittedTimes": - return len(x.PermanentlyPermittedTimes) != 0 - case "maps.TimedUpdatePermission.permanentlyForbiddenTimes": - return len(x.PermanentlyForbiddenTimes) != 0 - case "maps.TimedUpdatePermission.timelineTimes": - return len(x.TimelineTimes) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.TimedUpdatePermission")) - } - panic(fmt.Errorf("message maps.TimedUpdatePermission does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TimedUpdatePermission) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.TimedUpdatePermission.permanentlyPermittedTimes": - x.PermanentlyPermittedTimes = nil - case "maps.TimedUpdatePermission.permanentlyForbiddenTimes": - x.PermanentlyForbiddenTimes = nil - case "maps.TimedUpdatePermission.timelineTimes": - x.TimelineTimes = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.TimedUpdatePermission")) - } - panic(fmt.Errorf("message maps.TimedUpdatePermission does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_TimedUpdatePermission) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.TimedUpdatePermission.permanentlyPermittedTimes": - if len(x.PermanentlyPermittedTimes) == 0 { - return protoreflect.ValueOfList(&_TimedUpdatePermission_1_list{}) - } - listValue := &_TimedUpdatePermission_1_list{list: &x.PermanentlyPermittedTimes} - return protoreflect.ValueOfList(listValue) - case "maps.TimedUpdatePermission.permanentlyForbiddenTimes": - if len(x.PermanentlyForbiddenTimes) == 0 { - return protoreflect.ValueOfList(&_TimedUpdatePermission_2_list{}) - } - listValue := &_TimedUpdatePermission_2_list{list: &x.PermanentlyForbiddenTimes} - return protoreflect.ValueOfList(listValue) - case "maps.TimedUpdatePermission.timelineTimes": - if len(x.TimelineTimes) == 0 { - return protoreflect.ValueOfList(&_TimedUpdatePermission_3_list{}) - } - listValue := &_TimedUpdatePermission_3_list{list: &x.TimelineTimes} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.TimedUpdatePermission")) - } - panic(fmt.Errorf("message maps.TimedUpdatePermission does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TimedUpdatePermission) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.TimedUpdatePermission.permanentlyPermittedTimes": - lv := value.List() - clv := lv.(*_TimedUpdatePermission_1_list) - x.PermanentlyPermittedTimes = *clv.list - case "maps.TimedUpdatePermission.permanentlyForbiddenTimes": - lv := value.List() - clv := lv.(*_TimedUpdatePermission_2_list) - x.PermanentlyForbiddenTimes = *clv.list - case "maps.TimedUpdatePermission.timelineTimes": - lv := value.List() - clv := lv.(*_TimedUpdatePermission_3_list) - x.TimelineTimes = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.TimedUpdatePermission")) - } - panic(fmt.Errorf("message maps.TimedUpdatePermission does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TimedUpdatePermission) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.TimedUpdatePermission.permanentlyPermittedTimes": - if x.PermanentlyPermittedTimes == nil { - x.PermanentlyPermittedTimes = []*UintRange{} - } - value := &_TimedUpdatePermission_1_list{list: &x.PermanentlyPermittedTimes} - return protoreflect.ValueOfList(value) - case "maps.TimedUpdatePermission.permanentlyForbiddenTimes": - if x.PermanentlyForbiddenTimes == nil { - x.PermanentlyForbiddenTimes = []*UintRange{} - } - value := &_TimedUpdatePermission_2_list{list: &x.PermanentlyForbiddenTimes} - return protoreflect.ValueOfList(value) - case "maps.TimedUpdatePermission.timelineTimes": - if x.TimelineTimes == nil { - x.TimelineTimes = []*UintRange{} - } - value := &_TimedUpdatePermission_3_list{list: &x.TimelineTimes} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.TimedUpdatePermission")) - } - panic(fmt.Errorf("message maps.TimedUpdatePermission does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_TimedUpdatePermission) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.TimedUpdatePermission.permanentlyPermittedTimes": - list := []*UintRange{} - return protoreflect.ValueOfList(&_TimedUpdatePermission_1_list{list: &list}) - case "maps.TimedUpdatePermission.permanentlyForbiddenTimes": - list := []*UintRange{} - return protoreflect.ValueOfList(&_TimedUpdatePermission_2_list{list: &list}) - case "maps.TimedUpdatePermission.timelineTimes": - list := []*UintRange{} - return protoreflect.ValueOfList(&_TimedUpdatePermission_3_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.TimedUpdatePermission")) - } - panic(fmt.Errorf("message maps.TimedUpdatePermission does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_TimedUpdatePermission) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.TimedUpdatePermission", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_TimedUpdatePermission) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_TimedUpdatePermission) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_TimedUpdatePermission) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_TimedUpdatePermission) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*TimedUpdatePermission) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.PermanentlyPermittedTimes) > 0 { - for _, e := range x.PermanentlyPermittedTimes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.PermanentlyForbiddenTimes) > 0 { - for _, e := range x.PermanentlyForbiddenTimes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.TimelineTimes) > 0 { - for _, e := range x.TimelineTimes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*TimedUpdatePermission) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.TimelineTimes) > 0 { - for iNdEx := len(x.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.TimelineTimes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.PermanentlyForbiddenTimes) > 0 { - for iNdEx := len(x.PermanentlyForbiddenTimes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.PermanentlyForbiddenTimes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.PermanentlyPermittedTimes) > 0 { - for iNdEx := len(x.PermanentlyPermittedTimes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.PermanentlyPermittedTimes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*TimedUpdatePermission) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TimedUpdatePermission: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TimedUpdatePermission: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PermanentlyPermittedTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PermanentlyPermittedTimes = append(x.PermanentlyPermittedTimes, &UintRange{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PermanentlyPermittedTimes[len(x.PermanentlyPermittedTimes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PermanentlyForbiddenTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.PermanentlyForbiddenTimes = append(x.PermanentlyForbiddenTimes, &UintRange{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PermanentlyForbiddenTimes[len(x.PermanentlyForbiddenTimes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TimelineTimes = append(x.TimelineTimes, &UintRange{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TimelineTimes[len(x.TimelineTimes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/permissions.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// ActionPermission defines the permissions for performing an action. -// -// This is simple and straightforward as the only thing we need to check is the permitted/forbidden times. -type ActionPermission struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. - PermanentlyPermittedTimes []*UintRange `protobuf:"bytes,1,rep,name=permanentlyPermittedTimes,proto3" json:"permanentlyPermittedTimes,omitempty"` - // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. - PermanentlyForbiddenTimes []*UintRange `protobuf:"bytes,2,rep,name=permanentlyForbiddenTimes,proto3" json:"permanentlyForbiddenTimes,omitempty"` -} - -func (x *ActionPermission) Reset() { - *x = ActionPermission{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_permissions_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActionPermission) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActionPermission) ProtoMessage() {} - -// Deprecated: Use ActionPermission.ProtoReflect.Descriptor instead. -func (*ActionPermission) Descriptor() ([]byte, []int) { - return file_maps_permissions_proto_rawDescGZIP(), []int{0} -} - -func (x *ActionPermission) GetPermanentlyPermittedTimes() []*UintRange { - if x != nil { - return x.PermanentlyPermittedTimes - } - return nil -} - -func (x *ActionPermission) GetPermanentlyForbiddenTimes() []*UintRange { - if x != nil { - return x.PermanentlyForbiddenTimes - } - return nil -} - -// TimedUpdatePermission defines the permissions for updating a timeline-based field. -// -// Ex: If you want to lock the ability to update the collection's metadata for timelineTimes 1/1/2020 - 1/1/2021, -// you could set the combination (TimelineTimes: [1/1/2020 - 1/1/2021]) to always be forbidden. -type TimedUpdatePermission struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. - PermanentlyPermittedTimes []*UintRange `protobuf:"bytes,1,rep,name=permanentlyPermittedTimes,proto3" json:"permanentlyPermittedTimes,omitempty"` - // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. - PermanentlyForbiddenTimes []*UintRange `protobuf:"bytes,2,rep,name=permanentlyForbiddenTimes,proto3" json:"permanentlyForbiddenTimes,omitempty"` - // Specifies the times when the timeline-based field is a specific value. - TimelineTimes []*UintRange `protobuf:"bytes,3,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` -} - -func (x *TimedUpdatePermission) Reset() { - *x = TimedUpdatePermission{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_permissions_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TimedUpdatePermission) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TimedUpdatePermission) ProtoMessage() {} - -// Deprecated: Use TimedUpdatePermission.ProtoReflect.Descriptor instead. -func (*TimedUpdatePermission) Descriptor() ([]byte, []int) { - return file_maps_permissions_proto_rawDescGZIP(), []int{1} -} - -func (x *TimedUpdatePermission) GetPermanentlyPermittedTimes() []*UintRange { - if x != nil { - return x.PermanentlyPermittedTimes - } - return nil -} - -func (x *TimedUpdatePermission) GetPermanentlyForbiddenTimes() []*UintRange { - if x != nil { - return x.PermanentlyForbiddenTimes - } - return nil -} - -func (x *TimedUpdatePermission) GetTimelineTimes() []*UintRange { - if x != nil { - return x.TimelineTimes - } - return nil -} - -var File_maps_permissions_proto protoreflect.FileDescriptor - -var file_maps_permissions_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61, 0x70, 0x73, 0x1a, 0x19, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x6d, 0x61, 0x70, 0x73, 0x2f, - 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, - 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb0, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x19, 0x70, 0x65, 0x72, - 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x74, 0x65, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, - 0x61, 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x19, 0x70, - 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x74, - 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x19, 0x70, 0x65, 0x72, 0x6d, - 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x46, 0x6f, 0x72, 0x62, 0x69, 0x64, 0x64, 0x65, 0x6e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, 0x61, - 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x19, 0x70, 0x65, - 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x46, 0x6f, 0x72, 0x62, 0x69, 0x64, 0x64, - 0x65, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x22, 0xec, 0x01, 0x0a, 0x15, 0x54, 0x69, 0x6d, 0x65, - 0x64, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x4d, 0x0a, 0x19, 0x70, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, - 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x19, 0x70, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, - 0x6c, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x12, 0x4d, 0x0a, 0x19, 0x70, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x46, - 0x6f, 0x72, 0x62, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, - 0x61, 0x6e, 0x67, 0x65, 0x52, 0x19, 0x70, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x6c, - 0x79, 0x46, 0x6f, 0x72, 0x62, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x12, - 0x35, 0x0a, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x55, 0x69, - 0x6e, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, - 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x42, 0x65, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, - 0x70, 0x73, 0x42, 0x10, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x17, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, - 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0xa2, - 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xca, 0x02, 0x04, 0x4d, - 0x61, 0x70, 0x73, 0xe2, 0x02, 0x10, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_maps_permissions_proto_rawDescOnce sync.Once - file_maps_permissions_proto_rawDescData = file_maps_permissions_proto_rawDesc -) - -func file_maps_permissions_proto_rawDescGZIP() []byte { - file_maps_permissions_proto_rawDescOnce.Do(func() { - file_maps_permissions_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_permissions_proto_rawDescData) - }) - return file_maps_permissions_proto_rawDescData -} - -var file_maps_permissions_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_maps_permissions_proto_goTypes = []interface{}{ - (*ActionPermission)(nil), // 0: maps.ActionPermission - (*TimedUpdatePermission)(nil), // 1: maps.TimedUpdatePermission - (*UintRange)(nil), // 2: maps.UintRange -} -var file_maps_permissions_proto_depIdxs = []int32{ - 2, // 0: maps.ActionPermission.permanentlyPermittedTimes:type_name -> maps.UintRange - 2, // 1: maps.ActionPermission.permanentlyForbiddenTimes:type_name -> maps.UintRange - 2, // 2: maps.TimedUpdatePermission.permanentlyPermittedTimes:type_name -> maps.UintRange - 2, // 3: maps.TimedUpdatePermission.permanentlyForbiddenTimes:type_name -> maps.UintRange - 2, // 4: maps.TimedUpdatePermission.timelineTimes:type_name -> maps.UintRange - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_maps_permissions_proto_init() } -func file_maps_permissions_proto_init() { - if File_maps_permissions_proto != nil { - return - } - file_maps_balances_proto_init() - if !protoimpl.UnsafeEnabled { - file_maps_permissions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActionPermission); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_permissions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimedUpdatePermission); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_permissions_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_maps_permissions_proto_goTypes, - DependencyIndexes: file_maps_permissions_proto_depIdxs, - MessageInfos: file_maps_permissions_proto_msgTypes, - }.Build() - File_maps_permissions_proto = out.File - file_maps_permissions_proto_rawDesc = nil - file_maps_permissions_proto_goTypes = nil - file_maps_permissions_proto_depIdxs = nil -} diff --git a/api/maps/query.pulsar.go b/api/maps/query.pulsar.go deleted file mode 100644 index 7f97fb04..00000000 --- a/api/maps/query.pulsar.go +++ /dev/null @@ -1,3012 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package maps - -import ( - _ "cosmossdk.io/api/cosmos/base/query/v1beta1" - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_QueryParamsRequest protoreflect.MessageDescriptor -) - -func init() { - file_maps_query_proto_init() - md_QueryParamsRequest = File_maps_query_proto.Messages().ByName("QueryParamsRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) - -type fastReflection_QueryParamsRequest QueryParamsRequest - -func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(x) -} - -func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_maps_query_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} - -type fastReflection_QueryParamsRequest_messageType struct{} - -func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(nil) -} -func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} -func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParamsRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsRequest")) - } - panic(fmt.Errorf("message maps.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsRequest")) - } - panic(fmt.Errorf("message maps.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsRequest")) - } - panic(fmt.Errorf("message maps.QueryParamsRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsRequest")) - } - panic(fmt.Errorf("message maps.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsRequest")) - } - panic(fmt.Errorf("message maps.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsRequest")) - } - panic(fmt.Errorf("message maps.QueryParamsRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.QueryParamsRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryParamsRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryParamsResponse protoreflect.MessageDescriptor - fd_QueryParamsResponse_params protoreflect.FieldDescriptor -) - -func init() { - file_maps_query_proto_init() - md_QueryParamsResponse = File_maps_query_proto.Messages().ByName("QueryParamsResponse") - fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) - -type fastReflection_QueryParamsResponse QueryParamsResponse - -func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(x) -} - -func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_maps_query_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} - -type fastReflection_QueryParamsResponse_messageType struct{} - -func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(nil) -} -func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} -func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParamsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_QueryParamsResponse_params, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.QueryParamsResponse.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsResponse")) - } - panic(fmt.Errorf("message maps.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.QueryParamsResponse.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsResponse")) - } - panic(fmt.Errorf("message maps.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.QueryParamsResponse.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsResponse")) - } - panic(fmt.Errorf("message maps.QueryParamsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsResponse")) - } - panic(fmt.Errorf("message maps.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryParamsResponse.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsResponse")) - } - panic(fmt.Errorf("message maps.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryParamsResponse.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryParamsResponse")) - } - panic(fmt.Errorf("message maps.QueryParamsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.QueryParamsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryParamsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGetMapRequest protoreflect.MessageDescriptor - fd_QueryGetMapRequest_mapId protoreflect.FieldDescriptor -) - -func init() { - file_maps_query_proto_init() - md_QueryGetMapRequest = File_maps_query_proto.Messages().ByName("QueryGetMapRequest") - fd_QueryGetMapRequest_mapId = md_QueryGetMapRequest.Fields().ByName("mapId") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetMapRequest)(nil) - -type fastReflection_QueryGetMapRequest QueryGetMapRequest - -func (x *QueryGetMapRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetMapRequest)(x) -} - -func (x *QueryGetMapRequest) slowProtoReflect() protoreflect.Message { - mi := &file_maps_query_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetMapRequest_messageType fastReflection_QueryGetMapRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetMapRequest_messageType{} - -type fastReflection_QueryGetMapRequest_messageType struct{} - -func (x fastReflection_QueryGetMapRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetMapRequest)(nil) -} -func (x fastReflection_QueryGetMapRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetMapRequest) -} -func (x fastReflection_QueryGetMapRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetMapRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetMapRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetMapRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetMapRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetMapRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetMapRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetMapRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetMapRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetMapRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGetMapRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.MapId != "" { - value := protoreflect.ValueOfString(x.MapId) - if !f(fd_QueryGetMapRequest_mapId, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetMapRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.QueryGetMapRequest.mapId": - return x.MapId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.QueryGetMapRequest.mapId": - x.MapId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetMapRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.QueryGetMapRequest.mapId": - value := x.MapId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.QueryGetMapRequest.mapId": - x.MapId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryGetMapRequest.mapId": - panic(fmt.Errorf("field mapId of message maps.QueryGetMapRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetMapRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryGetMapRequest.mapId": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetMapRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.QueryGetMapRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetMapRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetMapRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetMapRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetMapRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.MapId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetMapRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.MapId) > 0 { - i -= len(x.MapId) - copy(dAtA[i:], x.MapId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MapId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetMapRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMapRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMapRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGetMapResponse protoreflect.MessageDescriptor - fd_QueryGetMapResponse_map protoreflect.FieldDescriptor -) - -func init() { - file_maps_query_proto_init() - md_QueryGetMapResponse = File_maps_query_proto.Messages().ByName("QueryGetMapResponse") - fd_QueryGetMapResponse_map = md_QueryGetMapResponse.Fields().ByName("map") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetMapResponse)(nil) - -type fastReflection_QueryGetMapResponse QueryGetMapResponse - -func (x *QueryGetMapResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetMapResponse)(x) -} - -func (x *QueryGetMapResponse) slowProtoReflect() protoreflect.Message { - mi := &file_maps_query_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetMapResponse_messageType fastReflection_QueryGetMapResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetMapResponse_messageType{} - -type fastReflection_QueryGetMapResponse_messageType struct{} - -func (x fastReflection_QueryGetMapResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetMapResponse)(nil) -} -func (x fastReflection_QueryGetMapResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetMapResponse) -} -func (x fastReflection_QueryGetMapResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetMapResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetMapResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetMapResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetMapResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetMapResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetMapResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetMapResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetMapResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetMapResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGetMapResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Map != nil { - value := protoreflect.ValueOfMessage(x.Map.ProtoReflect()) - if !f(fd_QueryGetMapResponse_map, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetMapResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.QueryGetMapResponse.map": - return x.Map != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.QueryGetMapResponse.map": - x.Map = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetMapResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.QueryGetMapResponse.map": - value := x.Map - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.QueryGetMapResponse.map": - x.Map = value.Message().Interface().(*Map) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryGetMapResponse.map": - if x.Map == nil { - x.Map = new(Map) - } - return protoreflect.ValueOfMessage(x.Map.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetMapResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryGetMapResponse.map": - m := new(Map) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetMapResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.QueryGetMapResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetMapResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetMapResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetMapResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetMapResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Map != nil { - l = options.Size(x.Map) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetMapResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Map != nil { - encoded, err := options.Marshal(x.Map) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetMapResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMapResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMapResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Map", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Map == nil { - x.Map = &Map{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Map); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGetMapValueRequest protoreflect.MessageDescriptor - fd_QueryGetMapValueRequest_mapId protoreflect.FieldDescriptor - fd_QueryGetMapValueRequest_key protoreflect.FieldDescriptor -) - -func init() { - file_maps_query_proto_init() - md_QueryGetMapValueRequest = File_maps_query_proto.Messages().ByName("QueryGetMapValueRequest") - fd_QueryGetMapValueRequest_mapId = md_QueryGetMapValueRequest.Fields().ByName("mapId") - fd_QueryGetMapValueRequest_key = md_QueryGetMapValueRequest.Fields().ByName("key") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetMapValueRequest)(nil) - -type fastReflection_QueryGetMapValueRequest QueryGetMapValueRequest - -func (x *QueryGetMapValueRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetMapValueRequest)(x) -} - -func (x *QueryGetMapValueRequest) slowProtoReflect() protoreflect.Message { - mi := &file_maps_query_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetMapValueRequest_messageType fastReflection_QueryGetMapValueRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetMapValueRequest_messageType{} - -type fastReflection_QueryGetMapValueRequest_messageType struct{} - -func (x fastReflection_QueryGetMapValueRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetMapValueRequest)(nil) -} -func (x fastReflection_QueryGetMapValueRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetMapValueRequest) -} -func (x fastReflection_QueryGetMapValueRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetMapValueRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetMapValueRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetMapValueRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetMapValueRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetMapValueRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetMapValueRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetMapValueRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetMapValueRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetMapValueRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGetMapValueRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.MapId != "" { - value := protoreflect.ValueOfString(x.MapId) - if !f(fd_QueryGetMapValueRequest_mapId, value) { - return - } - } - if x.Key != "" { - value := protoreflect.ValueOfString(x.Key) - if !f(fd_QueryGetMapValueRequest_key, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetMapValueRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.QueryGetMapValueRequest.mapId": - return x.MapId != "" - case "maps.QueryGetMapValueRequest.key": - return x.Key != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapValueRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.QueryGetMapValueRequest.mapId": - x.MapId = "" - case "maps.QueryGetMapValueRequest.key": - x.Key = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetMapValueRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.QueryGetMapValueRequest.mapId": - value := x.MapId - return protoreflect.ValueOfString(value) - case "maps.QueryGetMapValueRequest.key": - value := x.Key - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapValueRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.QueryGetMapValueRequest.mapId": - x.MapId = value.Interface().(string) - case "maps.QueryGetMapValueRequest.key": - x.Key = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapValueRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryGetMapValueRequest.mapId": - panic(fmt.Errorf("field mapId of message maps.QueryGetMapValueRequest is not mutable")) - case "maps.QueryGetMapValueRequest.key": - panic(fmt.Errorf("field key of message maps.QueryGetMapValueRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetMapValueRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryGetMapValueRequest.mapId": - return protoreflect.ValueOfString("") - case "maps.QueryGetMapValueRequest.key": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueRequest")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetMapValueRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.QueryGetMapValueRequest", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetMapValueRequest) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapValueRequest) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetMapValueRequest) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetMapValueRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetMapValueRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.MapId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Key) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetMapValueRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Key) > 0 { - i -= len(x.Key) - copy(dAtA[i:], x.Key) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Key))) - i-- - dAtA[i] = 0x12 - } - if len(x.MapId) > 0 { - i -= len(x.MapId) - copy(dAtA[i:], x.MapId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MapId))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetMapValueRequest) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMapValueRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMapValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryGetMapValueResponse protoreflect.MessageDescriptor - fd_QueryGetMapValueResponse_value protoreflect.FieldDescriptor -) - -func init() { - file_maps_query_proto_init() - md_QueryGetMapValueResponse = File_maps_query_proto.Messages().ByName("QueryGetMapValueResponse") - fd_QueryGetMapValueResponse_value = md_QueryGetMapValueResponse.Fields().ByName("value") -} - -var _ protoreflect.Message = (*fastReflection_QueryGetMapValueResponse)(nil) - -type fastReflection_QueryGetMapValueResponse QueryGetMapValueResponse - -func (x *QueryGetMapValueResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetMapValueResponse)(x) -} - -func (x *QueryGetMapValueResponse) slowProtoReflect() protoreflect.Message { - mi := &file_maps_query_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryGetMapValueResponse_messageType fastReflection_QueryGetMapValueResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetMapValueResponse_messageType{} - -type fastReflection_QueryGetMapValueResponse_messageType struct{} - -func (x fastReflection_QueryGetMapValueResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetMapValueResponse)(nil) -} -func (x fastReflection_QueryGetMapValueResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetMapValueResponse) -} -func (x fastReflection_QueryGetMapValueResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetMapValueResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryGetMapValueResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetMapValueResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetMapValueResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetMapValueResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetMapValueResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetMapValueResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetMapValueResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetMapValueResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryGetMapValueResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Value != nil { - value := protoreflect.ValueOfMessage(x.Value.ProtoReflect()) - if !f(fd_QueryGetMapValueResponse_value, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetMapValueResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.QueryGetMapValueResponse.value": - return x.Value != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapValueResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.QueryGetMapValueResponse.value": - x.Value = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetMapValueResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.QueryGetMapValueResponse.value": - value := x.Value - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapValueResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.QueryGetMapValueResponse.value": - x.Value = value.Message().Interface().(*ValueStore) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapValueResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryGetMapValueResponse.value": - if x.Value == nil { - x.Value = new(ValueStore) - } - return protoreflect.ValueOfMessage(x.Value.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetMapValueResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.QueryGetMapValueResponse.value": - m := new(ValueStore) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.QueryGetMapValueResponse")) - } - panic(fmt.Errorf("message maps.QueryGetMapValueResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetMapValueResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.QueryGetMapValueResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetMapValueResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetMapValueResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetMapValueResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetMapValueResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetMapValueResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Value != nil { - l = options.Size(x.Value) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetMapValueResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Value != nil { - encoded, err := options.Marshal(x.Value) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetMapValueResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMapValueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetMapValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Value == nil { - x.Value = &ValueStore{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryParamsRequest) Reset() { - *x = QueryParamsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsRequest) ProtoMessage() {} - -// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_maps_query_proto_rawDescGZIP(), []int{0} -} - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // params holds all the parameters of this module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *QueryParamsResponse) Reset() { - *x = QueryParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_query_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryParamsResponse) ProtoMessage() {} - -// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_maps_query_proto_rawDescGZIP(), []int{1} -} - -func (x *QueryParamsResponse) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -type QueryGetMapRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MapId string `protobuf:"bytes,1,opt,name=mapId,proto3" json:"mapId,omitempty"` -} - -func (x *QueryGetMapRequest) Reset() { - *x = QueryGetMapRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_query_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetMapRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetMapRequest) ProtoMessage() {} - -// Deprecated: Use QueryGetMapRequest.ProtoReflect.Descriptor instead. -func (*QueryGetMapRequest) Descriptor() ([]byte, []int) { - return file_maps_query_proto_rawDescGZIP(), []int{2} -} - -func (x *QueryGetMapRequest) GetMapId() string { - if x != nil { - return x.MapId - } - return "" -} - -type QueryGetMapResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Map *Map `protobuf:"bytes,1,opt,name=map,proto3" json:"map,omitempty"` -} - -func (x *QueryGetMapResponse) Reset() { - *x = QueryGetMapResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_query_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetMapResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetMapResponse) ProtoMessage() {} - -// Deprecated: Use QueryGetMapResponse.ProtoReflect.Descriptor instead. -func (*QueryGetMapResponse) Descriptor() ([]byte, []int) { - return file_maps_query_proto_rawDescGZIP(), []int{3} -} - -func (x *QueryGetMapResponse) GetMap() *Map { - if x != nil { - return x.Map - } - return nil -} - -type QueryGetMapValueRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MapId string `protobuf:"bytes,1,opt,name=mapId,proto3" json:"mapId,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` -} - -func (x *QueryGetMapValueRequest) Reset() { - *x = QueryGetMapValueRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_query_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetMapValueRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetMapValueRequest) ProtoMessage() {} - -// Deprecated: Use QueryGetMapValueRequest.ProtoReflect.Descriptor instead. -func (*QueryGetMapValueRequest) Descriptor() ([]byte, []int) { - return file_maps_query_proto_rawDescGZIP(), []int{4} -} - -func (x *QueryGetMapValueRequest) GetMapId() string { - if x != nil { - return x.MapId - } - return "" -} - -func (x *QueryGetMapValueRequest) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -type QueryGetMapValueResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value *ValueStore `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *QueryGetMapValueResponse) Reset() { - *x = QueryGetMapValueResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryGetMapValueResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryGetMapValueResponse) ProtoMessage() {} - -// Deprecated: Use QueryGetMapValueResponse.ProtoReflect.Descriptor instead. -func (*QueryGetMapValueResponse) Descriptor() ([]byte, []int) { - return file_maps_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QueryGetMapValueResponse) GetValue() *ValueStore { - if x != nil { - return x.Value - } - return nil -} - -var File_maps_query_proto protoreflect.FileDescriptor - -var file_maps_query_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61, 0x70, 0x73, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x6d, 0x61, 0x70, - 0x73, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0x41, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x22, 0x2a, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, - 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x70, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x22, - 0x32, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x03, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x52, 0x03, - 0x6d, 0x61, 0x70, 0x22, 0x41, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, - 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, - 0x0a, 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, - 0x61, 0x70, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x42, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x65, 0x74, 0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x26, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, - 0x6f, 0x72, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0xe2, 0x02, 0x0a, 0x05, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x6c, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x18, - 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x62, 0x69, - 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, - 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x12, 0x6a, 0x0a, 0x03, 0x4d, 0x61, 0x70, 0x12, 0x18, 0x2e, 0x6d, 0x61, 0x70, 0x73, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, - 0x65, 0x73, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x7b, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x7d, 0x12, 0x7f, - 0x0a, 0x08, 0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x2e, 0x6d, 0x61, 0x70, - 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x61, 0x70, 0x73, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x2e, 0x12, 0x2c, 0x2f, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x2f, 0x62, 0x69, - 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x70, - 0x73, 0x2f, 0x7b, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x7d, 0x2f, 0x7b, 0x6b, 0x65, 0x79, 0x7d, 0x42, - 0x5f, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x42, 0x0a, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x17, 0x62, 0x69, 0x74, 0x62, 0x61, - 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, - 0x70, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xca, - 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xe2, 0x02, 0x10, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_maps_query_proto_rawDescOnce sync.Once - file_maps_query_proto_rawDescData = file_maps_query_proto_rawDesc -) - -func file_maps_query_proto_rawDescGZIP() []byte { - file_maps_query_proto_rawDescOnce.Do(func() { - file_maps_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_query_proto_rawDescData) - }) - return file_maps_query_proto_rawDescData -} - -var file_maps_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_maps_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: maps.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: maps.QueryParamsResponse - (*QueryGetMapRequest)(nil), // 2: maps.QueryGetMapRequest - (*QueryGetMapResponse)(nil), // 3: maps.QueryGetMapResponse - (*QueryGetMapValueRequest)(nil), // 4: maps.QueryGetMapValueRequest - (*QueryGetMapValueResponse)(nil), // 5: maps.QueryGetMapValueResponse - (*Params)(nil), // 6: maps.Params - (*Map)(nil), // 7: maps.Map - (*ValueStore)(nil), // 8: maps.ValueStore -} -var file_maps_query_proto_depIdxs = []int32{ - 6, // 0: maps.QueryParamsResponse.params:type_name -> maps.Params - 7, // 1: maps.QueryGetMapResponse.map:type_name -> maps.Map - 8, // 2: maps.QueryGetMapValueResponse.value:type_name -> maps.ValueStore - 0, // 3: maps.Query.Params:input_type -> maps.QueryParamsRequest - 2, // 4: maps.Query.Map:input_type -> maps.QueryGetMapRequest - 4, // 5: maps.Query.MapValue:input_type -> maps.QueryGetMapValueRequest - 1, // 6: maps.Query.Params:output_type -> maps.QueryParamsResponse - 3, // 7: maps.Query.Map:output_type -> maps.QueryGetMapResponse - 5, // 8: maps.Query.MapValue:output_type -> maps.QueryGetMapValueResponse - 6, // [6:9] is the sub-list for method output_type - 3, // [3:6] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_maps_query_proto_init() } -func file_maps_query_proto_init() { - if File_maps_query_proto != nil { - return - } - file_maps_params_proto_init() - file_maps_tx_proto_init() - if !protoimpl.UnsafeEnabled { - file_maps_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetMapRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetMapResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetMapValueRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetMapValueResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_query_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_maps_query_proto_goTypes, - DependencyIndexes: file_maps_query_proto_depIdxs, - MessageInfos: file_maps_query_proto_msgTypes, - }.Build() - File_maps_query_proto = out.File - file_maps_query_proto_rawDesc = nil - file_maps_query_proto_goTypes = nil - file_maps_query_proto_depIdxs = nil -} diff --git a/api/maps/query_grpc.pb.go b/api/maps/query_grpc.pb.go deleted file mode 100644 index 8550b299..00000000 --- a/api/maps/query_grpc.pb.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: maps/query.proto - -package maps - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Query_Params_FullMethodName = "/maps.Query/Params" - Query_Map_FullMethodName = "/maps.Query/Map" - Query_MapValue_FullMethodName = "/maps.Query/MapValue" -) - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Query defines the gRPC querier service. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - Map(ctx context.Context, in *QueryGetMapRequest, opts ...grpc.CallOption) (*QueryGetMapResponse, error) - MapValue(ctx context.Context, in *QueryGetMapValueRequest, opts ...grpc.CallOption) (*QueryGetMapValueResponse, error) -} - -type queryClient struct { - cc grpc.ClientConnInterface -} - -func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Map(ctx context.Context, in *QueryGetMapRequest, opts ...grpc.CallOption) (*QueryGetMapResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGetMapResponse) - err := c.cc.Invoke(ctx, Query_Map_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) MapValue(ctx context.Context, in *QueryGetMapValueRequest, opts ...grpc.CallOption) (*QueryGetMapValueResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(QueryGetMapValueResponse) - err := c.cc.Invoke(ctx, Query_MapValue_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -// All implementations must embed UnimplementedQueryServer -// for forward compatibility. -// -// Query defines the gRPC querier service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - Map(context.Context, *QueryGetMapRequest) (*QueryGetMapResponse, error) - MapValue(context.Context, *QueryGetMapValueRequest) (*QueryGetMapValueResponse, error) - mustEmbedUnimplementedQueryServer() -} - -// UnimplementedQueryServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedQueryServer struct{} - -func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (UnimplementedQueryServer) Map(context.Context, *QueryGetMapRequest) (*QueryGetMapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Map not implemented") -} -func (UnimplementedQueryServer) MapValue(context.Context, *QueryGetMapValueRequest) (*QueryGetMapValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MapValue not implemented") -} -func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} -func (UnimplementedQueryServer) testEmbeddedByValue() {} - -// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to QueryServer will -// result in compilation errors. -type UnsafeQueryServer interface { - mustEmbedUnimplementedQueryServer() -} - -func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { - // If the following call pancis, it indicates UnimplementedQueryServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Query_ServiceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Params_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Map_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetMapRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Map(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_Map_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Map(ctx, req.(*QueryGetMapRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_MapValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetMapValueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).MapValue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_MapValue_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).MapValue(ctx, req.(*QueryGetMapValueRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Query_ServiceDesc is the grpc.ServiceDesc for Query service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "maps.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "Map", - Handler: _Query_Map_Handler, - }, - { - MethodName: "MapValue", - Handler: _Query_MapValue_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "maps/query.proto", -} diff --git a/api/maps/timelines.pulsar.go b/api/maps/timelines.pulsar.go deleted file mode 100644 index 73703fe9..00000000 --- a/api/maps/timelines.pulsar.go +++ /dev/null @@ -1,1370 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package maps - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "google.golang.org/protobuf/types/known/anypb" - io "io" - reflect "reflect" - sync "sync" -) - -var _ protoreflect.List = (*_MapMetadataTimeline_2_list)(nil) - -type _MapMetadataTimeline_2_list struct { - list *[]*UintRange -} - -func (x *_MapMetadataTimeline_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MapMetadataTimeline_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MapMetadataTimeline_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - (*x.list)[i] = concreteValue -} - -func (x *_MapMetadataTimeline_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MapMetadataTimeline_2_list) AppendMutable() protoreflect.Value { - v := new(UintRange) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MapMetadataTimeline_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MapMetadataTimeline_2_list) NewElement() protoreflect.Value { - v := new(UintRange) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MapMetadataTimeline_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MapMetadataTimeline protoreflect.MessageDescriptor - fd_MapMetadataTimeline_metadata protoreflect.FieldDescriptor - fd_MapMetadataTimeline_timelineTimes protoreflect.FieldDescriptor -) - -func init() { - file_maps_timelines_proto_init() - md_MapMetadataTimeline = File_maps_timelines_proto.Messages().ByName("MapMetadataTimeline") - fd_MapMetadataTimeline_metadata = md_MapMetadataTimeline.Fields().ByName("metadata") - fd_MapMetadataTimeline_timelineTimes = md_MapMetadataTimeline.Fields().ByName("timelineTimes") -} - -var _ protoreflect.Message = (*fastReflection_MapMetadataTimeline)(nil) - -type fastReflection_MapMetadataTimeline MapMetadataTimeline - -func (x *MapMetadataTimeline) ProtoReflect() protoreflect.Message { - return (*fastReflection_MapMetadataTimeline)(x) -} - -func (x *MapMetadataTimeline) slowProtoReflect() protoreflect.Message { - mi := &file_maps_timelines_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MapMetadataTimeline_messageType fastReflection_MapMetadataTimeline_messageType -var _ protoreflect.MessageType = fastReflection_MapMetadataTimeline_messageType{} - -type fastReflection_MapMetadataTimeline_messageType struct{} - -func (x fastReflection_MapMetadataTimeline_messageType) Zero() protoreflect.Message { - return (*fastReflection_MapMetadataTimeline)(nil) -} -func (x fastReflection_MapMetadataTimeline_messageType) New() protoreflect.Message { - return new(fastReflection_MapMetadataTimeline) -} -func (x fastReflection_MapMetadataTimeline_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MapMetadataTimeline -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MapMetadataTimeline) Descriptor() protoreflect.MessageDescriptor { - return md_MapMetadataTimeline -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MapMetadataTimeline) Type() protoreflect.MessageType { - return _fastReflection_MapMetadataTimeline_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MapMetadataTimeline) New() protoreflect.Message { - return new(fastReflection_MapMetadataTimeline) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MapMetadataTimeline) Interface() protoreflect.ProtoMessage { - return (*MapMetadataTimeline)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MapMetadataTimeline) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Metadata != nil { - value := protoreflect.ValueOfMessage(x.Metadata.ProtoReflect()) - if !f(fd_MapMetadataTimeline_metadata, value) { - return - } - } - if len(x.TimelineTimes) != 0 { - value := protoreflect.ValueOfList(&_MapMetadataTimeline_2_list{list: &x.TimelineTimes}) - if !f(fd_MapMetadataTimeline_timelineTimes, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MapMetadataTimeline) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MapMetadataTimeline.metadata": - return x.Metadata != nil - case "maps.MapMetadataTimeline.timelineTimes": - return len(x.TimelineTimes) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapMetadataTimeline")) - } - panic(fmt.Errorf("message maps.MapMetadataTimeline does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapMetadataTimeline) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MapMetadataTimeline.metadata": - x.Metadata = nil - case "maps.MapMetadataTimeline.timelineTimes": - x.TimelineTimes = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapMetadataTimeline")) - } - panic(fmt.Errorf("message maps.MapMetadataTimeline does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MapMetadataTimeline) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MapMetadataTimeline.metadata": - value := x.Metadata - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "maps.MapMetadataTimeline.timelineTimes": - if len(x.TimelineTimes) == 0 { - return protoreflect.ValueOfList(&_MapMetadataTimeline_2_list{}) - } - listValue := &_MapMetadataTimeline_2_list{list: &x.TimelineTimes} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapMetadataTimeline")) - } - panic(fmt.Errorf("message maps.MapMetadataTimeline does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapMetadataTimeline) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MapMetadataTimeline.metadata": - x.Metadata = value.Message().Interface().(*Metadata) - case "maps.MapMetadataTimeline.timelineTimes": - lv := value.List() - clv := lv.(*_MapMetadataTimeline_2_list) - x.TimelineTimes = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapMetadataTimeline")) - } - panic(fmt.Errorf("message maps.MapMetadataTimeline does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapMetadataTimeline) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapMetadataTimeline.metadata": - if x.Metadata == nil { - x.Metadata = new(Metadata) - } - return protoreflect.ValueOfMessage(x.Metadata.ProtoReflect()) - case "maps.MapMetadataTimeline.timelineTimes": - if x.TimelineTimes == nil { - x.TimelineTimes = []*UintRange{} - } - value := &_MapMetadataTimeline_2_list{list: &x.TimelineTimes} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapMetadataTimeline")) - } - panic(fmt.Errorf("message maps.MapMetadataTimeline does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MapMetadataTimeline) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapMetadataTimeline.metadata": - m := new(Metadata) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "maps.MapMetadataTimeline.timelineTimes": - list := []*UintRange{} - return protoreflect.ValueOfList(&_MapMetadataTimeline_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapMetadataTimeline")) - } - panic(fmt.Errorf("message maps.MapMetadataTimeline does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MapMetadataTimeline) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MapMetadataTimeline", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MapMetadataTimeline) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapMetadataTimeline) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MapMetadataTimeline) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MapMetadataTimeline) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MapMetadataTimeline) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Metadata != nil { - l = options.Size(x.Metadata) - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.TimelineTimes) > 0 { - for _, e := range x.TimelineTimes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MapMetadataTimeline) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.TimelineTimes) > 0 { - for iNdEx := len(x.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.TimelineTimes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if x.Metadata != nil { - encoded, err := options.Marshal(x.Metadata) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MapMetadataTimeline) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapMetadataTimeline: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapMetadataTimeline: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Metadata == nil { - x.Metadata = &Metadata{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Metadata); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TimelineTimes = append(x.TimelineTimes, &UintRange{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TimelineTimes[len(x.TimelineTimes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_ManagerTimeline_2_list)(nil) - -type _ManagerTimeline_2_list struct { - list *[]*UintRange -} - -func (x *_ManagerTimeline_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_ManagerTimeline_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_ManagerTimeline_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - (*x.list)[i] = concreteValue -} - -func (x *_ManagerTimeline_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*UintRange) - *x.list = append(*x.list, concreteValue) -} - -func (x *_ManagerTimeline_2_list) AppendMutable() protoreflect.Value { - v := new(UintRange) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_ManagerTimeline_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_ManagerTimeline_2_list) NewElement() protoreflect.Value { - v := new(UintRange) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_ManagerTimeline_2_list) IsValid() bool { - return x.list != nil -} - -var ( - md_ManagerTimeline protoreflect.MessageDescriptor - fd_ManagerTimeline_manager protoreflect.FieldDescriptor - fd_ManagerTimeline_timelineTimes protoreflect.FieldDescriptor -) - -func init() { - file_maps_timelines_proto_init() - md_ManagerTimeline = File_maps_timelines_proto.Messages().ByName("ManagerTimeline") - fd_ManagerTimeline_manager = md_ManagerTimeline.Fields().ByName("manager") - fd_ManagerTimeline_timelineTimes = md_ManagerTimeline.Fields().ByName("timelineTimes") -} - -var _ protoreflect.Message = (*fastReflection_ManagerTimeline)(nil) - -type fastReflection_ManagerTimeline ManagerTimeline - -func (x *ManagerTimeline) ProtoReflect() protoreflect.Message { - return (*fastReflection_ManagerTimeline)(x) -} - -func (x *ManagerTimeline) slowProtoReflect() protoreflect.Message { - mi := &file_maps_timelines_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_ManagerTimeline_messageType fastReflection_ManagerTimeline_messageType -var _ protoreflect.MessageType = fastReflection_ManagerTimeline_messageType{} - -type fastReflection_ManagerTimeline_messageType struct{} - -func (x fastReflection_ManagerTimeline_messageType) Zero() protoreflect.Message { - return (*fastReflection_ManagerTimeline)(nil) -} -func (x fastReflection_ManagerTimeline_messageType) New() protoreflect.Message { - return new(fastReflection_ManagerTimeline) -} -func (x fastReflection_ManagerTimeline_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ManagerTimeline -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ManagerTimeline) Descriptor() protoreflect.MessageDescriptor { - return md_ManagerTimeline -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ManagerTimeline) Type() protoreflect.MessageType { - return _fastReflection_ManagerTimeline_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ManagerTimeline) New() protoreflect.Message { - return new(fastReflection_ManagerTimeline) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ManagerTimeline) Interface() protoreflect.ProtoMessage { - return (*ManagerTimeline)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ManagerTimeline) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Manager != "" { - value := protoreflect.ValueOfString(x.Manager) - if !f(fd_ManagerTimeline_manager, value) { - return - } - } - if len(x.TimelineTimes) != 0 { - value := protoreflect.ValueOfList(&_ManagerTimeline_2_list{list: &x.TimelineTimes}) - if !f(fd_ManagerTimeline_timelineTimes, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ManagerTimeline) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.ManagerTimeline.manager": - return x.Manager != "" - case "maps.ManagerTimeline.timelineTimes": - return len(x.TimelineTimes) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ManagerTimeline")) - } - panic(fmt.Errorf("message maps.ManagerTimeline does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ManagerTimeline) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.ManagerTimeline.manager": - x.Manager = "" - case "maps.ManagerTimeline.timelineTimes": - x.TimelineTimes = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ManagerTimeline")) - } - panic(fmt.Errorf("message maps.ManagerTimeline does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ManagerTimeline) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.ManagerTimeline.manager": - value := x.Manager - return protoreflect.ValueOfString(value) - case "maps.ManagerTimeline.timelineTimes": - if len(x.TimelineTimes) == 0 { - return protoreflect.ValueOfList(&_ManagerTimeline_2_list{}) - } - listValue := &_ManagerTimeline_2_list{list: &x.TimelineTimes} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ManagerTimeline")) - } - panic(fmt.Errorf("message maps.ManagerTimeline does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ManagerTimeline) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.ManagerTimeline.manager": - x.Manager = value.Interface().(string) - case "maps.ManagerTimeline.timelineTimes": - lv := value.List() - clv := lv.(*_ManagerTimeline_2_list) - x.TimelineTimes = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ManagerTimeline")) - } - panic(fmt.Errorf("message maps.ManagerTimeline does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ManagerTimeline) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.ManagerTimeline.timelineTimes": - if x.TimelineTimes == nil { - x.TimelineTimes = []*UintRange{} - } - value := &_ManagerTimeline_2_list{list: &x.TimelineTimes} - return protoreflect.ValueOfList(value) - case "maps.ManagerTimeline.manager": - panic(fmt.Errorf("field manager of message maps.ManagerTimeline is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ManagerTimeline")) - } - panic(fmt.Errorf("message maps.ManagerTimeline does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ManagerTimeline) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.ManagerTimeline.manager": - return protoreflect.ValueOfString("") - case "maps.ManagerTimeline.timelineTimes": - list := []*UintRange{} - return protoreflect.ValueOfList(&_ManagerTimeline_2_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ManagerTimeline")) - } - panic(fmt.Errorf("message maps.ManagerTimeline does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ManagerTimeline) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.ManagerTimeline", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ManagerTimeline) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ManagerTimeline) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ManagerTimeline) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ManagerTimeline) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ManagerTimeline) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Manager) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.TimelineTimes) > 0 { - for _, e := range x.TimelineTimes { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ManagerTimeline) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.TimelineTimes) > 0 { - for iNdEx := len(x.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.TimelineTimes[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.Manager) > 0 { - i -= len(x.Manager) - copy(dAtA[i:], x.Manager) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ManagerTimeline) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ManagerTimeline: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ManagerTimeline: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Manager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.TimelineTimes = append(x.TimelineTimes, &UintRange{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TimelineTimes[len(x.TimelineTimes)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/timelines.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MapMetadataTimeline defines the metadata for a collection at different timeline times. -type MapMetadataTimeline struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The collection metadata for a specific timeline element. - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - // The timeline times when the collection metadata is valid. Can not overlap with other timeline elements in same array. - TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` -} - -func (x *MapMetadataTimeline) Reset() { - *x = MapMetadataTimeline{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_timelines_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MapMetadataTimeline) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MapMetadataTimeline) ProtoMessage() {} - -// Deprecated: Use MapMetadataTimeline.ProtoReflect.Descriptor instead. -func (*MapMetadataTimeline) Descriptor() ([]byte, []int) { - return file_maps_timelines_proto_rawDescGZIP(), []int{0} -} - -func (x *MapMetadataTimeline) GetMetadata() *Metadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *MapMetadataTimeline) GetTimelineTimes() []*UintRange { - if x != nil { - return x.TimelineTimes - } - return nil -} - -// ManagerTimeline defines the manager address at different timeline times. -type ManagerTimeline struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The manager address for a specific timeline element. - Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` - // The timeline times when the manager address is valid. Can not overlap with other timeline elements in same array. - TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` -} - -func (x *ManagerTimeline) Reset() { - *x = ManagerTimeline{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_timelines_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ManagerTimeline) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ManagerTimeline) ProtoMessage() {} - -// Deprecated: Use ManagerTimeline.ProtoReflect.Descriptor instead. -func (*ManagerTimeline) Descriptor() ([]byte, []int) { - return file_maps_timelines_proto_rawDescGZIP(), []int{1} -} - -func (x *ManagerTimeline) GetManager() string { - if x != nil { - return x.Manager - } - return "" -} - -func (x *ManagerTimeline) GetTimelineTimes() []*UintRange { - if x != nil { - return x.TimelineTimes - } - return nil -} - -var File_maps_timelines_proto protoreflect.FileDescriptor - -var file_maps_timelines_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x6d, 0x61, 0x70, 0x73, 0x1a, 0x19, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, - 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x62, 0x61, - 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x6d, 0x61, - 0x70, 0x73, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x78, 0x0a, 0x13, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x69, - 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x35, 0x0a, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6d, 0x61, 0x70, 0x73, - 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, - 0x6c, 0x69, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x22, 0x62, 0x0a, 0x0f, 0x4d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, - 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, - 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x42, 0x63, 0x0a, - 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x42, 0x0e, 0x54, 0x69, 0x6d, 0x65, 0x6c, - 0x69, 0x6e, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x17, 0x62, 0x69, 0x74, - 0x62, 0x61, 0x64, 0x67, 0x65, 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x6d, 0x61, 0x70, 0x73, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x04, 0x4d, 0x61, 0x70, - 0x73, 0xca, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xe2, 0x02, 0x10, 0x4d, 0x61, 0x70, 0x73, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x4d, 0x61, - 0x70, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_maps_timelines_proto_rawDescOnce sync.Once - file_maps_timelines_proto_rawDescData = file_maps_timelines_proto_rawDesc -) - -func file_maps_timelines_proto_rawDescGZIP() []byte { - file_maps_timelines_proto_rawDescOnce.Do(func() { - file_maps_timelines_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_timelines_proto_rawDescData) - }) - return file_maps_timelines_proto_rawDescData -} - -var file_maps_timelines_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_maps_timelines_proto_goTypes = []interface{}{ - (*MapMetadataTimeline)(nil), // 0: maps.MapMetadataTimeline - (*ManagerTimeline)(nil), // 1: maps.ManagerTimeline - (*Metadata)(nil), // 2: maps.Metadata - (*UintRange)(nil), // 3: maps.UintRange -} -var file_maps_timelines_proto_depIdxs = []int32{ - 2, // 0: maps.MapMetadataTimeline.metadata:type_name -> maps.Metadata - 3, // 1: maps.MapMetadataTimeline.timelineTimes:type_name -> maps.UintRange - 3, // 2: maps.ManagerTimeline.timelineTimes:type_name -> maps.UintRange - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_maps_timelines_proto_init() } -func file_maps_timelines_proto_init() { - if File_maps_timelines_proto != nil { - return - } - file_maps_balances_proto_init() - file_maps_permissions_proto_init() - file_maps_metadata_proto_init() - if !protoimpl.UnsafeEnabled { - file_maps_timelines_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MapMetadataTimeline); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_timelines_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ManagerTimeline); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_timelines_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_maps_timelines_proto_goTypes, - DependencyIndexes: file_maps_timelines_proto_depIdxs, - MessageInfos: file_maps_timelines_proto_msgTypes, - }.Build() - File_maps_timelines_proto = out.File - file_maps_timelines_proto_rawDesc = nil - file_maps_timelines_proto_goTypes = nil - file_maps_timelines_proto_depIdxs = nil -} diff --git a/api/maps/tx.pulsar.go b/api/maps/tx.pulsar.go deleted file mode 100644 index 0df791ac..00000000 --- a/api/maps/tx.pulsar.go +++ /dev/null @@ -1,11861 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package maps - -import ( - _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/gogoproto/gogoproto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_MsgUpdateParams protoreflect.MessageDescriptor - fd_MsgUpdateParams_authority protoreflect.FieldDescriptor - fd_MsgUpdateParams_params protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgUpdateParams = File_maps_tx_proto.Messages().ByName("MsgUpdateParams") - fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") - fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) - -type fastReflection_MsgUpdateParams MsgUpdateParams - -func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParams)(x) -} - -func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{} - -type fastReflection_MsgUpdateParams_messageType struct{} - -func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateParams)(nil) -} -func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams) -} -func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParams -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateParams) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateParams_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParams) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateParams)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgUpdateParams_authority, value) { - return - } - } - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_MsgUpdateParams_params, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MsgUpdateParams.authority": - return x.Authority != "" - case "maps.MsgUpdateParams.params": - return x.Params != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParams")) - } - panic(fmt.Errorf("message maps.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MsgUpdateParams.authority": - x.Authority = "" - case "maps.MsgUpdateParams.params": - x.Params = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParams")) - } - panic(fmt.Errorf("message maps.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MsgUpdateParams.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "maps.MsgUpdateParams.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParams")) - } - panic(fmt.Errorf("message maps.MsgUpdateParams does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MsgUpdateParams.authority": - x.Authority = value.Interface().(string) - case "maps.MsgUpdateParams.params": - x.Params = value.Message().Interface().(*Params) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParams")) - } - panic(fmt.Errorf("message maps.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgUpdateParams.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "maps.MsgUpdateParams.authority": - panic(fmt.Errorf("field authority of message maps.MsgUpdateParams is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParams")) - } - panic(fmt.Errorf("message maps.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgUpdateParams.authority": - return protoreflect.ValueOfString("") - case "maps.MsgUpdateParams.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParams")) - } - panic(fmt.Errorf("message maps.MsgUpdateParams does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgUpdateParams", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateParams) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParams) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateParams) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateParams) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Params != nil { - l = options.Size(x.Params) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParams) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateParamsResponse protoreflect.MessageDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgUpdateParamsResponse = File_maps_tx_proto.Messages().ByName("MsgUpdateParamsResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) - -type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse - -func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParamsResponse)(x) -} - -func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{} - -type fastReflection_MsgUpdateParamsResponse_messageType struct{} - -func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateParamsResponse)(nil) -} -func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParamsResponse) -} -func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateParamsResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateParamsResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateParamsResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgUpdateParamsResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateParamsResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateParamsResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateParamsResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateParamsResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MapCustomMsgType protoreflect.MessageDescriptor - fd_MapCustomMsgType_setValueMsg protoreflect.FieldDescriptor - fd_MapCustomMsgType_createMapMsg protoreflect.FieldDescriptor - fd_MapCustomMsgType_updateMapMsg protoreflect.FieldDescriptor - fd_MapCustomMsgType_deleteMapMsg protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MapCustomMsgType = File_maps_tx_proto.Messages().ByName("MapCustomMsgType") - fd_MapCustomMsgType_setValueMsg = md_MapCustomMsgType.Fields().ByName("setValueMsg") - fd_MapCustomMsgType_createMapMsg = md_MapCustomMsgType.Fields().ByName("createMapMsg") - fd_MapCustomMsgType_updateMapMsg = md_MapCustomMsgType.Fields().ByName("updateMapMsg") - fd_MapCustomMsgType_deleteMapMsg = md_MapCustomMsgType.Fields().ByName("deleteMapMsg") -} - -var _ protoreflect.Message = (*fastReflection_MapCustomMsgType)(nil) - -type fastReflection_MapCustomMsgType MapCustomMsgType - -func (x *MapCustomMsgType) ProtoReflect() protoreflect.Message { - return (*fastReflection_MapCustomMsgType)(x) -} - -func (x *MapCustomMsgType) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MapCustomMsgType_messageType fastReflection_MapCustomMsgType_messageType -var _ protoreflect.MessageType = fastReflection_MapCustomMsgType_messageType{} - -type fastReflection_MapCustomMsgType_messageType struct{} - -func (x fastReflection_MapCustomMsgType_messageType) Zero() protoreflect.Message { - return (*fastReflection_MapCustomMsgType)(nil) -} -func (x fastReflection_MapCustomMsgType_messageType) New() protoreflect.Message { - return new(fastReflection_MapCustomMsgType) -} -func (x fastReflection_MapCustomMsgType_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MapCustomMsgType -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MapCustomMsgType) Descriptor() protoreflect.MessageDescriptor { - return md_MapCustomMsgType -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MapCustomMsgType) Type() protoreflect.MessageType { - return _fastReflection_MapCustomMsgType_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MapCustomMsgType) New() protoreflect.Message { - return new(fastReflection_MapCustomMsgType) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MapCustomMsgType) Interface() protoreflect.ProtoMessage { - return (*MapCustomMsgType)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MapCustomMsgType) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.SetValueMsg != nil { - value := protoreflect.ValueOfMessage(x.SetValueMsg.ProtoReflect()) - if !f(fd_MapCustomMsgType_setValueMsg, value) { - return - } - } - if x.CreateMapMsg != nil { - value := protoreflect.ValueOfMessage(x.CreateMapMsg.ProtoReflect()) - if !f(fd_MapCustomMsgType_createMapMsg, value) { - return - } - } - if x.UpdateMapMsg != nil { - value := protoreflect.ValueOfMessage(x.UpdateMapMsg.ProtoReflect()) - if !f(fd_MapCustomMsgType_updateMapMsg, value) { - return - } - } - if x.DeleteMapMsg != nil { - value := protoreflect.ValueOfMessage(x.DeleteMapMsg.ProtoReflect()) - if !f(fd_MapCustomMsgType_deleteMapMsg, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MapCustomMsgType) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MapCustomMsgType.setValueMsg": - return x.SetValueMsg != nil - case "maps.MapCustomMsgType.createMapMsg": - return x.CreateMapMsg != nil - case "maps.MapCustomMsgType.updateMapMsg": - return x.UpdateMapMsg != nil - case "maps.MapCustomMsgType.deleteMapMsg": - return x.DeleteMapMsg != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapCustomMsgType")) - } - panic(fmt.Errorf("message maps.MapCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapCustomMsgType) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MapCustomMsgType.setValueMsg": - x.SetValueMsg = nil - case "maps.MapCustomMsgType.createMapMsg": - x.CreateMapMsg = nil - case "maps.MapCustomMsgType.updateMapMsg": - x.UpdateMapMsg = nil - case "maps.MapCustomMsgType.deleteMapMsg": - x.DeleteMapMsg = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapCustomMsgType")) - } - panic(fmt.Errorf("message maps.MapCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MapCustomMsgType) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MapCustomMsgType.setValueMsg": - value := x.SetValueMsg - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "maps.MapCustomMsgType.createMapMsg": - value := x.CreateMapMsg - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "maps.MapCustomMsgType.updateMapMsg": - value := x.UpdateMapMsg - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "maps.MapCustomMsgType.deleteMapMsg": - value := x.DeleteMapMsg - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapCustomMsgType")) - } - panic(fmt.Errorf("message maps.MapCustomMsgType does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapCustomMsgType) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MapCustomMsgType.setValueMsg": - x.SetValueMsg = value.Message().Interface().(*MsgSetValue) - case "maps.MapCustomMsgType.createMapMsg": - x.CreateMapMsg = value.Message().Interface().(*MsgCreateMap) - case "maps.MapCustomMsgType.updateMapMsg": - x.UpdateMapMsg = value.Message().Interface().(*MsgUpdateMap) - case "maps.MapCustomMsgType.deleteMapMsg": - x.DeleteMapMsg = value.Message().Interface().(*MsgDeleteMap) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapCustomMsgType")) - } - panic(fmt.Errorf("message maps.MapCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapCustomMsgType) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapCustomMsgType.setValueMsg": - if x.SetValueMsg == nil { - x.SetValueMsg = new(MsgSetValue) - } - return protoreflect.ValueOfMessage(x.SetValueMsg.ProtoReflect()) - case "maps.MapCustomMsgType.createMapMsg": - if x.CreateMapMsg == nil { - x.CreateMapMsg = new(MsgCreateMap) - } - return protoreflect.ValueOfMessage(x.CreateMapMsg.ProtoReflect()) - case "maps.MapCustomMsgType.updateMapMsg": - if x.UpdateMapMsg == nil { - x.UpdateMapMsg = new(MsgUpdateMap) - } - return protoreflect.ValueOfMessage(x.UpdateMapMsg.ProtoReflect()) - case "maps.MapCustomMsgType.deleteMapMsg": - if x.DeleteMapMsg == nil { - x.DeleteMapMsg = new(MsgDeleteMap) - } - return protoreflect.ValueOfMessage(x.DeleteMapMsg.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapCustomMsgType")) - } - panic(fmt.Errorf("message maps.MapCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MapCustomMsgType) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapCustomMsgType.setValueMsg": - m := new(MsgSetValue) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "maps.MapCustomMsgType.createMapMsg": - m := new(MsgCreateMap) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "maps.MapCustomMsgType.updateMapMsg": - m := new(MsgUpdateMap) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "maps.MapCustomMsgType.deleteMapMsg": - m := new(MsgDeleteMap) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapCustomMsgType")) - } - panic(fmt.Errorf("message maps.MapCustomMsgType does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MapCustomMsgType) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MapCustomMsgType", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MapCustomMsgType) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapCustomMsgType) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MapCustomMsgType) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MapCustomMsgType) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MapCustomMsgType) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.SetValueMsg != nil { - l = options.Size(x.SetValueMsg) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CreateMapMsg != nil { - l = options.Size(x.CreateMapMsg) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.UpdateMapMsg != nil { - l = options.Size(x.UpdateMapMsg) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.DeleteMapMsg != nil { - l = options.Size(x.DeleteMapMsg) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MapCustomMsgType) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.DeleteMapMsg != nil { - encoded, err := options.Marshal(x.DeleteMapMsg) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - if x.UpdateMapMsg != nil { - encoded, err := options.Marshal(x.UpdateMapMsg) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - if x.CreateMapMsg != nil { - encoded, err := options.Marshal(x.CreateMapMsg) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if x.SetValueMsg != nil { - encoded, err := options.Marshal(x.SetValueMsg) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MapCustomMsgType) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapCustomMsgType: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapCustomMsgType: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SetValueMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.SetValueMsg == nil { - x.SetValueMsg = &MsgSetValue{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.SetValueMsg); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreateMapMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.CreateMapMsg == nil { - x.CreateMapMsg = &MsgCreateMap{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CreateMapMsg); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpdateMapMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.UpdateMapMsg == nil { - x.UpdateMapMsg = &MsgUpdateMap{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UpdateMapMsg); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DeleteMapMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.DeleteMapMsg == nil { - x.DeleteMapMsg = &MsgDeleteMap{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DeleteMapMsg); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_ValueStore protoreflect.MessageDescriptor - fd_ValueStore_key protoreflect.FieldDescriptor - fd_ValueStore_value protoreflect.FieldDescriptor - fd_ValueStore_lastSetBy protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_ValueStore = File_maps_tx_proto.Messages().ByName("ValueStore") - fd_ValueStore_key = md_ValueStore.Fields().ByName("key") - fd_ValueStore_value = md_ValueStore.Fields().ByName("value") - fd_ValueStore_lastSetBy = md_ValueStore.Fields().ByName("lastSetBy") -} - -var _ protoreflect.Message = (*fastReflection_ValueStore)(nil) - -type fastReflection_ValueStore ValueStore - -func (x *ValueStore) ProtoReflect() protoreflect.Message { - return (*fastReflection_ValueStore)(x) -} - -func (x *ValueStore) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_ValueStore_messageType fastReflection_ValueStore_messageType -var _ protoreflect.MessageType = fastReflection_ValueStore_messageType{} - -type fastReflection_ValueStore_messageType struct{} - -func (x fastReflection_ValueStore_messageType) Zero() protoreflect.Message { - return (*fastReflection_ValueStore)(nil) -} -func (x fastReflection_ValueStore_messageType) New() protoreflect.Message { - return new(fastReflection_ValueStore) -} -func (x fastReflection_ValueStore_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ValueStore -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ValueStore) Descriptor() protoreflect.MessageDescriptor { - return md_ValueStore -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ValueStore) Type() protoreflect.MessageType { - return _fastReflection_ValueStore_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ValueStore) New() protoreflect.Message { - return new(fastReflection_ValueStore) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ValueStore) Interface() protoreflect.ProtoMessage { - return (*ValueStore)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ValueStore) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Key != "" { - value := protoreflect.ValueOfString(x.Key) - if !f(fd_ValueStore_key, value) { - return - } - } - if x.Value != "" { - value := protoreflect.ValueOfString(x.Value) - if !f(fd_ValueStore_value, value) { - return - } - } - if x.LastSetBy != "" { - value := protoreflect.ValueOfString(x.LastSetBy) - if !f(fd_ValueStore_lastSetBy, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ValueStore) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.ValueStore.key": - return x.Key != "" - case "maps.ValueStore.value": - return x.Value != "" - case "maps.ValueStore.lastSetBy": - return x.LastSetBy != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueStore")) - } - panic(fmt.Errorf("message maps.ValueStore does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValueStore) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.ValueStore.key": - x.Key = "" - case "maps.ValueStore.value": - x.Value = "" - case "maps.ValueStore.lastSetBy": - x.LastSetBy = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueStore")) - } - panic(fmt.Errorf("message maps.ValueStore does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ValueStore) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.ValueStore.key": - value := x.Key - return protoreflect.ValueOfString(value) - case "maps.ValueStore.value": - value := x.Value - return protoreflect.ValueOfString(value) - case "maps.ValueStore.lastSetBy": - value := x.LastSetBy - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueStore")) - } - panic(fmt.Errorf("message maps.ValueStore does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValueStore) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.ValueStore.key": - x.Key = value.Interface().(string) - case "maps.ValueStore.value": - x.Value = value.Interface().(string) - case "maps.ValueStore.lastSetBy": - x.LastSetBy = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueStore")) - } - panic(fmt.Errorf("message maps.ValueStore does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValueStore) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.ValueStore.key": - panic(fmt.Errorf("field key of message maps.ValueStore is not mutable")) - case "maps.ValueStore.value": - panic(fmt.Errorf("field value of message maps.ValueStore is not mutable")) - case "maps.ValueStore.lastSetBy": - panic(fmt.Errorf("field lastSetBy of message maps.ValueStore is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueStore")) - } - panic(fmt.Errorf("message maps.ValueStore does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ValueStore) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.ValueStore.key": - return protoreflect.ValueOfString("") - case "maps.ValueStore.value": - return protoreflect.ValueOfString("") - case "maps.ValueStore.lastSetBy": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueStore")) - } - panic(fmt.Errorf("message maps.ValueStore does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ValueStore) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.ValueStore", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ValueStore) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValueStore) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ValueStore) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ValueStore) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ValueStore) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Key) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Value) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.LastSetBy) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ValueStore) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.LastSetBy) > 0 { - i -= len(x.LastSetBy) - copy(dAtA[i:], x.LastSetBy) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LastSetBy))) - i-- - dAtA[i] = 0x1a - } - if len(x.Value) > 0 { - i -= len(x.Value) - copy(dAtA[i:], x.Value) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Value))) - i-- - dAtA[i] = 0x12 - } - if len(x.Key) > 0 { - i -= len(x.Key) - copy(dAtA[i:], x.Key) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Key))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ValueStore) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValueStore: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValueStore: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastSetBy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.LastSetBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MapUpdateCriteria protoreflect.MessageDescriptor - fd_MapUpdateCriteria_managerOnly protoreflect.FieldDescriptor - fd_MapUpdateCriteria_collectionId protoreflect.FieldDescriptor - fd_MapUpdateCriteria_creatorOnly protoreflect.FieldDescriptor - fd_MapUpdateCriteria_firstComeFirstServe protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MapUpdateCriteria = File_maps_tx_proto.Messages().ByName("MapUpdateCriteria") - fd_MapUpdateCriteria_managerOnly = md_MapUpdateCriteria.Fields().ByName("managerOnly") - fd_MapUpdateCriteria_collectionId = md_MapUpdateCriteria.Fields().ByName("collectionId") - fd_MapUpdateCriteria_creatorOnly = md_MapUpdateCriteria.Fields().ByName("creatorOnly") - fd_MapUpdateCriteria_firstComeFirstServe = md_MapUpdateCriteria.Fields().ByName("firstComeFirstServe") -} - -var _ protoreflect.Message = (*fastReflection_MapUpdateCriteria)(nil) - -type fastReflection_MapUpdateCriteria MapUpdateCriteria - -func (x *MapUpdateCriteria) ProtoReflect() protoreflect.Message { - return (*fastReflection_MapUpdateCriteria)(x) -} - -func (x *MapUpdateCriteria) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MapUpdateCriteria_messageType fastReflection_MapUpdateCriteria_messageType -var _ protoreflect.MessageType = fastReflection_MapUpdateCriteria_messageType{} - -type fastReflection_MapUpdateCriteria_messageType struct{} - -func (x fastReflection_MapUpdateCriteria_messageType) Zero() protoreflect.Message { - return (*fastReflection_MapUpdateCriteria)(nil) -} -func (x fastReflection_MapUpdateCriteria_messageType) New() protoreflect.Message { - return new(fastReflection_MapUpdateCriteria) -} -func (x fastReflection_MapUpdateCriteria_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MapUpdateCriteria -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MapUpdateCriteria) Descriptor() protoreflect.MessageDescriptor { - return md_MapUpdateCriteria -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MapUpdateCriteria) Type() protoreflect.MessageType { - return _fastReflection_MapUpdateCriteria_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MapUpdateCriteria) New() protoreflect.Message { - return new(fastReflection_MapUpdateCriteria) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MapUpdateCriteria) Interface() protoreflect.ProtoMessage { - return (*MapUpdateCriteria)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MapUpdateCriteria) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ManagerOnly != false { - value := protoreflect.ValueOfBool(x.ManagerOnly) - if !f(fd_MapUpdateCriteria_managerOnly, value) { - return - } - } - if x.CollectionId != "" { - value := protoreflect.ValueOfString(x.CollectionId) - if !f(fd_MapUpdateCriteria_collectionId, value) { - return - } - } - if x.CreatorOnly != false { - value := protoreflect.ValueOfBool(x.CreatorOnly) - if !f(fd_MapUpdateCriteria_creatorOnly, value) { - return - } - } - if x.FirstComeFirstServe != false { - value := protoreflect.ValueOfBool(x.FirstComeFirstServe) - if !f(fd_MapUpdateCriteria_firstComeFirstServe, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MapUpdateCriteria) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MapUpdateCriteria.managerOnly": - return x.ManagerOnly != false - case "maps.MapUpdateCriteria.collectionId": - return x.CollectionId != "" - case "maps.MapUpdateCriteria.creatorOnly": - return x.CreatorOnly != false - case "maps.MapUpdateCriteria.firstComeFirstServe": - return x.FirstComeFirstServe != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapUpdateCriteria")) - } - panic(fmt.Errorf("message maps.MapUpdateCriteria does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapUpdateCriteria) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MapUpdateCriteria.managerOnly": - x.ManagerOnly = false - case "maps.MapUpdateCriteria.collectionId": - x.CollectionId = "" - case "maps.MapUpdateCriteria.creatorOnly": - x.CreatorOnly = false - case "maps.MapUpdateCriteria.firstComeFirstServe": - x.FirstComeFirstServe = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapUpdateCriteria")) - } - panic(fmt.Errorf("message maps.MapUpdateCriteria does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MapUpdateCriteria) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MapUpdateCriteria.managerOnly": - value := x.ManagerOnly - return protoreflect.ValueOfBool(value) - case "maps.MapUpdateCriteria.collectionId": - value := x.CollectionId - return protoreflect.ValueOfString(value) - case "maps.MapUpdateCriteria.creatorOnly": - value := x.CreatorOnly - return protoreflect.ValueOfBool(value) - case "maps.MapUpdateCriteria.firstComeFirstServe": - value := x.FirstComeFirstServe - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapUpdateCriteria")) - } - panic(fmt.Errorf("message maps.MapUpdateCriteria does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapUpdateCriteria) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MapUpdateCriteria.managerOnly": - x.ManagerOnly = value.Bool() - case "maps.MapUpdateCriteria.collectionId": - x.CollectionId = value.Interface().(string) - case "maps.MapUpdateCriteria.creatorOnly": - x.CreatorOnly = value.Bool() - case "maps.MapUpdateCriteria.firstComeFirstServe": - x.FirstComeFirstServe = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapUpdateCriteria")) - } - panic(fmt.Errorf("message maps.MapUpdateCriteria does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapUpdateCriteria) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapUpdateCriteria.managerOnly": - panic(fmt.Errorf("field managerOnly of message maps.MapUpdateCriteria is not mutable")) - case "maps.MapUpdateCriteria.collectionId": - panic(fmt.Errorf("field collectionId of message maps.MapUpdateCriteria is not mutable")) - case "maps.MapUpdateCriteria.creatorOnly": - panic(fmt.Errorf("field creatorOnly of message maps.MapUpdateCriteria is not mutable")) - case "maps.MapUpdateCriteria.firstComeFirstServe": - panic(fmt.Errorf("field firstComeFirstServe of message maps.MapUpdateCriteria is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapUpdateCriteria")) - } - panic(fmt.Errorf("message maps.MapUpdateCriteria does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MapUpdateCriteria) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapUpdateCriteria.managerOnly": - return protoreflect.ValueOfBool(false) - case "maps.MapUpdateCriteria.collectionId": - return protoreflect.ValueOfString("") - case "maps.MapUpdateCriteria.creatorOnly": - return protoreflect.ValueOfBool(false) - case "maps.MapUpdateCriteria.firstComeFirstServe": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapUpdateCriteria")) - } - panic(fmt.Errorf("message maps.MapUpdateCriteria does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MapUpdateCriteria) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MapUpdateCriteria", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MapUpdateCriteria) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapUpdateCriteria) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MapUpdateCriteria) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MapUpdateCriteria) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MapUpdateCriteria) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.ManagerOnly { - n += 2 - } - l = len(x.CollectionId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.CreatorOnly { - n += 2 - } - if x.FirstComeFirstServe { - n += 2 - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MapUpdateCriteria) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.FirstComeFirstServe { - i-- - if x.FirstComeFirstServe { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if x.CreatorOnly { - i-- - if x.CreatorOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(x.CollectionId) > 0 { - i -= len(x.CollectionId) - copy(dAtA[i:], x.CollectionId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CollectionId))) - i-- - dAtA[i] = 0x12 - } - if x.ManagerOnly { - i-- - if x.ManagerOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MapUpdateCriteria) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapUpdateCriteria: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapUpdateCriteria: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ManagerOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ManagerOnly = bool(v != 0) - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.CollectionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CreatorOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.CreatorOnly = bool(v != 0) - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FirstComeFirstServe", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.FirstComeFirstServe = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_ValueOptions protoreflect.MessageDescriptor - fd_ValueOptions_noDuplicates protoreflect.FieldDescriptor - fd_ValueOptions_permanentOnceSet protoreflect.FieldDescriptor - fd_ValueOptions_expectUint protoreflect.FieldDescriptor - fd_ValueOptions_expectBoolean protoreflect.FieldDescriptor - fd_ValueOptions_expectAddress protoreflect.FieldDescriptor - fd_ValueOptions_expectUri protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_ValueOptions = File_maps_tx_proto.Messages().ByName("ValueOptions") - fd_ValueOptions_noDuplicates = md_ValueOptions.Fields().ByName("noDuplicates") - fd_ValueOptions_permanentOnceSet = md_ValueOptions.Fields().ByName("permanentOnceSet") - fd_ValueOptions_expectUint = md_ValueOptions.Fields().ByName("expectUint") - fd_ValueOptions_expectBoolean = md_ValueOptions.Fields().ByName("expectBoolean") - fd_ValueOptions_expectAddress = md_ValueOptions.Fields().ByName("expectAddress") - fd_ValueOptions_expectUri = md_ValueOptions.Fields().ByName("expectUri") -} - -var _ protoreflect.Message = (*fastReflection_ValueOptions)(nil) - -type fastReflection_ValueOptions ValueOptions - -func (x *ValueOptions) ProtoReflect() protoreflect.Message { - return (*fastReflection_ValueOptions)(x) -} - -func (x *ValueOptions) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_ValueOptions_messageType fastReflection_ValueOptions_messageType -var _ protoreflect.MessageType = fastReflection_ValueOptions_messageType{} - -type fastReflection_ValueOptions_messageType struct{} - -func (x fastReflection_ValueOptions_messageType) Zero() protoreflect.Message { - return (*fastReflection_ValueOptions)(nil) -} -func (x fastReflection_ValueOptions_messageType) New() protoreflect.Message { - return new(fastReflection_ValueOptions) -} -func (x fastReflection_ValueOptions_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ValueOptions -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ValueOptions) Descriptor() protoreflect.MessageDescriptor { - return md_ValueOptions -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ValueOptions) Type() protoreflect.MessageType { - return _fastReflection_ValueOptions_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ValueOptions) New() protoreflect.Message { - return new(fastReflection_ValueOptions) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ValueOptions) Interface() protoreflect.ProtoMessage { - return (*ValueOptions)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ValueOptions) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.NoDuplicates != false { - value := protoreflect.ValueOfBool(x.NoDuplicates) - if !f(fd_ValueOptions_noDuplicates, value) { - return - } - } - if x.PermanentOnceSet != false { - value := protoreflect.ValueOfBool(x.PermanentOnceSet) - if !f(fd_ValueOptions_permanentOnceSet, value) { - return - } - } - if x.ExpectUint != false { - value := protoreflect.ValueOfBool(x.ExpectUint) - if !f(fd_ValueOptions_expectUint, value) { - return - } - } - if x.ExpectBoolean != false { - value := protoreflect.ValueOfBool(x.ExpectBoolean) - if !f(fd_ValueOptions_expectBoolean, value) { - return - } - } - if x.ExpectAddress != false { - value := protoreflect.ValueOfBool(x.ExpectAddress) - if !f(fd_ValueOptions_expectAddress, value) { - return - } - } - if x.ExpectUri != false { - value := protoreflect.ValueOfBool(x.ExpectUri) - if !f(fd_ValueOptions_expectUri, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ValueOptions) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.ValueOptions.noDuplicates": - return x.NoDuplicates != false - case "maps.ValueOptions.permanentOnceSet": - return x.PermanentOnceSet != false - case "maps.ValueOptions.expectUint": - return x.ExpectUint != false - case "maps.ValueOptions.expectBoolean": - return x.ExpectBoolean != false - case "maps.ValueOptions.expectAddress": - return x.ExpectAddress != false - case "maps.ValueOptions.expectUri": - return x.ExpectUri != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueOptions")) - } - panic(fmt.Errorf("message maps.ValueOptions does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValueOptions) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.ValueOptions.noDuplicates": - x.NoDuplicates = false - case "maps.ValueOptions.permanentOnceSet": - x.PermanentOnceSet = false - case "maps.ValueOptions.expectUint": - x.ExpectUint = false - case "maps.ValueOptions.expectBoolean": - x.ExpectBoolean = false - case "maps.ValueOptions.expectAddress": - x.ExpectAddress = false - case "maps.ValueOptions.expectUri": - x.ExpectUri = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueOptions")) - } - panic(fmt.Errorf("message maps.ValueOptions does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ValueOptions) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.ValueOptions.noDuplicates": - value := x.NoDuplicates - return protoreflect.ValueOfBool(value) - case "maps.ValueOptions.permanentOnceSet": - value := x.PermanentOnceSet - return protoreflect.ValueOfBool(value) - case "maps.ValueOptions.expectUint": - value := x.ExpectUint - return protoreflect.ValueOfBool(value) - case "maps.ValueOptions.expectBoolean": - value := x.ExpectBoolean - return protoreflect.ValueOfBool(value) - case "maps.ValueOptions.expectAddress": - value := x.ExpectAddress - return protoreflect.ValueOfBool(value) - case "maps.ValueOptions.expectUri": - value := x.ExpectUri - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueOptions")) - } - panic(fmt.Errorf("message maps.ValueOptions does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValueOptions) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.ValueOptions.noDuplicates": - x.NoDuplicates = value.Bool() - case "maps.ValueOptions.permanentOnceSet": - x.PermanentOnceSet = value.Bool() - case "maps.ValueOptions.expectUint": - x.ExpectUint = value.Bool() - case "maps.ValueOptions.expectBoolean": - x.ExpectBoolean = value.Bool() - case "maps.ValueOptions.expectAddress": - x.ExpectAddress = value.Bool() - case "maps.ValueOptions.expectUri": - x.ExpectUri = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueOptions")) - } - panic(fmt.Errorf("message maps.ValueOptions does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValueOptions) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.ValueOptions.noDuplicates": - panic(fmt.Errorf("field noDuplicates of message maps.ValueOptions is not mutable")) - case "maps.ValueOptions.permanentOnceSet": - panic(fmt.Errorf("field permanentOnceSet of message maps.ValueOptions is not mutable")) - case "maps.ValueOptions.expectUint": - panic(fmt.Errorf("field expectUint of message maps.ValueOptions is not mutable")) - case "maps.ValueOptions.expectBoolean": - panic(fmt.Errorf("field expectBoolean of message maps.ValueOptions is not mutable")) - case "maps.ValueOptions.expectAddress": - panic(fmt.Errorf("field expectAddress of message maps.ValueOptions is not mutable")) - case "maps.ValueOptions.expectUri": - panic(fmt.Errorf("field expectUri of message maps.ValueOptions is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueOptions")) - } - panic(fmt.Errorf("message maps.ValueOptions does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ValueOptions) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.ValueOptions.noDuplicates": - return protoreflect.ValueOfBool(false) - case "maps.ValueOptions.permanentOnceSet": - return protoreflect.ValueOfBool(false) - case "maps.ValueOptions.expectUint": - return protoreflect.ValueOfBool(false) - case "maps.ValueOptions.expectBoolean": - return protoreflect.ValueOfBool(false) - case "maps.ValueOptions.expectAddress": - return protoreflect.ValueOfBool(false) - case "maps.ValueOptions.expectUri": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.ValueOptions")) - } - panic(fmt.Errorf("message maps.ValueOptions does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ValueOptions) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.ValueOptions", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ValueOptions) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValueOptions) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ValueOptions) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ValueOptions) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ValueOptions) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.NoDuplicates { - n += 2 - } - if x.PermanentOnceSet { - n += 2 - } - if x.ExpectUint { - n += 2 - } - if x.ExpectBoolean { - n += 2 - } - if x.ExpectAddress { - n += 2 - } - if x.ExpectUri { - n += 2 - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ValueOptions) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ExpectUri { - i-- - if x.ExpectUri { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if x.ExpectAddress { - i-- - if x.ExpectAddress { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if x.ExpectBoolean { - i-- - if x.ExpectBoolean { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if x.ExpectUint { - i-- - if x.ExpectUint { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if x.PermanentOnceSet { - i-- - if x.PermanentOnceSet { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if x.NoDuplicates { - i-- - if x.NoDuplicates { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ValueOptions) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValueOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValueOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NoDuplicates", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.NoDuplicates = bool(v != 0) - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PermanentOnceSet", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.PermanentOnceSet = bool(v != 0) - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectUint", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ExpectUint = bool(v != 0) - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectBoolean", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ExpectBoolean = bool(v != 0) - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectAddress", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ExpectAddress = bool(v != 0) - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpectUri", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ExpectUri = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MapPermissions_1_list)(nil) - -type _MapPermissions_1_list struct { - list *[]*TimedUpdatePermission -} - -func (x *_MapPermissions_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MapPermissions_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MapPermissions_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TimedUpdatePermission) - (*x.list)[i] = concreteValue -} - -func (x *_MapPermissions_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TimedUpdatePermission) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MapPermissions_1_list) AppendMutable() protoreflect.Value { - v := new(TimedUpdatePermission) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MapPermissions_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MapPermissions_1_list) NewElement() protoreflect.Value { - v := new(TimedUpdatePermission) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MapPermissions_1_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MapPermissions_2_list)(nil) - -type _MapPermissions_2_list struct { - list *[]*TimedUpdatePermission -} - -func (x *_MapPermissions_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MapPermissions_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MapPermissions_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TimedUpdatePermission) - (*x.list)[i] = concreteValue -} - -func (x *_MapPermissions_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TimedUpdatePermission) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MapPermissions_2_list) AppendMutable() protoreflect.Value { - v := new(TimedUpdatePermission) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MapPermissions_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MapPermissions_2_list) NewElement() protoreflect.Value { - v := new(TimedUpdatePermission) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MapPermissions_2_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MapPermissions_3_list)(nil) - -type _MapPermissions_3_list struct { - list *[]*ActionPermission -} - -func (x *_MapPermissions_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MapPermissions_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MapPermissions_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ActionPermission) - (*x.list)[i] = concreteValue -} - -func (x *_MapPermissions_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ActionPermission) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MapPermissions_3_list) AppendMutable() protoreflect.Value { - v := new(ActionPermission) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MapPermissions_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MapPermissions_3_list) NewElement() protoreflect.Value { - v := new(ActionPermission) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MapPermissions_3_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MapPermissions protoreflect.MessageDescriptor - fd_MapPermissions_canUpdateMetadata protoreflect.FieldDescriptor - fd_MapPermissions_canUpdateManager protoreflect.FieldDescriptor - fd_MapPermissions_canDeleteMap protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MapPermissions = File_maps_tx_proto.Messages().ByName("MapPermissions") - fd_MapPermissions_canUpdateMetadata = md_MapPermissions.Fields().ByName("canUpdateMetadata") - fd_MapPermissions_canUpdateManager = md_MapPermissions.Fields().ByName("canUpdateManager") - fd_MapPermissions_canDeleteMap = md_MapPermissions.Fields().ByName("canDeleteMap") -} - -var _ protoreflect.Message = (*fastReflection_MapPermissions)(nil) - -type fastReflection_MapPermissions MapPermissions - -func (x *MapPermissions) ProtoReflect() protoreflect.Message { - return (*fastReflection_MapPermissions)(x) -} - -func (x *MapPermissions) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MapPermissions_messageType fastReflection_MapPermissions_messageType -var _ protoreflect.MessageType = fastReflection_MapPermissions_messageType{} - -type fastReflection_MapPermissions_messageType struct{} - -func (x fastReflection_MapPermissions_messageType) Zero() protoreflect.Message { - return (*fastReflection_MapPermissions)(nil) -} -func (x fastReflection_MapPermissions_messageType) New() protoreflect.Message { - return new(fastReflection_MapPermissions) -} -func (x fastReflection_MapPermissions_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MapPermissions -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MapPermissions) Descriptor() protoreflect.MessageDescriptor { - return md_MapPermissions -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MapPermissions) Type() protoreflect.MessageType { - return _fastReflection_MapPermissions_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MapPermissions) New() protoreflect.Message { - return new(fastReflection_MapPermissions) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MapPermissions) Interface() protoreflect.ProtoMessage { - return (*MapPermissions)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MapPermissions) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.CanUpdateMetadata) != 0 { - value := protoreflect.ValueOfList(&_MapPermissions_1_list{list: &x.CanUpdateMetadata}) - if !f(fd_MapPermissions_canUpdateMetadata, value) { - return - } - } - if len(x.CanUpdateManager) != 0 { - value := protoreflect.ValueOfList(&_MapPermissions_2_list{list: &x.CanUpdateManager}) - if !f(fd_MapPermissions_canUpdateManager, value) { - return - } - } - if len(x.CanDeleteMap) != 0 { - value := protoreflect.ValueOfList(&_MapPermissions_3_list{list: &x.CanDeleteMap}) - if !f(fd_MapPermissions_canDeleteMap, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MapPermissions) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MapPermissions.canUpdateMetadata": - return len(x.CanUpdateMetadata) != 0 - case "maps.MapPermissions.canUpdateManager": - return len(x.CanUpdateManager) != 0 - case "maps.MapPermissions.canDeleteMap": - return len(x.CanDeleteMap) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapPermissions")) - } - panic(fmt.Errorf("message maps.MapPermissions does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapPermissions) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MapPermissions.canUpdateMetadata": - x.CanUpdateMetadata = nil - case "maps.MapPermissions.canUpdateManager": - x.CanUpdateManager = nil - case "maps.MapPermissions.canDeleteMap": - x.CanDeleteMap = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapPermissions")) - } - panic(fmt.Errorf("message maps.MapPermissions does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MapPermissions) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MapPermissions.canUpdateMetadata": - if len(x.CanUpdateMetadata) == 0 { - return protoreflect.ValueOfList(&_MapPermissions_1_list{}) - } - listValue := &_MapPermissions_1_list{list: &x.CanUpdateMetadata} - return protoreflect.ValueOfList(listValue) - case "maps.MapPermissions.canUpdateManager": - if len(x.CanUpdateManager) == 0 { - return protoreflect.ValueOfList(&_MapPermissions_2_list{}) - } - listValue := &_MapPermissions_2_list{list: &x.CanUpdateManager} - return protoreflect.ValueOfList(listValue) - case "maps.MapPermissions.canDeleteMap": - if len(x.CanDeleteMap) == 0 { - return protoreflect.ValueOfList(&_MapPermissions_3_list{}) - } - listValue := &_MapPermissions_3_list{list: &x.CanDeleteMap} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapPermissions")) - } - panic(fmt.Errorf("message maps.MapPermissions does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapPermissions) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MapPermissions.canUpdateMetadata": - lv := value.List() - clv := lv.(*_MapPermissions_1_list) - x.CanUpdateMetadata = *clv.list - case "maps.MapPermissions.canUpdateManager": - lv := value.List() - clv := lv.(*_MapPermissions_2_list) - x.CanUpdateManager = *clv.list - case "maps.MapPermissions.canDeleteMap": - lv := value.List() - clv := lv.(*_MapPermissions_3_list) - x.CanDeleteMap = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapPermissions")) - } - panic(fmt.Errorf("message maps.MapPermissions does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapPermissions) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapPermissions.canUpdateMetadata": - if x.CanUpdateMetadata == nil { - x.CanUpdateMetadata = []*TimedUpdatePermission{} - } - value := &_MapPermissions_1_list{list: &x.CanUpdateMetadata} - return protoreflect.ValueOfList(value) - case "maps.MapPermissions.canUpdateManager": - if x.CanUpdateManager == nil { - x.CanUpdateManager = []*TimedUpdatePermission{} - } - value := &_MapPermissions_2_list{list: &x.CanUpdateManager} - return protoreflect.ValueOfList(value) - case "maps.MapPermissions.canDeleteMap": - if x.CanDeleteMap == nil { - x.CanDeleteMap = []*ActionPermission{} - } - value := &_MapPermissions_3_list{list: &x.CanDeleteMap} - return protoreflect.ValueOfList(value) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapPermissions")) - } - panic(fmt.Errorf("message maps.MapPermissions does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MapPermissions) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MapPermissions.canUpdateMetadata": - list := []*TimedUpdatePermission{} - return protoreflect.ValueOfList(&_MapPermissions_1_list{list: &list}) - case "maps.MapPermissions.canUpdateManager": - list := []*TimedUpdatePermission{} - return protoreflect.ValueOfList(&_MapPermissions_2_list{list: &list}) - case "maps.MapPermissions.canDeleteMap": - list := []*ActionPermission{} - return protoreflect.ValueOfList(&_MapPermissions_3_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MapPermissions")) - } - panic(fmt.Errorf("message maps.MapPermissions does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MapPermissions) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MapPermissions", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MapPermissions) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MapPermissions) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MapPermissions) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MapPermissions) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MapPermissions) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.CanUpdateMetadata) > 0 { - for _, e := range x.CanUpdateMetadata { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.CanUpdateManager) > 0 { - for _, e := range x.CanUpdateManager { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.CanDeleteMap) > 0 { - for _, e := range x.CanDeleteMap { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MapPermissions) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.CanDeleteMap) > 0 { - for iNdEx := len(x.CanDeleteMap) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.CanDeleteMap[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.CanUpdateManager) > 0 { - for iNdEx := len(x.CanUpdateManager) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.CanUpdateManager[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if len(x.CanUpdateMetadata) > 0 { - for iNdEx := len(x.CanUpdateMetadata) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.CanUpdateMetadata[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MapPermissions) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapPermissions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MapPermissions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CanUpdateMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.CanUpdateMetadata = append(x.CanUpdateMetadata, &TimedUpdatePermission{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CanUpdateMetadata[len(x.CanUpdateMetadata)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CanUpdateManager", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.CanUpdateManager = append(x.CanUpdateManager, &TimedUpdatePermission{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CanUpdateManager[len(x.CanUpdateManager)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CanDeleteMap", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.CanDeleteMap = append(x.CanDeleteMap, &ActionPermission{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CanDeleteMap[len(x.CanDeleteMap)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_Map_4_list)(nil) - -type _Map_4_list struct { - list *[]*ManagerTimeline -} - -func (x *_Map_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Map_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Map_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ManagerTimeline) - (*x.list)[i] = concreteValue -} - -func (x *_Map_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ManagerTimeline) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Map_4_list) AppendMutable() protoreflect.Value { - v := new(ManagerTimeline) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Map_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Map_4_list) NewElement() protoreflect.Value { - v := new(ManagerTimeline) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Map_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_Map_10_list)(nil) - -type _Map_10_list struct { - list *[]*MapMetadataTimeline -} - -func (x *_Map_10_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_Map_10_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_Map_10_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MapMetadataTimeline) - (*x.list)[i] = concreteValue -} - -func (x *_Map_10_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MapMetadataTimeline) - *x.list = append(*x.list, concreteValue) -} - -func (x *_Map_10_list) AppendMutable() protoreflect.Value { - v := new(MapMetadataTimeline) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Map_10_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_Map_10_list) NewElement() protoreflect.Value { - v := new(MapMetadataTimeline) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_Map_10_list) IsValid() bool { - return x.list != nil -} - -var ( - md_Map protoreflect.MessageDescriptor - fd_Map_creator protoreflect.FieldDescriptor - fd_Map_mapId protoreflect.FieldDescriptor - fd_Map_inheritManagerTimelineFrom protoreflect.FieldDescriptor - fd_Map_managerTimeline protoreflect.FieldDescriptor - fd_Map_updateCriteria protoreflect.FieldDescriptor - fd_Map_valueOptions protoreflect.FieldDescriptor - fd_Map_defaultValue protoreflect.FieldDescriptor - fd_Map_metadataTimeline protoreflect.FieldDescriptor - fd_Map_permissions protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_Map = File_maps_tx_proto.Messages().ByName("Map") - fd_Map_creator = md_Map.Fields().ByName("creator") - fd_Map_mapId = md_Map.Fields().ByName("mapId") - fd_Map_inheritManagerTimelineFrom = md_Map.Fields().ByName("inheritManagerTimelineFrom") - fd_Map_managerTimeline = md_Map.Fields().ByName("managerTimeline") - fd_Map_updateCriteria = md_Map.Fields().ByName("updateCriteria") - fd_Map_valueOptions = md_Map.Fields().ByName("valueOptions") - fd_Map_defaultValue = md_Map.Fields().ByName("defaultValue") - fd_Map_metadataTimeline = md_Map.Fields().ByName("metadataTimeline") - fd_Map_permissions = md_Map.Fields().ByName("permissions") -} - -var _ protoreflect.Message = (*fastReflection_Map)(nil) - -type fastReflection_Map Map - -func (x *Map) ProtoReflect() protoreflect.Message { - return (*fastReflection_Map)(x) -} - -func (x *Map) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_Map_messageType fastReflection_Map_messageType -var _ protoreflect.MessageType = fastReflection_Map_messageType{} - -type fastReflection_Map_messageType struct{} - -func (x fastReflection_Map_messageType) Zero() protoreflect.Message { - return (*fastReflection_Map)(nil) -} -func (x fastReflection_Map_messageType) New() protoreflect.Message { - return new(fastReflection_Map) -} -func (x fastReflection_Map_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_Map -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_Map) Descriptor() protoreflect.MessageDescriptor { - return md_Map -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_Map) Type() protoreflect.MessageType { - return _fastReflection_Map_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_Map) New() protoreflect.Message { - return new(fastReflection_Map) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_Map) Interface() protoreflect.ProtoMessage { - return (*Map)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_Map) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_Map_creator, value) { - return - } - } - if x.MapId != "" { - value := protoreflect.ValueOfString(x.MapId) - if !f(fd_Map_mapId, value) { - return - } - } - if x.InheritManagerTimelineFrom != "" { - value := protoreflect.ValueOfString(x.InheritManagerTimelineFrom) - if !f(fd_Map_inheritManagerTimelineFrom, value) { - return - } - } - if len(x.ManagerTimeline) != 0 { - value := protoreflect.ValueOfList(&_Map_4_list{list: &x.ManagerTimeline}) - if !f(fd_Map_managerTimeline, value) { - return - } - } - if x.UpdateCriteria != nil { - value := protoreflect.ValueOfMessage(x.UpdateCriteria.ProtoReflect()) - if !f(fd_Map_updateCriteria, value) { - return - } - } - if x.ValueOptions != nil { - value := protoreflect.ValueOfMessage(x.ValueOptions.ProtoReflect()) - if !f(fd_Map_valueOptions, value) { - return - } - } - if x.DefaultValue != "" { - value := protoreflect.ValueOfString(x.DefaultValue) - if !f(fd_Map_defaultValue, value) { - return - } - } - if len(x.MetadataTimeline) != 0 { - value := protoreflect.ValueOfList(&_Map_10_list{list: &x.MetadataTimeline}) - if !f(fd_Map_metadataTimeline, value) { - return - } - } - if x.Permissions != nil { - value := protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - if !f(fd_Map_permissions, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_Map) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.Map.creator": - return x.Creator != "" - case "maps.Map.mapId": - return x.MapId != "" - case "maps.Map.inheritManagerTimelineFrom": - return x.InheritManagerTimelineFrom != "" - case "maps.Map.managerTimeline": - return len(x.ManagerTimeline) != 0 - case "maps.Map.updateCriteria": - return x.UpdateCriteria != nil - case "maps.Map.valueOptions": - return x.ValueOptions != nil - case "maps.Map.defaultValue": - return x.DefaultValue != "" - case "maps.Map.metadataTimeline": - return len(x.MetadataTimeline) != 0 - case "maps.Map.permissions": - return x.Permissions != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Map")) - } - panic(fmt.Errorf("message maps.Map does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Map) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.Map.creator": - x.Creator = "" - case "maps.Map.mapId": - x.MapId = "" - case "maps.Map.inheritManagerTimelineFrom": - x.InheritManagerTimelineFrom = "" - case "maps.Map.managerTimeline": - x.ManagerTimeline = nil - case "maps.Map.updateCriteria": - x.UpdateCriteria = nil - case "maps.Map.valueOptions": - x.ValueOptions = nil - case "maps.Map.defaultValue": - x.DefaultValue = "" - case "maps.Map.metadataTimeline": - x.MetadataTimeline = nil - case "maps.Map.permissions": - x.Permissions = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Map")) - } - panic(fmt.Errorf("message maps.Map does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_Map) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.Map.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "maps.Map.mapId": - value := x.MapId - return protoreflect.ValueOfString(value) - case "maps.Map.inheritManagerTimelineFrom": - value := x.InheritManagerTimelineFrom - return protoreflect.ValueOfString(value) - case "maps.Map.managerTimeline": - if len(x.ManagerTimeline) == 0 { - return protoreflect.ValueOfList(&_Map_4_list{}) - } - listValue := &_Map_4_list{list: &x.ManagerTimeline} - return protoreflect.ValueOfList(listValue) - case "maps.Map.updateCriteria": - value := x.UpdateCriteria - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "maps.Map.valueOptions": - value := x.ValueOptions - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "maps.Map.defaultValue": - value := x.DefaultValue - return protoreflect.ValueOfString(value) - case "maps.Map.metadataTimeline": - if len(x.MetadataTimeline) == 0 { - return protoreflect.ValueOfList(&_Map_10_list{}) - } - listValue := &_Map_10_list{list: &x.MetadataTimeline} - return protoreflect.ValueOfList(listValue) - case "maps.Map.permissions": - value := x.Permissions - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Map")) - } - panic(fmt.Errorf("message maps.Map does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Map) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.Map.creator": - x.Creator = value.Interface().(string) - case "maps.Map.mapId": - x.MapId = value.Interface().(string) - case "maps.Map.inheritManagerTimelineFrom": - x.InheritManagerTimelineFrom = value.Interface().(string) - case "maps.Map.managerTimeline": - lv := value.List() - clv := lv.(*_Map_4_list) - x.ManagerTimeline = *clv.list - case "maps.Map.updateCriteria": - x.UpdateCriteria = value.Message().Interface().(*MapUpdateCriteria) - case "maps.Map.valueOptions": - x.ValueOptions = value.Message().Interface().(*ValueOptions) - case "maps.Map.defaultValue": - x.DefaultValue = value.Interface().(string) - case "maps.Map.metadataTimeline": - lv := value.List() - clv := lv.(*_Map_10_list) - x.MetadataTimeline = *clv.list - case "maps.Map.permissions": - x.Permissions = value.Message().Interface().(*MapPermissions) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Map")) - } - panic(fmt.Errorf("message maps.Map does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Map) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.Map.managerTimeline": - if x.ManagerTimeline == nil { - x.ManagerTimeline = []*ManagerTimeline{} - } - value := &_Map_4_list{list: &x.ManagerTimeline} - return protoreflect.ValueOfList(value) - case "maps.Map.updateCriteria": - if x.UpdateCriteria == nil { - x.UpdateCriteria = new(MapUpdateCriteria) - } - return protoreflect.ValueOfMessage(x.UpdateCriteria.ProtoReflect()) - case "maps.Map.valueOptions": - if x.ValueOptions == nil { - x.ValueOptions = new(ValueOptions) - } - return protoreflect.ValueOfMessage(x.ValueOptions.ProtoReflect()) - case "maps.Map.metadataTimeline": - if x.MetadataTimeline == nil { - x.MetadataTimeline = []*MapMetadataTimeline{} - } - value := &_Map_10_list{list: &x.MetadataTimeline} - return protoreflect.ValueOfList(value) - case "maps.Map.permissions": - if x.Permissions == nil { - x.Permissions = new(MapPermissions) - } - return protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - case "maps.Map.creator": - panic(fmt.Errorf("field creator of message maps.Map is not mutable")) - case "maps.Map.mapId": - panic(fmt.Errorf("field mapId of message maps.Map is not mutable")) - case "maps.Map.inheritManagerTimelineFrom": - panic(fmt.Errorf("field inheritManagerTimelineFrom of message maps.Map is not mutable")) - case "maps.Map.defaultValue": - panic(fmt.Errorf("field defaultValue of message maps.Map is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Map")) - } - panic(fmt.Errorf("message maps.Map does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_Map) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.Map.creator": - return protoreflect.ValueOfString("") - case "maps.Map.mapId": - return protoreflect.ValueOfString("") - case "maps.Map.inheritManagerTimelineFrom": - return protoreflect.ValueOfString("") - case "maps.Map.managerTimeline": - list := []*ManagerTimeline{} - return protoreflect.ValueOfList(&_Map_4_list{list: &list}) - case "maps.Map.updateCriteria": - m := new(MapUpdateCriteria) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "maps.Map.valueOptions": - m := new(ValueOptions) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "maps.Map.defaultValue": - return protoreflect.ValueOfString("") - case "maps.Map.metadataTimeline": - list := []*MapMetadataTimeline{} - return protoreflect.ValueOfList(&_Map_10_list{list: &list}) - case "maps.Map.permissions": - m := new(MapPermissions) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.Map")) - } - panic(fmt.Errorf("message maps.Map does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_Map) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.Map", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_Map) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_Map) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_Map) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_Map) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*Map) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.MapId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.InheritManagerTimelineFrom) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.ManagerTimeline) > 0 { - for _, e := range x.ManagerTimeline { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.UpdateCriteria != nil { - l = options.Size(x.UpdateCriteria) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ValueOptions != nil { - l = options.Size(x.ValueOptions) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.DefaultValue) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.MetadataTimeline) > 0 { - for _, e := range x.MetadataTimeline { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Permissions != nil { - l = options.Size(x.Permissions) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*Map) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Permissions != nil { - encoded, err := options.Marshal(x.Permissions) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x5a - } - if len(x.MetadataTimeline) > 0 { - for iNdEx := len(x.MetadataTimeline) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.MetadataTimeline[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x52 - } - } - if len(x.DefaultValue) > 0 { - i -= len(x.DefaultValue) - copy(dAtA[i:], x.DefaultValue) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DefaultValue))) - i-- - dAtA[i] = 0x3a - } - if x.ValueOptions != nil { - encoded, err := options.Marshal(x.ValueOptions) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } - if x.UpdateCriteria != nil { - encoded, err := options.Marshal(x.UpdateCriteria) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - if len(x.ManagerTimeline) > 0 { - for iNdEx := len(x.ManagerTimeline) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.ManagerTimeline[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.InheritManagerTimelineFrom) > 0 { - i -= len(x.InheritManagerTimelineFrom) - copy(dAtA[i:], x.InheritManagerTimelineFrom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InheritManagerTimelineFrom))) - i-- - dAtA[i] = 0x1a - } - if len(x.MapId) > 0 { - i -= len(x.MapId) - copy(dAtA[i:], x.MapId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*Map) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Map: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Map: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InheritManagerTimelineFrom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.InheritManagerTimelineFrom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ManagerTimeline", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ManagerTimeline = append(x.ManagerTimeline, &ManagerTimeline{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ManagerTimeline[len(x.ManagerTimeline)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpdateCriteria", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.UpdateCriteria == nil { - x.UpdateCriteria = &MapUpdateCriteria{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UpdateCriteria); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValueOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.ValueOptions == nil { - x.ValueOptions = &ValueOptions{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ValueOptions); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.DefaultValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MetadataTimeline", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MetadataTimeline = append(x.MetadataTimeline, &MapMetadataTimeline{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MetadataTimeline[len(x.MetadataTimeline)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Permissions == nil { - x.Permissions = &MapPermissions{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MsgCreateMap_4_list)(nil) - -type _MsgCreateMap_4_list struct { - list *[]*ManagerTimeline -} - -func (x *_MsgCreateMap_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgCreateMap_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgCreateMap_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ManagerTimeline) - (*x.list)[i] = concreteValue -} - -func (x *_MsgCreateMap_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ManagerTimeline) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgCreateMap_4_list) AppendMutable() protoreflect.Value { - v := new(ManagerTimeline) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateMap_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgCreateMap_4_list) NewElement() protoreflect.Value { - v := new(ManagerTimeline) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateMap_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MsgCreateMap_9_list)(nil) - -type _MsgCreateMap_9_list struct { - list *[]*MapMetadataTimeline -} - -func (x *_MsgCreateMap_9_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgCreateMap_9_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgCreateMap_9_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MapMetadataTimeline) - (*x.list)[i] = concreteValue -} - -func (x *_MsgCreateMap_9_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MapMetadataTimeline) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgCreateMap_9_list) AppendMutable() protoreflect.Value { - v := new(MapMetadataTimeline) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateMap_9_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgCreateMap_9_list) NewElement() protoreflect.Value { - v := new(MapMetadataTimeline) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgCreateMap_9_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgCreateMap protoreflect.MessageDescriptor - fd_MsgCreateMap_creator protoreflect.FieldDescriptor - fd_MsgCreateMap_mapId protoreflect.FieldDescriptor - fd_MsgCreateMap_inheritManagerTimelineFrom protoreflect.FieldDescriptor - fd_MsgCreateMap_managerTimeline protoreflect.FieldDescriptor - fd_MsgCreateMap_updateCriteria protoreflect.FieldDescriptor - fd_MsgCreateMap_valueOptions protoreflect.FieldDescriptor - fd_MsgCreateMap_defaultValue protoreflect.FieldDescriptor - fd_MsgCreateMap_metadataTimeline protoreflect.FieldDescriptor - fd_MsgCreateMap_permissions protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgCreateMap = File_maps_tx_proto.Messages().ByName("MsgCreateMap") - fd_MsgCreateMap_creator = md_MsgCreateMap.Fields().ByName("creator") - fd_MsgCreateMap_mapId = md_MsgCreateMap.Fields().ByName("mapId") - fd_MsgCreateMap_inheritManagerTimelineFrom = md_MsgCreateMap.Fields().ByName("inheritManagerTimelineFrom") - fd_MsgCreateMap_managerTimeline = md_MsgCreateMap.Fields().ByName("managerTimeline") - fd_MsgCreateMap_updateCriteria = md_MsgCreateMap.Fields().ByName("updateCriteria") - fd_MsgCreateMap_valueOptions = md_MsgCreateMap.Fields().ByName("valueOptions") - fd_MsgCreateMap_defaultValue = md_MsgCreateMap.Fields().ByName("defaultValue") - fd_MsgCreateMap_metadataTimeline = md_MsgCreateMap.Fields().ByName("metadataTimeline") - fd_MsgCreateMap_permissions = md_MsgCreateMap.Fields().ByName("permissions") -} - -var _ protoreflect.Message = (*fastReflection_MsgCreateMap)(nil) - -type fastReflection_MsgCreateMap MsgCreateMap - -func (x *MsgCreateMap) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateMap)(x) -} - -func (x *MsgCreateMap) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCreateMap_messageType fastReflection_MsgCreateMap_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateMap_messageType{} - -type fastReflection_MsgCreateMap_messageType struct{} - -func (x fastReflection_MsgCreateMap_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateMap)(nil) -} -func (x fastReflection_MsgCreateMap_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateMap) -} -func (x fastReflection_MsgCreateMap_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateMap -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCreateMap) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateMap -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateMap) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateMap_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateMap) New() protoreflect.Message { - return new(fastReflection_MsgCreateMap) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateMap) Interface() protoreflect.ProtoMessage { - return (*MsgCreateMap)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgCreateMap) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCreateMap_creator, value) { - return - } - } - if x.MapId != "" { - value := protoreflect.ValueOfString(x.MapId) - if !f(fd_MsgCreateMap_mapId, value) { - return - } - } - if x.InheritManagerTimelineFrom != "" { - value := protoreflect.ValueOfString(x.InheritManagerTimelineFrom) - if !f(fd_MsgCreateMap_inheritManagerTimelineFrom, value) { - return - } - } - if len(x.ManagerTimeline) != 0 { - value := protoreflect.ValueOfList(&_MsgCreateMap_4_list{list: &x.ManagerTimeline}) - if !f(fd_MsgCreateMap_managerTimeline, value) { - return - } - } - if x.UpdateCriteria != nil { - value := protoreflect.ValueOfMessage(x.UpdateCriteria.ProtoReflect()) - if !f(fd_MsgCreateMap_updateCriteria, value) { - return - } - } - if x.ValueOptions != nil { - value := protoreflect.ValueOfMessage(x.ValueOptions.ProtoReflect()) - if !f(fd_MsgCreateMap_valueOptions, value) { - return - } - } - if x.DefaultValue != "" { - value := protoreflect.ValueOfString(x.DefaultValue) - if !f(fd_MsgCreateMap_defaultValue, value) { - return - } - } - if len(x.MetadataTimeline) != 0 { - value := protoreflect.ValueOfList(&_MsgCreateMap_9_list{list: &x.MetadataTimeline}) - if !f(fd_MsgCreateMap_metadataTimeline, value) { - return - } - } - if x.Permissions != nil { - value := protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - if !f(fd_MsgCreateMap_permissions, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateMap) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MsgCreateMap.creator": - return x.Creator != "" - case "maps.MsgCreateMap.mapId": - return x.MapId != "" - case "maps.MsgCreateMap.inheritManagerTimelineFrom": - return x.InheritManagerTimelineFrom != "" - case "maps.MsgCreateMap.managerTimeline": - return len(x.ManagerTimeline) != 0 - case "maps.MsgCreateMap.updateCriteria": - return x.UpdateCriteria != nil - case "maps.MsgCreateMap.valueOptions": - return x.ValueOptions != nil - case "maps.MsgCreateMap.defaultValue": - return x.DefaultValue != "" - case "maps.MsgCreateMap.metadataTimeline": - return len(x.MetadataTimeline) != 0 - case "maps.MsgCreateMap.permissions": - return x.Permissions != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMap")) - } - panic(fmt.Errorf("message maps.MsgCreateMap does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateMap) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MsgCreateMap.creator": - x.Creator = "" - case "maps.MsgCreateMap.mapId": - x.MapId = "" - case "maps.MsgCreateMap.inheritManagerTimelineFrom": - x.InheritManagerTimelineFrom = "" - case "maps.MsgCreateMap.managerTimeline": - x.ManagerTimeline = nil - case "maps.MsgCreateMap.updateCriteria": - x.UpdateCriteria = nil - case "maps.MsgCreateMap.valueOptions": - x.ValueOptions = nil - case "maps.MsgCreateMap.defaultValue": - x.DefaultValue = "" - case "maps.MsgCreateMap.metadataTimeline": - x.MetadataTimeline = nil - case "maps.MsgCreateMap.permissions": - x.Permissions = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMap")) - } - panic(fmt.Errorf("message maps.MsgCreateMap does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateMap) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MsgCreateMap.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "maps.MsgCreateMap.mapId": - value := x.MapId - return protoreflect.ValueOfString(value) - case "maps.MsgCreateMap.inheritManagerTimelineFrom": - value := x.InheritManagerTimelineFrom - return protoreflect.ValueOfString(value) - case "maps.MsgCreateMap.managerTimeline": - if len(x.ManagerTimeline) == 0 { - return protoreflect.ValueOfList(&_MsgCreateMap_4_list{}) - } - listValue := &_MsgCreateMap_4_list{list: &x.ManagerTimeline} - return protoreflect.ValueOfList(listValue) - case "maps.MsgCreateMap.updateCriteria": - value := x.UpdateCriteria - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "maps.MsgCreateMap.valueOptions": - value := x.ValueOptions - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "maps.MsgCreateMap.defaultValue": - value := x.DefaultValue - return protoreflect.ValueOfString(value) - case "maps.MsgCreateMap.metadataTimeline": - if len(x.MetadataTimeline) == 0 { - return protoreflect.ValueOfList(&_MsgCreateMap_9_list{}) - } - listValue := &_MsgCreateMap_9_list{list: &x.MetadataTimeline} - return protoreflect.ValueOfList(listValue) - case "maps.MsgCreateMap.permissions": - value := x.Permissions - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMap")) - } - panic(fmt.Errorf("message maps.MsgCreateMap does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateMap) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MsgCreateMap.creator": - x.Creator = value.Interface().(string) - case "maps.MsgCreateMap.mapId": - x.MapId = value.Interface().(string) - case "maps.MsgCreateMap.inheritManagerTimelineFrom": - x.InheritManagerTimelineFrom = value.Interface().(string) - case "maps.MsgCreateMap.managerTimeline": - lv := value.List() - clv := lv.(*_MsgCreateMap_4_list) - x.ManagerTimeline = *clv.list - case "maps.MsgCreateMap.updateCriteria": - x.UpdateCriteria = value.Message().Interface().(*MapUpdateCriteria) - case "maps.MsgCreateMap.valueOptions": - x.ValueOptions = value.Message().Interface().(*ValueOptions) - case "maps.MsgCreateMap.defaultValue": - x.DefaultValue = value.Interface().(string) - case "maps.MsgCreateMap.metadataTimeline": - lv := value.List() - clv := lv.(*_MsgCreateMap_9_list) - x.MetadataTimeline = *clv.list - case "maps.MsgCreateMap.permissions": - x.Permissions = value.Message().Interface().(*MapPermissions) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMap")) - } - panic(fmt.Errorf("message maps.MsgCreateMap does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateMap) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgCreateMap.managerTimeline": - if x.ManagerTimeline == nil { - x.ManagerTimeline = []*ManagerTimeline{} - } - value := &_MsgCreateMap_4_list{list: &x.ManagerTimeline} - return protoreflect.ValueOfList(value) - case "maps.MsgCreateMap.updateCriteria": - if x.UpdateCriteria == nil { - x.UpdateCriteria = new(MapUpdateCriteria) - } - return protoreflect.ValueOfMessage(x.UpdateCriteria.ProtoReflect()) - case "maps.MsgCreateMap.valueOptions": - if x.ValueOptions == nil { - x.ValueOptions = new(ValueOptions) - } - return protoreflect.ValueOfMessage(x.ValueOptions.ProtoReflect()) - case "maps.MsgCreateMap.metadataTimeline": - if x.MetadataTimeline == nil { - x.MetadataTimeline = []*MapMetadataTimeline{} - } - value := &_MsgCreateMap_9_list{list: &x.MetadataTimeline} - return protoreflect.ValueOfList(value) - case "maps.MsgCreateMap.permissions": - if x.Permissions == nil { - x.Permissions = new(MapPermissions) - } - return protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - case "maps.MsgCreateMap.creator": - panic(fmt.Errorf("field creator of message maps.MsgCreateMap is not mutable")) - case "maps.MsgCreateMap.mapId": - panic(fmt.Errorf("field mapId of message maps.MsgCreateMap is not mutable")) - case "maps.MsgCreateMap.inheritManagerTimelineFrom": - panic(fmt.Errorf("field inheritManagerTimelineFrom of message maps.MsgCreateMap is not mutable")) - case "maps.MsgCreateMap.defaultValue": - panic(fmt.Errorf("field defaultValue of message maps.MsgCreateMap is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMap")) - } - panic(fmt.Errorf("message maps.MsgCreateMap does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateMap) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgCreateMap.creator": - return protoreflect.ValueOfString("") - case "maps.MsgCreateMap.mapId": - return protoreflect.ValueOfString("") - case "maps.MsgCreateMap.inheritManagerTimelineFrom": - return protoreflect.ValueOfString("") - case "maps.MsgCreateMap.managerTimeline": - list := []*ManagerTimeline{} - return protoreflect.ValueOfList(&_MsgCreateMap_4_list{list: &list}) - case "maps.MsgCreateMap.updateCriteria": - m := new(MapUpdateCriteria) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "maps.MsgCreateMap.valueOptions": - m := new(ValueOptions) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "maps.MsgCreateMap.defaultValue": - return protoreflect.ValueOfString("") - case "maps.MsgCreateMap.metadataTimeline": - list := []*MapMetadataTimeline{} - return protoreflect.ValueOfList(&_MsgCreateMap_9_list{list: &list}) - case "maps.MsgCreateMap.permissions": - m := new(MapPermissions) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMap")) - } - panic(fmt.Errorf("message maps.MsgCreateMap does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateMap) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgCreateMap", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateMap) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateMap) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateMap) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateMap) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateMap) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.MapId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.InheritManagerTimelineFrom) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.ManagerTimeline) > 0 { - for _, e := range x.ManagerTimeline { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.UpdateCriteria != nil { - l = options.Size(x.UpdateCriteria) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ValueOptions != nil { - l = options.Size(x.ValueOptions) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.DefaultValue) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.MetadataTimeline) > 0 { - for _, e := range x.MetadataTimeline { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Permissions != nil { - l = options.Size(x.Permissions) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateMap) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Permissions != nil { - encoded, err := options.Marshal(x.Permissions) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x52 - } - if len(x.MetadataTimeline) > 0 { - for iNdEx := len(x.MetadataTimeline) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.MetadataTimeline[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x4a - } - } - if len(x.DefaultValue) > 0 { - i -= len(x.DefaultValue) - copy(dAtA[i:], x.DefaultValue) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DefaultValue))) - i-- - dAtA[i] = 0x3a - } - if x.ValueOptions != nil { - encoded, err := options.Marshal(x.ValueOptions) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x32 - } - if x.UpdateCriteria != nil { - encoded, err := options.Marshal(x.UpdateCriteria) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - if len(x.ManagerTimeline) > 0 { - for iNdEx := len(x.ManagerTimeline) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.ManagerTimeline[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.InheritManagerTimelineFrom) > 0 { - i -= len(x.InheritManagerTimelineFrom) - copy(dAtA[i:], x.InheritManagerTimelineFrom) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InheritManagerTimelineFrom))) - i-- - dAtA[i] = 0x1a - } - if len(x.MapId) > 0 { - i -= len(x.MapId) - copy(dAtA[i:], x.MapId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateMap) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMap: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMap: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InheritManagerTimelineFrom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.InheritManagerTimelineFrom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ManagerTimeline", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ManagerTimeline = append(x.ManagerTimeline, &ManagerTimeline{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ManagerTimeline[len(x.ManagerTimeline)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpdateCriteria", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.UpdateCriteria == nil { - x.UpdateCriteria = &MapUpdateCriteria{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UpdateCriteria); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValueOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.ValueOptions == nil { - x.ValueOptions = &ValueOptions{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ValueOptions); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.DefaultValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MetadataTimeline", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MetadataTimeline = append(x.MetadataTimeline, &MapMetadataTimeline{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MetadataTimeline[len(x.MetadataTimeline)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Permissions == nil { - x.Permissions = &MapPermissions{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgCreateMapResponse protoreflect.MessageDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgCreateMapResponse = File_maps_tx_proto.Messages().ByName("MsgCreateMapResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgCreateMapResponse)(nil) - -type fastReflection_MsgCreateMapResponse MsgCreateMapResponse - -func (x *MsgCreateMapResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateMapResponse)(x) -} - -func (x *MsgCreateMapResponse) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgCreateMapResponse_messageType fastReflection_MsgCreateMapResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateMapResponse_messageType{} - -type fastReflection_MsgCreateMapResponse_messageType struct{} - -func (x fastReflection_MsgCreateMapResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateMapResponse)(nil) -} -func (x fastReflection_MsgCreateMapResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateMapResponse) -} -func (x fastReflection_MsgCreateMapResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateMapResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgCreateMapResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateMapResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateMapResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateMapResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateMapResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateMapResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateMapResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateMapResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgCreateMapResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateMapResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgCreateMapResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateMapResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgCreateMapResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateMapResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgCreateMapResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateMapResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgCreateMapResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateMapResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgCreateMapResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateMapResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgCreateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgCreateMapResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateMapResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgCreateMapResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateMapResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateMapResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateMapResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateMapResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateMapResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateMapResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateMapResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMapResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateMapResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_MsgUpdateMap_4_list)(nil) - -type _MsgUpdateMap_4_list struct { - list *[]*ManagerTimeline -} - -func (x *_MsgUpdateMap_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgUpdateMap_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgUpdateMap_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ManagerTimeline) - (*x.list)[i] = concreteValue -} - -func (x *_MsgUpdateMap_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ManagerTimeline) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgUpdateMap_4_list) AppendMutable() protoreflect.Value { - v := new(ManagerTimeline) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgUpdateMap_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgUpdateMap_4_list) NewElement() protoreflect.Value { - v := new(ManagerTimeline) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgUpdateMap_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_MsgUpdateMap_8_list)(nil) - -type _MsgUpdateMap_8_list struct { - list *[]*MapMetadataTimeline -} - -func (x *_MsgUpdateMap_8_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgUpdateMap_8_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgUpdateMap_8_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MapMetadataTimeline) - (*x.list)[i] = concreteValue -} - -func (x *_MsgUpdateMap_8_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MapMetadataTimeline) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgUpdateMap_8_list) AppendMutable() protoreflect.Value { - v := new(MapMetadataTimeline) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgUpdateMap_8_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgUpdateMap_8_list) NewElement() protoreflect.Value { - v := new(MapMetadataTimeline) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgUpdateMap_8_list) IsValid() bool { - return x.list != nil -} - -var ( - md_MsgUpdateMap protoreflect.MessageDescriptor - fd_MsgUpdateMap_creator protoreflect.FieldDescriptor - fd_MsgUpdateMap_mapId protoreflect.FieldDescriptor - fd_MsgUpdateMap_updateManagerTimeline protoreflect.FieldDescriptor - fd_MsgUpdateMap_managerTimeline protoreflect.FieldDescriptor - fd_MsgUpdateMap_updateMetadataTimeline protoreflect.FieldDescriptor - fd_MsgUpdateMap_metadataTimeline protoreflect.FieldDescriptor - fd_MsgUpdateMap_updatePermissions protoreflect.FieldDescriptor - fd_MsgUpdateMap_permissions protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgUpdateMap = File_maps_tx_proto.Messages().ByName("MsgUpdateMap") - fd_MsgUpdateMap_creator = md_MsgUpdateMap.Fields().ByName("creator") - fd_MsgUpdateMap_mapId = md_MsgUpdateMap.Fields().ByName("mapId") - fd_MsgUpdateMap_updateManagerTimeline = md_MsgUpdateMap.Fields().ByName("updateManagerTimeline") - fd_MsgUpdateMap_managerTimeline = md_MsgUpdateMap.Fields().ByName("managerTimeline") - fd_MsgUpdateMap_updateMetadataTimeline = md_MsgUpdateMap.Fields().ByName("updateMetadataTimeline") - fd_MsgUpdateMap_metadataTimeline = md_MsgUpdateMap.Fields().ByName("metadataTimeline") - fd_MsgUpdateMap_updatePermissions = md_MsgUpdateMap.Fields().ByName("updatePermissions") - fd_MsgUpdateMap_permissions = md_MsgUpdateMap.Fields().ByName("permissions") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateMap)(nil) - -type fastReflection_MsgUpdateMap MsgUpdateMap - -func (x *MsgUpdateMap) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateMap)(x) -} - -func (x *MsgUpdateMap) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateMap_messageType fastReflection_MsgUpdateMap_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateMap_messageType{} - -type fastReflection_MsgUpdateMap_messageType struct{} - -func (x fastReflection_MsgUpdateMap_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateMap)(nil) -} -func (x fastReflection_MsgUpdateMap_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateMap) -} -func (x fastReflection_MsgUpdateMap_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateMap -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateMap) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateMap -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateMap) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateMap_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateMap) New() protoreflect.Message { - return new(fastReflection_MsgUpdateMap) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateMap) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateMap)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateMap) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgUpdateMap_creator, value) { - return - } - } - if x.MapId != "" { - value := protoreflect.ValueOfString(x.MapId) - if !f(fd_MsgUpdateMap_mapId, value) { - return - } - } - if x.UpdateManagerTimeline != false { - value := protoreflect.ValueOfBool(x.UpdateManagerTimeline) - if !f(fd_MsgUpdateMap_updateManagerTimeline, value) { - return - } - } - if len(x.ManagerTimeline) != 0 { - value := protoreflect.ValueOfList(&_MsgUpdateMap_4_list{list: &x.ManagerTimeline}) - if !f(fd_MsgUpdateMap_managerTimeline, value) { - return - } - } - if x.UpdateMetadataTimeline != false { - value := protoreflect.ValueOfBool(x.UpdateMetadataTimeline) - if !f(fd_MsgUpdateMap_updateMetadataTimeline, value) { - return - } - } - if len(x.MetadataTimeline) != 0 { - value := protoreflect.ValueOfList(&_MsgUpdateMap_8_list{list: &x.MetadataTimeline}) - if !f(fd_MsgUpdateMap_metadataTimeline, value) { - return - } - } - if x.UpdatePermissions != false { - value := protoreflect.ValueOfBool(x.UpdatePermissions) - if !f(fd_MsgUpdateMap_updatePermissions, value) { - return - } - } - if x.Permissions != nil { - value := protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - if !f(fd_MsgUpdateMap_permissions, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateMap) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MsgUpdateMap.creator": - return x.Creator != "" - case "maps.MsgUpdateMap.mapId": - return x.MapId != "" - case "maps.MsgUpdateMap.updateManagerTimeline": - return x.UpdateManagerTimeline != false - case "maps.MsgUpdateMap.managerTimeline": - return len(x.ManagerTimeline) != 0 - case "maps.MsgUpdateMap.updateMetadataTimeline": - return x.UpdateMetadataTimeline != false - case "maps.MsgUpdateMap.metadataTimeline": - return len(x.MetadataTimeline) != 0 - case "maps.MsgUpdateMap.updatePermissions": - return x.UpdatePermissions != false - case "maps.MsgUpdateMap.permissions": - return x.Permissions != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMap")) - } - panic(fmt.Errorf("message maps.MsgUpdateMap does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateMap) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MsgUpdateMap.creator": - x.Creator = "" - case "maps.MsgUpdateMap.mapId": - x.MapId = "" - case "maps.MsgUpdateMap.updateManagerTimeline": - x.UpdateManagerTimeline = false - case "maps.MsgUpdateMap.managerTimeline": - x.ManagerTimeline = nil - case "maps.MsgUpdateMap.updateMetadataTimeline": - x.UpdateMetadataTimeline = false - case "maps.MsgUpdateMap.metadataTimeline": - x.MetadataTimeline = nil - case "maps.MsgUpdateMap.updatePermissions": - x.UpdatePermissions = false - case "maps.MsgUpdateMap.permissions": - x.Permissions = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMap")) - } - panic(fmt.Errorf("message maps.MsgUpdateMap does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateMap) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MsgUpdateMap.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "maps.MsgUpdateMap.mapId": - value := x.MapId - return protoreflect.ValueOfString(value) - case "maps.MsgUpdateMap.updateManagerTimeline": - value := x.UpdateManagerTimeline - return protoreflect.ValueOfBool(value) - case "maps.MsgUpdateMap.managerTimeline": - if len(x.ManagerTimeline) == 0 { - return protoreflect.ValueOfList(&_MsgUpdateMap_4_list{}) - } - listValue := &_MsgUpdateMap_4_list{list: &x.ManagerTimeline} - return protoreflect.ValueOfList(listValue) - case "maps.MsgUpdateMap.updateMetadataTimeline": - value := x.UpdateMetadataTimeline - return protoreflect.ValueOfBool(value) - case "maps.MsgUpdateMap.metadataTimeline": - if len(x.MetadataTimeline) == 0 { - return protoreflect.ValueOfList(&_MsgUpdateMap_8_list{}) - } - listValue := &_MsgUpdateMap_8_list{list: &x.MetadataTimeline} - return protoreflect.ValueOfList(listValue) - case "maps.MsgUpdateMap.updatePermissions": - value := x.UpdatePermissions - return protoreflect.ValueOfBool(value) - case "maps.MsgUpdateMap.permissions": - value := x.Permissions - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMap")) - } - panic(fmt.Errorf("message maps.MsgUpdateMap does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateMap) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MsgUpdateMap.creator": - x.Creator = value.Interface().(string) - case "maps.MsgUpdateMap.mapId": - x.MapId = value.Interface().(string) - case "maps.MsgUpdateMap.updateManagerTimeline": - x.UpdateManagerTimeline = value.Bool() - case "maps.MsgUpdateMap.managerTimeline": - lv := value.List() - clv := lv.(*_MsgUpdateMap_4_list) - x.ManagerTimeline = *clv.list - case "maps.MsgUpdateMap.updateMetadataTimeline": - x.UpdateMetadataTimeline = value.Bool() - case "maps.MsgUpdateMap.metadataTimeline": - lv := value.List() - clv := lv.(*_MsgUpdateMap_8_list) - x.MetadataTimeline = *clv.list - case "maps.MsgUpdateMap.updatePermissions": - x.UpdatePermissions = value.Bool() - case "maps.MsgUpdateMap.permissions": - x.Permissions = value.Message().Interface().(*MapPermissions) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMap")) - } - panic(fmt.Errorf("message maps.MsgUpdateMap does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateMap) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgUpdateMap.managerTimeline": - if x.ManagerTimeline == nil { - x.ManagerTimeline = []*ManagerTimeline{} - } - value := &_MsgUpdateMap_4_list{list: &x.ManagerTimeline} - return protoreflect.ValueOfList(value) - case "maps.MsgUpdateMap.metadataTimeline": - if x.MetadataTimeline == nil { - x.MetadataTimeline = []*MapMetadataTimeline{} - } - value := &_MsgUpdateMap_8_list{list: &x.MetadataTimeline} - return protoreflect.ValueOfList(value) - case "maps.MsgUpdateMap.permissions": - if x.Permissions == nil { - x.Permissions = new(MapPermissions) - } - return protoreflect.ValueOfMessage(x.Permissions.ProtoReflect()) - case "maps.MsgUpdateMap.creator": - panic(fmt.Errorf("field creator of message maps.MsgUpdateMap is not mutable")) - case "maps.MsgUpdateMap.mapId": - panic(fmt.Errorf("field mapId of message maps.MsgUpdateMap is not mutable")) - case "maps.MsgUpdateMap.updateManagerTimeline": - panic(fmt.Errorf("field updateManagerTimeline of message maps.MsgUpdateMap is not mutable")) - case "maps.MsgUpdateMap.updateMetadataTimeline": - panic(fmt.Errorf("field updateMetadataTimeline of message maps.MsgUpdateMap is not mutable")) - case "maps.MsgUpdateMap.updatePermissions": - panic(fmt.Errorf("field updatePermissions of message maps.MsgUpdateMap is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMap")) - } - panic(fmt.Errorf("message maps.MsgUpdateMap does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateMap) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgUpdateMap.creator": - return protoreflect.ValueOfString("") - case "maps.MsgUpdateMap.mapId": - return protoreflect.ValueOfString("") - case "maps.MsgUpdateMap.updateManagerTimeline": - return protoreflect.ValueOfBool(false) - case "maps.MsgUpdateMap.managerTimeline": - list := []*ManagerTimeline{} - return protoreflect.ValueOfList(&_MsgUpdateMap_4_list{list: &list}) - case "maps.MsgUpdateMap.updateMetadataTimeline": - return protoreflect.ValueOfBool(false) - case "maps.MsgUpdateMap.metadataTimeline": - list := []*MapMetadataTimeline{} - return protoreflect.ValueOfList(&_MsgUpdateMap_8_list{list: &list}) - case "maps.MsgUpdateMap.updatePermissions": - return protoreflect.ValueOfBool(false) - case "maps.MsgUpdateMap.permissions": - m := new(MapPermissions) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMap")) - } - panic(fmt.Errorf("message maps.MsgUpdateMap does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateMap) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgUpdateMap", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateMap) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateMap) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateMap) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateMap) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateMap) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.MapId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.UpdateManagerTimeline { - n += 2 - } - if len(x.ManagerTimeline) > 0 { - for _, e := range x.ManagerTimeline { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.UpdateMetadataTimeline { - n += 2 - } - if len(x.MetadataTimeline) > 0 { - for _, e := range x.MetadataTimeline { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.UpdatePermissions { - n += 2 - } - if x.Permissions != nil { - l = options.Size(x.Permissions) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateMap) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Permissions != nil { - encoded, err := options.Marshal(x.Permissions) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x52 - } - if x.UpdatePermissions { - i-- - if x.UpdatePermissions { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if len(x.MetadataTimeline) > 0 { - for iNdEx := len(x.MetadataTimeline) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.MetadataTimeline[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x42 - } - } - if x.UpdateMetadataTimeline { - i-- - if x.UpdateMetadataTimeline { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if len(x.ManagerTimeline) > 0 { - for iNdEx := len(x.ManagerTimeline) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.ManagerTimeline[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if x.UpdateManagerTimeline { - i-- - if x.UpdateManagerTimeline { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(x.MapId) > 0 { - i -= len(x.MapId) - copy(dAtA[i:], x.MapId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateMap) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMap: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMap: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpdateManagerTimeline", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.UpdateManagerTimeline = bool(v != 0) - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ManagerTimeline", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ManagerTimeline = append(x.ManagerTimeline, &ManagerTimeline{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ManagerTimeline[len(x.ManagerTimeline)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpdateMetadataTimeline", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.UpdateMetadataTimeline = bool(v != 0) - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MetadataTimeline", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MetadataTimeline = append(x.MetadataTimeline, &MapMetadataTimeline{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.MetadataTimeline[len(x.MetadataTimeline)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UpdatePermissions", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.UpdatePermissions = bool(v != 0) - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Permissions == nil { - x.Permissions = &MapPermissions{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Permissions); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateMapResponse protoreflect.MessageDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgUpdateMapResponse = File_maps_tx_proto.Messages().ByName("MsgUpdateMapResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateMapResponse)(nil) - -type fastReflection_MsgUpdateMapResponse MsgUpdateMapResponse - -func (x *MsgUpdateMapResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateMapResponse)(x) -} - -func (x *MsgUpdateMapResponse) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgUpdateMapResponse_messageType fastReflection_MsgUpdateMapResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateMapResponse_messageType{} - -type fastReflection_MsgUpdateMapResponse_messageType struct{} - -func (x fastReflection_MsgUpdateMapResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateMapResponse)(nil) -} -func (x fastReflection_MsgUpdateMapResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateMapResponse) -} -func (x fastReflection_MsgUpdateMapResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateMapResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateMapResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateMapResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgUpdateMapResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateMapResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateMapResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateMapResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateMapResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateMapResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgUpdateMapResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgUpdateMapResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateMapResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateMapResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateMapResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgUpdateMapResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateMapResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateMapResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateMapResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateMapResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateMapResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgUpdateMapResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgUpdateMapResponse")) - } - panic(fmt.Errorf("message maps.MsgUpdateMapResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgUpdateMapResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgUpdateMapResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgUpdateMapResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgUpdateMapResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgUpdateMapResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgUpdateMapResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateMapResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateMapResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgUpdateMapResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMapResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateMapResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgDeleteMap protoreflect.MessageDescriptor - fd_MsgDeleteMap_creator protoreflect.FieldDescriptor - fd_MsgDeleteMap_mapId protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgDeleteMap = File_maps_tx_proto.Messages().ByName("MsgDeleteMap") - fd_MsgDeleteMap_creator = md_MsgDeleteMap.Fields().ByName("creator") - fd_MsgDeleteMap_mapId = md_MsgDeleteMap.Fields().ByName("mapId") -} - -var _ protoreflect.Message = (*fastReflection_MsgDeleteMap)(nil) - -type fastReflection_MsgDeleteMap MsgDeleteMap - -func (x *MsgDeleteMap) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDeleteMap)(x) -} - -func (x *MsgDeleteMap) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgDeleteMap_messageType fastReflection_MsgDeleteMap_messageType -var _ protoreflect.MessageType = fastReflection_MsgDeleteMap_messageType{} - -type fastReflection_MsgDeleteMap_messageType struct{} - -func (x fastReflection_MsgDeleteMap_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDeleteMap)(nil) -} -func (x fastReflection_MsgDeleteMap_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDeleteMap) -} -func (x fastReflection_MsgDeleteMap_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDeleteMap -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgDeleteMap) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDeleteMap -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgDeleteMap) Type() protoreflect.MessageType { - return _fastReflection_MsgDeleteMap_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDeleteMap) New() protoreflect.Message { - return new(fastReflection_MsgDeleteMap) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDeleteMap) Interface() protoreflect.ProtoMessage { - return (*MsgDeleteMap)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgDeleteMap) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgDeleteMap_creator, value) { - return - } - } - if x.MapId != "" { - value := protoreflect.ValueOfString(x.MapId) - if !f(fd_MsgDeleteMap_mapId, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgDeleteMap) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MsgDeleteMap.creator": - return x.Creator != "" - case "maps.MsgDeleteMap.mapId": - return x.MapId != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMap")) - } - panic(fmt.Errorf("message maps.MsgDeleteMap does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteMap) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MsgDeleteMap.creator": - x.Creator = "" - case "maps.MsgDeleteMap.mapId": - x.MapId = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMap")) - } - panic(fmt.Errorf("message maps.MsgDeleteMap does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgDeleteMap) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MsgDeleteMap.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "maps.MsgDeleteMap.mapId": - value := x.MapId - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMap")) - } - panic(fmt.Errorf("message maps.MsgDeleteMap does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteMap) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MsgDeleteMap.creator": - x.Creator = value.Interface().(string) - case "maps.MsgDeleteMap.mapId": - x.MapId = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMap")) - } - panic(fmt.Errorf("message maps.MsgDeleteMap does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteMap) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgDeleteMap.creator": - panic(fmt.Errorf("field creator of message maps.MsgDeleteMap is not mutable")) - case "maps.MsgDeleteMap.mapId": - panic(fmt.Errorf("field mapId of message maps.MsgDeleteMap is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMap")) - } - panic(fmt.Errorf("message maps.MsgDeleteMap does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgDeleteMap) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgDeleteMap.creator": - return protoreflect.ValueOfString("") - case "maps.MsgDeleteMap.mapId": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMap")) - } - panic(fmt.Errorf("message maps.MsgDeleteMap does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgDeleteMap) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgDeleteMap", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgDeleteMap) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteMap) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgDeleteMap) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgDeleteMap) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDeleteMap) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.MapId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgDeleteMap) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.MapId) > 0 { - i -= len(x.MapId) - copy(dAtA[i:], x.MapId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgDeleteMap) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteMap: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteMap: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgDeleteMapResponse protoreflect.MessageDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgDeleteMapResponse = File_maps_tx_proto.Messages().ByName("MsgDeleteMapResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgDeleteMapResponse)(nil) - -type fastReflection_MsgDeleteMapResponse MsgDeleteMapResponse - -func (x *MsgDeleteMapResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDeleteMapResponse)(x) -} - -func (x *MsgDeleteMapResponse) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgDeleteMapResponse_messageType fastReflection_MsgDeleteMapResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgDeleteMapResponse_messageType{} - -type fastReflection_MsgDeleteMapResponse_messageType struct{} - -func (x fastReflection_MsgDeleteMapResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDeleteMapResponse)(nil) -} -func (x fastReflection_MsgDeleteMapResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDeleteMapResponse) -} -func (x fastReflection_MsgDeleteMapResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDeleteMapResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgDeleteMapResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDeleteMapResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgDeleteMapResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgDeleteMapResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDeleteMapResponse) New() protoreflect.Message { - return new(fastReflection_MsgDeleteMapResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDeleteMapResponse) Interface() protoreflect.ProtoMessage { - return (*MsgDeleteMapResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgDeleteMapResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgDeleteMapResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMapResponse")) - } - panic(fmt.Errorf("message maps.MsgDeleteMapResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteMapResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMapResponse")) - } - panic(fmt.Errorf("message maps.MsgDeleteMapResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgDeleteMapResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMapResponse")) - } - panic(fmt.Errorf("message maps.MsgDeleteMapResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteMapResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMapResponse")) - } - panic(fmt.Errorf("message maps.MsgDeleteMapResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteMapResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMapResponse")) - } - panic(fmt.Errorf("message maps.MsgDeleteMapResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgDeleteMapResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgDeleteMapResponse")) - } - panic(fmt.Errorf("message maps.MsgDeleteMapResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgDeleteMapResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgDeleteMapResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgDeleteMapResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDeleteMapResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgDeleteMapResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgDeleteMapResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDeleteMapResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgDeleteMapResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgDeleteMapResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteMapResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDeleteMapResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_SetOptions protoreflect.MessageDescriptor - fd_SetOptions_useMostRecentCollectionId protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_SetOptions = File_maps_tx_proto.Messages().ByName("SetOptions") - fd_SetOptions_useMostRecentCollectionId = md_SetOptions.Fields().ByName("useMostRecentCollectionId") -} - -var _ protoreflect.Message = (*fastReflection_SetOptions)(nil) - -type fastReflection_SetOptions SetOptions - -func (x *SetOptions) ProtoReflect() protoreflect.Message { - return (*fastReflection_SetOptions)(x) -} - -func (x *SetOptions) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_SetOptions_messageType fastReflection_SetOptions_messageType -var _ protoreflect.MessageType = fastReflection_SetOptions_messageType{} - -type fastReflection_SetOptions_messageType struct{} - -func (x fastReflection_SetOptions_messageType) Zero() protoreflect.Message { - return (*fastReflection_SetOptions)(nil) -} -func (x fastReflection_SetOptions_messageType) New() protoreflect.Message { - return new(fastReflection_SetOptions) -} -func (x fastReflection_SetOptions_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_SetOptions -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_SetOptions) Descriptor() protoreflect.MessageDescriptor { - return md_SetOptions -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_SetOptions) Type() protoreflect.MessageType { - return _fastReflection_SetOptions_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_SetOptions) New() protoreflect.Message { - return new(fastReflection_SetOptions) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_SetOptions) Interface() protoreflect.ProtoMessage { - return (*SetOptions)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_SetOptions) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.UseMostRecentCollectionId != false { - value := protoreflect.ValueOfBool(x.UseMostRecentCollectionId) - if !f(fd_SetOptions_useMostRecentCollectionId, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_SetOptions) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.SetOptions.useMostRecentCollectionId": - return x.UseMostRecentCollectionId != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.SetOptions")) - } - panic(fmt.Errorf("message maps.SetOptions does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SetOptions) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.SetOptions.useMostRecentCollectionId": - x.UseMostRecentCollectionId = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.SetOptions")) - } - panic(fmt.Errorf("message maps.SetOptions does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_SetOptions) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.SetOptions.useMostRecentCollectionId": - value := x.UseMostRecentCollectionId - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.SetOptions")) - } - panic(fmt.Errorf("message maps.SetOptions does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SetOptions) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.SetOptions.useMostRecentCollectionId": - x.UseMostRecentCollectionId = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.SetOptions")) - } - panic(fmt.Errorf("message maps.SetOptions does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SetOptions) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.SetOptions.useMostRecentCollectionId": - panic(fmt.Errorf("field useMostRecentCollectionId of message maps.SetOptions is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.SetOptions")) - } - panic(fmt.Errorf("message maps.SetOptions does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_SetOptions) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.SetOptions.useMostRecentCollectionId": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.SetOptions")) - } - panic(fmt.Errorf("message maps.SetOptions does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_SetOptions) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.SetOptions", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_SetOptions) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_SetOptions) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_SetOptions) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_SetOptions) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*SetOptions) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.UseMostRecentCollectionId { - n += 2 - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*SetOptions) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.UseMostRecentCollectionId { - i-- - if x.UseMostRecentCollectionId { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*SetOptions) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SetOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SetOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UseMostRecentCollectionId", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.UseMostRecentCollectionId = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetValue protoreflect.MessageDescriptor - fd_MsgSetValue_creator protoreflect.FieldDescriptor - fd_MsgSetValue_mapId protoreflect.FieldDescriptor - fd_MsgSetValue_key protoreflect.FieldDescriptor - fd_MsgSetValue_value protoreflect.FieldDescriptor - fd_MsgSetValue_options protoreflect.FieldDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgSetValue = File_maps_tx_proto.Messages().ByName("MsgSetValue") - fd_MsgSetValue_creator = md_MsgSetValue.Fields().ByName("creator") - fd_MsgSetValue_mapId = md_MsgSetValue.Fields().ByName("mapId") - fd_MsgSetValue_key = md_MsgSetValue.Fields().ByName("key") - fd_MsgSetValue_value = md_MsgSetValue.Fields().ByName("value") - fd_MsgSetValue_options = md_MsgSetValue.Fields().ByName("options") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetValue)(nil) - -type fastReflection_MsgSetValue MsgSetValue - -func (x *MsgSetValue) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetValue)(x) -} - -func (x *MsgSetValue) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSetValue_messageType fastReflection_MsgSetValue_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetValue_messageType{} - -type fastReflection_MsgSetValue_messageType struct{} - -func (x fastReflection_MsgSetValue_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetValue)(nil) -} -func (x fastReflection_MsgSetValue_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetValue) -} -func (x fastReflection_MsgSetValue_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetValue -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetValue) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetValue -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgSetValue) Type() protoreflect.MessageType { - return _fastReflection_MsgSetValue_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetValue) New() protoreflect.Message { - return new(fastReflection_MsgSetValue) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetValue) Interface() protoreflect.ProtoMessage { - return (*MsgSetValue)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgSetValue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Creator != "" { - value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSetValue_creator, value) { - return - } - } - if x.MapId != "" { - value := protoreflect.ValueOfString(x.MapId) - if !f(fd_MsgSetValue_mapId, value) { - return - } - } - if x.Key != "" { - value := protoreflect.ValueOfString(x.Key) - if !f(fd_MsgSetValue_key, value) { - return - } - } - if x.Value != "" { - value := protoreflect.ValueOfString(x.Value) - if !f(fd_MsgSetValue_value, value) { - return - } - } - if x.Options != nil { - value := protoreflect.ValueOfMessage(x.Options.ProtoReflect()) - if !f(fd_MsgSetValue_options, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetValue) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "maps.MsgSetValue.creator": - return x.Creator != "" - case "maps.MsgSetValue.mapId": - return x.MapId != "" - case "maps.MsgSetValue.key": - return x.Key != "" - case "maps.MsgSetValue.value": - return x.Value != "" - case "maps.MsgSetValue.options": - return x.Options != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValue")) - } - panic(fmt.Errorf("message maps.MsgSetValue does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetValue) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "maps.MsgSetValue.creator": - x.Creator = "" - case "maps.MsgSetValue.mapId": - x.MapId = "" - case "maps.MsgSetValue.key": - x.Key = "" - case "maps.MsgSetValue.value": - x.Value = "" - case "maps.MsgSetValue.options": - x.Options = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValue")) - } - panic(fmt.Errorf("message maps.MsgSetValue does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSetValue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "maps.MsgSetValue.creator": - value := x.Creator - return protoreflect.ValueOfString(value) - case "maps.MsgSetValue.mapId": - value := x.MapId - return protoreflect.ValueOfString(value) - case "maps.MsgSetValue.key": - value := x.Key - return protoreflect.ValueOfString(value) - case "maps.MsgSetValue.value": - value := x.Value - return protoreflect.ValueOfString(value) - case "maps.MsgSetValue.options": - value := x.Options - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValue")) - } - panic(fmt.Errorf("message maps.MsgSetValue does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetValue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "maps.MsgSetValue.creator": - x.Creator = value.Interface().(string) - case "maps.MsgSetValue.mapId": - x.MapId = value.Interface().(string) - case "maps.MsgSetValue.key": - x.Key = value.Interface().(string) - case "maps.MsgSetValue.value": - x.Value = value.Interface().(string) - case "maps.MsgSetValue.options": - x.Options = value.Message().Interface().(*SetOptions) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValue")) - } - panic(fmt.Errorf("message maps.MsgSetValue does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetValue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgSetValue.options": - if x.Options == nil { - x.Options = new(SetOptions) - } - return protoreflect.ValueOfMessage(x.Options.ProtoReflect()) - case "maps.MsgSetValue.creator": - panic(fmt.Errorf("field creator of message maps.MsgSetValue is not mutable")) - case "maps.MsgSetValue.mapId": - panic(fmt.Errorf("field mapId of message maps.MsgSetValue is not mutable")) - case "maps.MsgSetValue.key": - panic(fmt.Errorf("field key of message maps.MsgSetValue is not mutable")) - case "maps.MsgSetValue.value": - panic(fmt.Errorf("field value of message maps.MsgSetValue is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValue")) - } - panic(fmt.Errorf("message maps.MsgSetValue does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgSetValue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "maps.MsgSetValue.creator": - return protoreflect.ValueOfString("") - case "maps.MsgSetValue.mapId": - return protoreflect.ValueOfString("") - case "maps.MsgSetValue.key": - return protoreflect.ValueOfString("") - case "maps.MsgSetValue.value": - return protoreflect.ValueOfString("") - case "maps.MsgSetValue.options": - m := new(SetOptions) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValue")) - } - panic(fmt.Errorf("message maps.MsgSetValue does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgSetValue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgSetValue", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSetValue) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetValue) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgSetValue) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSetValue) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetValue) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Creator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.MapId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Key) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Value) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Options != nil { - l = options.Size(x.Options) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSetValue) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Options != nil { - encoded, err := options.Marshal(x.Options) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x2a - } - if len(x.Value) > 0 { - i -= len(x.Value) - copy(dAtA[i:], x.Value) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Value))) - i-- - dAtA[i] = 0x22 - } - if len(x.Key) > 0 { - i -= len(x.Key) - copy(dAtA[i:], x.Key) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Key))) - i-- - dAtA[i] = 0x1a - } - if len(x.MapId) > 0 { - i -= len(x.MapId) - copy(dAtA[i:], x.MapId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(x.Creator) > 0 { - i -= len(x.Creator) - copy(dAtA[i:], x.Creator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSetValue) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Options == nil { - x.Options = &SetOptions{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Options); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgSetValueResponse protoreflect.MessageDescriptor -) - -func init() { - file_maps_tx_proto_init() - md_MsgSetValueResponse = File_maps_tx_proto.Messages().ByName("MsgSetValueResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgSetValueResponse)(nil) - -type fastReflection_MsgSetValueResponse MsgSetValueResponse - -func (x *MsgSetValueResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSetValueResponse)(x) -} - -func (x *MsgSetValueResponse) slowProtoReflect() protoreflect.Message { - mi := &file_maps_tx_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_MsgSetValueResponse_messageType fastReflection_MsgSetValueResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSetValueResponse_messageType{} - -type fastReflection_MsgSetValueResponse_messageType struct{} - -func (x fastReflection_MsgSetValueResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSetValueResponse)(nil) -} -func (x fastReflection_MsgSetValueResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSetValueResponse) -} -func (x fastReflection_MsgSetValueResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetValueResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgSetValueResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSetValueResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgSetValueResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSetValueResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSetValueResponse) New() protoreflect.Message { - return new(fastReflection_MsgSetValueResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSetValueResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSetValueResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_MsgSetValueResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSetValueResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValueResponse")) - } - panic(fmt.Errorf("message maps.MsgSetValueResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetValueResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValueResponse")) - } - panic(fmt.Errorf("message maps.MsgSetValueResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSetValueResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValueResponse")) - } - panic(fmt.Errorf("message maps.MsgSetValueResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetValueResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValueResponse")) - } - panic(fmt.Errorf("message maps.MsgSetValueResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetValueResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValueResponse")) - } - panic(fmt.Errorf("message maps.MsgSetValueResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgSetValueResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: maps.MsgSetValueResponse")) - } - panic(fmt.Errorf("message maps.MsgSetValueResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgSetValueResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in maps.MsgSetValueResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSetValueResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSetValueResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_MsgSetValueResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSetValueResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSetValueResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSetValueResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSetValueResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetValueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSetValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: maps/tx.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MsgUpdateParams is the Msg/UpdateParams request type. -type MsgUpdateParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority is the address that controls the module (defaults to x/gov unless overwritten). - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params defines the module parameters to update. - // - // NOTE: All parameters must be supplied. - Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` -} - -func (x *MsgUpdateParams) Reset() { - *x = MsgUpdateParams{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParams) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. -func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgUpdateParams) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgUpdateParams) GetParams() *Params { - if x != nil { - return x.Params - } - return nil -} - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -type MsgUpdateParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateParamsResponse) Reset() { - *x = MsgUpdateParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateParamsResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{1} -} - -type MapCustomMsgType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SetValueMsg *MsgSetValue `protobuf:"bytes,1,opt,name=setValueMsg,proto3" json:"setValueMsg,omitempty"` - CreateMapMsg *MsgCreateMap `protobuf:"bytes,2,opt,name=createMapMsg,proto3" json:"createMapMsg,omitempty"` - UpdateMapMsg *MsgUpdateMap `protobuf:"bytes,3,opt,name=updateMapMsg,proto3" json:"updateMapMsg,omitempty"` - DeleteMapMsg *MsgDeleteMap `protobuf:"bytes,4,opt,name=deleteMapMsg,proto3" json:"deleteMapMsg,omitempty"` -} - -func (x *MapCustomMsgType) Reset() { - *x = MapCustomMsgType{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MapCustomMsgType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MapCustomMsgType) ProtoMessage() {} - -// Deprecated: Use MapCustomMsgType.ProtoReflect.Descriptor instead. -func (*MapCustomMsgType) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{2} -} - -func (x *MapCustomMsgType) GetSetValueMsg() *MsgSetValue { - if x != nil { - return x.SetValueMsg - } - return nil -} - -func (x *MapCustomMsgType) GetCreateMapMsg() *MsgCreateMap { - if x != nil { - return x.CreateMapMsg - } - return nil -} - -func (x *MapCustomMsgType) GetUpdateMapMsg() *MsgUpdateMap { - if x != nil { - return x.UpdateMapMsg - } - return nil -} - -func (x *MapCustomMsgType) GetDeleteMapMsg() *MsgDeleteMap { - if x != nil { - return x.DeleteMapMsg - } - return nil -} - -type ValueStore struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - LastSetBy string `protobuf:"bytes,3,opt,name=lastSetBy,proto3" json:"lastSetBy,omitempty"` -} - -func (x *ValueStore) Reset() { - *x = ValueStore{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValueStore) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValueStore) ProtoMessage() {} - -// Deprecated: Use ValueStore.ProtoReflect.Descriptor instead. -func (*ValueStore) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{3} -} - -func (x *ValueStore) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *ValueStore) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -func (x *ValueStore) GetLastSetBy() string { - if x != nil { - return x.LastSetBy - } - return "" -} - -type MapUpdateCriteria struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // All ID slots are only updatable by manager - ManagerOnly bool `protobuf:"varint,1,opt,name=managerOnly,proto3" json:"managerOnly,omitempty"` - // ID slots are only updatable by token ID owner of this collection (>1 balance at current time) - CollectionId string `protobuf:"bytes,2,opt,name=collectionId,proto3" json:"collectionId,omitempty"` - // Keys are address based and can only be updated by that respective address - CreatorOnly bool `protobuf:"varint,3,opt,name=creatorOnly,proto3" json:"creatorOnly,omitempty"` - // Claim slots. Can unclaim by setting to blank. Uses lastSetBy. - FirstComeFirstServe bool `protobuf:"varint,4,opt,name=firstComeFirstServe,proto3" json:"firstComeFirstServe,omitempty"` -} - -func (x *MapUpdateCriteria) Reset() { - *x = MapUpdateCriteria{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MapUpdateCriteria) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MapUpdateCriteria) ProtoMessage() {} - -// Deprecated: Use MapUpdateCriteria.ProtoReflect.Descriptor instead. -func (*MapUpdateCriteria) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MapUpdateCriteria) GetManagerOnly() bool { - if x != nil { - return x.ManagerOnly - } - return false -} - -func (x *MapUpdateCriteria) GetCollectionId() string { - if x != nil { - return x.CollectionId - } - return "" -} - -func (x *MapUpdateCriteria) GetCreatorOnly() bool { - if x != nil { - return x.CreatorOnly - } - return false -} - -func (x *MapUpdateCriteria) GetFirstComeFirstServe() bool { - if x != nil { - return x.FirstComeFirstServe - } - return false -} - -type ValueOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NoDuplicates bool `protobuf:"varint,1,opt,name=noDuplicates,proto3" json:"noDuplicates,omitempty"` - PermanentOnceSet bool `protobuf:"varint,2,opt,name=permanentOnceSet,proto3" json:"permanentOnceSet,omitempty"` - ExpectUint bool `protobuf:"varint,3,opt,name=expectUint,proto3" json:"expectUint,omitempty"` - ExpectBoolean bool `protobuf:"varint,4,opt,name=expectBoolean,proto3" json:"expectBoolean,omitempty"` - ExpectAddress bool `protobuf:"varint,5,opt,name=expectAddress,proto3" json:"expectAddress,omitempty"` - ExpectUri bool `protobuf:"varint,6,opt,name=expectUri,proto3" json:"expectUri,omitempty"` -} - -func (x *ValueOptions) Reset() { - *x = ValueOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValueOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValueOptions) ProtoMessage() {} - -// Deprecated: Use ValueOptions.ProtoReflect.Descriptor instead. -func (*ValueOptions) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{5} -} - -func (x *ValueOptions) GetNoDuplicates() bool { - if x != nil { - return x.NoDuplicates - } - return false -} - -func (x *ValueOptions) GetPermanentOnceSet() bool { - if x != nil { - return x.PermanentOnceSet - } - return false -} - -func (x *ValueOptions) GetExpectUint() bool { - if x != nil { - return x.ExpectUint - } - return false -} - -func (x *ValueOptions) GetExpectBoolean() bool { - if x != nil { - return x.ExpectBoolean - } - return false -} - -func (x *ValueOptions) GetExpectAddress() bool { - if x != nil { - return x.ExpectAddress - } - return false -} - -func (x *ValueOptions) GetExpectUri() bool { - if x != nil { - return x.ExpectUri - } - return false -} - -type MapPermissions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CanUpdateMetadata []*TimedUpdatePermission `protobuf:"bytes,1,rep,name=canUpdateMetadata,proto3" json:"canUpdateMetadata,omitempty"` - CanUpdateManager []*TimedUpdatePermission `protobuf:"bytes,2,rep,name=canUpdateManager,proto3" json:"canUpdateManager,omitempty"` - CanDeleteMap []*ActionPermission `protobuf:"bytes,3,rep,name=canDeleteMap,proto3" json:"canDeleteMap,omitempty"` -} - -func (x *MapPermissions) Reset() { - *x = MapPermissions{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MapPermissions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MapPermissions) ProtoMessage() {} - -// Deprecated: Use MapPermissions.ProtoReflect.Descriptor instead. -func (*MapPermissions) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{6} -} - -func (x *MapPermissions) GetCanUpdateMetadata() []*TimedUpdatePermission { - if x != nil { - return x.CanUpdateMetadata - } - return nil -} - -func (x *MapPermissions) GetCanUpdateManager() []*TimedUpdatePermission { - if x != nil { - return x.CanUpdateManager - } - return nil -} - -func (x *MapPermissions) GetCanDeleteMap() []*ActionPermission { - if x != nil { - return x.CanDeleteMap - } - return nil -} - -type Map struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` - InheritManagerTimelineFrom string `protobuf:"bytes,3,opt,name=inheritManagerTimelineFrom,proto3" json:"inheritManagerTimelineFrom,omitempty"` - ManagerTimeline []*ManagerTimeline `protobuf:"bytes,4,rep,name=managerTimeline,proto3" json:"managerTimeline,omitempty"` - // config options that will not change at all - UpdateCriteria *MapUpdateCriteria `protobuf:"bytes,5,opt,name=updateCriteria,proto3" json:"updateCriteria,omitempty"` - ValueOptions *ValueOptions `protobuf:"bytes,6,opt,name=valueOptions,proto3" json:"valueOptions,omitempty"` - DefaultValue string `protobuf:"bytes,7,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` - MetadataTimeline []*MapMetadataTimeline `protobuf:"bytes,10,rep,name=metadataTimeline,proto3" json:"metadataTimeline,omitempty"` - Permissions *MapPermissions `protobuf:"bytes,11,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *Map) Reset() { - *x = Map{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Map) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Map) ProtoMessage() {} - -// Deprecated: Use Map.ProtoReflect.Descriptor instead. -func (*Map) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{7} -} - -func (x *Map) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *Map) GetMapId() string { - if x != nil { - return x.MapId - } - return "" -} - -func (x *Map) GetInheritManagerTimelineFrom() string { - if x != nil { - return x.InheritManagerTimelineFrom - } - return "" -} - -func (x *Map) GetManagerTimeline() []*ManagerTimeline { - if x != nil { - return x.ManagerTimeline - } - return nil -} - -func (x *Map) GetUpdateCriteria() *MapUpdateCriteria { - if x != nil { - return x.UpdateCriteria - } - return nil -} - -func (x *Map) GetValueOptions() *ValueOptions { - if x != nil { - return x.ValueOptions - } - return nil -} - -func (x *Map) GetDefaultValue() string { - if x != nil { - return x.DefaultValue - } - return "" -} - -func (x *Map) GetMetadataTimeline() []*MapMetadataTimeline { - if x != nil { - return x.MetadataTimeline - } - return nil -} - -func (x *Map) GetPermissions() *MapPermissions { - if x != nil { - return x.Permissions - } - return nil -} - -type MsgCreateMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` - InheritManagerTimelineFrom string `protobuf:"bytes,3,opt,name=inheritManagerTimelineFrom,proto3" json:"inheritManagerTimelineFrom,omitempty"` - ManagerTimeline []*ManagerTimeline `protobuf:"bytes,4,rep,name=managerTimeline,proto3" json:"managerTimeline,omitempty"` - // config options that will not change at all - UpdateCriteria *MapUpdateCriteria `protobuf:"bytes,5,opt,name=updateCriteria,proto3" json:"updateCriteria,omitempty"` - ValueOptions *ValueOptions `protobuf:"bytes,6,opt,name=valueOptions,proto3" json:"valueOptions,omitempty"` - DefaultValue string `protobuf:"bytes,7,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` - MetadataTimeline []*MapMetadataTimeline `protobuf:"bytes,9,rep,name=metadataTimeline,proto3" json:"metadataTimeline,omitempty"` - Permissions *MapPermissions `protobuf:"bytes,10,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *MsgCreateMap) Reset() { - *x = MsgCreateMap{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCreateMap) ProtoMessage() {} - -// Deprecated: Use MsgCreateMap.ProtoReflect.Descriptor instead. -func (*MsgCreateMap) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{8} -} - -func (x *MsgCreateMap) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgCreateMap) GetMapId() string { - if x != nil { - return x.MapId - } - return "" -} - -func (x *MsgCreateMap) GetInheritManagerTimelineFrom() string { - if x != nil { - return x.InheritManagerTimelineFrom - } - return "" -} - -func (x *MsgCreateMap) GetManagerTimeline() []*ManagerTimeline { - if x != nil { - return x.ManagerTimeline - } - return nil -} - -func (x *MsgCreateMap) GetUpdateCriteria() *MapUpdateCriteria { - if x != nil { - return x.UpdateCriteria - } - return nil -} - -func (x *MsgCreateMap) GetValueOptions() *ValueOptions { - if x != nil { - return x.ValueOptions - } - return nil -} - -func (x *MsgCreateMap) GetDefaultValue() string { - if x != nil { - return x.DefaultValue - } - return "" -} - -func (x *MsgCreateMap) GetMetadataTimeline() []*MapMetadataTimeline { - if x != nil { - return x.MetadataTimeline - } - return nil -} - -func (x *MsgCreateMap) GetPermissions() *MapPermissions { - if x != nil { - return x.Permissions - } - return nil -} - -type MsgCreateMapResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgCreateMapResponse) Reset() { - *x = MsgCreateMapResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgCreateMapResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgCreateMapResponse) ProtoMessage() {} - -// Deprecated: Use MsgCreateMapResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateMapResponse) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{9} -} - -type MsgUpdateMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` - UpdateManagerTimeline bool `protobuf:"varint,3,opt,name=updateManagerTimeline,proto3" json:"updateManagerTimeline,omitempty"` - ManagerTimeline []*ManagerTimeline `protobuf:"bytes,4,rep,name=managerTimeline,proto3" json:"managerTimeline,omitempty"` - UpdateMetadataTimeline bool `protobuf:"varint,7,opt,name=updateMetadataTimeline,proto3" json:"updateMetadataTimeline,omitempty"` - MetadataTimeline []*MapMetadataTimeline `protobuf:"bytes,8,rep,name=metadataTimeline,proto3" json:"metadataTimeline,omitempty"` - UpdatePermissions bool `protobuf:"varint,9,opt,name=updatePermissions,proto3" json:"updatePermissions,omitempty"` - Permissions *MapPermissions `protobuf:"bytes,10,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *MsgUpdateMap) Reset() { - *x = MsgUpdateMap{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateMap) ProtoMessage() {} - -// Deprecated: Use MsgUpdateMap.ProtoReflect.Descriptor instead. -func (*MsgUpdateMap) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{10} -} - -func (x *MsgUpdateMap) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgUpdateMap) GetMapId() string { - if x != nil { - return x.MapId - } - return "" -} - -func (x *MsgUpdateMap) GetUpdateManagerTimeline() bool { - if x != nil { - return x.UpdateManagerTimeline - } - return false -} - -func (x *MsgUpdateMap) GetManagerTimeline() []*ManagerTimeline { - if x != nil { - return x.ManagerTimeline - } - return nil -} - -func (x *MsgUpdateMap) GetUpdateMetadataTimeline() bool { - if x != nil { - return x.UpdateMetadataTimeline - } - return false -} - -func (x *MsgUpdateMap) GetMetadataTimeline() []*MapMetadataTimeline { - if x != nil { - return x.MetadataTimeline - } - return nil -} - -func (x *MsgUpdateMap) GetUpdatePermissions() bool { - if x != nil { - return x.UpdatePermissions - } - return false -} - -func (x *MsgUpdateMap) GetPermissions() *MapPermissions { - if x != nil { - return x.Permissions - } - return nil -} - -type MsgUpdateMapResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateMapResponse) Reset() { - *x = MsgUpdateMapResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateMapResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateMapResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateMapResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateMapResponse) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{11} -} - -type MsgDeleteMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` -} - -func (x *MsgDeleteMap) Reset() { - *x = MsgDeleteMap{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgDeleteMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgDeleteMap) ProtoMessage() {} - -// Deprecated: Use MsgDeleteMap.ProtoReflect.Descriptor instead. -func (*MsgDeleteMap) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{12} -} - -func (x *MsgDeleteMap) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgDeleteMap) GetMapId() string { - if x != nil { - return x.MapId - } - return "" -} - -type MsgDeleteMapResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgDeleteMapResponse) Reset() { - *x = MsgDeleteMapResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgDeleteMapResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgDeleteMapResponse) ProtoMessage() {} - -// Deprecated: Use MsgDeleteMapResponse.ProtoReflect.Descriptor instead. -func (*MsgDeleteMapResponse) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{13} -} - -type SetOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UseMostRecentCollectionId bool `protobuf:"varint,1,opt,name=useMostRecentCollectionId,proto3" json:"useMostRecentCollectionId,omitempty"` -} - -func (x *SetOptions) Reset() { - *x = SetOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetOptions) ProtoMessage() {} - -// Deprecated: Use SetOptions.ProtoReflect.Descriptor instead. -func (*SetOptions) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{14} -} - -func (x *SetOptions) GetUseMostRecentCollectionId() bool { - if x != nil { - return x.UseMostRecentCollectionId - } - return false -} - -type MsgSetValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` - Options *SetOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` -} - -func (x *MsgSetValue) Reset() { - *x = MsgSetValue{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetValue) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetValue) ProtoMessage() {} - -// Deprecated: Use MsgSetValue.ProtoReflect.Descriptor instead. -func (*MsgSetValue) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{15} -} - -func (x *MsgSetValue) GetCreator() string { - if x != nil { - return x.Creator - } - return "" -} - -func (x *MsgSetValue) GetMapId() string { - if x != nil { - return x.MapId - } - return "" -} - -func (x *MsgSetValue) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *MsgSetValue) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -func (x *MsgSetValue) GetOptions() *SetOptions { - if x != nil { - return x.Options - } - return nil -} - -type MsgSetValueResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgSetValueResponse) Reset() { - *x = MsgSetValueResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_maps_tx_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSetValueResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgSetValueResponse) ProtoMessage() {} - -// Deprecated: Use MsgSetValueResponse.ProtoReflect.Descriptor instead. -func (*MsgSetValueResponse) Descriptor() ([]byte, []int) { - return file_maps_tx_proto_rawDescGZIP(), []int{16} -} - -var File_maps_tx_proto protoreflect.FileDescriptor - -var file_maps_tx_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x04, 0x6d, 0x61, 0x70, 0x73, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, - 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, - 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x16, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x6d, 0x61, 0x70, 0x73, - 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x13, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x12, 0x2f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x27, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x14, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, - 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xef, 0x01, 0x0a, 0x10, 0x4d, 0x61, - 0x70, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x33, - 0x0a, 0x0b, 0x73, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4d, 0x73, 0x67, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, - 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x73, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x4d, 0x73, 0x67, 0x12, 0x36, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, - 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x61, 0x70, 0x73, - 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x0c, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x4d, 0x73, 0x67, 0x12, 0x36, 0x0a, 0x0c, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, - 0x4d, 0x73, 0x67, 0x12, 0x36, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, - 0x4d, 0x73, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x61, 0x70, 0x73, - 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x0c, 0x64, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x4d, 0x73, 0x67, 0x22, 0x52, 0x0a, 0x0a, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x74, 0x42, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x65, 0x74, 0x42, 0x79, 0x22, - 0xbb, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, - 0x74, 0x65, 0x72, 0x69, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x30, 0x0a, 0x0c, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xc8, - 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x04, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x0c, 0x63, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x30, 0x0a, 0x13, 0x66, - 0x69, 0x72, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x65, 0x46, 0x69, 0x72, 0x73, 0x74, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x66, 0x69, 0x72, 0x73, 0x74, 0x43, - 0x6f, 0x6d, 0x65, 0x46, 0x69, 0x72, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x22, 0xe8, 0x01, - 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x22, - 0x0a, 0x0c, 0x6e, 0x6f, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6e, 0x6f, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x70, 0x65, 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x4f, - 0x6e, 0x63, 0x65, 0x53, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x70, 0x65, - 0x72, 0x6d, 0x61, 0x6e, 0x65, 0x6e, 0x74, 0x4f, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x74, 0x12, 0x1e, - 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x12, 0x24, - 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x42, 0x6f, 0x6f, - 0x6c, 0x65, 0x61, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x78, 0x70, - 0x65, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, - 0x70, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, - 0x78, 0x70, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x22, 0xe0, 0x01, 0x0a, 0x0e, 0x4d, 0x61, 0x70, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x49, 0x0a, 0x11, 0x63, - 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x64, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x63, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x47, 0x0a, 0x10, 0x63, 0x61, 0x6e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x63, - 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, - 0x3a, 0x0a, 0x0c, 0x63, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x63, - 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x22, 0xe0, 0x03, 0x0a, 0x03, - 0x4d, 0x61, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, - 0x70, 0x49, 0x64, 0x12, 0x4c, 0x0a, 0x1a, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x46, 0x72, 0x6f, - 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, - 0x04, 0x55, 0x69, 0x6e, 0x74, 0x52, 0x1a, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x46, 0x72, 0x6f, - 0x6d, 0x12, 0x3f, 0x0a, 0x0f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, - 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x61, 0x70, - 0x73, 0x2e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, - 0x65, 0x52, 0x0f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, - 0x6e, 0x65, 0x12, 0x3f, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, - 0x65, 0x72, 0x69, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x70, - 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, - 0x72, 0x69, 0x61, 0x52, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, - 0x72, 0x69, 0x61, 0x12, 0x36, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x61, 0x70, 0x73, - 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0c, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x45, 0x0a, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x6c, - 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x61, 0x70, 0x73, - 0x2e, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x69, 0x6d, 0x65, - 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x69, - 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x61, - 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x8a, - 0x04, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x70, - 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x12, - 0x4c, 0x0a, 0x1a, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x0c, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x04, 0x55, 0x69, 0x6e, - 0x74, 0x52, 0x1a, 0x69, 0x6e, 0x68, 0x65, 0x72, 0x69, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x3f, 0x0a, - 0x0f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x0f, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x3f, - 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, - 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x52, - 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x12, - 0x36, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, - 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, - 0x52, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, - 0x6e, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, - 0x61, 0x70, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x1f, 0x82, 0xe7, 0xb0, 0x2a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x0e, 0x6d, 0x61, 0x70, - 0x73, 0x2f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x22, 0x16, 0x0a, 0x14, 0x4d, - 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xbb, 0x03, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x4d, 0x61, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, - 0x0a, 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, - 0x61, 0x70, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x3f, 0x0a, 0x0f, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x0f, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x69, 0x6d, - 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x6c, - 0x69, 0x6e, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x54, - 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x54, 0x69, 0x6d, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x36, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x61, 0x70, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x3a, 0x1f, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x8a, 0xe7, - 0xb0, 0x2a, 0x0e, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, - 0x70, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, - 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x0a, 0x0c, 0x4d, 0x73, 0x67, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x3a, 0x1f, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x0e, 0x6d, 0x61, 0x70, 0x73, - 0x2f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, - 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x4a, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x3c, 0x0a, 0x19, 0x75, 0x73, 0x65, 0x4d, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, 0x6e, - 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x19, 0x75, 0x73, 0x65, 0x4d, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x63, 0x65, - 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xb1, - 0x01, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x70, 0x49, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x70, 0x49, 0x64, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2a, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x53, - 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x3a, 0x1e, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x8a, 0xe7, 0xb0, 0x2a, 0x0d, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc3, 0x02, 0x0a, 0x03, 0x4d, 0x73, - 0x67, 0x12, 0x44, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x15, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x1d, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, - 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x4d, 0x61, 0x70, 0x12, 0x12, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x1a, 0x1a, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, - 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, - 0x70, 0x12, 0x12, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4d, 0x61, 0x70, 0x1a, 0x1a, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x12, 0x12, - 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, - 0x61, 0x70, 0x1a, 0x1a, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, - 0x0a, 0x08, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x11, 0x2e, 0x6d, 0x61, 0x70, - 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x19, 0x2e, - 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, - 0x5c, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x42, 0x07, 0x54, 0x78, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x17, 0x62, 0x69, 0x74, 0x62, 0x61, 0x64, 0x67, 0x65, - 0x73, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0xa2, - 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0xca, 0x02, 0x04, 0x4d, - 0x61, 0x70, 0x73, 0xe2, 0x02, 0x10, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_maps_tx_proto_rawDescOnce sync.Once - file_maps_tx_proto_rawDescData = file_maps_tx_proto_rawDesc -) - -func file_maps_tx_proto_rawDescGZIP() []byte { - file_maps_tx_proto_rawDescOnce.Do(func() { - file_maps_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_maps_tx_proto_rawDescData) - }) - return file_maps_tx_proto_rawDescData -} - -var file_maps_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_maps_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: maps.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: maps.MsgUpdateParamsResponse - (*MapCustomMsgType)(nil), // 2: maps.MapCustomMsgType - (*ValueStore)(nil), // 3: maps.ValueStore - (*MapUpdateCriteria)(nil), // 4: maps.MapUpdateCriteria - (*ValueOptions)(nil), // 5: maps.ValueOptions - (*MapPermissions)(nil), // 6: maps.MapPermissions - (*Map)(nil), // 7: maps.Map - (*MsgCreateMap)(nil), // 8: maps.MsgCreateMap - (*MsgCreateMapResponse)(nil), // 9: maps.MsgCreateMapResponse - (*MsgUpdateMap)(nil), // 10: maps.MsgUpdateMap - (*MsgUpdateMapResponse)(nil), // 11: maps.MsgUpdateMapResponse - (*MsgDeleteMap)(nil), // 12: maps.MsgDeleteMap - (*MsgDeleteMapResponse)(nil), // 13: maps.MsgDeleteMapResponse - (*SetOptions)(nil), // 14: maps.SetOptions - (*MsgSetValue)(nil), // 15: maps.MsgSetValue - (*MsgSetValueResponse)(nil), // 16: maps.MsgSetValueResponse - (*Params)(nil), // 17: maps.Params - (*TimedUpdatePermission)(nil), // 18: maps.TimedUpdatePermission - (*ActionPermission)(nil), // 19: maps.ActionPermission - (*ManagerTimeline)(nil), // 20: maps.ManagerTimeline - (*MapMetadataTimeline)(nil), // 21: maps.MapMetadataTimeline -} -var file_maps_tx_proto_depIdxs = []int32{ - 17, // 0: maps.MsgUpdateParams.params:type_name -> maps.Params - 15, // 1: maps.MapCustomMsgType.setValueMsg:type_name -> maps.MsgSetValue - 8, // 2: maps.MapCustomMsgType.createMapMsg:type_name -> maps.MsgCreateMap - 10, // 3: maps.MapCustomMsgType.updateMapMsg:type_name -> maps.MsgUpdateMap - 12, // 4: maps.MapCustomMsgType.deleteMapMsg:type_name -> maps.MsgDeleteMap - 18, // 5: maps.MapPermissions.canUpdateMetadata:type_name -> maps.TimedUpdatePermission - 18, // 6: maps.MapPermissions.canUpdateManager:type_name -> maps.TimedUpdatePermission - 19, // 7: maps.MapPermissions.canDeleteMap:type_name -> maps.ActionPermission - 20, // 8: maps.Map.managerTimeline:type_name -> maps.ManagerTimeline - 4, // 9: maps.Map.updateCriteria:type_name -> maps.MapUpdateCriteria - 5, // 10: maps.Map.valueOptions:type_name -> maps.ValueOptions - 21, // 11: maps.Map.metadataTimeline:type_name -> maps.MapMetadataTimeline - 6, // 12: maps.Map.permissions:type_name -> maps.MapPermissions - 20, // 13: maps.MsgCreateMap.managerTimeline:type_name -> maps.ManagerTimeline - 4, // 14: maps.MsgCreateMap.updateCriteria:type_name -> maps.MapUpdateCriteria - 5, // 15: maps.MsgCreateMap.valueOptions:type_name -> maps.ValueOptions - 21, // 16: maps.MsgCreateMap.metadataTimeline:type_name -> maps.MapMetadataTimeline - 6, // 17: maps.MsgCreateMap.permissions:type_name -> maps.MapPermissions - 20, // 18: maps.MsgUpdateMap.managerTimeline:type_name -> maps.ManagerTimeline - 21, // 19: maps.MsgUpdateMap.metadataTimeline:type_name -> maps.MapMetadataTimeline - 6, // 20: maps.MsgUpdateMap.permissions:type_name -> maps.MapPermissions - 14, // 21: maps.MsgSetValue.options:type_name -> maps.SetOptions - 0, // 22: maps.Msg.UpdateParams:input_type -> maps.MsgUpdateParams - 8, // 23: maps.Msg.CreateMap:input_type -> maps.MsgCreateMap - 10, // 24: maps.Msg.UpdateMap:input_type -> maps.MsgUpdateMap - 12, // 25: maps.Msg.DeleteMap:input_type -> maps.MsgDeleteMap - 15, // 26: maps.Msg.SetValue:input_type -> maps.MsgSetValue - 1, // 27: maps.Msg.UpdateParams:output_type -> maps.MsgUpdateParamsResponse - 9, // 28: maps.Msg.CreateMap:output_type -> maps.MsgCreateMapResponse - 11, // 29: maps.Msg.UpdateMap:output_type -> maps.MsgUpdateMapResponse - 13, // 30: maps.Msg.DeleteMap:output_type -> maps.MsgDeleteMapResponse - 16, // 31: maps.Msg.SetValue:output_type -> maps.MsgSetValueResponse - 27, // [27:32] is the sub-list for method output_type - 22, // [22:27] is the sub-list for method input_type - 22, // [22:22] is the sub-list for extension type_name - 22, // [22:22] is the sub-list for extension extendee - 0, // [0:22] is the sub-list for field type_name -} - -func init() { file_maps_tx_proto_init() } -func file_maps_tx_proto_init() { - if File_maps_tx_proto != nil { - return - } - file_maps_permissions_proto_init() - file_maps_timelines_proto_init() - file_maps_balances_proto_init() - file_maps_params_proto_init() - if !protoimpl.UnsafeEnabled { - file_maps_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateParamsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MapCustomMsgType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValueStore); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MapUpdateCriteria); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValueOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MapPermissions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Map); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateMapResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateMapResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDeleteMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDeleteMapResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_maps_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSetValueResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_maps_tx_proto_rawDesc, - NumEnums: 0, - NumMessages: 17, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_maps_tx_proto_goTypes, - DependencyIndexes: file_maps_tx_proto_depIdxs, - MessageInfos: file_maps_tx_proto_msgTypes, - }.Build() - File_maps_tx_proto = out.File - file_maps_tx_proto_rawDesc = nil - file_maps_tx_proto_goTypes = nil - file_maps_tx_proto_depIdxs = nil -} diff --git a/api/maps/tx_grpc.pb.go b/api/maps/tx_grpc.pb.go deleted file mode 100644 index 2dde78e1..00000000 --- a/api/maps/tx_grpc.pb.go +++ /dev/null @@ -1,277 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc (unknown) -// source: maps/tx.proto - -package maps - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Msg_UpdateParams_FullMethodName = "/maps.Msg/UpdateParams" - Msg_CreateMap_FullMethodName = "/maps.Msg/CreateMap" - Msg_UpdateMap_FullMethodName = "/maps.Msg/UpdateMap" - Msg_DeleteMap_FullMethodName = "/maps.Msg/DeleteMap" - Msg_SetValue_FullMethodName = "/maps.Msg/SetValue" -) - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -// -// Msg defines the Msg service. -type MsgClient interface { - UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - CreateMap(ctx context.Context, in *MsgCreateMap, opts ...grpc.CallOption) (*MsgCreateMapResponse, error) - UpdateMap(ctx context.Context, in *MsgUpdateMap, opts ...grpc.CallOption) (*MsgUpdateMapResponse, error) - DeleteMap(ctx context.Context, in *MsgDeleteMap, opts ...grpc.CallOption) (*MsgDeleteMapResponse, error) - SetValue(ctx context.Context, in *MsgSetValue, opts ...grpc.CallOption) (*MsgSetValueResponse, error) -} - -type msgClient struct { - cc grpc.ClientConnInterface -} - -func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CreateMap(ctx context.Context, in *MsgCreateMap, opts ...grpc.CallOption) (*MsgCreateMapResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgCreateMapResponse) - err := c.cc.Invoke(ctx, Msg_CreateMap_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateMap(ctx context.Context, in *MsgUpdateMap, opts ...grpc.CallOption) (*MsgUpdateMapResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgUpdateMapResponse) - err := c.cc.Invoke(ctx, Msg_UpdateMap_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) DeleteMap(ctx context.Context, in *MsgDeleteMap, opts ...grpc.CallOption) (*MsgDeleteMapResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgDeleteMapResponse) - err := c.cc.Invoke(ctx, Msg_DeleteMap_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetValue(ctx context.Context, in *MsgSetValue, opts ...grpc.CallOption) (*MsgSetValueResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgSetValueResponse) - err := c.cc.Invoke(ctx, Msg_SetValue_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -// All implementations must embed UnimplementedMsgServer -// for forward compatibility. -// -// Msg defines the Msg service. -type MsgServer interface { - UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - CreateMap(context.Context, *MsgCreateMap) (*MsgCreateMapResponse, error) - UpdateMap(context.Context, *MsgUpdateMap) (*MsgUpdateMapResponse, error) - DeleteMap(context.Context, *MsgDeleteMap) (*MsgDeleteMapResponse, error) - SetValue(context.Context, *MsgSetValue) (*MsgSetValueResponse, error) - mustEmbedUnimplementedMsgServer() -} - -// UnimplementedMsgServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedMsgServer struct{} - -func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") -} -func (UnimplementedMsgServer) CreateMap(context.Context, *MsgCreateMap) (*MsgCreateMapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateMap not implemented") -} -func (UnimplementedMsgServer) UpdateMap(context.Context, *MsgUpdateMap) (*MsgUpdateMapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateMap not implemented") -} -func (UnimplementedMsgServer) DeleteMap(context.Context, *MsgDeleteMap) (*MsgDeleteMapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteMap not implemented") -} -func (UnimplementedMsgServer) SetValue(context.Context, *MsgSetValue) (*MsgSetValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetValue not implemented") -} -func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} -func (UnimplementedMsgServer) testEmbeddedByValue() {} - -// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MsgServer will -// result in compilation errors. -type UnsafeMsgServer interface { - mustEmbedUnimplementedMsgServer() -} - -func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { - // If the following call pancis, it indicates UnimplementedMsgServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } - s.RegisterService(&Msg_ServiceDesc, srv) -} - -func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateParams_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CreateMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateMap) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CreateMap(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_CreateMap_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateMap(ctx, req.(*MsgCreateMap)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateMap) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateMap(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateMap_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateMap(ctx, req.(*MsgUpdateMap)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_DeleteMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDeleteMap) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).DeleteMap(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_DeleteMap_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).DeleteMap(ctx, req.(*MsgDeleteMap)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetValue) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetValue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_SetValue_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetValue(ctx, req.(*MsgSetValue)) - } - return interceptor(ctx, in, info, handler) -} - -// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "maps.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateParams", - Handler: _Msg_UpdateParams_Handler, - }, - { - MethodName: "CreateMap", - Handler: _Msg_CreateMap_Handler, - }, - { - MethodName: "UpdateMap", - Handler: _Msg_UpdateMap_Handler, - }, - { - MethodName: "DeleteMap", - Handler: _Msg_DeleteMap_Handler, - }, - { - MethodName: "SetValue", - Handler: _Msg_SetValue_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "maps/tx.proto", -} diff --git a/app/app.go b/app/app.go index 7e2258b7..1db4ca5a 100644 --- a/app/app.go +++ b/app/app.go @@ -91,12 +91,10 @@ import ( evmtypes "github.com/cosmos/evm/x/vm/types" "github.com/ethereum/go-ethereum/common" - anchormodulekeeper "github.com/bitbadges/bitbadgeschain/x/anchor/keeper" "github.com/bitbadges/bitbadgeschain/x/poolmanager" sendmanagermodulekeeper "github.com/bitbadges/bitbadgeschain/x/sendmanager/keeper" managersplittermodulekeeper "github.com/bitbadges/bitbadgeschain/x/managersplitter/keeper" - mapsmodulekeeper "github.com/bitbadges/bitbadgeschain/x/maps/keeper" approvalcriteria "github.com/bitbadges/bitbadgeschain/x/tokenization/approval_criteria" tokenizationmodulekeeper "github.com/bitbadges/bitbadgeschain/x/tokenization/keeper" "github.com/bitbadges/bitbadgeschain/x/tokenization/types" @@ -168,9 +166,7 @@ type App struct { // IBC Rate Limit IBCRateLimitKeeper ibcratelimitkeeper.Keeper - AnchorKeeper anchormodulekeeper.Keeper TokenizationKeeper *tokenizationmodulekeeper.Keeper - MapsKeeper mapsmodulekeeper.Keeper ManagerSplitterKeeper managersplittermodulekeeper.Keeper GammKeeper gammkeeper.Keeper @@ -296,9 +292,7 @@ func New( &app.FeeGrantKeeper, &app.GroupKeeper, &app.CircuitBreakerKeeper, - &app.AnchorKeeper, &app.TokenizationKeeper, - &app.MapsKeeper, &app.ManagerSplitterKeeper, &app.SendmanagerKeeper, diff --git a/app/app_config.go b/app/app_config.go index 08fae251..6cd514d0 100644 --- a/app/app_config.go +++ b/app/app_config.go @@ -3,9 +3,6 @@ package app import ( "time" - anchormodulev1 "github.com/bitbadges/bitbadgeschain/api/anchor/module" - _ "github.com/bitbadges/bitbadgeschain/x/anchor/module" // import for side-effects - anchormoduletypes "github.com/bitbadges/bitbadgeschain/x/anchor/types" gammtypes "github.com/bitbadges/bitbadgeschain/x/gamm/types" poolmanagertypes "github.com/bitbadges/bitbadgeschain/x/poolmanager/types" _ "github.com/bitbadges/bitbadgeschain/x/sendmanager/module" @@ -61,10 +58,6 @@ import ( _ "github.com/bitbadges/bitbadgeschain/x/tokenization/module" // import for side-effects tokenizationmoduletypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" - mapsmodulev1 "github.com/bitbadges/bitbadgeschain/api/maps/module" - _ "github.com/bitbadges/bitbadgeschain/x/maps/module" // import for side-effects - mapsmoduletypes "github.com/bitbadges/bitbadgeschain/x/maps/types" - managersplittermodulev1 "github.com/bitbadges/bitbadgeschain/api/managersplitter/module" _ "github.com/bitbadges/bitbadgeschain/x/managersplitter/module" // import for side-effects managersplittermoduletypes "github.com/bitbadges/bitbadgeschain/x/managersplitter/types" @@ -113,9 +106,7 @@ var ( consensustypes.ModuleName, circuittypes.ModuleName, // chain modules - anchormoduletypes.ModuleName, tokenizationmoduletypes.ModuleName, - mapsmoduletypes.ModuleName, managersplittermoduletypes.ModuleName, packetforwardtypes.ModuleName, gammtypes.ModuleName, @@ -147,9 +138,7 @@ var ( icatypes.ModuleName, ibcratelimittypes.ModuleName, // chain modules - anchormoduletypes.ModuleName, tokenizationmoduletypes.ModuleName, - mapsmoduletypes.ModuleName, managersplittermoduletypes.ModuleName, packetforwardtypes.ModuleName, gammtypes.ModuleName, @@ -176,9 +165,7 @@ var ( icatypes.ModuleName, ibcratelimittypes.ModuleName, // chain modules - anchormoduletypes.ModuleName, tokenizationmoduletypes.ModuleName, - mapsmoduletypes.ModuleName, managersplittermoduletypes.ModuleName, packetforwardtypes.ModuleName, gammtypes.ModuleName, @@ -346,18 +333,10 @@ var ( Name: circuittypes.ModuleName, Config: appconfig.WrapAny(&circuitmodulev1.Module{}), }, - { - Name: anchormoduletypes.ModuleName, - Config: appconfig.WrapAny(&anchormodulev1.Module{}), - }, { Name: tokenizationmoduletypes.ModuleName, Config: appconfig.WrapAny(&tokenizationmodulev1.Module{}), }, - { - Name: mapsmoduletypes.ModuleName, - Config: appconfig.WrapAny(&mapsmodulev1.Module{}), - }, { Name: managersplittermoduletypes.ModuleName, Config: appconfig.WrapAny(&managersplittermodulev1.Module{}), diff --git a/app/ibc.go b/app/ibc.go index 7ae41d18..b36e15b6 100644 --- a/app/ibc.go +++ b/app/ibc.go @@ -34,10 +34,6 @@ import ( ibctm "github.com/cosmos/ibc-go/v10/modules/light-clients/07-tendermint" // this line is used by starport scaffolding # ibc/app/import - anchormodule "github.com/bitbadges/bitbadgeschain/x/anchor/module" - anchormoduletypes "github.com/bitbadges/bitbadgeschain/x/anchor/types" - mapsmodule "github.com/bitbadges/bitbadgeschain/x/maps/module" - mapsmoduletypes "github.com/bitbadges/bitbadgeschain/x/maps/types" tokenizationmoduletypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" tokenizationkeeper "github.com/bitbadges/bitbadgeschain/x/tokenization/keeper" @@ -67,8 +63,10 @@ type CombinedIBCHooks struct { // Implement hook interfaces by delegating to the appropriate hook var ( - _ ibchooks.OnRecvPacketOverrideHooks = &CombinedIBCHooks{} - _ ibchooks.SendPacketOverrideHooks = &CombinedIBCHooks{} + _ ibchooks.OnRecvPacketOverrideHooks = &CombinedIBCHooks{} + _ ibchooks.SendPacketOverrideHooks = &CombinedIBCHooks{} + _ ibchooks.OnAcknowledgementPacketOverrideHooks = &CombinedIBCHooks{} + _ ibchooks.OnTimeoutPacketOverrideHooks = &CombinedIBCHooks{} ) func (h *CombinedIBCHooks) OnRecvPacketOverride(im ibchooks.IBCMiddleware, ctx sdk.Context, channelID string, packet channeltypes.Packet, relayer sdk.AccAddress) ibcexported.Acknowledgement { @@ -104,6 +102,24 @@ func (h *CombinedIBCHooks) SendPacketOverride(i ibchooks.ICS4Middleware, ctx sdk return i.SendPacket(ctx, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, data) } +// OnAcknowledgementPacketOverride forwards to the rate-limit hook so that +// failed outbound transfers refund their quota. If no rate-limit hook is +// configured, fall through to the underlying app. +func (h *CombinedIBCHooks) OnAcknowledgementPacketOverride(im ibchooks.IBCMiddleware, ctx sdk.Context, channelID string, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { + if h.RateLimitOverrideHooks != nil { + return h.RateLimitOverrideHooks.OnAcknowledgementPacketOverride(im, ctx, channelID, packet, acknowledgement, relayer) + } + return im.App.OnAcknowledgementPacket(ctx, channelID, packet, acknowledgement, relayer) +} + +// OnTimeoutPacketOverride forwards to the rate-limit hook for quota refund on timeout. +func (h *CombinedIBCHooks) OnTimeoutPacketOverride(im ibchooks.IBCMiddleware, ctx sdk.Context, channelID string, packet channeltypes.Packet, relayer sdk.AccAddress) error { + if h.RateLimitOverrideHooks != nil { + return h.RateLimitOverrideHooks.OnTimeoutPacketOverride(im, ctx, channelID, packet, relayer) + } + return im.App.OnTimeoutPacket(ctx, channelID, packet, relayer) +} + // registerIBCModules register IBC keepers and non dependency inject modules. func (app *App) registerIBCModules(appOpts servertypes.AppOptions) error { // set up non depinject support modules store keys @@ -207,10 +223,6 @@ func (app *App) registerIBCModules(appOpts servertypes.AppOptions) error { AddRoute(icacontrollertypes.SubModuleName, icaControllerIBCModule). AddRoute(icahosttypes.SubModuleName, icaHostIBCModule) - anchorIBCModule := anchormodule.NewIBCModule(app.AnchorKeeper) - ibcRouter.AddRoute(anchormoduletypes.ModuleName, anchorIBCModule) - mapsIBCModule := mapsmodule.NewIBCModule(app.MapsKeeper) - ibcRouter.AddRoute(mapsmoduletypes.ModuleName, mapsIBCModule) tokenizationIBCModule := tokenizationmodule.NewIBCModule(app.TokenizationKeeper) ibcRouter.AddRoute(tokenizationmoduletypes.ModuleName, tokenizationIBCModule) diff --git a/app/upgrades.go b/app/upgrades.go index 75666d1a..d1b7f24b 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -3,14 +3,14 @@ package app import ( storetypes "cosmossdk.io/store/types" upgradetypes "cosmossdk.io/x/upgrade/types" - v29 "github.com/bitbadges/bitbadgeschain/app/upgrades/v29" + v30 "github.com/bitbadges/bitbadgeschain/app/upgrades/v30" ) // RegisterUpgradeHandlers registers all upgrade handlers func (app *App) RegisterUpgradeHandlers() { app.UpgradeKeeper.SetUpgradeHandler( - v29.UpgradeName, - v29.CreateUpgradeHandler( + v30.UpgradeName, + v30.CreateUpgradeHandler( app.ModuleManager, app.Configurator(), *app.TokenizationKeeper, @@ -34,10 +34,11 @@ func (app *App) RegisterUpgradeHandlers() { var storeUpgrades *storetypes.StoreUpgrades switch upgradeInfo.Name { - case v29.UpgradeName: + case v30.UpgradeName: storeUpgrades = &storetypes.StoreUpgrades{ Renamed: []storetypes.StoreRename{}, - Deleted: []string{}, + // v30: remove deprecated x/anchor and x/maps modules + Deleted: []string{"anchor", "maps"}, Added: []string{}, } } diff --git a/app/upgrades/v29/upgrades.go b/app/upgrades/v30/upgrades.go similarity index 97% rename from app/upgrades/v29/upgrades.go rename to app/upgrades/v30/upgrades.go index 953da57c..7a5a001f 100644 --- a/app/upgrades/v29/upgrades.go +++ b/app/upgrades/v30/upgrades.go @@ -1,4 +1,4 @@ -package v29 +package v30 import ( "context" @@ -13,7 +13,7 @@ import ( ) const ( - UpgradeName = "v29" + UpgradeName = "v30" ) // This is in a separate function so we can test it locally with a snapshot diff --git a/cmd/bitbadgeschaind/cmd/api_cmd.go b/cmd/bitbadgeschaind/cmd/api_cmd.go deleted file mode 100644 index 71914275..00000000 --- a/cmd/bitbadgeschaind/cmd/api_cmd.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" -) - -// ApiCmd returns a cobra command that delegates to the Node.js bitbadges-cli -// for API-related operations (fetching collections, balances, etc.). -// -// Examples: -// -// bitbadgeschaind api collection get 1 -// bitbadgeschaind api balance query bb1... 1 -func ApiCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "api [args...]", - Short: "BitBadges off-chain indexer API — collections, balances, claims, DEX (via bitbadges-cli)", - Long: `BitBadges off-chain indexer API client. Delegates to the bitbadges-cli Node.js tool. - -Queries the BitBadges indexer (not the on-chain node). Includes: collections, -balances, claims, plugins, DEX pools, asset pairs, dynamic stores, and 100+ routes. - -Requires: Node.js + bitbadges-cli (npm install -g bitbadgesjs-sdk) -Configure: BITBADGES_API_KEY env var or bitbadges-cli config set apiKey `, - DisableFlagParsing: true, // Pass all flags through to Node.js CLI - RunE: func(cmd *cobra.Command, args []string) error { - return execNodeCLI("api", args) - }, - } - return cmd -} diff --git a/cmd/bitbadgeschaind/cmd/cli_cmd.go b/cmd/bitbadgeschaind/cmd/cli_cmd.go new file mode 100644 index 00000000..0e46817b --- /dev/null +++ b/cmd/bitbadgeschaind/cmd/cli_cmd.go @@ -0,0 +1,61 @@ +package cmd + +import ( + "fmt" + "os" + + "github.com/spf13/cobra" +) + +// CliCmd returns the generic catch-all forwarder to the Node.js +// bitbadges-cli binary. Every top-level JS CLI subcommand is reachable +// through this one command — `bitbadgeschaind cli ` — without +// needing a dedicated Go file per alias. +// +// This is the canonical form going forward. The existing short aliases +// (sdk / api / builder) stay around for one release cycle for backwards +// compat but redirect through this same forwarder. +// +// Examples: +// +// bitbadgeschaind cli sdk review tx.json +// bitbadgeschaind cli api tokens get-collection 1 +// bitbadgeschaind cli builder templates vault --backing-coin USDC +// bitbadgeschaind cli builder create-with-burner --msg-file col.json --manager bb1... +// bitbadgeschaind cli config set apiKey +// +// Any future top-level subcommand added to bitbadges-cli is automatically +// reachable via `bitbadgeschaind cli ` — no Go changes required. +func CliCmd() *cobra.Command { + cmd := &cobra.Command{ + Use: "cli [subcommand] [args...]", + Short: "Forward any subcommand to the Node.js bitbadges-cli", + Long: `Generic forwarder for the Node.js bitbadges-cli binary. + +Usage: + bitbadgeschaind cli [args...] + +Where is any top-level bitbadges-cli subcommand: + sdk — SDK analysis, review, interpret, address tools, docs + api — 104+ indexer API routes from your terminal + builder — template builders, create-with-burner, burner wallets, + review/verify/simulate/doctor, session tools, builder tools + config — manage ~/.bitbadges/config.json (base URL, API keys per network) + +New top-level bitbadges-cli subcommands automatically reach here without +needing a Go alias — this wrapper is the single bridge between the chain +binary and the JS CLI going forward. + +Requires: Node.js + bitbadges-cli (npm install -g bitbadges)`, + DisableFlagParsing: true, // Pass all flags through to Node.js CLI + RunE: func(cmd *cobra.Command, args []string) error { + if len(args) == 0 { + fmt.Fprintln(os.Stderr, "Usage: bitbadgeschaind cli [args...]") + fmt.Fprintln(os.Stderr, "Run `bitbadgeschaind cli --help` for the list of subcommands.") + return nil + } + return execNodeCLI(args[0], args[1:]) + }, + } + return cmd +} diff --git a/cmd/bitbadgeschaind/cmd/commands.go b/cmd/bitbadgeschaind/cmd/commands.go index 2de8f83b..73267485 100644 --- a/cmd/bitbadgeschaind/cmd/commands.go +++ b/cmd/bitbadgeschaind/cmd/commands.go @@ -85,8 +85,7 @@ func initRootCmd( queryCommand(), txCommand(), bitbadgesclient.KeyCommands(app.DefaultNodeHome, false), // false = don't default to eth keys, but support them - SdkCmd(), - ApiCmd(), + CliCmd(), // canonical forwarder — `bitbadgeschaind cli [args...]` reaches every bitbadges-cli subcommand ) } diff --git a/cmd/bitbadgeschaind/cmd/node_cli.go b/cmd/bitbadgeschaind/cmd/node_cli.go index 39d566a0..2f59f46b 100644 --- a/cmd/bitbadgeschaind/cmd/node_cli.go +++ b/cmd/bitbadgeschaind/cmd/node_cli.go @@ -13,15 +13,15 @@ import ( func execNodeCLI(subcommand string, args []string) error { cliPath, useNpx := findNodeCLI() if cliPath == "" { - fmt.Fprintln(os.Stderr, "SDK CLI not available. Install with: npm install -g bitbadgesjs-sdk (provides bitbadges-cli command)") + fmt.Fprintln(os.Stderr, "SDK CLI not available. Install with: npm install -g bitbadges (provides bitbadges-cli command)") fmt.Fprintln(os.Stderr, "Or set BITBADGES_SDK_CLI_PATH environment variable.") return nil // Don't error - chain operations should still work } var fullArgs []string if useNpx { - // npx -p bitbadgesjs-sdk bitbadges-cli - fullArgs = append([]string{"-p", "bitbadgesjs-sdk", "bitbadges-cli", subcommand}, args...) + // npx -p bitbadges bitbadges-cli + fullArgs = append([]string{"-p", "bitbadges", "bitbadges-cli", subcommand}, args...) } else { // fullArgs = append([]string{subcommand}, args...) diff --git a/cmd/bitbadgeschaind/cmd/sdk_cmd.go b/cmd/bitbadgeschaind/cmd/sdk_cmd.go deleted file mode 100644 index 9d32aff0..00000000 --- a/cmd/bitbadgeschaind/cmd/sdk_cmd.go +++ /dev/null @@ -1,30 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" -) - -// SdkCmd returns a cobra command that delegates to the Node.js bitbadges-cli -// for SDK analysis and utility operations (review, interpret, address conversion, etc.). -// -// Examples: -// -// bitbadgeschaind sdk review tx.json -// bitbadgeschaind sdk address convert 0x... --to bb1 -func SdkCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "sdk [args...]", - Short: "BitBadges JS SDK — review, interpret, address tools, docs (via bitbadges-cli)", - Long: `BitBadges JavaScript SDK utilities. Delegates to the bitbadges-cli Node.js tool. - -Includes: collection/transaction review, interpret, address conversion, -alias generation, token lookup, builder skill docs, and more. - -Requires: Node.js + bitbadges-cli (npm install -g bitbadgesjs-sdk)`, - DisableFlagParsing: true, // Pass all flags through to Node.js CLI - RunE: func(cmd *cobra.Command, args []string) error { - return execNodeCLI("sdk", args) - }, - } - return cmd -} diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index b290be72..1167a911 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -1 +1 @@ -{"id":"github.com/bitbadges/bitbadgeschain","consumes":["application/json"],"produces":["application/json"],"swagger":"2.0","info":{"description":"Chain github.com/bitbadges/bitbadgeschain REST API","title":"HTTP API Console","contact":{"name":"github.com/bitbadges/bitbadgeschain"},"version":"version not set"},"paths":{"/anchor.Msg/AddCustomData":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_AddCustomData","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/anchor.MsgAddCustomData"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/anchor.MsgAddCustomDataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/anchor.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParams","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/anchor.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/anchor.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/managersplitter":{"get":{"tags":["Query"],"summary":"AllManagerSplitters queries all manager splitters.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllManagerSplitters","parameters":[{"type":"string","format":"byte","description":"key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.","name":"pagination.key","in":"query"},{"type":"string","format":"uint64","description":"offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.","name":"pagination.offset","in":"query"},{"type":"string","format":"uint64","description":"limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.","name":"pagination.limit","in":"query"},{"type":"boolean","description":"count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.","name":"pagination.count_total","in":"query"},{"type":"boolean","description":"reverse is set to true if results are to be returned in the descending order.","name":"pagination.reverse","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.QueryAllManagerSplittersResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/managersplitter/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin27","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/managersplitter/{address}":{"get":{"tags":["Query"],"summary":"ManagerSplitter queries a manager splitter by address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ManagerSplitter","parameters":[{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.QueryGetManagerSplitterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/maps/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin35","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/maps.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/maps/{mapId}":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_Map","parameters":[{"type":"string","name":"mapId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/maps.QueryGetMapResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/maps/{mapId}/{key}":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_MapValue","parameters":[{"type":"string","name":"mapId","in":"path","required":true},{"type":"string","name":"key","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/maps.QueryGetMapValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/sendmanager/balance/{address}/{denom}":{"get":{"tags":["Query"],"summary":"Balance queries the balance of a specific denom for an address with alias routing.\nThis allows querying both standard coins and alias denoms (e.g., badgeslp:).","operationId":"GithubCombitbadgesbitbadgeschainQuery_Balance","parameters":[{"type":"string","description":"address is the address to query balances for.","name":"address","in":"path","required":true},{"type":"string","description":"denom is the specific denomination to query the balance for.","name":"denom","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/sendmanager.QueryBalanceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/sendmanager/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin47","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/sendmanager.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_address_list/{listId}":{"get":{"tags":["Query"],"summary":"Queries an address list by ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetAddressList","parameters":[{"type":"string","name":"listId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetAddressListResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_all_reserved_protocol_addresses":{"get":{"tags":["Query"],"summary":"Queries all reserved protocol addresses.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetAllReservedProtocolAddresses","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetAllReservedProtocolAddressesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_approvals_tracker/{collectionId}/{approvalLevel}/{approverAddress}/{amountTrackerId}/{trackerType}/{approvedAddress}":{"get":{"tags":["Query"],"summary":"Queries an approvals tracker by ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetApprovalTracker","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"amountTrackerId","in":"path","required":true},{"type":"string","name":"trackerType","in":"path","required":true},{"type":"string","description":"if trackerType is \"overall\", leave blank","name":"approvedAddress","in":"path","required":true},{"type":"string","name":"approvalId","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetApprovalTrackerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_balance/{collectionId}/{address}":{"get":{"tags":["Query"],"summary":"Queries an addresses balance for a collection, specified by its ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetBalance","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetBalanceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_balance_for_token/{collectionId}/{address}/{tokenId}":{"get":{"tags":["Query"],"summary":"Queries the balance amount for a specific token ID at a specific time.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetBalanceForToken","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","name":"address","in":"path","required":true},{"type":"string","name":"tokenId","in":"path","required":true},{"type":"string","description":"Optional - milliseconds since epoch, defaults to current block time","name":"time","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetBalanceForTokenResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_challenge_tracker/{collectionId}/{approvalLevel}/{approverAddress}/{challengeTrackerId}/{leafIndex}":{"get":{"tags":["Query"],"summary":"Queries the number of times a given leaf has been used for a given merkle challenge.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetChallengeTracker","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"challengeTrackerId","in":"path","required":true},{"type":"string","name":"leafIndex","in":"path","required":true},{"type":"string","name":"approvalId","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetChallengeTrackerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_collection/{collectionId}":{"get":{"tags":["Query"],"summary":"Queries a collection by ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetCollection","parameters":[{"type":"string","name":"collectionId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_collection_stats/{collectionId}":{"get":{"tags":["Query"],"summary":"Queries collection stats (holder count and circulating supply) by collection ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetCollectionStats","parameters":[{"type":"string","name":"collectionId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetCollectionStatsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_dynamic_store/{storeId}":{"get":{"tags":["Query"],"summary":"Queries a dynamic store by ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetDynamicStore","parameters":[{"type":"string","name":"storeId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_dynamic_store_value/{storeId}/{address}":{"get":{"tags":["Query"],"summary":"Queries a dynamic store value by store ID and address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetDynamicStoreValue","parameters":[{"type":"string","name":"storeId","in":"path","required":true},{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetDynamicStoreValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_eth_signature_tracker/{collectionId}/{approvalLevel}/{approverAddress}/{approvalId}/{challengeTrackerId}/{signature}":{"get":{"tags":["Query"],"summary":"Queries the number of times a given signature has been used for a given ETH signature challenge.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetETHSignatureTracker","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"approvalId","in":"path","required":true},{"type":"string","name":"challengeTrackerId","in":"path","required":true},{"type":"string","name":"signature","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetETHSignatureTrackerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_vote/{collectionId}/{approvalLevel}/{approverAddress}/{approvalId}/{proposalId}/{voterAddress}":{"get":{"tags":["Query"],"summary":"Queries a vote by collection ID, approval level, approver address, approval ID, proposal ID, and voter address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetVote","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"approvalId","in":"path","required":true},{"type":"string","name":"proposalId","in":"path","required":true},{"type":"string","name":"voterAddress","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_votes/{collectionId}/{approvalLevel}/{approverAddress}/{approvalId}/{proposalId}":{"get":{"tags":["Query"],"summary":"Queries all votes for a proposal.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetVotes","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"approvalId","in":"path","required":true},{"type":"string","name":"proposalId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetVotesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_wrappable_balances/{denom}/{address}":{"get":{"tags":["Query"],"summary":"Queries the maximum wrappable amount for a given denom and user address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetWrappableBalances","parameters":[{"type":"string","name":"denom","in":"path","required":true},{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetWrappableBalancesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/is_address_reserved_protocol/{address}":{"get":{"tags":["Query"],"summary":"Queries if an address is a reserved protocol address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_IsAddressReservedProtocol","parameters":[{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryIsAddressReservedProtocolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin66","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadgeschain/anchor/locations/{locationId}":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_GetValueAtLocation","parameters":[{"type":"string","name":"locationId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/anchor.QueryGetValueAtLocationResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadgeschain/anchor/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubCombitbadgesbitbadgeschainQuery_Params","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/anchor.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cosmos.evm.vm.v1.Msg/RegisterPreinstalls":{"post":{"tags":["Msg"],"summary":"RegisterPreinstalls defines a governance operation for directly registering\npreinstalled contracts in the EVM. The authority is the same as is used for\nParams updates.","operationId":"Erc20Msg_RegisterPreinstalls","parameters":[{"description":"MsgRegisterPreinstalls defines a Msg for creating preinstalls in evm state.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgRegisterPreinstalls"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgRegisterPreinstallsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cosmos.evm.vm.v1.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defined a governance operation for updating the x/vm module\nparameters. The authority is hard-coded to the Cosmos SDK x/gov module\naccount","operationId":"Erc20Msg_UpdateParams","parameters":[{"description":"MsgUpdateParams defines a Msg for updating the x/vm module parameters.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cosmos/evm/vm/v1/ethereum_tx":{"post":{"tags":["Msg"],"summary":"EthereumTx defines a method submitting Ethereum transactions.","operationId":"Erc20Msg_EthereumTx","parameters":[{"type":"string","format":"byte","description":"from is the bytes of ethereum signer address. This address value is checked\nagainst the address derived from the signature (V, R, S) using the\nsecp256k1 elliptic curve","name":"from","in":"query"},{"type":"string","format":"byte","description":"raw is the raw ethereum transaction","name":"raw","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgEthereumTxResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.poolmodels.balancer.Msg/CreateBalancerPool":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateBalancerPool","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.poolmodels.balancer.MsgCreateBalancerPool"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.poolmodels.balancer.MsgCreateBalancerPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.poolmodels.stableswap.Msg/CreateStableswapPool":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateStableswapPool","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.poolmodels.stableswap.MsgCreateStableswapPool"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.poolmodels.stableswap.MsgCreateStableswapPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.poolmodels.stableswap.Msg/StableSwapAdjustScalingFactors":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_StableSwapAdjustScalingFactors","parameters":[{"description":"Sender must be the pool's scaling_factor_governor in order for the tx to\nsucceed. Adjusts stableswap scaling factors.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.poolmodels.stableswap.MsgStableSwapAdjustScalingFactors"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.poolmodels.stableswap.MsgStableSwapAdjustScalingFactorsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/ExitPool":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_ExitPool","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitPool"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/ExitSwapExternAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_ExitSwapExternAmountOut","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitSwapExternAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitSwapExternAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/ExitSwapShareAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_ExitSwapShareAmountIn","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitSwapShareAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitSwapShareAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/JoinPool":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_JoinPool","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinPool"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/JoinSwapExternAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_JoinSwapExternAmountIn","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinSwapExternAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinSwapExternAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/JoinSwapShareAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_JoinSwapShareAmountOut","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinSwapShareAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinSwapShareAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/SwapExactAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountIn","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/SwapExactAmountInWithIBCTransfer":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountInWithIBCTransfer","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountInWithIBCTransfer"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountInWithIBCTransferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/SwapExactAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountOut","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Query/CalcJoinPoolNoSwapShares":{"post":{"tags":["Query"],"summary":"Simulates joining pool without a swap. Returns the amount of shares you'd\nget and tokens needed to provide","operationId":"GithubCombitbadgesbitbadgeschainQuery_CalcJoinPoolNoSwapShares","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesRequest"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/ibcratelimit.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin22","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/ibcratelimit.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/ibcratelimit.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/ibcratelimit.Msg/UpdateRateLimit":{"post":{"tags":["Msg"],"summary":"UpdateRateLimit defines a (governance) operation for updating or adding a single rate limit.\nIf a rate limit with the same channel_id and denom exists, it will be updated.\nOtherwise, it will be appended to the list. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateRateLimit","parameters":[{"description":"MsgUpdateRateLimit is the Msg/UpdateRateLimit request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/ibcratelimit.MsgUpdateRateLimit"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/ibcratelimit.MsgUpdateRateLimitResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/CreateManagerSplitter":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateManagerSplitter","parameters":[{"description":"MsgCreateManagerSplitter creates a new manager splitter entity.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgCreateManagerSplitter"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgCreateManagerSplitterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/DeleteManagerSplitter":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteManagerSplitter","parameters":[{"description":"MsgDeleteManagerSplitter deletes a manager splitter entity.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgDeleteManagerSplitter"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgDeleteManagerSplitterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/ExecuteUniversalUpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_ExecuteUniversalUpdateCollection","parameters":[{"description":"MsgExecuteUniversalUpdateCollection executes a UniversalUpdateCollection message\nthrough the manager splitter, checking permissions before execution.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgExecuteUniversalUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgExecuteUniversalUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/UpdateManagerSplitter":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateManagerSplitter","parameters":[{"description":"MsgUpdateManagerSplitter updates an existing manager splitter entity.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgUpdateManagerSplitter"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgUpdateManagerSplitterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/UpdateParams":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin28","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/maps.Msg/CreateMap":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateMap","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/maps.MsgCreateMap"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/maps.MsgCreateMapResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/maps.Msg/DeleteMap":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteMap","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/maps.MsgDeleteMap"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/maps.MsgDeleteMapResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/maps.Msg/SetValue":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetValue","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/maps.MsgSetValue"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/maps.MsgSetValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/maps.Msg/UpdateMap":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateMap","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/maps.MsgUpdateMap"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/maps.MsgUpdateMapResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/maps.Msg/UpdateParams":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin36","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/maps.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/maps.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/filtered_pools":{"get":{"tags":["Query"],"summary":"PoolsWithFilter allows you to query specific pools with requested\nparameters","operationId":"GithubCombitbadgesbitbadgeschainQuery_PoolsWithFilter","parameters":[{"type":"string","description":"String of the coins in single string separated by comma. Ex)\n10uatom,100uosmo","name":"min_liquidity","in":"query"},{"type":"string","name":"pool_type","in":"query"},{"type":"string","format":"byte","description":"key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.","name":"pagination.key","in":"query"},{"type":"string","format":"uint64","description":"offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.","name":"pagination.offset","in":"query"},{"type":"string","format":"uint64","description":"limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.","name":"pagination.limit","in":"query"},{"type":"boolean","description":"count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.","name":"pagination.count_total","in":"query"},{"type":"boolean","description":"reverse is set to true if results are to be returned in the descending order.","name":"pagination.reverse","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolsWithFilterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/num_pools":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_NumPools","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryNumPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/params":{"get":{"tags":["Query"],"summary":"Params returns gamm module params.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin16","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.ParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pool_type/{pool_id}":{"get":{"tags":["Query"],"summary":"PoolType returns the type of the pool.\nReturns \"Balancer\" as a string literal when the pool is a balancer pool.\nErrors if the pool is failed to be type caseted.","operationId":"GithubCombitbadgesbitbadgeschainQuery_PoolType","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolTypeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_Pools","parameters":[{"type":"string","format":"byte","description":"key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.","name":"pagination.key","in":"query"},{"type":"string","format":"uint64","description":"offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.","name":"pagination.offset","in":"query"},{"type":"string","format":"uint64","description":"limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.","name":"pagination.limit","in":"query"},{"type":"boolean","description":"count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.","name":"pagination.count_total","in":"query"},{"type":"boolean","description":"reverse is set to true if results are to be returned in the descending order.","name":"pagination.reverse","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_Pool","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/exit_swap_share_amount_in":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_CalcExitPoolCoinsFromShares","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"share_in_amount","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/join_swap_exact_in":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_CalcJoinPoolShares","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryCalcJoinPoolSharesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/params":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_PoolParams","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/prices":{"get":{"tags":["Query"],"summary":"SpotPrice defines a gRPC query handler that returns the spot price given\na base denomination and a quote denomination.","operationId":"GithubCombitbadgesbitbadgeschainQuery_SpotPrice","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"base_asset_denom","in":"query"},{"type":"string","name":"quote_asset_denom","in":"query"},{"type":"boolean","description":"DEPRECATED","name":"withSwapFee","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QuerySpotPriceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/total_pool_liquidity":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalPoolLiquidity","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryTotalPoolLiquidityResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/total_shares":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalShares","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryTotalSharesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/total_liquidity":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalLiquidity","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryTotalLiquidityResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/{pool_id}/estimate/swap_exact_amount_in":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountIn","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"sender","in":"query"},{"type":"string","name":"token_in","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QuerySwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/{pool_id}/estimate/swap_exact_amount_out":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountOut","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"sender","in":"query"},{"type":"string","name":"token_out","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QuerySwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v2/pools/{pool_id}/prices":{"get":{"tags":["Query"],"summary":"Deprecated: please use alternate in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_SpotPriceMixin18","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"base_asset_denom","in":"query"},{"type":"string","name":"quote_asset_denom","in":"query"},{"type":"boolean","description":"DEPRECATED","name":"withSwapFee","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v2.QuerySpotPriceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/pools/{pool_id}/prices":{"get":{"tags":["Query"],"summary":"SpotPrice defines a gRPC query handler that returns the spot price given\na base denomination and a quote denomination.","operationId":"GithubCombitbadgesbitbadgeschainQuery_SpotPriceMixin39","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"base_asset_denom","in":"query"},{"type":"string","name":"quote_asset_denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.SpotPriceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/Params":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin39","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.ParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/all-pools":{"get":{"tags":["Query"],"summary":"AllPools returns all pools on the Osmosis chain sorted by IDs.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllPools","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.AllPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/all_registered_alloyed_pools":{"get":{"tags":["Query"],"summary":"AllRegisteredAlloyedPools returns all registered alloyed pools. The\nregistered alloyed pool contains the pool's contract address, along with\nthe current distribution composition of taker fee share denoms within the\nalloyed pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllRegisteredAlloyedPools","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.AllRegisteredAlloyedPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/all_taker_fee_share_accumulators":{"get":{"tags":["Query"],"summary":"AllTakerFeeShareAccumulators returns all taker fee share accumulators. A\ntaker fee share accumulator includes the denom of the denom getting the\ntaker fees, and an accumulated value of coins that the denom has accrued\nsince the last time it was distributed in the epoch prior.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllTakerFeeShareAccumulators","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.AllTakerFeeShareAccumulatorsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/all_taker_fee_share_agreements":{"get":{"tags":["Query"],"summary":"AllTakerFeeShareAgreements returns all taker fee share agreements.\nA taker fee share agreement includes the denom of the denom getting the\ntaker fees, the percent of the taker fees that the denom gets when it is\nin the route being traded against, and the address that the taker fees are\nsent to at epoch.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllTakerFeeShareAgreements","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.AllTakerFeeShareAgreementsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/list-pools-by-denom":{"get":{"tags":["Query"],"summary":"ListPoolsByDenom return all pools by denom","operationId":"GithubCombitbadgesbitbadgeschainQuery_ListPoolsByDenom","parameters":[{"type":"string","name":"denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.ListPoolsByDenomResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/num_pools":{"get":{"tags":["Query"],"summary":"Returns the total number of pools existing in Osmosis.","operationId":"GithubCombitbadgesbitbadgeschainQuery_NumPoolsMixin39","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.NumPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/pools/{pool_id}":{"get":{"tags":["Query"],"summary":"Pool returns the Pool specified by the pool id","operationId":"GithubCombitbadgesbitbadgeschainQuery_PoolMixin39","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.PoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/pools/{pool_id}/total_pool_liquidity":{"get":{"tags":["Query"],"summary":"TotalPoolLiquidity returns the total liquidity of the specified pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalPoolLiquidityMixin39","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TotalPoolLiquidityResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/pools/{pool_id}/total_volume":{"get":{"tags":["Query"],"summary":"TotalVolumeForPool returns the total volume of the specified pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalVolumeForPool","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TotalVolumeForPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/total_liquidity":{"get":{"tags":["Query"],"summary":"TotalLiquidity returns the total liquidity across all pools.","operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalLiquidityMixin39","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TotalLiquidityResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/trading_pair_takerfee":{"get":{"tags":["Query"],"summary":"TradingPairTakerFee returns the taker fee for a given set of denoms","operationId":"GithubCombitbadgesbitbadgeschainQuery_TradingPairTakerFee","parameters":[{"type":"string","name":"denom_0","in":"query"},{"type":"string","name":"denom_1","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TradingPairTakerFeeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{denom}/registered_alloyed_pool_from_denom":{"get":{"tags":["Query"],"summary":"RegisteredAlloyedPoolFromDenom returns the registered alloyed pool state\nfrom the given denom. The registered alloyed pool contains the pool's\ncontract address, along with the current distribution composition of taker\nfee share denoms within the alloyed pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_RegisteredAlloyedPoolFromDenom","parameters":[{"type":"string","name":"denom","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{denom}/taker_fee_share_agreement_from_denom":{"get":{"tags":["Query"],"summary":"TakerFeeShareAgreementFromDenom returns the taker fee share agreement for a\ngiven denom. A taker fee share agreement includes the denom of the denom\ngetting the taker fees, the percent of the taker fees that the denom gets\nwhen it is in the route being traded against, and the address that the\ntaker fees are sent to at epoch.","operationId":"GithubCombitbadgesbitbadgeschainQuery_TakerFeeShareAgreementFromDenom","parameters":[{"type":"string","name":"denom","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareAgreementFromDenomResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/single_pool_swap_exact_amount_in":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSinglePoolSwapExactAmountIn","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"token_in","in":"query"},{"type":"string","name":"token_out_denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_in":{"get":{"tags":["Query"],"summary":"Estimates swap amount out given in.","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountInMixin39","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","description":"DEPRECATED","name":"sender","in":"query"},{"type":"string","name":"token_in","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_in_with_primitive_types":{"get":{"tags":["Query"],"summary":"EstimateSwapExactAmountInWithPrimitiveTypes is an alternative query for\nEstimateSwapExactAmountIn. Supports query via GRPC-Gateway by using\nprimitive types instead of repeated structs. Each index in the\nroutes_pool_id field corresponds to the respective routes_token_out_denom\nvalue, thus they are required to have the same length and are grouped\ntogether as pairs.\nexample usage:\nhttp://0.0.0.0:1317/osmosis/poolmanager/v1beta1/1/estimate/\nswap_exact_amount_in_with_primitive_types?token_in=100000stake\u0026routes_token_out_denom=uatom\n\u0026routes_token_out_denom=uion\u0026routes_pool_id=1\u0026routes_pool_id=2","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountInWithPrimitiveTypes","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"token_in","in":"query"},{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"routes_pool_id","in":"query"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"routes_token_out_denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_out":{"get":{"tags":["Query"],"summary":"Estimates swap amount in given out.","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountOutMixin39","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","description":"DEPRECATED","name":"sender","in":"query"},{"type":"string","name":"token_out","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_out_with_primitive_types":{"get":{"tags":["Query"],"summary":"Estimates swap amount in given out.","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountOutWithPrimitiveTypes","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"routes_pool_id","in":"query"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"routes_token_in_denom","in":"query"},{"type":"string","name":"token_out","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate_out/single_pool_swap_exact_amount_out":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSinglePoolSwapExactAmountOut","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"token_in_denom","in":"query"},{"type":"string","name":"token_out","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate_trade":{"get":{"tags":["Query"],"summary":"EstimateTradeBasedOnPriceImpact returns an estimated trade based on price\nimpact, if a trade cannot be estimated a 0 input and 0 output would be\nreturned.","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateTradeBasedOnPriceImpact","parameters":[{"type":"string","format":"uint64","description":"pool_id is the identifier of the liquidity pool that the trade will occur\non.","name":"pool_id","in":"path","required":true},{"type":"string","name":"from_coin.denom","in":"query"},{"type":"string","name":"from_coin.amount","in":"query"},{"type":"string","description":"to_coin_denom is the denom identifier of the token that the user wants to\nbuy.","name":"to_coin_denom","in":"query"},{"type":"string","description":"max_price_impact is the maximum percentage that the user is willing\nto affect the price of the liquidity pool.","name":"max_price_impact","in":"query"},{"type":"string","description":"external_price is an optional external price that the user can enter.\nIt adjusts the MaxPriceImpact as the SpotPrice of a pool can be changed at\nany time.","name":"external_price","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/registered_alloyed_pool_from_pool_id":{"get":{"tags":["Query"],"summary":"RegisteredAlloyedPoolFromPoolId returns the registered alloyed pool state\nfrom the given pool id. The registered alloyed pool contains the pool's\ncontract address, along with the current distribution composition of taker\nfee share denoms within the alloyed pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_RegisteredAlloyedPoolFromPoolId","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{takerFeeDenom}/{denom}/taker_fee_share_denoms_to_accrued_value":{"get":{"tags":["Query"],"summary":"TakerFeeShareDenomsToAccruedValue returns the accrued value (as an Int) of\nthe given taker fee denom (the collected fees) for the given fee share\ndenom (the denom with the taker fee share agreement)","operationId":"GithubCombitbadgesbitbadgeschainQuery_TakerFeeShareDenomsToAccruedValue","parameters":[{"type":"string","name":"takerFeeDenom","in":"path","required":true},{"type":"string","name":"denom","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v2/pools/{pool_id}/prices":{"get":{"tags":["Query"],"summary":"SpotPriceV2 defines a gRPC query handler that returns the spot price given\na base denomination and a quote denomination.\nThe returned spot price has 36 decimal places. However, some of\nmodules perform sig fig rounding so most of the rightmost decimals can be\nzeroes.","operationId":"GithubCombitbadgesbitbadgeschainQuery_SpotPriceV2","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"base_asset_denom","in":"query"},{"type":"string","name":"quote_asset_denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v2.SpotPriceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SetDenomPairTakerFee":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetDenomPairTakerFee","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSetDenomPairTakerFee"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSetDenomPairTakerFeeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SetTakerFeeShareAgreementForDenom":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetTakerFeeShareAgreementForDenom","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenom"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenomResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SplitRouteSwapExactAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SplitRouteSwapExactAmountIn","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSplitRouteSwapExactAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSplitRouteSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SplitRouteSwapExactAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SplitRouteSwapExactAmountOut","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SwapExactAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountInMixin43","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSwapExactAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SwapExactAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountOutMixin43","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSwapExactAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/sendmanager.Msg/SendWithAliasRouting":{"post":{"tags":["Msg"],"summary":"SendWithAliasRouting defines a message for sending coins with alias denom routing.\nThis allows sending both standard coins and alias denoms (e.g., badgeslp:) through the sendmanager.","operationId":"GithubCombitbadgesbitbadgeschainMsg_SendWithAliasRouting","parameters":[{"description":"MsgSendWithAliasRouting defines a message for sending coins with alias denom routing.\nThis message mirrors cosmos bank MsgSend but routes through sendmanager to handle\nboth standard coins and alias denoms (e.g., badgeslp:).","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/sendmanager.MsgSendWithAliasRouting"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/sendmanager.MsgSendWithAliasRoutingResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/sendmanager.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin48","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/sendmanager.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/sendmanager.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/CastVote":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CastVote","parameters":[{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgCastVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgCastVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/CreateAddressLists":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateAddressLists","parameters":[{"description":"MsgCreateAddressLists is used to create address lists.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgCreateAddressLists"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgCreateAddressListsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/CreateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateCollection","parameters":[{"description":"MsgCreateCollection is used to create a new collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgCreateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgCreateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/CreateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateDynamicStore","parameters":[{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgCreateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgCreateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/DeleteCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteCollection","parameters":[{"description":"MsgDeleteCollection is used to delete a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgDeleteCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgDeleteCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/DeleteDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteDynamicStore","parameters":[{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgDeleteDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgDeleteDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/DeleteIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteIncomingApproval","parameters":[{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgDeleteIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgDeleteIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/DeleteOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteOutgoingApproval","parameters":[{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgDeleteOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgDeleteOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/PurgeApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_PurgeApprovals","parameters":[{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgPurgeApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgPurgeApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetCollectionApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionApprovals","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetCollectionApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetCollectionApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetCollectionMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionMetadata","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetCollectionMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetCollectionMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetCustomData":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCustomData","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetCustomData"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetCustomDataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetDynamicStoreValue":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetDynamicStoreValue","parameters":[{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetDynamicStoreValue"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetDynamicStoreValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIncomingApproval","parameters":[{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetIsArchived":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIsArchived","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetIsArchived"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetIsArchivedResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetManager":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetManager","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetManager"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetManagerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetOutgoingApproval","parameters":[{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetReservedProtocolAddress":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetReservedProtocolAddress","parameters":[{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetReservedProtocolAddress"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetReservedProtocolAddressResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetStandards":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetStandards","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetStandards"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetStandardsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetTokenMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetTokenMetadata","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetTokenMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetTokenMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetValidTokenIds":{"post":{"tags":["Msg"],"summary":"Helper message types for UniversalUpdateCollection subsets","operationId":"GithubCombitbadgesbitbadgeschainMsg_SetValidTokenIds","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetValidTokenIds"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetValidTokenIdsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/TransferTokens":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_TransferTokens","parameters":[{"description":"MsgTransferTokens is used to transfer tokens.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgTransferTokens"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgTransferTokensResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UniversalUpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UniversalUpdateCollection","parameters":[{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUniversalUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUniversalUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateCollection","parameters":[{"description":"MsgUpdateCollection is used to update a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UpdateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateDynamicStore","parameters":[{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUpdateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUpdateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin69","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UpdateUserApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateUserApprovals","parameters":[{"description":"MsgUpdateUserApprovals is used to update user approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUpdateUserApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUpdateUserApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/CastVote":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CastVoteMixin89","parameters":[{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgCastVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgCastVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/CreateAddressLists":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateAddressListsMixin89","parameters":[{"description":"MsgCreateAddressLists is used to create address lists.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateAddressLists"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateAddressListsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/CreateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateCollectionMixin89","parameters":[{"description":"MsgCreateCollection is used to create a new collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/CreateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateDynamicStoreMixin89","parameters":[{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/DeleteCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteCollectionMixin89","parameters":[{"description":"MsgDeleteCollection is used to delete a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/DeleteDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteDynamicStoreMixin89","parameters":[{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/DeleteIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteIncomingApprovalMixin89","parameters":[{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/DeleteOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteOutgoingApprovalMixin89","parameters":[{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/PurgeApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_PurgeApprovalsMixin89","parameters":[{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgPurgeApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgPurgeApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetCollectionApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionApprovalsMixin89","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCollectionApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCollectionApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetCollectionMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionMetadataMixin89","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCollectionMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCollectionMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetCustomData":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCustomDataMixin89","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCustomData"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCustomDataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetDynamicStoreValue":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetDynamicStoreValueMixin89","parameters":[{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetDynamicStoreValue"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetDynamicStoreValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIncomingApprovalMixin89","parameters":[{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetIsArchived":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIsArchivedMixin89","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetIsArchived"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetIsArchivedResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetManager":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetManagerMixin89","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetManager"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetManagerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetOutgoingApprovalMixin89","parameters":[{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetReservedProtocolAddress":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetReservedProtocolAddressMixin89","parameters":[{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetReservedProtocolAddress"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetReservedProtocolAddressResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetStandards":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetStandardsMixin89","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetStandards"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetStandardsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetTokenMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetTokenMetadataMixin89","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetTokenMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetTokenMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetValidTokenIds":{"post":{"tags":["Msg"],"summary":"Helper message types for UniversalUpdateCollection subsets","operationId":"GithubCombitbadgesbitbadgeschainMsg_SetValidTokenIdsMixin89","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetValidTokenIds"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetValidTokenIdsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/TransferTokens":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_TransferTokensMixin89","parameters":[{"description":"MsgTransferTokens is used to transfer tokens.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgTransferTokens"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgTransferTokensResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UniversalUpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UniversalUpdateCollectionMixin89","parameters":[{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUniversalUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUniversalUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateCollectionMixin89","parameters":[{"description":"MsgUpdateCollection is used to update a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UpdateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateDynamicStoreMixin89","parameters":[{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin89","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UpdateUserApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateUserApprovalsMixin89","parameters":[{"description":"MsgUpdateUserApprovals is used to update user approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateUserApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateUserApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/CastVote":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CastVoteMixin109","parameters":[{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgCastVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgCastVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/CreateAddressLists":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateAddressListsMixin109","parameters":[{"description":"MsgCreateAddressLists is used to create address lists.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateAddressLists"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateAddressListsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/CreateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateCollectionMixin109","parameters":[{"description":"MsgCreateCollection is used to create a new collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/CreateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateDynamicStoreMixin109","parameters":[{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/DeleteCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteCollectionMixin109","parameters":[{"description":"MsgDeleteCollection is used to delete a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/DeleteDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteDynamicStoreMixin109","parameters":[{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/DeleteIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteIncomingApprovalMixin109","parameters":[{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/DeleteOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteOutgoingApprovalMixin109","parameters":[{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/PurgeApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_PurgeApprovalsMixin109","parameters":[{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgPurgeApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgPurgeApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetCollectionApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionApprovalsMixin109","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCollectionApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCollectionApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetCollectionMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionMetadataMixin109","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCollectionMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCollectionMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetCustomData":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCustomDataMixin109","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCustomData"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCustomDataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetDynamicStoreValue":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetDynamicStoreValueMixin109","parameters":[{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetDynamicStoreValue"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetDynamicStoreValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIncomingApprovalMixin109","parameters":[{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetIsArchived":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIsArchivedMixin109","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetIsArchived"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetIsArchivedResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetManager":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetManagerMixin109","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetManager"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetManagerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetOutgoingApprovalMixin109","parameters":[{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetReservedProtocolAddress":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetReservedProtocolAddressMixin109","parameters":[{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetReservedProtocolAddress"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetReservedProtocolAddressResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetStandards":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetStandardsMixin109","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetStandards"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetStandardsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetTokenMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetTokenMetadataMixin109","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetTokenMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetTokenMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetValidTokenIds":{"post":{"tags":["Msg"],"summary":"Helper message types for UniversalUpdateCollection subsets","operationId":"GithubCombitbadgesbitbadgeschainMsg_SetValidTokenIdsMixin109","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetValidTokenIds"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetValidTokenIdsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/TransferTokens":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_TransferTokensMixin109","parameters":[{"description":"MsgTransferTokens is used to transfer tokens.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgTransferTokens"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgTransferTokensResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UniversalUpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UniversalUpdateCollectionMixin109","parameters":[{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUniversalUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUniversalUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateCollectionMixin109","parameters":[{"description":"MsgUpdateCollection is used to update a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UpdateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateDynamicStoreMixin109","parameters":[{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin109","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UpdateUserApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateUserApprovalsMixin109","parameters":[{"description":"MsgUpdateUserApprovals is used to update user approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateUserApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateUserApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}}},"definitions":{"anchor.AnchorData":{"type":"object","properties":{"creator":{"type":"string"},"data":{"type":"string"},"timestamp":{"type":"string"}}},"anchor.MsgAddCustomData":{"type":"object","properties":{"creator":{"type":"string"},"data":{"type":"string"}}},"anchor.MsgAddCustomDataResponse":{"type":"object","properties":{"locationId":{"description":"ID of the anchor location.","type":"string"}}},"anchor.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"NOTE: All parameters must be supplied.","$ref":"#/definitions/anchor.Params"}}},"anchor.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"anchor.Params":{"description":"Params defines the parameters for the module.","type":"object"},"anchor.QueryGetValueAtLocationResponse":{"type":"object","properties":{"anchorData":{"$ref":"#/definitions/anchor.AnchorData"}}},"anchor.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/anchor.Params"}}},"cosmos.base.query.v1beta1.PageRequest":{"description":"message SomeRequest {\n Foo some_parameter = 1;\n PageRequest pagination = 2;\n }","type":"object","title":"PageRequest is to be embedded in gRPC request messages for efficient\npagination. Ex:","properties":{"count_total":{"description":"count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.","type":"boolean"},"key":{"description":"key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.","type":"string","format":"byte"},"limit":{"description":"limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.","type":"string","format":"uint64"},"offset":{"description":"offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.","type":"string","format":"uint64"},"reverse":{"description":"reverse is set to true if results are to be returned in the descending order.","type":"boolean"}}},"cosmos.base.query.v1beta1.PageResponse":{"description":"PageResponse is to be embedded in gRPC response messages where the\ncorresponding request message has used PageRequest.\n\n message SomeResponse {\n repeated Bar results = 1;\n PageResponse page = 2;\n }","type":"object","properties":{"next_key":{"description":"next_key is the key to be passed to PageRequest.key to\nquery the next page most efficiently. It will be empty if\nthere are no more results.","type":"string","format":"byte"},"total":{"type":"string","format":"uint64","title":"total is total number of results available if PageRequest.count_total\nwas set, its value is undefined otherwise"}}},"cosmos.base.v1beta1.Coin":{"description":"Coin defines a token with a denomination and an amount.\n\nNOTE: The amount field is an Int which implements the custom method\nsignatures required by gogoproto.","type":"object","properties":{"amount":{"type":"string"},"denom":{"type":"string"}}},"cosmos.evm.vm.v1.AccessControl":{"type":"object","title":"AccessControl defines the permission policy of the EVM\nfor creating and calling contracts","properties":{"call":{"title":"call defines the permission policy for calling contracts","$ref":"#/definitions/cosmos.evm.vm.v1.AccessControlType"},"create":{"title":"create defines the permission policy for creating contracts","$ref":"#/definitions/cosmos.evm.vm.v1.AccessControlType"}}},"cosmos.evm.vm.v1.AccessControlType":{"type":"object","title":"AccessControlType defines the permission type for policies","properties":{"access_control_list":{"type":"array","title":"access_control_list defines defines different things depending on the\nAccessType:\n- ACCESS_TYPE_PERMISSIONLESS: list of addresses that are blocked from\nperforming the operation\n- ACCESS_TYPE_RESTRICTED: ignored\n- ACCESS_TYPE_PERMISSIONED: list of addresses that are allowed to perform\nthe operation","items":{"type":"string"}},"access_type":{"title":"access_type defines which type of permission is required for the operation","$ref":"#/definitions/cosmos.evm.vm.v1.AccessType"}}},"cosmos.evm.vm.v1.AccessType":{"description":"- ACCESS_TYPE_PERMISSIONLESS: ACCESS_TYPE_PERMISSIONLESS does not restrict the operation to anyone\n - ACCESS_TYPE_RESTRICTED: ACCESS_TYPE_RESTRICTED restrict the operation to anyone\n - ACCESS_TYPE_PERMISSIONED: ACCESS_TYPE_PERMISSIONED only allows the operation for specific addresses","type":"string","title":"AccessType defines the types of permissions for the operations","default":"ACCESS_TYPE_PERMISSIONLESS","enum":["ACCESS_TYPE_PERMISSIONLESS","ACCESS_TYPE_RESTRICTED","ACCESS_TYPE_PERMISSIONED"]},"cosmos.evm.vm.v1.ExtendedDenomOptions":{"type":"object","properties":{"extended_denom":{"type":"string"}}},"cosmos.evm.vm.v1.Log":{"description":"Log represents an protobuf compatible Ethereum Log that defines a contract\nlog event. These events are generated by the LOG opcode and stored/indexed by\nthe node.\n\nNOTE: address, topics and data are consensus fields. The rest of the fields\nare derived, i.e. filled in by the nodes, but not secured by consensus.","type":"object","properties":{"address":{"type":"string","title":"address of the contract that generated the event"},"block_hash":{"type":"string","title":"block_hash of the block in which the transaction was included"},"block_number":{"type":"string","format":"uint64","title":"block_number of the block in which the transaction was included"},"block_timestamp":{"type":"string","format":"uint64","title":"block_timestamp is the timestamp of the block in which the transaction was"},"data":{"type":"string","format":"byte","title":"data which is supplied by the contract, usually ABI-encoded"},"index":{"type":"string","format":"uint64","title":"index of the log in the block"},"removed":{"description":"removed is true if this log was reverted due to a chain\nreorganisation. You must pay attention to this field if you receive logs\nthrough a filter query.","type":"boolean"},"topics":{"description":"topics is a list of topics provided by the contract.","type":"array","items":{"type":"string"}},"tx_hash":{"type":"string","title":"tx_hash is the transaction hash"},"tx_index":{"type":"string","format":"uint64","title":"tx_index of the transaction in the block"}}},"cosmos.evm.vm.v1.MsgEthereumTxResponse":{"description":"MsgEthereumTxResponse defines the Msg/EthereumTx response type.","type":"object","properties":{"block_hash":{"type":"string","format":"byte","title":"include the block hash for json-rpc to use"},"block_timestamp":{"type":"string","format":"uint64","title":"include the block timestamp for json-rpc to use"},"gas_used":{"type":"string","format":"uint64","title":"gas_used specifies how much gas was consumed by the transaction"},"hash":{"type":"string","title":"hash of the ethereum transaction in hex format. This hash differs from the\nCometBFT sha256 hash of the transaction bytes. See\nhttps://github.com/tendermint/tendermint/issues/6539 for reference"},"logs":{"description":"logs contains the transaction hash and the proto-compatible ethereum\nlogs.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.evm.vm.v1.Log"}},"max_used_gas":{"type":"string","format":"uint64","title":"max_used_gas specifies the gas consumed by the transaction, not including refunds"},"ret":{"type":"string","format":"byte","title":"ret is the returned data from evm function (result or data supplied with\nrevert opcode)"},"vm_error":{"type":"string","title":"vm_error is the error returned by vm execution"}}},"cosmos.evm.vm.v1.MsgRegisterPreinstalls":{"description":"MsgRegisterPreinstalls defines a Msg for creating preinstalls in evm state.","type":"object","properties":{"authority":{"description":"authority is the address of the governance account.","type":"string"},"preinstalls":{"description":"preinstalls defines the preinstalls to create.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.evm.vm.v1.Preinstall"}}}},"cosmos.evm.vm.v1.MsgRegisterPreinstallsResponse":{"description":"MsgRegisterPreinstallsResponse defines the response structure for executing a\nMsgRegisterPreinstalls message.","type":"object"},"cosmos.evm.vm.v1.MsgUpdateParams":{"description":"MsgUpdateParams defines a Msg for updating the x/vm module parameters.","type":"object","properties":{"authority":{"description":"authority is the address of the governance account.","type":"string"},"params":{"description":"params defines the x/vm parameters to update.\nNOTE: All parameters must be supplied.","$ref":"#/definitions/cosmos.evm.vm.v1.Params"}}},"cosmos.evm.vm.v1.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"cosmos.evm.vm.v1.Params":{"type":"object","title":"Params defines the EVM module parameters","properties":{"access_control":{"title":"access_control defines the permission policy of the EVM","$ref":"#/definitions/cosmos.evm.vm.v1.AccessControl"},"active_static_precompiles":{"type":"array","title":"active_static_precompiles defines the slice of hex addresses of the\nprecompiled contracts that are active","items":{"type":"string"}},"evm_channels":{"type":"array","title":"evm_channels is the list of channel identifiers from EVM compatible chains","items":{"type":"string"}},"evm_denom":{"description":"evm_denom represents the token denomination used to run the EVM state\ntransitions.","type":"string"},"extended_denom_options":{"$ref":"#/definitions/cosmos.evm.vm.v1.ExtendedDenomOptions"},"extra_eips":{"type":"array","title":"extra_eips defines the additional EIPs for the vm.Config","items":{"type":"string","format":"int64"}},"history_serve_window":{"type":"string","format":"uint64"}}},"cosmos.evm.vm.v1.Preinstall":{"type":"object","title":"Preinstall defines a contract that is preinstalled on-chain with a specific\ncontract address and bytecode","properties":{"address":{"type":"string","title":"address in hex format of the preinstall contract"},"code":{"type":"string","title":"code in hex format for the preinstall contract"},"name":{"type":"string","title":"name of the preinstall contract"}}},"gamm.poolmodels.balancer.MsgCreateBalancerPool":{"type":"object","title":"===================== MsgCreatePool","properties":{"pool_assets":{"type":"array","items":{"type":"object","$ref":"#/definitions/gamm.poolmodels.balancer.PoolAsset"}},"pool_params":{"$ref":"#/definitions/gamm.poolmodels.balancer.PoolParams"},"sender":{"type":"string"}}},"gamm.poolmodels.balancer.MsgCreateBalancerPoolResponse":{"type":"object","title":"Returns the poolID","properties":{"pool_id":{"type":"string","format":"uint64"}}},"gamm.poolmodels.balancer.PoolAsset":{"description":"Pool asset is an internal struct that combines the amount of the\ntoken in the pool, and its balancer weight.\nThis is an awkward packaging of data,\nand should be revisited in a future state migration.","type":"object","properties":{"token":{"description":"Coins we are talking about,\nthe denomination must be unique amongst all PoolAssets for this pool.","$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"weight":{"type":"string","title":"Weight that is not normalized. This weight must be less than 2^50"}}},"gamm.poolmodels.balancer.PoolParams":{"description":"PoolParams defined the parameters that will be managed by the pool\ngovernance in the future. This params are not managed by the chain\ngovernance. Instead they will be managed by the token holders of the pool.","type":"object","properties":{"exit_fee":{"type":"string","title":"N.B.: exit fee is disabled during pool creation in x/poolmanager. While old\npools can maintain a non-zero fee. No new pool can be created with non-zero\nfee anymore"},"swap_fee":{"type":"string"}}},"gamm.poolmodels.stableswap.MsgCreateStableswapPool":{"type":"object","title":"===================== MsgCreatePool","properties":{"future_pool_governor":{"type":"string"},"initial_pool_liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"pool_params":{"$ref":"#/definitions/gamm.poolmodels.stableswap.PoolParams"},"scaling_factor_controller":{"type":"string"},"scaling_factors":{"type":"array","items":{"type":"string","format":"uint64"}},"sender":{"type":"string"}}},"gamm.poolmodels.stableswap.MsgCreateStableswapPoolResponse":{"description":"Returns a poolID with custom poolName.","type":"object","properties":{"pool_id":{"type":"string","format":"uint64"}}},"gamm.poolmodels.stableswap.MsgStableSwapAdjustScalingFactors":{"description":"Sender must be the pool's scaling_factor_governor in order for the tx to\nsucceed. Adjusts stableswap scaling factors.","type":"object","properties":{"pool_id":{"type":"string","format":"uint64"},"scaling_factors":{"type":"array","items":{"type":"string","format":"uint64"}},"sender":{"type":"string"}}},"gamm.poolmodels.stableswap.MsgStableSwapAdjustScalingFactorsResponse":{"type":"object"},"gamm.poolmodels.stableswap.PoolParams":{"description":"PoolParams defined the parameters that will be managed by the pool\ngovernance in the future. This params are not managed by the chain\ngovernance. Instead they will be managed by the token holders of the pool.\nThe pool's token holders are specified in future_pool_governor.","type":"object","properties":{"exit_fee":{"type":"string","title":"N.B.: exit fee is disabled during pool creation in x/poolmanager. While old\npools can maintain a non-zero fee. No new pool can be created with non-zero\nfee anymore"},"swap_fee":{"type":"string"}}},"gamm.v1beta1.IBCTransferInfo":{"type":"object","title":"===================== IBC Transfer Info","properties":{"memo":{"type":"string"},"receiver":{"type":"string"},"source_channel":{"type":"string"},"timeout_timestamp":{"type":"string","format":"uint64"}}},"gamm.v1beta1.MsgExitPool":{"type":"object","title":"===================== MsgExitPool","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_in_amount":{"type":"string"},"token_out_mins":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.MsgExitPoolResponse":{"type":"object","properties":{"token_out":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.MsgExitSwapExternAmountOut":{"type":"object","title":"===================== MsgExitSwapExternAmountOut","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_in_max_amount":{"type":"string"},"token_out":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"gamm.v1beta1.MsgExitSwapExternAmountOutResponse":{"type":"object","properties":{"share_in_amount":{"type":"string"}}},"gamm.v1beta1.MsgExitSwapShareAmountIn":{"type":"object","title":"===================== MsgExitSwapShareAmountIn","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_in_amount":{"type":"string"},"token_out_denom":{"type":"string"},"token_out_min_amount":{"type":"string"}}},"gamm.v1beta1.MsgExitSwapShareAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"gamm.v1beta1.MsgJoinPool":{"type":"object","title":"===================== MsgJoinPool\nThis is really MsgJoinPoolNoSwap","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_out_amount":{"type":"string"},"token_in_maxs":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.MsgJoinPoolResponse":{"type":"object","properties":{"share_out_amount":{"type":"string"},"token_in":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.MsgJoinSwapExternAmountIn":{"type":"object","title":"===================== MsgJoinSwapExternAmountIn\nTODO: Rename to MsgJoinSwapExactAmountIn","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_out_min_amount":{"type":"string","title":"repeated cosmos.base.v1beta1.Coin tokensIn = 5 [\n (gogoproto.moretags) = \"yaml:\\\"tokens_in\\\"\",\n (gogoproto.nullable) = false\n ];"},"token_in":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"gamm.v1beta1.MsgJoinSwapExternAmountInResponse":{"type":"object","properties":{"share_out_amount":{"type":"string"}}},"gamm.v1beta1.MsgJoinSwapShareAmountOut":{"type":"object","title":"===================== MsgJoinSwapShareAmountOut","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_out_amount":{"type":"string"},"token_in_denom":{"type":"string"},"token_in_max_amount":{"type":"string"}}},"gamm.v1beta1.MsgJoinSwapShareAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountIn":{"type":"object","title":"===================== MsgSwapExactAmountIn","properties":{"affiliates":{"type":"array","title":"affiliates are optional fee recipients that receive fees calculated from token_out_min_amount","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.Affiliate"}},"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInRoute"}},"sender":{"type":"string"},"token_in":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"token_out_min_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountInWithIBCTransfer":{"type":"object","title":"===================== MsgSwapExactAmountInWithIBCTransfer","properties":{"affiliates":{"type":"array","title":"affiliates are optional fee recipients that receive fees calculated from token_out_min_amount","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.Affiliate"}},"ibc_transfer_info":{"$ref":"#/definitions/gamm.v1beta1.IBCTransferInfo"},"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInRoute"}},"sender":{"type":"string"},"token_in":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"token_out_min_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountInWithIBCTransferResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountOut":{"type":"object","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountOutRoute"}},"sender":{"type":"string"},"token_in_max_amount":{"type":"string"},"token_out":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"gamm.v1beta1.MsgSwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"gamm.v1beta1.Params":{"type":"object","title":"Params holds parameters for the incentives module"},"gamm.v1beta1.ParamsResponse":{"type":"object","properties":{"params":{"$ref":"#/definitions/gamm.v1beta1.Params"}}},"gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesResponse":{"type":"object","properties":{"tokens_out":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesRequest":{"type":"object","title":"=============================== CalcJoinPoolNoSwapShares","properties":{"pool_id":{"type":"string","format":"uint64"},"tokens_in":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesResponse":{"type":"object","properties":{"shares_out":{"type":"string"},"tokens_out":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryCalcJoinPoolSharesResponse":{"type":"object","properties":{"share_out_amount":{"type":"string"},"tokens_out":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryNumPoolsResponse":{"type":"object","properties":{"num_pools":{"type":"string","format":"uint64"}}},"gamm.v1beta1.QueryPoolParamsResponse":{"type":"object","properties":{"params":{"$ref":"#/definitions/google.protobuf.Any"}}},"gamm.v1beta1.QueryPoolResponse":{"type":"object","title":"Deprecated: please use the alternative in x/poolmanager","properties":{"pool":{"$ref":"#/definitions/google.protobuf.Any"}}},"gamm.v1beta1.QueryPoolTypeResponse":{"type":"object","properties":{"pool_type":{"type":"string"}}},"gamm.v1beta1.QueryPoolsResponse":{"type":"object","properties":{"pagination":{"description":"pagination defines the pagination in the response.","$ref":"#/definitions/cosmos.base.query.v1beta1.PageResponse"},"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}}}},"gamm.v1beta1.QueryPoolsWithFilterResponse":{"type":"object","properties":{"pagination":{"description":"pagination defines the pagination in the response.","$ref":"#/definitions/cosmos.base.query.v1beta1.PageResponse"},"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}}}},"gamm.v1beta1.QuerySpotPriceResponse":{"description":"QuerySpotPriceResponse defines the gRPC response structure for a SpotPrice\nquery.","type":"object","properties":{"spot_price":{"type":"string","title":"String of the Dec. Ex) 10.203uatom"}}},"gamm.v1beta1.QuerySwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"gamm.v1beta1.QuerySwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"gamm.v1beta1.QueryTotalLiquidityResponse":{"type":"object","properties":{"liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryTotalPoolLiquidityResponse":{"type":"object","title":"Deprecated: please use the alternative in x/poolmanager","properties":{"liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryTotalSharesResponse":{"type":"object","properties":{"total_shares":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"gamm.v2.QuerySpotPriceResponse":{"type":"object","title":"Deprecated: please use alternate in x/poolmanager","properties":{"spot_price":{"type":"string","title":"String of the Dec. Ex) 10.203uatom"}}},"google.protobuf.Any":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"google.rpc.Status":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}},"message":{"type":"string"}}},"ibcratelimit.AddressLimit":{"type":"object","title":"AddressLimit defines limits per address","properties":{"max_amount":{"type":"string","title":"max_amount is the maximum total amount allowed per address in the timeframe\nValue is represented as an integer (e.g., \"1000000\" = 1,000,000 tokens)\nIf set to 0, amount limit is disabled"},"max_transfers":{"type":"string","format":"int64","title":"max_transfers is the maximum number of transfers allowed per address in the timeframe\nIf set to 0, transfer count limit is disabled"},"timeframe_duration":{"type":"string","format":"int64","title":"timeframe_duration is the duration of the timeframe"},"timeframe_type":{"title":"timeframe_type defines the type of timeframe (block, hour, day)","$ref":"#/definitions/ibcratelimit.TimeframeType"}}},"ibcratelimit.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/ibcratelimit.Params"}}},"ibcratelimit.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"ibcratelimit.MsgUpdateRateLimit":{"description":"MsgUpdateRateLimit is the Msg/UpdateRateLimit request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"rate_limit":{"description":"rate_limit defines the rate limit configuration to update or add.\nIf a rate limit with the same channel_id and denom exists, it will be updated.\nOtherwise, it will be appended to the list.","$ref":"#/definitions/ibcratelimit.RateLimitConfig"}}},"ibcratelimit.MsgUpdateRateLimitResponse":{"description":"MsgUpdateRateLimitResponse defines the response structure for executing a\nMsgUpdateRateLimit message.","type":"object"},"ibcratelimit.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"rate_limits":{"type":"array","title":"rate_limits is an array of rate limit configurations\nEach configuration can specify channel_id, denom, and various limit types (supply_shift_limits, unique_sender_limits, address_limits)\nConfigurations are checked in order, and the first matching config is used\nIf no config matches, the transfer is allowed (no rate limit)","items":{"type":"object","$ref":"#/definitions/ibcratelimit.RateLimitConfig"}}}},"ibcratelimit.RateLimitConfig":{"type":"object","title":"RateLimitConfig defines a rate limit configuration for a specific channel and denom","properties":{"address_limits":{"type":"array","title":"address_limits defines per-address transfer limits\nAll limits are checked, and the transfer is rejected if any limit would be exceeded","items":{"type":"object","$ref":"#/definitions/ibcratelimit.AddressLimit"}},"channel_id":{"type":"string","title":"channel_id is the IBC channel ID this rate limit applies to\nIf empty, applies to all channels"},"denom":{"type":"string","title":"denom is the denomination this rate limit applies to\nMust be specified (empty denoms are not allowed)"},"supply_shift_limits":{"type":"array","title":"supply_shift_limits defines multiple timeframe limits for supply shift\nAll limits are checked, and the transfer is rejected if any limit would be exceeded","items":{"type":"object","$ref":"#/definitions/ibcratelimit.TimeframeLimit"}},"unique_sender_limits":{"type":"array","title":"unique_sender_limits defines limits on unique senders per channel\nAll limits are checked, and the transfer is rejected if any limit would be exceeded","items":{"type":"object","$ref":"#/definitions/ibcratelimit.UniqueSenderLimit"}}}},"ibcratelimit.TimeframeLimit":{"type":"object","title":"TimeframeLimit defines a limit for a specific timeframe","properties":{"max_amount":{"type":"string","title":"max_amount is the maximum absolute amount of supply change allowed in this timeframe\nValue is represented as an integer (e.g., \"1000000\" = 1,000,000 tokens)\nIf set to 0, this limit is disabled"},"timeframe_duration":{"type":"string","format":"int64","title":"timeframe_duration is the duration of the timeframe\nFor BLOCK: number of blocks\nFor HOUR: number of hours (will be converted to blocks using block time)\nFor DAY: number of days (will be converted to blocks using block time)"},"timeframe_type":{"title":"timeframe_type defines the type of timeframe (block, hour, day)","$ref":"#/definitions/ibcratelimit.TimeframeType"}}},"ibcratelimit.TimeframeType":{"description":"- TIMEFRAME_TYPE_BLOCK: Duration in blocks\n - TIMEFRAME_TYPE_HOUR: Duration in hours (converted to blocks using block time)\n - TIMEFRAME_TYPE_DAY: Duration in days (converted to blocks using block time)","type":"string","title":"TimeframeType defines the type of timeframe","default":"TIMEFRAME_TYPE_UNSPECIFIED","enum":["TIMEFRAME_TYPE_UNSPECIFIED","TIMEFRAME_TYPE_BLOCK","TIMEFRAME_TYPE_HOUR","TIMEFRAME_TYPE_DAY"]},"ibcratelimit.UniqueSenderLimit":{"type":"object","title":"UniqueSenderLimit defines limits on unique senders per channel","properties":{"max_unique_senders":{"type":"string","format":"int64","title":"max_unique_senders is the maximum number of unique senders allowed in the timeframe\nIf set to 0, this limit is disabled"},"timeframe_duration":{"type":"string","format":"int64","title":"timeframe_duration is the duration of the timeframe"},"timeframe_type":{"title":"timeframe_type defines the type of timeframe (block, hour, day)","$ref":"#/definitions/ibcratelimit.TimeframeType"}}},"managersplitter.ManagerSplitter":{"description":"ManagerSplitter defines the manager splitter entity.","type":"object","properties":{"address":{"description":"The module address of this manager splitter (derived from module name + ID).","type":"string"},"admin":{"description":"Permanent and static admin address. Has full control and can always execute all permissions.","type":"string"},"permissions":{"description":"Permissions mapping each CollectionPermission field to execution criteria.","$ref":"#/definitions/managersplitter.ManagerSplitterPermissions"}}},"managersplitter.ManagerSplitterPermissions":{"description":"ManagerSplitterPermissions mirrors the CollectionPermissions structure\nbut maps each permission to criteria for execution.","type":"object","properties":{"canAddMoreAliasPaths":{"description":"Permissions related to adding more alias paths to the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canAddMoreCosmosCoinWrapperPaths":{"description":"Permissions related to adding more cosmos coin wrapper paths to the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canArchiveCollection":{"description":"Permissions related to archiving the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canDeleteCollection":{"description":"Permissions related to deleting the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateCollectionApprovals":{"description":"Permissions related to updating collection approvals.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateCollectionMetadata":{"description":"Permissions related to updating the metadata of the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateCustomData":{"description":"Permissions related to updating custom data for the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateManager":{"description":"Permissions related to updating the collection's manager.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateStandards":{"description":"Permissions related to updating standards for the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateTokenMetadata":{"description":"Permissions related to updating token metadata for specific tokens.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateValidTokenIds":{"description":"Permissions related to creating more tokens for the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"}}},"managersplitter.MsgCreateManagerSplitter":{"description":"MsgCreateManagerSplitter creates a new manager splitter entity.","type":"object","properties":{"admin":{"description":"Admin address creating the entity.","type":"string"},"permissions":{"description":"Permissions mapping each CollectionPermission field to execution criteria.","$ref":"#/definitions/managersplitter.ManagerSplitterPermissions"}}},"managersplitter.MsgCreateManagerSplitterResponse":{"description":"MsgCreateManagerSplitterResponse is the response to MsgCreateManagerSplitter.","type":"object","properties":{"address":{"description":"The address of the created manager splitter.","type":"string"}}},"managersplitter.MsgDeleteManagerSplitter":{"description":"MsgDeleteManagerSplitter deletes a manager splitter entity.","type":"object","properties":{"address":{"description":"Address of the manager splitter to delete.","type":"string"},"admin":{"description":"Admin address deleting the entity.","type":"string"}}},"managersplitter.MsgDeleteManagerSplitterResponse":{"description":"MsgDeleteManagerSplitterResponse is the response to MsgDeleteManagerSplitter.","type":"object"},"managersplitter.MsgExecuteUniversalUpdateCollection":{"description":"MsgExecuteUniversalUpdateCollection executes a UniversalUpdateCollection message\nthrough the manager splitter, checking permissions before execution.","type":"object","properties":{"executor":{"description":"Address executing the message (must be approved or admin).","type":"string"},"managerSplitterAddress":{"description":"Address of the manager splitter to execute through.","type":"string"},"universalUpdateCollectionMsg":{"description":"The UniversalUpdateCollection message to execute.","$ref":"#/definitions/tokenization.MsgUniversalUpdateCollection"}}},"managersplitter.MsgExecuteUniversalUpdateCollectionResponse":{"description":"MsgExecuteUniversalUpdateCollectionResponse is the response to MsgExecuteUniversalUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection that was updated.","type":"string"}}},"managersplitter.MsgUpdateManagerSplitter":{"description":"MsgUpdateManagerSplitter updates an existing manager splitter entity.","type":"object","properties":{"address":{"description":"Address of the manager splitter to update.","type":"string"},"admin":{"description":"Admin address updating the entity.","type":"string"},"permissions":{"description":"New permissions to set.","$ref":"#/definitions/managersplitter.ManagerSplitterPermissions"}}},"managersplitter.MsgUpdateManagerSplitterResponse":{"description":"MsgUpdateManagerSplitterResponse is the response to MsgUpdateManagerSplitter.","type":"object"},"managersplitter.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/managersplitter.Params"}}},"managersplitter.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"managersplitter.Params":{"description":"Params defines the parameters for the module.","type":"object"},"managersplitter.PermissionCriteria":{"description":"PermissionCriteria defines the criteria for executing a permission.\nCurrently supports approved addresses (whitelist).","type":"object","properties":{"approvedAddresses":{"description":"List of approved addresses that can execute this permission.","type":"array","items":{"type":"string"}}}},"managersplitter.QueryAllManagerSplittersResponse":{"description":"QueryAllManagerSplittersResponse is response type for the Query/AllManagerSplitters RPC method.","type":"object","properties":{"managerSplitters":{"type":"array","items":{"type":"object","$ref":"#/definitions/managersplitter.ManagerSplitter"}},"pagination":{"$ref":"#/definitions/cosmos.base.query.v1beta1.PageResponse"}}},"managersplitter.QueryGetManagerSplitterResponse":{"description":"QueryGetManagerSplitterResponse is response type for the Query/ManagerSplitter RPC method.","type":"object","properties":{"managerSplitter":{"$ref":"#/definitions/managersplitter.ManagerSplitter"}}},"managersplitter.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/managersplitter.Params"}}},"maps.ActionPermission":{"description":"ActionPermission defines the permissions for performing an action.\n\nThis is simple and straightforward as the only thing we need to check is the permitted/forbidden times.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/maps.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/maps.UintRange"}}}},"maps.Map":{"type":"object","properties":{"creator":{"type":"string"},"defaultValue":{"type":"string"},"inheritManagerFrom":{"type":"string"},"manager":{"type":"string"},"mapId":{"type":"string"},"metadata":{"$ref":"#/definitions/maps.Metadata"},"permissions":{"$ref":"#/definitions/maps.MapPermissions"},"updateCriteria":{"title":"config options that will not change at all","$ref":"#/definitions/maps.MapUpdateCriteria"},"valueOptions":{"$ref":"#/definitions/maps.ValueOptions"}}},"maps.MapPermissions":{"type":"object","properties":{"canDeleteMap":{"type":"array","items":{"type":"object","$ref":"#/definitions/maps.ActionPermission"}},"canUpdateManager":{"type":"array","items":{"type":"object","$ref":"#/definitions/maps.ActionPermission"}},"canUpdateMetadata":{"type":"array","items":{"type":"object","$ref":"#/definitions/maps.ActionPermission"}}}},"maps.MapUpdateCriteria":{"type":"object","properties":{"collectionId":{"type":"string","title":"ID slots are only updatable by token ID owner of this collection (\u003e1 balance at current time)"},"creatorOnly":{"type":"boolean","title":"Keys are address based and can only be updated by that respective address"},"firstComeFirstServe":{"description":"Claim slots. Can unclaim by setting to blank. Uses lastSetBy.","type":"boolean"},"managerOnly":{"type":"boolean","title":"All ID slots are only updatable by manager"}}},"maps.Metadata":{"description":"This message defines the metadata for the map.\nThe interpretation of this metadata should follow the map standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the map metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the map metadata.","type":"string"}}},"maps.MsgCreateMap":{"type":"object","properties":{"creator":{"type":"string"},"defaultValue":{"type":"string"},"inheritManagerFrom":{"type":"string"},"manager":{"type":"string"},"mapId":{"type":"string"},"metadata":{"$ref":"#/definitions/maps.Metadata"},"permissions":{"$ref":"#/definitions/maps.MapPermissions"},"updateCriteria":{"title":"config options that will not change at all","$ref":"#/definitions/maps.MapUpdateCriteria"},"valueOptions":{"$ref":"#/definitions/maps.ValueOptions"}}},"maps.MsgCreateMapResponse":{"type":"object"},"maps.MsgDeleteMap":{"type":"object","properties":{"creator":{"type":"string"},"mapId":{"type":"string"}}},"maps.MsgDeleteMapResponse":{"type":"object"},"maps.MsgSetValue":{"type":"object","properties":{"creator":{"type":"string"},"key":{"type":"string"},"mapId":{"type":"string"},"options":{"$ref":"#/definitions/maps.SetOptions"},"value":{"type":"string"}}},"maps.MsgSetValueResponse":{"type":"object"},"maps.MsgUpdateMap":{"type":"object","properties":{"creator":{"type":"string"},"manager":{"type":"string"},"mapId":{"type":"string"},"metadata":{"$ref":"#/definitions/maps.Metadata"},"permissions":{"$ref":"#/definitions/maps.MapPermissions"},"updateManager":{"type":"boolean"},"updateMetadata":{"type":"boolean"},"updatePermissions":{"type":"boolean"}}},"maps.MsgUpdateMapResponse":{"type":"object"},"maps.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/maps.Params"}}},"maps.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"maps.Params":{"description":"Params defines the parameters for the module.","type":"object"},"maps.QueryGetMapResponse":{"type":"object","properties":{"map":{"$ref":"#/definitions/maps.Map"}}},"maps.QueryGetMapValueResponse":{"type":"object","properties":{"value":{"$ref":"#/definitions/maps.ValueStore"}}},"maps.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/maps.Params"}}},"maps.SetOptions":{"type":"object","properties":{"useMostRecentCollectionId":{"type":"boolean"}}},"maps.UintRange":{"description":"The UintRange is a range of IDs from some start to some end (inclusive).\n\nuintRanges are one of the core types used in the BitBadgesChain module.\nThey are used for everything from token IDs to time ranges to min/max balance amounts.\n\nSee the BitBadges documentation for more information.","type":"object","properties":{"end":{"description":"The ending value of the range (inclusive).","type":"string"},"start":{"description":"The starting value of the range (inclusive).","type":"string"}}},"maps.ValueOptions":{"type":"object","properties":{"expectAddress":{"type":"boolean"},"expectBoolean":{"type":"boolean"},"expectUint":{"type":"boolean"},"expectUri":{"type":"boolean"},"noDuplicates":{"type":"boolean"},"permanentOnceSet":{"type":"boolean"}}},"maps.ValueStore":{"type":"object","properties":{"key":{"type":"string"},"lastSetBy":{"type":"string"},"value":{"type":"string"}}},"poolmanager.v1beta1.Affiliate":{"type":"object","title":"===================== Affiliate\nAffiliate represents an affiliate fee recipient","properties":{"address":{"type":"string","title":"address is the affiliate recipient address"},"basis_points_fee":{"type":"string","title":"basis_points_fee is the fee in basis points (1/10000, e.g., 100 = 1%)"}}},"poolmanager.v1beta1.AllPoolsResponse":{"type":"object","properties":{"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}}}},"poolmanager.v1beta1.AllRegisteredAlloyedPoolsResponse":{"type":"object","properties":{"contract_states":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.AlloyContractTakerFeeShareState"}}}},"poolmanager.v1beta1.AllTakerFeeShareAccumulatorsResponse":{"type":"object","properties":{"taker_fee_skim_accumulators":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeSkimAccumulator"}}}},"poolmanager.v1beta1.AllTakerFeeShareAgreementsResponse":{"type":"object","properties":{"taker_fee_share_agreements":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareAgreement"}}}},"poolmanager.v1beta1.AlloyContractTakerFeeShareState":{"description":"AlloyContractTakerFeeShareState contains the contract address of the alloyed\nasset pool, along with the adjusted taker fee share agreements for any asset\nwithin the alloyed asset pool that has a taker fee share agreement. If for\ninstance there are two denoms, and denomA makes up 50 percent and denomB\nmakes up 50 percent, and denom A has a taker fee share agreement with a skim\npercent of 10%, then the adjusted taker fee share agreement for denomA will\nbe 5%.","type":"object","properties":{"contract_address":{"description":"contract_address is the address of the alloyed asset pool contract.","type":"string"},"taker_fee_share_agreements":{"description":"taker_fee_share_agreements is the adjusted taker fee share agreements for\nany asset within the alloyed asset pool that has a taker fee share\nagreement.","type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareAgreement"}}}},"poolmanager.v1beta1.DenomPairTakerFee":{"type":"object","properties":{"denom0":{"description":"DEPRECATED: Now that we are using uni-directional trading pairs, we are\nusing tokenInDenom and tokenOutDenom instead of denom0 and denom1 to\nprevent confusion.","type":"string"},"denom1":{"type":"string"},"taker_fee":{"type":"string"},"tokenInDenom":{"type":"string"},"tokenOutDenom":{"type":"string"}}},"poolmanager.v1beta1.EstimateSwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"poolmanager.v1beta1.EstimateSwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactResponse":{"description":"EstimateTradeBasedOnPriceImpactResponse represents the response data\nfor an estimated trade based on price impact. If a trade fails to be\nestimated the response would be 0,0 for input_coin and output_coin and will\nnot error.","type":"object","properties":{"input_coin":{"description":"input_coin is the actual input amount that would be tradeable\nunder the specified price impact.","$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"output_coin":{"description":"output_coin is the amount of tokens of the ToCoinDenom type\nthat will be received for the actual InputCoin trade.","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"poolmanager.v1beta1.ListPoolsByDenomResponse":{"type":"object","properties":{"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}}}},"poolmanager.v1beta1.MsgSetDenomPairTakerFee":{"type":"object","title":"===================== MsgSetDenomPairTakerFee","properties":{"denom_pair_taker_fee":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.DenomPairTakerFee"}},"sender":{"type":"string"}}},"poolmanager.v1beta1.MsgSetDenomPairTakerFeeResponse":{"type":"object","properties":{"success":{"type":"boolean"}}},"poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenom":{"type":"object","title":"===================== MsgSetTakerFeeShareAgreementForDenom","properties":{"denom":{"description":"denom is the denom that the taker fee share agreement is being set for.\nEx. If this is set to \"nBTC\", then any trade route that includes \"nBTC\"\nwill have the skim_percent skimmed from the taker fees and sent to the\nskim_address.","type":"string"},"sender":{"type":"string"},"skim_address":{"description":"skim_address is the address belonging to the respective bridge provider\nthat the skimmed taker fees will be sent to at the end of each epoch.","type":"string"},"skim_percent":{"description":"skim_percent is the percentage of taker fees that will be skimmed for the\nbridge provider, in the event that the bridge provider's denom is included\nin the swap route.","type":"string"}}},"poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenomResponse":{"type":"object"},"poolmanager.v1beta1.MsgSplitRouteSwapExactAmountIn":{"type":"object","title":"===================== MsgSplitRouteSwapExactAmountIn","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInSplitRoute"}},"sender":{"type":"string"},"token_in_denom":{"type":"string"},"token_out_min_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSplitRouteSwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOut":{"type":"object","title":"===================== MsgSplitRouteSwapExactAmountOut","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountOutSplitRoute"}},"sender":{"type":"string"},"token_in_max_amount":{"type":"string"},"token_out_denom":{"type":"string"}}},"poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSwapExactAmountIn":{"type":"object","title":"===================== MsgSwapExactAmountIn","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInRoute"}},"sender":{"type":"string"},"token_in":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"token_out_min_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSwapExactAmountOut":{"type":"object","title":"===================== MsgSwapExactAmountOut","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountOutRoute"}},"sender":{"type":"string"},"token_in_max_amount":{"type":"string"},"token_out":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"poolmanager.v1beta1.MsgSwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"poolmanager.v1beta1.NumPoolsResponse":{"type":"object","properties":{"num_pools":{"type":"string","format":"uint64"}}},"poolmanager.v1beta1.Params":{"type":"object","title":"Params holds parameters for the poolmanager module","properties":{"taker_fee_params":{"description":"taker_fee_params is the container of taker fee parameters.","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeParams"}}},"poolmanager.v1beta1.ParamsResponse":{"type":"object","properties":{"params":{"$ref":"#/definitions/poolmanager.v1beta1.Params"}}},"poolmanager.v1beta1.PoolResponse":{"type":"object","properties":{"pool":{"$ref":"#/definitions/google.protobuf.Any"}}},"poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomResponse":{"type":"object","properties":{"contract_state":{"$ref":"#/definitions/poolmanager.v1beta1.AlloyContractTakerFeeShareState"}}},"poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdResponse":{"type":"object","properties":{"contract_state":{"$ref":"#/definitions/poolmanager.v1beta1.AlloyContractTakerFeeShareState"}}},"poolmanager.v1beta1.SpotPriceResponse":{"description":"SpotPriceResponse defines the gRPC response structure for a SpotPrice\nquery.","type":"object","properties":{"spot_price":{"type":"string","title":"String of the Dec. Ex) 10.203uatom"}}},"poolmanager.v1beta1.SwapAmountInRoute":{"type":"object","properties":{"pool_id":{"type":"string","format":"uint64"},"token_out_denom":{"type":"string"}}},"poolmanager.v1beta1.SwapAmountInSplitRoute":{"type":"object","properties":{"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInRoute"}},"token_in_amount":{"type":"string"}}},"poolmanager.v1beta1.SwapAmountOutRoute":{"type":"object","properties":{"pool_id":{"type":"string","format":"uint64"},"token_in_denom":{"type":"string"}}},"poolmanager.v1beta1.SwapAmountOutSplitRoute":{"type":"object","properties":{"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountOutRoute"}},"token_out_amount":{"type":"string"}}},"poolmanager.v1beta1.TakerFeeDistributionPercentage":{"description":"TakerFeeDistributionPercentage defines what percent of the taker fee category\ngets distributed to the available categories.","type":"object","properties":{"community_pool":{"type":"string"},"staking_rewards":{"type":"string"}}},"poolmanager.v1beta1.TakerFeeParams":{"description":"TakerFeeParams consolidates the taker fee parameters for the poolmanager.","type":"object","properties":{"admin_addresses":{"description":"admin_addresses is a list of addresses that are allowed to set and remove\ncustom taker fees for denom pairs. Governance also has the ability to set\nand remove custom taker fees for denom pairs, but with the normal\ngovernance delay.","type":"array","items":{"type":"string"}},"community_pool_denom_to_swap_non_whitelisted_assets_to":{"description":"community_pool_denom_to_swap_non_whitelisted_assets_to is the denom that\nnon-whitelisted taker fees will be swapped to before being sent to\nthe community pool.","type":"string"},"community_pool_denom_whitelist":{"description":"community_pool_denom_whitelist is a list of denoms that should be sent\ndirectly to the community pool instead of being swapped to the\n`community_pool_denom_to_swap_non_whitelisted_assets_to`.","type":"array","items":{"type":"string"}},"default_taker_fee":{"description":"default_taker_fee is the fee used when creating a new pool that doesn't\nfall under a custom pool taker fee or stableswap taker fee category.","type":"string"},"non_osmo_taker_fee_distribution":{"description":"non_osmo_taker_fee_distribution defines the distribution of taker fees\ngenerated in non-OSMO. As of this writing, it has two categories:\n- staking_rewards: the percent of the taker fee that gets swapped to OSMO\n and then distributed to stakers.\n- community_pool: the percent of the taker fee that gets sent to the\n community pool. Note: If the non-OSMO asset is an authorized_quote_denom,\n that denom is sent directly to the community pool. Otherwise, it is\n swapped to the community_pool_denom_to_swap_non_whitelisted_assets_to and\n then sent to the community pool as that denom.","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeDistributionPercentage"},"osmo_taker_fee_distribution":{"description":"osmo_taker_fee_distribution defines the distribution of taker fees\ngenerated in OSMO. As of this writing, it has two categories:\n- staking_rewards: the percent of the taker fee that gets distributed to\n stakers.\n- community_pool: the percent of the taker fee that gets sent to the\n community pool.","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeDistributionPercentage"},"reduced_fee_whitelist":{"description":"reduced_fee_whitelist is a list of addresses that are\nallowed to pay a reduce taker fee when performing a swap\n(i.e. swap without paying the taker fee).\nIt is intended to be used for integrators who meet qualifying factors\nthat are approved by governance.\nInitially, the taker fee is allowed to be bypassed completely. However\nIn the future, we will charge a reduced taker fee instead of no fee at all.","type":"array","items":{"type":"string"}}}},"poolmanager.v1beta1.TakerFeeShareAgreement":{"description":"TakerFeeShareAgreement represents the agreement between the Osmosis protocol\nand a specific denom to share a certain percent of taker fees generated in\nany route that contains said denom. For example, if the agreement specifies a\n10% skim_percent, this means 10% of the taker fees generated in a swap route\ncontaining the specified denom will be sent to the address specified\nin the skim_address field at the end of each epoch. These skim_percents are\nadditive, so if three taker fee agreements have skim percents of 10%, 20%,\nand 30%, the total skim percent for the route will be 60%.","type":"object","properties":{"denom":{"description":"denom is the denom that has the taker fee share agreement.","type":"string"},"skim_address":{"description":"skim_address is the address belonging to the respective denom\nthat the skimmed taker fees will be sent to at the end of each epoch.","type":"string"},"skim_percent":{"description":"skim_percent is the percentage of taker fees that will be skimmed for the\ndenom, in the event that the denom is included in the swap route.","type":"string"}}},"poolmanager.v1beta1.TakerFeeShareAgreementFromDenomResponse":{"type":"object","properties":{"taker_fee_share_agreement":{"$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareAgreement"}}},"poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueResponse":{"type":"object","properties":{"amount":{"type":"string"}}},"poolmanager.v1beta1.TakerFeeSkimAccumulator":{"description":"TakerFeeSkimAccumulator accumulates the total skimmed taker fees for each\ndenom that has a taker fee share agreement.","type":"object","properties":{"denom":{"description":"denom is the denom that has the taker fee share agreement.","type":"string"},"skimmed_taker_fees":{"description":"skimmed_taker_fees is the total skimmed taker fees for the denom.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"poolmanager.v1beta1.TotalLiquidityResponse":{"type":"object","properties":{"liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"poolmanager.v1beta1.TotalPoolLiquidityResponse":{"type":"object","properties":{"liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"poolmanager.v1beta1.TotalVolumeForPoolResponse":{"type":"object","properties":{"volume":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"poolmanager.v1beta1.TradingPairTakerFeeResponse":{"type":"object","properties":{"taker_fee":{"type":"string"}}},"poolmanager.v2.SpotPriceResponse":{"description":"SpotPriceResponse defines the gRPC response structure for a SpotPrice\nquery.","type":"object","properties":{"spot_price":{"type":"string","title":"String of the BigDec. Ex) 10.203uatom"}}},"sendmanager.MsgSendWithAliasRouting":{"description":"MsgSendWithAliasRouting defines a message for sending coins with alias denom routing.\nThis message mirrors cosmos bank MsgSend but routes through sendmanager to handle\nboth standard coins and alias denoms (e.g., badgeslp:).","type":"object","properties":{"amount":{"description":"amount is the list of coins to send.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"from_address":{"description":"from_address is the address of the account sending the coins.","type":"string"},"to_address":{"description":"to_address is the address of the account receiving the coins.","type":"string"}}},"sendmanager.MsgSendWithAliasRoutingResponse":{"description":"MsgSendWithAliasRoutingResponse defines the response structure for executing a\nMsgSendWithAliasRouting message.","type":"object"},"sendmanager.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/sendmanager.Params"}}},"sendmanager.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"sendmanager.Params":{"description":"Params defines the parameters for the module.","type":"object"},"sendmanager.QueryBalanceResponse":{"description":"QueryBalanceResponse is response type for the Query/Balance RPC method.","type":"object","properties":{"balance":{"description":"balance is the balance of the specified denom for the address.","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"sendmanager.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/sendmanager.Params"}}},"tokenization.ActionPermission":{"description":"ActionPermission defines the permissions for performing an action.\n\nThis is simple and straightforward as the only thing we need to check is the permitted/forbidden times.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.AddressChecks":{"type":"object","title":"AddressChecks defines checks for address types (EVM contract, liquidity pool, etc.)","properties":{"mustBeEvmContract":{"description":"Require the address to be an EVM contract (has code).","type":"boolean"},"mustBeLiquidityPool":{"description":"Require the address to be a liquidity pool.","type":"boolean"},"mustNotBeEvmContract":{"description":"Require the address to not be an EVM contract (no code).","type":"boolean"},"mustNotBeLiquidityPool":{"description":"Require the address to not be a liquidity pool.","type":"boolean"}}},"tokenization.AddressList":{"type":"object","title":"An AddressList is a list of addresses that are referenced by an ID.\nAddressLists are used in defining approvals ia a reusbale identifier. \nNote: We also support a reserved ID system by string ID; \"Mint\", \"!Mint\"","properties":{"addresses":{"description":"List of addresses included in the list.","type":"array","items":{"type":"string"}},"createdBy":{"description":"The user or entity who created the address list.","type":"string"},"customData":{"description":"Custom arbitrary data or additional information related to the address list.","type":"string"},"listId":{"description":"Unique identifier for the address list.","type":"string"},"uri":{"description":"URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable.","type":"string"},"whitelist":{"description":"Indicates whether the list includes the specified addresses (true) or excludes them (false).","type":"boolean"}}},"tokenization.AddressListInput":{"description":"AddressListInput is used for creating address lists via MsgCreateAddressLists.\nIt contains all fields from AddressList except createdBy, which is automatically set from the message creator.","type":"object","properties":{"addresses":{"description":"List of addresses included in the list.","type":"array","items":{"type":"string"}},"customData":{"description":"Custom arbitrary data or additional information related to the address list.","type":"string"},"listId":{"description":"Unique identifier for the address list.","type":"string"},"uri":{"description":"URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable.","type":"string"},"whitelist":{"description":"Indicates whether the list includes the specified addresses (true) or excludes them (false).","type":"boolean"}}},"tokenization.AliasPath":{"type":"object","properties":{"conversion":{"description":"The conversion between cosmos coin and token balances.","$ref":"#/definitions/tokenization.ConversionWithoutDenom"},"denom":{"description":"The denomination (denom) to be used for the alias.","type":"string"},"denomUnits":{"description":"Denomination units for the alias. Defines how the coin can be displayed with different decimal places and symbols.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DenomUnit"}},"metadata":{"description":"The metadata for this alias path.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"description":"The symbol for the alias (e.g., \"BADGE\", \"NFT\"). Used for display purposes. Note that this may not be the default.","type":"string"}}},"tokenization.AliasPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DenomUnit"}},"metadata":{"description":"The metadata for this alias path.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.AltTimeChecks":{"type":"object","title":"AltTimeChecks defines alternative time-based checks for approval denial.\nIf the transfer time falls within any of the specified offline hours or days, the approval is denied.\nUses UTC timezone for neutral timezone approach.\nofflineHours: ranges of hours (0-23) when transfers should be denied\nofflineDays: ranges of days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied","properties":{"offlineDays":{"description":"Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"offlineDaysOfMonth":{"description":"Days of month (1-31) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"offlineHours":{"description":"Hours (0-23) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"offlineMonths":{"description":"Months (1-12, where 1=January, 12=December) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"offlineWeeksOfYear":{"description":"Weeks of year (1-52) when transfers should be denied. Uses ISO 8601 week numbering.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"timezoneOffsetMinutes":{"description":"Timezone offset magnitude in minutes from UTC. Default 0 = UTC. Examples: 300 for EST (UTC-5), 330 for IST (UTC+5:30).\nAll time checks are evaluated after applying this offset to the block time.","type":"string"},"timezoneOffsetNegative":{"type":"boolean","title":"If true, the timezone offset is subtracted (west of UTC). If false, it is added (east of UTC).\nExample: EST (UTC-5) = timezoneOffsetMinutes: 300, timezoneOffsetNegative: true"}}},"tokenization.ApprovalAmounts":{"description":"ApprovalAmounts defines approval amounts per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times \nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallApprovalAmount":{"description":"Overall approval amount.","type":"string"},"perFromAddressApprovalAmount":{"description":"Approval amount per \"from\" address.","type":"string"},"perInitiatedByAddressApprovalAmount":{"description":"Approval amount per \"initiated by\" address.","type":"string"},"perToAddressApprovalAmount":{"description":"Approval amount per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.ResetTimeIntervals"}}},"tokenization.ApprovalChange":{"description":"ApprovalChange represents a change to an approval (created, edited, or deleted).","type":"object","properties":{"action":{"type":"string"},"approvalId":{"type":"string"},"approvalLevel":{"type":"string"},"version":{"type":"string"}}},"tokenization.ApprovalCriteria":{"description":"ApprovalCriteria defines the criteria for approving transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"allowBackedMinting":{"description":"If true, this collection approval allows backed minting operations (CosmosCoinBackedPath).\nWhen false, this approval cannot be used for transfers involving backed minting addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"allowSpecialWrapping":{"description":"If true, this collection approval allows special wrapping operations (CosmosCoinWrapperPath).\nWhen false, this approval cannot be used for transfers involving wrapping addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"overridesFromOutgoingApprovals":{"description":"Overrides the user's outgoing approvals for approval. If true, this collection-level approval\ntakes precedence over any outgoing approvals defined by the sender, allowing the collection to\ncontrol outgoing transfer behavior.","type":"boolean"},"overridesToIncomingApprovals":{"description":"Overrides the user's incoming approvals for approval. If true, this collection-level approval\ntakes precedence over any incoming approvals defined by the recipient, allowing the collection to\ncontrol incoming transfer behavior.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"userApprovalSettings":{"description":"Issuer-imposed constraints on user-level coin transfers. Propagated to user-level approvals\nduring greedy transfer matching (same pattern as userRoyalties). Only applicable on collection-level approvals.\nIf conflicting settings across multiple matched approvals, the transfer is rejected (like royalties).","$ref":"#/definitions/tokenization.UserApprovalSettings"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.VotingChallenge"}}}},"tokenization.ApprovalIdentifierDetails":{"description":"ApprovalIdentifierDetails defines the details to identify a specific approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.ApprovalTracker":{"description":"ApprovalTracker defines the tracker for approvals. This tracks the cumulative number of transfers and associated balances transferred.","type":"object","properties":{"amounts":{"description":"Cumulative balances associated with the transfers that have been processed.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"lastUpdatedAt":{"description":"Last updated at time.","type":"string"},"numTransfers":{"description":"The number of transfers that have been processed.","type":"string"}}},"tokenization.ApprovalUsed":{"description":"ApprovalUsed represents an approval that was consumed during a transfer.","type":"object","properties":{"approvalId":{"type":"string"},"approvalLevel":{"type":"string"},"approverAddress":{"type":"string"},"version":{"type":"string"}}},"tokenization.AutoDeletionOptions":{"description":"AutoDeletionOptions defines the options for auto-deletion of approvals.","type":"object","properties":{"afterOneUse":{"type":"boolean","title":"After one use?"},"afterOverallMaxNumTransfers":{"type":"boolean","title":"After overall max number of uses threshold is met?"},"allowCounterpartyPurge":{"type":"boolean","title":"Allow counterparty to purge this approval if they are the only initiator"},"allowPurgeIfExpired":{"type":"boolean","title":"Allow others to call PurgeApprovals on behalf of this approval owner"}}},"tokenization.Balance":{"description":"Balance represents the balance of a token for a specific user.\nThe user amounts xAmount of a token specified for the time ranges specified.\n\nExample: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021.\n\nIf times or tokenIDs have len \u003e 1, then the user owns all token IDs specified for all time ranges specified.","type":"object","properties":{"amount":{"description":"The amount of the token owned by the user.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"The token IDs for which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.CoinTransfer":{"type":"object","properties":{"coins":{"description":"The sdk.Coins to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"overrideFromWithApproverAddress":{"description":"By default, the from address is the initiator of the transaction.\nIf this is set to true, we will override the from address with the approver address.\nNote: This is not applicable for collection approvals (since approverAddress == '').","type":"boolean"},"overrideToWithInitiator":{"description":"By default, the to address is what is specified in the coin transfer.\nIf this is set to true, we will override the to address with the initiator of the transaction.","type":"boolean"},"to":{"description":"The address of the recipient of the transfer.","type":"string"}}},"tokenization.CoinTransferProto":{"description":"CoinTransferProto represents a coin transfer that occurred during a transaction.","type":"object","properties":{"amount":{"type":"string"},"denom":{"type":"string"},"from":{"type":"string"},"isProtocolFee":{"type":"boolean"},"to":{"type":"string"}}},"tokenization.CollectionApproval":{"type":"object","title":"CollectionApproval defines the rules for the approval of a transfer on the collection level","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.ApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.CollectionApprovalPermission":{"description":"CollectionApprovalPermission defines what collection approved transfers can be updated vs. are locked.\n\nEach transfer is broken down to a (from, to, initiatedBy, transferTime, tokenId) tuple.\nFor a transfer to match, we need to match ALL of the fields in the combination. \nThese are determined by the fromListId, toListId, initiatedByListId, transferTimes, tokenIds fields.\nAddressLists are used for (from, to, initiatedBy) which are a permanent list of addresses identified by an ID (see AddressLists). \n\npermanentlyPermitted/ForbiddenTimes: when can the manager execute this permission?\n\nEx: Let's say we are updating the transferability for the transfer tuple (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", 10, 1000).\nWe would check to find the FIRST CollectionApprovalPermission that matches this combination.\nIf we find a match, we would check the permitted/forbidden times to see if we can execute this permission (default is ALLOWED).\n\nEx: So if you wanted to freeze the transferability to enforce that token ID 1 will always be transferable, you could set\nthe combination (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", \"All Transfer Times\", 1) to always be forbidden.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.CollectionInvariants":{"description":"CollectionInvariants defines the invariants that apply to a collection.","type":"object","properties":{"cosmosCoinBackedPath":{"description":"The IBC backed (sdk.coin) path for the collection. Only one path is allowed.","$ref":"#/definitions/tokenization.CosmosCoinBackedPath"},"disablePoolCreation":{"description":"If true, disallows pool creation with this collection's assets.\nWhen true, any attempt to create a pool with tokenization assets from this collection will fail.","type":"boolean"},"evmQueryChallenges":{"type":"array","title":"EVM query invariants that must pass after all transfers complete.\nThese are checked once per message after all balance updates, with access to ALL recipient addresses.\nPlaceholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"maxSupplyPerId":{"description":"Maximum supply per token ID. Checked against Total address balances after transfers complete.\nA value of 0 means no limit (unlimited).","type":"string"},"noCustomOwnershipTimes":{"description":"If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }].\nThis prevents time-based restrictions on token ownership.","type":"boolean"},"noForcefulPostMintTransfers":{"description":"If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true.\nThis prevents forceful transfers that bypass user-level approvals.\nThis only applies to transfers where the from address does not equal \"Mint\".","type":"boolean"}}},"tokenization.CollectionMetadata":{"description":"This message defines the metadata for the collection.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the collection metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the collection metadata.","type":"string"}}},"tokenization.CollectionPermissions":{"description":"CollectionPermissions defines the permissions for the collection (i.e., what the manager can and cannot do).\n\nThere are three types of permissions for a collection: ActionPermission, TokenIdsActionPermission, and CollectionApprovalPermission.\n\nThe permission type allows fine-grained access control for each action.\n- ActionPermission: defines when the manager can perform an action or update a field.\n- TokenIdsActionPermission: defines when the manager can perform an action for specific tokens\n- CollectionApprovalPermission: defines when the manager can update the transferability of the collection and what transfers can be updated vs. locked.\n\nNote there are a few different times here which could get confusing:\n- permanentlyPermitted/ForbiddenTimes - the times that a permission can be performed\n- transferTimes - the times that a transfer occurs\n- ownershipTimes - the times when a token is owned by a user\n\nThe permitted/permanentlyForbiddenTimes are used to determine when a permission can be executed.\nOnce a time is set to be permitted or forbidden, it is PERMANENT and cannot be changed.\nIf a time is not set to be permitted or forbidden, it is considered NEUTRAL and can be updated but is ALLOWED by default.\n\nIMPORTANT: We take first-match only for the permissions. This means that if you forbid time T in array index 0 and permit time T in index 1, \nwe will only check the first permission (forbid time T) and not the second permission (permit time T).","type":"object","properties":{"canAddMoreAliasPaths":{"description":"Permissions related to adding more alias paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canAddMoreCosmosCoinWrapperPaths":{"description":"Permissions related to adding more cosmos coin wrapper paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canArchiveCollection":{"description":"Permissions related to archiving the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canDeleteCollection":{"description":"Permissions related to deleting the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateCollectionApprovals":{"description":"Permissions related to updating collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApprovalPermission"}},"canUpdateCollectionMetadata":{"description":"Permissions related to updating the metadata of the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateCustomData":{"description":"Permissions related to updating custom data for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateManager":{"description":"Permissions related to updating the collection's manager.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateStandards":{"description":"Permissions related to updating standards for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateTokenMetadata":{"description":"Permissions related to updating token metadata for specific tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenIdsActionPermission"}},"canUpdateValidTokenIds":{"description":"Permissions related to creating more tokens for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenIdsActionPermission"}}}},"tokenization.CollectionStats":{"description":"CollectionStats tracks aggregated statistics for a collection.","type":"object","properties":{"balances":{"type":"array","title":"Tracks circulating supply as Balance[] for proper range handling","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"holderCount":{"type":"string"}}},"tokenization.Conversion":{"description":"Conversion defines a bidirectional conversion between a cosmos coin (with denom) and token balances.","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin side of the conversion (amount + denom).","$ref":"#/definitions/tokenization.ConversionSideAWithDenom"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}}}},"tokenization.ConversionSideA":{"description":"ConversionSideA represents the cosmos coin amount side of a conversion without denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"}}},"tokenization.ConversionSideAWithDenom":{"description":"ConversionSideAWithDenom represents the cosmos coin side of a conversion with denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"},"denom":{"description":"The denomination of the cosmos coin.","type":"string"}}},"tokenization.ConversionWithoutDenom":{"description":"ConversionWithoutDenom defines a bidirectional conversion between a cosmos coin amount (without denom) and token balances.\nThe denom is stored at the base level (e.g., in AliasPath or CosmosCoinWrapperPath).","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin amount side of the conversion (amount only, denom stored separately).","$ref":"#/definitions/tokenization.ConversionSideA"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}}}},"tokenization.CosmosCoinBackedPath":{"type":"object","properties":{"address":{"description":"The address associated with this backed path. Used for routing and escrowing IBC tokens.","type":"string"},"conversion":{"description":"The conversion between IBC cosmos coin and token balances.","$ref":"#/definitions/tokenization.Conversion"}}},"tokenization.CosmosCoinBackedPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.Conversion"}}},"tokenization.CosmosCoinWrapperPath":{"type":"object","properties":{"address":{"description":"The BitBadges address associated with this wrapper path. Used for routing and identifying the wrapper.","type":"string"},"allowOverrideWithAnyValidToken":{"description":"If true, allows this wrapper path to be used with any valid token ID in the collection via an {id} placeholder.","type":"boolean"},"conversion":{"description":"The conversion between cosmos coin and token balances.","$ref":"#/definitions/tokenization.ConversionWithoutDenom"},"denom":{"description":"The denomination (denom) to be used for the wrapped coin or the alias denom.","type":"string"},"denomUnits":{"description":"Denomination units for the wrapped coin. Defines how the coin can be displayed with different\ndecimal places and symbols (e.g., base unit, display unit). You can specify which is the default display unit (base level or one of these).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DenomUnit"}},"metadata":{"description":"The metadata for this wrapper path.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"description":"The symbol for the wrapped coin (e.g., \"BADGE\", \"NFT\"). Used for display purposes. Note that this may not be the default.","type":"string"}}},"tokenization.CosmosCoinWrapperPathAddObject":{"type":"object","properties":{"allowOverrideWithAnyValidToken":{"type":"boolean"},"conversion":{"$ref":"#/definitions/tokenization.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DenomUnit"}},"metadata":{"description":"The metadata for this wrapper path.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.DenomUnit":{"type":"object","properties":{"decimals":{"description":"The number of decimal places for this unit. Defines the precision of the unit.","type":"string"},"isDefaultDisplay":{"description":"If true, this is the default display unit. Only one unit should be marked as the default display unit.\nThis unit will be used by default when displaying the coin amount. If none are marked default, we use the base level.","type":"boolean"},"metadata":{"description":"The metadata for this denomination unit.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"description":"The symbol for this unit (e.g., \"BADGE\", \"nBADGE\"). Used for display purposes.","type":"string"}}},"tokenization.DynamicStore":{"description":"A DynamicStore is a flexible storage object that can store arbitrary data.\nIt is identified by a unique ID assigned by the blockchain, which is a uint64 that increments.\nDynamic stores are created by users and can only be updated or deleted by their creator.\nThey provide a way to store custom data on-chain with proper access control.","type":"object","properties":{"createdBy":{"description":"The address of the creator of this dynamic store.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The default value for uninitialized addresses (true/false).","type":"boolean"},"globalEnabled":{"description":"Global kill switch state (defaults to true on creation, can be toggled via UpdateDynamicStore).\nWhen false, all approvals using this store via DynamicStoreChallenge will fail immediately.","type":"boolean"},"storeId":{"description":"The unique identifier for this dynamic store. This is assigned by the blockchain.","type":"string"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.DynamicStoreChallenge":{"description":"DynamicStoreChallenge defines a challenge that requires the initiator to pass a dynamic store check.","type":"object","properties":{"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"storeId":{"description":"The ID of the dynamic store to check.","type":"string"}}},"tokenization.DynamicStoreValue":{"description":"A DynamicStoreValue stores a boolean value for a specific address in a dynamic store.\nThis allows the creator to set true/false values per address that can be checked during approval.","type":"object","properties":{"address":{"description":"The address for which this value is stored.","type":"string"},"storeId":{"description":"The unique identifier for this dynamic store.","type":"string"},"value":{"description":"The boolean value (true/false).","type":"boolean"}}},"tokenization.ETHSignatureChallenge":{"description":"ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge.\n\nAn ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce.\nThe signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId) and each signature can only be used once.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once.\nIf you update the challenge ID, then the used signatures tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this ETH signature challenge for tracking the number of uses per signature.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this ETH signature challenge.","type":"string"},"signer":{"description":"The Ethereum address that must sign the nonce for verification.","type":"string"},"uri":{"description":"The URI associated with this ETH signature challenge, optionally providing metadata about the challenge.","type":"string"}}},"tokenization.ETHSignatureProof":{"description":"ETHSignatureProof represents an Ethereum signature proof for a challenge.","type":"object","properties":{"nonce":{"description":"The nonce that was signed. The signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId).","type":"string"},"signature":{"description":"The Ethereum signature of the nonce.","type":"string"}}},"tokenization.EVMQueryChallenge":{"description":"EVMQueryChallenge defines a rule for approval via read-only EVM contract query.\n\nThe challenge executes a staticcall to the specified contract with the given calldata.\nThe result is compared against the expected result (if provided) or checked for non-zero return.\n\nIMPORTANT: This is read-only and cannot modify state. The query is executed with a gas limit\nto prevent DoS attacks. All results are deterministic since EVM state is consistent within a block.","type":"object","properties":{"calldata":{"type":"string","title":"ABI-encoded function selector + arguments (hex string without 0x prefix)\nExample: \"70a08231000000000000000000000000{address}\" for balanceOf(address)\nCan use placeholders: $initiator, $sender, $recipient (replaced at runtime)"},"comparisonOperator":{"description":"Comparison operator: \"eq\" (equals), \"ne\" (not equals), \"gt\" (greater than), \"gte\", \"lt\", \"lte\"\nOnly \"eq\" and \"ne\" work for non-numeric types. Default is \"eq\".","type":"string"},"contractAddress":{"type":"string","title":"The EVM contract address to query (0x format or bb1 format)"},"customData":{"type":"string","title":"Arbitrary custom data"},"expectedResult":{"description":"Expected return value (hex string without 0x prefix). If empty, any non-error result passes.\nFor boolean checks, use \"0000...0001\" for true.","type":"string"},"gasLimit":{"type":"string","title":"Gas limit for the query (default 100000, max 500000)"},"uri":{"type":"string","title":"The URI associated with this challenge (metadata)"}}},"tokenization.IncomingApprovalCriteria":{"description":"IncomingApprovalCriteria defines the criteria for approving incoming transfers.\nThis is used for user-level incoming approvals and only includes fields relevant to incoming transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.PredeterminedBalances"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No recipient checks are included for incoming approvals since the recipient is the user themselves.","$ref":"#/definitions/tokenization.AddressChecks"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.VotingChallenge"}}}},"tokenization.IncrementedBalances":{"description":"IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method.","type":"object","properties":{"allowAmountScaling":{"description":"When true, the actual transfer can be any evenly divisible integer multiple (\u003e=1x) of startBalances.\napprovalCriteria.coinTransfers are scaled by the same multiplier.\nAll other IncrementedBalances fields must be zero/false/nil when this is true.","type":"boolean"},"allowOverrideTimestamp":{"description":"Whether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set).","type":"boolean"},"allowOverrideWithAnyValidToken":{"type":"boolean","title":"Allow override of any valid ID"},"durationFromTimestamp":{"description":"The amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy.","type":"string"},"incrementOwnershipTimesBy":{"description":"The amount by which to increment ownership times. Incompatible with approveStartingFromNowBy.","type":"string"},"incrementTokenIdsBy":{"description":"The amount by which to increment token IDs.","type":"string"},"maxScalingMultiplier":{"description":"Maximum allowed scaling multiplier. Must be \u003e 0 when allowAmountScaling is true.\nThe chain rejects transfers where the computed multiplier exceeds this cap.\nIgnored (set to \"0\") when allowAmountScaling is false.","type":"string"},"recurringOwnershipTimes":{"description":"Recurring ownership times.","$ref":"#/definitions/tokenization.RecurringOwnershipTimes"},"startBalances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}}}},"tokenization.InvariantsAddObject":{"description":"InvariantsAddObject is used for adding invariants without specifying addresses.\nAddresses are generated by the keeper and stored in the collection.","type":"object","properties":{"cosmosCoinBackedPath":{"description":"The IBC backed (sdk.coin) path for the collection. Only one path is allowed.\nAddress will be generated by the keeper.","$ref":"#/definitions/tokenization.CosmosCoinBackedPathAddObject"},"disablePoolCreation":{"description":"If true, disallows pool creation with this collection's assets.\nWhen true, any attempt to create a pool with tokenization assets from this collection will fail.","type":"boolean"},"evmQueryChallenges":{"type":"array","title":"EVM query invariants that must pass after all transfers complete.\nThese are checked once per message after all balance updates, with access to ALL recipient addresses.\nPlaceholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"maxSupplyPerId":{"description":"Maximum supply per token ID. Checked against Total address balances after transfers complete.\nA value of 0 means no limit (unlimited).","type":"string"},"noCustomOwnershipTimes":{"description":"If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }].\nThis prevents time-based restrictions on token ownership.","type":"boolean"},"noForcefulPostMintTransfers":{"description":"If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true.\nThis prevents forceful transfers that bypass user-level approvals.\nThis only applies to transfers where the from address does not equal \"Mint\".","type":"boolean"}}},"tokenization.ManualBalances":{"description":"ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set.","type":"object","properties":{"balances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}}}},"tokenization.MaxNumTransfers":{"description":"MaxNumTransfers defines the maximum number of transfers per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times\nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallMaxNumTransfers":{"description":"Overall maximum number of transfers.","type":"string"},"perFromAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"from\" address.","type":"string"},"perInitiatedByAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"initiated by\" address.","type":"string"},"perToAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.ResetTimeIntervals"}}},"tokenization.MerkleChallenge":{"description":"Challenges define a rule for the approval in the form of a Merkle challenge.\n\nA Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof,\nthen the challenge is met. All challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials.\n\nIMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge.\nIf you update the challenge ID, then the used leaves tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this Merkle challenge for tracking the number of uses per leaf.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this Merkle challenge.","type":"string"},"expectedProofLength":{"description":"The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks.","type":"string"},"leafSigner":{"description":"Ethereum address that must sign the leaf. Used to protect against man-in-the-middle attacks.\nSignature scheme: sign(leaf + \"-\" + creatorAddress), verified using elliptic curve signature verification.","type":"string"},"maxUsesPerLeaf":{"description":"The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks.","type":"string"},"root":{"description":"The root hash of the Merkle tree to which the Merkle path must lead for verification.","type":"string"},"uri":{"description":"The URI associated with this Merkle challenge, optionally providing metadata about the challenge.","type":"string"},"useCreatorAddressAsLeaf":{"description":"If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses.","type":"boolean"}}},"tokenization.MerklePathItem":{"description":"MerklePathItem represents an item in a Merkle path.","type":"object","properties":{"aunt":{"description":"The hash of the sibling node (aunt) in the Merkle path.","type":"string"},"onRight":{"description":"Indicates whether the aunt node is on the right side of the path.","type":"boolean"}}},"tokenization.MerkleProof":{"description":"MerkleProof represents a Merkle proof, consistent with Tendermint/Crypto Merkle tree.","type":"object","properties":{"aunts":{"description":"List of Merkle path items (aunts) that make up the proof.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerklePathItem"}},"leaf":{"description":"The hash of the leaf node for which the proof is generated.","type":"string"},"leafSignature":{"description":"The signature of the leaf node tying the address to the leaf node.","type":"string"}}},"tokenization.MsgCastVote":{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","type":"object","properties":{"approvalId":{"description":"The approval ID.","type":"string"},"approvalLevel":{"description":"The approval level (\"collection\", \"incoming\", or \"outgoing\").","type":"string"},"approverAddress":{"description":"The approver address (empty string for collection-level approvals).","type":"string"},"collectionId":{"description":"The collection ID for the voting challenge.","type":"string"},"creator":{"description":"The address of the voter casting the vote.","type":"string"},"proposalId":{"description":"The proposal ID (challenge ID) from the VotingChallenge.","type":"string"},"yesWeight":{"description":"The percentage weight (0-100) allocated to \"yes\" vote.\nThe remaining percentage (100 - yesWeight) is allocated to \"no\" vote.\nExample: yesWeight=70 means 70% yes, 30% no.","type":"string"}}},"tokenization.MsgCastVoteResponse":{"type":"object"},"tokenization.MsgCreateAddressLists":{"description":"MsgCreateAddressLists is used to create address lists.","type":"object","properties":{"addressLists":{"description":"Address lists to create. The createdBy field will be automatically set to the creator address.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AddressListInput"}},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgCreateAddressListsResponse":{"description":"MsgCreateAddressListsResponse is the response to MsgCreateAddressLists.","type":"object"},"tokenization.MsgCreateCollection":{"description":"MsgCreateCollection is used to create a new collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AliasPathAddObject"}},"collectionApprovals":{"description":"Collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionMetadata":{"description":"Collection metadata.","$ref":"#/definitions/tokenization.CollectionMetadata"},"collectionPermissions":{"description":"Collection permissions.","$ref":"#/definitions/tokenization.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.InvariantsAddObject"},"isArchived":{"description":"isArchived flag.","type":"boolean"},"manager":{"description":"Manager address.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"Standards entries.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"Token metadata entries.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.MsgCreateCollectionResponse":{"description":"MsgCreateCollectionResponse is the response to MsgCreateCollection.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgCreateDynamicStore":{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The default value for uninitialized addresses (true/false).","type":"boolean"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.MsgCreateDynamicStoreResponse":{"description":"MsgCreateDynamicStoreResponse is the response to MsgCreateDynamicStore.","type":"object","properties":{"reviewItems":{"type":"array","items":{"type":"string"}},"storeId":{"description":"ID of the dynamic store.","type":"string"}}},"tokenization.MsgDeleteCollection":{"description":"MsgDeleteCollection is used to delete a collection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgDeleteCollectionResponse":{"description":"MsgDeleteCollectionResponse is the response to MsgDeleteCollection.","type":"object"},"tokenization.MsgDeleteDynamicStore":{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store to delete.","type":"string"}}},"tokenization.MsgDeleteDynamicStoreResponse":{"description":"MsgDeleteDynamicStoreResponse is the response to MsgDeleteDynamicStore.","type":"object"},"tokenization.MsgDeleteIncomingApproval":{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgDeleteIncomingApprovalResponse":{"description":"MsgDeleteIncomingApprovalResponse is the response to MsgDeleteIncomingApproval.","type":"object","properties":{"found":{"type":"boolean"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.MsgDeleteOutgoingApproval":{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgDeleteOutgoingApprovalResponse":{"description":"MsgDeleteOutgoingApprovalResponse is the response to MsgDeleteOutgoingApproval.","type":"object","properties":{"found":{"type":"boolean"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.MsgPurgeApprovals":{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","type":"object","properties":{"approvalsToPurge":{"description":"Specific approvals to purge. If empty, purges all applicable approvals based on other flags.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalIdentifierDetails"}},"approverAddress":{"description":"Address of the user whose approvals to purge. If empty, defaults to creator.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"purgeCounterpartyApprovals":{"description":"Whether to purge counterparty approvals (approvals where the creator is the only initiator).","type":"boolean"},"purgeExpired":{"description":"Whether to purge expired approvals (approvals with no future valid transfer times).","type":"boolean"}}},"tokenization.MsgPurgeApprovalsResponse":{"description":"MsgPurgeApprovalsResponse is the response to MsgPurgeApprovals.","type":"object","properties":{"numPurged":{"description":"Number of approvals purged.","type":"string"},"purgedApprovalIds":{"type":"array","items":{"type":"string"}},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgSetCollectionApprovals":{"type":"object","title":"MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission","properties":{"canUpdateCollectionApprovals":{"type":"array","title":"Permission to update collection approvals","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApprovalPermission"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgSetCollectionApprovalsResponse":{"description":"MsgSetCollectionApprovalsResponse is the response to MsgSetCollectionApprovals.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgSetCollectionMetadata":{"type":"object","title":"MsgSetCollectionMetadata sets the collection metadata and canUpdateCollectionMetadata permission","properties":{"canUpdateCollectionMetadata":{"type":"array","title":"Permission to update collection metadata","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.CollectionMetadata"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgSetCollectionMetadataResponse":{"description":"MsgSetCollectionMetadataResponse is the response to MsgSetCollectionMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetCustomData":{"type":"object","title":"MsgSetCustomData sets the custom data and canUpdateCustomData permission","properties":{"canUpdateCustomData":{"type":"array","title":"Permission to update custom data","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"}}},"tokenization.MsgSetCustomDataResponse":{"description":"MsgSetCustomDataResponse is the response to MsgSetCustomData.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetDynamicStoreValue":{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","type":"object","properties":{"address":{"description":"The address for which to set the value.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store.","type":"string"},"value":{"description":"The boolean value to set (true/false).","type":"boolean"}}},"tokenization.MsgSetDynamicStoreValueResponse":{"description":"MsgSetDynamicStoreValueResponse is the response to MsgSetDynamicStoreValue.","type":"object","properties":{"previousValue":{"type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgSetIncomingApproval":{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","type":"object","properties":{"approval":{"description":"The incoming approval to set.","$ref":"#/definitions/tokenization.UserIncomingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgSetIncomingApprovalResponse":{"description":"MsgSetIncomingApprovalResponse is the response to MsgSetIncomingApproval.","type":"object","properties":{"action":{"type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.MsgSetIsArchived":{"type":"object","title":"MsgSetIsArchived sets the isArchived and canArchiveCollection permission","properties":{"canArchiveCollection":{"type":"array","title":"Permission to archive collection","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"isArchived":{"description":"New isArchived to set.","type":"boolean"}}},"tokenization.MsgSetIsArchivedResponse":{"description":"MsgSetIsArchivedResponse is the response to MsgSetIsArchived.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetManager":{"type":"object","title":"MsgSetManager sets the manager and canUpdateManager permission","properties":{"canUpdateManager":{"type":"array","title":"Permission to update manager","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"manager":{"description":"New manager to set.","type":"string"}}},"tokenization.MsgSetManagerResponse":{"description":"MsgSetManagerResponse is the response to MsgSetManager.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetOutgoingApproval":{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","type":"object","properties":{"approval":{"description":"The outgoing approval to set.","$ref":"#/definitions/tokenization.UserOutgoingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgSetOutgoingApprovalResponse":{"description":"MsgSetOutgoingApprovalResponse is the response to MsgSetOutgoingApproval.","type":"object","properties":{"action":{"type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.MsgSetReservedProtocolAddress":{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","type":"object","properties":{"address":{"description":"Address to set or unset as reserved protocol address.","type":"string"},"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"isReservedProtocol":{"description":"Whether the address should be a reserved protocol address (true) or not (false).","type":"boolean"}}},"tokenization.MsgSetReservedProtocolAddressResponse":{"description":"MsgSetReservedProtocolAddressResponse is the response to MsgSetReservedProtocolAddress.","type":"object"},"tokenization.MsgSetStandards":{"type":"object","title":"MsgSetStandards sets the standards and canUpdateStandards permission","properties":{"canUpdateStandards":{"type":"array","title":"Permission to update standards","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}}}},"tokenization.MsgSetStandardsResponse":{"description":"MsgSetStandardsResponse is the response to MsgSetStandards.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetTokenMetadata":{"type":"object","title":"MsgSetTokenMetadata sets the token metadata and canUpdateTokenMetadata permission","properties":{"canUpdateTokenMetadata":{"type":"array","title":"Permission to update token metadata","items":{"type":"object","$ref":"#/definitions/tokenization.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}}}},"tokenization.MsgSetTokenMetadataResponse":{"description":"MsgSetTokenMetadataResponse is the response to MsgSetTokenMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetValidTokenIds":{"type":"object","title":"MsgSetValidTokenIds sets the validTokenIds and canUpdateValidTokenIds permission","properties":{"canUpdateValidTokenIds":{"type":"array","title":"Permission to update valid token IDs","items":{"type":"object","$ref":"#/definitions/tokenization.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.MsgSetValidTokenIdsResponse":{"description":"MsgSetValidTokenIdsResponse is the response to MsgSetValidTokenIds.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgTransferTokens":{"description":"MsgTransferTokens is used to transfer tokens.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"transfers":{"description":"Transfers to execute.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Transfer"}}}},"tokenization.MsgTransferTokensResponse":{"description":"MsgTransferTokensResponse is the response to MsgTransferTokens.","type":"object","properties":{"approvalsUsed":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalUsed"}},"balancesTransferred":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"coinTransfers":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CoinTransferProto"}},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgUniversalUpdateCollection":{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.MsgUniversalUpdateCollectionResponse":{"description":"MsgUniversalUpdateCollectionResponse is the response to MsgUniversalUpdateCollection.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgUpdateCollection":{"description":"MsgUpdateCollection is used to update a collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.MsgUpdateCollectionResponse":{"description":"MsgUpdateCollectionResponse is the response to MsgUpdateCollection.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgUpdateDynamicStore":{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The new default value for uninitialized addresses (true/false).","type":"boolean"},"globalEnabled":{"description":"The global kill switch state (true = enabled, false = disabled/halted).\nCallers should query the current value first if they want to keep it unchanged.","type":"boolean"},"storeId":{"description":"ID of the dynamic store to update.","type":"string"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.MsgUpdateDynamicStoreResponse":{"description":"MsgUpdateDynamicStoreResponse is the response to MsgUpdateDynamicStore.","type":"object"},"tokenization.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/tokenization.Params"}}},"tokenization.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"tokenization.MsgUpdateUserApprovals":{"description":"MsgUpdateUserApprovals is used to update user approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Auto-approve setting for all incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Auto-approve setting for self-initiated incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Auto-approve setting for self-initiated outgoing transfers.","type":"boolean"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"incomingApprovals":{"description":"New incoming approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserIncomingApproval"}},"outgoingApprovals":{"description":"New outgoing approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserOutgoingApproval"}},"updateAutoApproveAllIncomingTransfers":{"description":"Indicates if auto-approve settings for all incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Indicates if auto-approve settings for self-initiated incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Indicates if auto-approve settings for self-initiated outgoing transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIncomingApprovals":{"description":"Indicates if incoming approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateOutgoingApprovals":{"description":"Indicates if outgoing approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateUserPermissions":{"description":"Indicates if user permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"userPermissions":{"description":"New user permissions to set.","$ref":"#/definitions/tokenization.UserPermissions"}}},"tokenization.MsgUpdateUserApprovalsResponse":{"description":"MsgUpdateUserApprovalsResponse is the response to MsgUpdateUserApprovals.","type":"object","properties":{"incomingChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"outgoingChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MustOwnTokens":{"description":"MustOwnTokens represents a condition where a user must own specific tokens\nto be approved to transfer.\n\n- collectionId: The ID of the collection for the tokens that must be owned\n- amountRange: The range of amounts the user must own (min to max)\n- ownershipTimes: The time ranges during which the user must own the tokens.\n- tokenIds: The token IDs the user must own.\n- overrideWithCurrentTime: If true, auto override ownershipTimes with the current time.\n- mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for \u003e= 1 millisecond is sufficient.","type":"object","properties":{"amountRange":{"description":"The range of amounts the user must own (min to max).","$ref":"#/definitions/tokenization.UintRange"},"collectionId":{"description":"The ID of the collection.","type":"string"},"mustSatisfyForAllAssets":{"description":"If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token.","type":"boolean"},"overrideWithCurrentTime":{"description":"If true, override ownershipTimes with the current time.","type":"boolean"},"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user must own the tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"The token IDs the user must own.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.OutgoingApprovalCriteria":{"description":"OutgoingApprovalCriteria defines the criteria for approving outgoing transfers.\nThis is used for user-level outgoing approvals and only includes fields relevant to outgoing transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No sender checks are included for outgoing approvals since the sender is the user themselves.","$ref":"#/definitions/tokenization.AddressChecks"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.VotingChallenge"}}}},"tokenization.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"affiliate_percentage":{"type":"string","title":"affiliate_percentage defines the percentage of the transfer amount that goes to the affiliate"},"allowed_denoms":{"type":"array","title":"allowed_denoms defines the list of denoms that are allowed to be used in coin_transfers","items":{"type":"string"}}}},"tokenization.PathMetadata":{"description":"This message defines the metadata for paths (alias paths and cosmos coin wrapper paths).\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the path metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the path metadata.","type":"string"}}},"tokenization.PrecalculateBalancesFromApprovalDetails":{"description":"PrecalculateBalancesFromApprovalDetails defines the details for precalculating balances from an approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"precalculationOptions":{"description":"The options for precalculating the balances.","$ref":"#/definitions/tokenization.PrecalculationOptions"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.PrecalculationOptions":{"description":"PrecalculationOptions defines the options for precalculating the balances.","type":"object","properties":{"overrideTimestamp":{"description":"The timestamp to override with when calculating the balances.","type":"string"},"scalingMultiplier":{"description":"When \u003e 0 and allowAmountScaling is true on the approval, all precalculated balance amounts\nare multiplied by this value. Must be \u003c= maxScalingMultiplier. 0 means no scaling (returns 1x base).","type":"string"},"tokenIdsOverride":{"description":"The IDs to override for the transfer. Only applicable if using this option in precalculation.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.PredeterminedBalances":{"description":"PredeterminedBalances represents balances with predetermined order calculation.","type":"object","properties":{"incrementedBalances":{"description":"Balances that have a starting amount and increment. If this is nil, then we use the manual balances.","$ref":"#/definitions/tokenization.IncrementedBalances"},"manualBalances":{"description":"Manual balances that can be entered. If this is nil, then we use the incremented balances.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ManualBalances"}},"orderCalculationMethod":{"description":"The method to calculate the order of predetermined balances.","$ref":"#/definitions/tokenization.PredeterminedOrderCalculationMethod"}}},"tokenization.PredeterminedOrderCalculationMethod":{"description":"PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order.","type":"object","properties":{"challengeTrackerId":{"description":"If useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method.","type":"string"},"useMerkleChallengeLeafIndex":{"description":"Use the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc.","type":"boolean"},"useOverallNumTransfers":{"description":"Use the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc.","type":"boolean"},"usePerFromAddressNumTransfers":{"description":"Use the number of transfers per \"from\" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc.","type":"boolean"},"usePerInitiatedByAddressNumTransfers":{"description":"Use the number of transfers per \"initiated by\" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc.","type":"boolean"},"usePerToAddressNumTransfers":{"description":"Use the number of transfers per \"to\" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc.","type":"boolean"}}},"tokenization.QueryGetAddressListResponse":{"type":"object","properties":{"list":{"$ref":"#/definitions/tokenization.AddressList"}}},"tokenization.QueryGetAllReservedProtocolAddressesResponse":{"type":"object","properties":{"addresses":{"type":"array","items":{"type":"string"}}}},"tokenization.QueryGetApprovalTrackerResponse":{"type":"object","properties":{"tracker":{"$ref":"#/definitions/tokenization.ApprovalTracker"}}},"tokenization.QueryGetBalanceForTokenResponse":{"type":"object","properties":{"balance":{"type":"string"}}},"tokenization.QueryGetBalanceResponse":{"type":"object","properties":{"balance":{"$ref":"#/definitions/tokenization.UserBalanceStore"}}},"tokenization.QueryGetChallengeTrackerResponse":{"type":"object","properties":{"numUsed":{"type":"string"}}},"tokenization.QueryGetCollectionResponse":{"type":"object","properties":{"collection":{"$ref":"#/definitions/tokenization.TokenCollection"}}},"tokenization.QueryGetCollectionStatsResponse":{"type":"object","properties":{"stats":{"$ref":"#/definitions/tokenization.CollectionStats"}}},"tokenization.QueryGetDynamicStoreResponse":{"type":"object","properties":{"store":{"$ref":"#/definitions/tokenization.DynamicStore"}}},"tokenization.QueryGetDynamicStoreValueResponse":{"type":"object","properties":{"value":{"$ref":"#/definitions/tokenization.DynamicStoreValue"}}},"tokenization.QueryGetETHSignatureTrackerResponse":{"type":"object","properties":{"numUsed":{"type":"string"}}},"tokenization.QueryGetVoteResponse":{"type":"object","properties":{"vote":{"$ref":"#/definitions/tokenization.VoteProof"}}},"tokenization.QueryGetVotesResponse":{"type":"object","properties":{"votes":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.VoteProof"}}}},"tokenization.QueryGetWrappableBalancesResponse":{"type":"object","properties":{"amount":{"type":"string"}}},"tokenization.QueryIsAddressReservedProtocolResponse":{"type":"object","properties":{"isReservedProtocol":{"type":"boolean"}}},"tokenization.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/tokenization.Params"}}},"tokenization.RecurringOwnershipTimes":{"description":"RecurringOwnershipTimes represents a list of recurring ownership times.","type":"object","properties":{"chargePeriodLength":{"type":"string","title":"Grace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period"},"intervalLength":{"description":"The interval length in unix milliseconds.","type":"string"},"startTime":{"description":"The original start time of the first interval.","type":"string"}}},"tokenization.ResetTimeIntervals":{"description":"Time intervals to reset the trackers at.","type":"object","properties":{"intervalLength":{"description":"Interval length in unix milliseconds.","type":"string"},"startTime":{"description":"Original start time of the first interval.","type":"string"}}},"tokenization.TokenCollection":{"description":"A TokenCollection is the top-level object for a collection of tokens. \nIt defines everything about the collection, such as the manager, metadata, etc.\n\nAll collections are identified by a collectionId assigned by the blockchain, which is a uint64 that increments (i.e. the first collection has ID 1).\n\nAll collections can have a manager who is responsible for managing the collection and can be granted certain admin\npermissions, such as the ability to mint new tokens.\n\nCollections may have different balance types: standard vs. off-chain - indexed vs. inherited.vs off-chain - non-indexed vs non-public.\n\nSee documentation for more details.","type":"object","properties":{"aliasPaths":{"description":"The alias (non-wrapping) paths for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AliasPath"}},"collectionApprovals":{"description":"Transferability of the collection for collections with standard balances, subject to changes over time.\nOverrides user approvals for a transfer if specified.\nTransfer must satisfy both user and collection-level approvals.\nOnly applicable to on-chain balances.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionId":{"description":"The unique identifier for this collection. This is assigned by the blockchain. First collection has ID 1.","type":"string"},"collectionMetadata":{"description":"The metadata for the collection itself.","$ref":"#/definitions/tokenization.CollectionMetadata"},"collectionPermissions":{"description":"Permissions that define what the manager of the collection can do or not do.","$ref":"#/definitions/tokenization.CollectionPermissions"},"cosmosCoinWrapperPaths":{"description":"The IBC wrapper (sdk.coin) paths for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CosmosCoinWrapperPath"}},"createdBy":{"description":"The user or entity who created the collection.","type":"string"},"customData":{"description":"An arbitrary field that can store any data.","type":"string"},"defaultBalances":{"description":"The default store of a balance / approvals for a user, upon genesis.","$ref":"#/definitions/tokenization.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.","$ref":"#/definitions/tokenization.CollectionInvariants"},"isArchived":{"description":"Whether the collection is archived or not.\nWhen archived, it becomes read-only, and no transactions can be processed until it is unarchived.","type":"boolean"},"manager":{"description":"The address of the manager of this collection.","type":"string"},"mintEscrowAddress":{"description":"The generated address of the collection. Also used to escrow Mint balances.","type":"string"},"standards":{"description":"Standards that define how to interpret the fields of the collection.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"The metadata for each token in the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}},"validTokenIds":{"description":"The valid token IDs for this collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.TokenIdsActionPermission":{"description":"TokenIdsActionPermission defines the permissions for performing an action for specific tokens.\nCurrently, this is only used for creating new tokens.\n\nEx: If you want to lock the ability to create new tokens for tokenIds [1,2] at ownershipTimes 1/1/2020 - 1/1/2021, \nyou could set the combination (tokenIds: [1,2], ownershipTimes: [1/1/2020 - 1/1/2021]) to always be forbidden.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.TokenMetadata":{"description":"This message defines the metadata for specific token IDs.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the token metadata.","type":"string"},"tokenIds":{"description":"The token IDs to which this metadata applies.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the token metadata.","type":"string"}}},"tokenization.Transfer":{"description":"Transfer defines the details of a transfer of tokens.","type":"object","properties":{"balances":{"description":"The balances to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"ethSignatureProofs":{"description":"The ETH signature proofs / solutions for all ETH signature challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ETHSignatureProof"}},"from":{"description":"The address of the sender of the transfer.","type":"string"},"memo":{"description":"The memo for the transfer.","type":"string"},"merkleProofs":{"description":"The Merkle proofs / solutions for all Merkle challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerkleProof"}},"onlyCheckPrioritizedCollectionApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedIncomingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedOutgoingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"precalculateBalancesFromApproval":{"description":"If defined, we will use the predeterminedBalances from the specified approval to calculate the balances at execution time.\nWe will override the balances field with the precalculated balances. Only applicable for approvals with predeterminedBalances set.","$ref":"#/definitions/tokenization.PrecalculateBalancesFromApprovalDetails"},"prioritizedApprovals":{"description":"The prioritized approvals for the transfer. By default, we scan linearly through the approvals and use the first match.\nThis field can be used to prioritize specific approvals and scan through them first.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalIdentifierDetails"}},"toAddresses":{"description":"The addresses of the recipients of the transfer.","type":"array","items":{"type":"string"}}}},"tokenization.UintRange":{"description":"The UintRange is a range of IDs from some start to some end (inclusive).\nuintRanges are one of the core types used.\n\nThey are used for everything from token IDs to time ranges to min/max balance amounts.\n\nSee the BitBadges documentation for more information.","type":"object","properties":{"end":{"description":"The ending value of the range (inclusive).","type":"string"},"start":{"description":"The starting value of the range (inclusive).","type":"string"}}},"tokenization.UserApprovalSettings":{"description":"UserApprovalSettings defines issuer-imposed constraints on user-level approvals.\nSet on collection-level ApprovalCriteria and propagated to user-level approvals\nduring greedy transfer matching. Each balance slice carries its own settings.","type":"object","properties":{"allowedDenoms":{"description":"Restricts which denoms user-level coinTransfers can reference (beyond params-level AllowedDenoms).\nIf empty, all params-allowed denoms are permitted.","type":"array","items":{"type":"string"}},"disableUserCoinTransfers":{"description":"If true, user-level approvals cannot trigger coinTransfers at all for transfers matched by this collection approval.","type":"boolean"},"userRoyalties":{"description":"User-level royalties to enforce for transfers matched by this collection approval.","$ref":"#/definitions/tokenization.UserRoyalties"}}},"tokenization.UserBalanceStore":{"description":"UserBalanceStore is the store for the user balances for a collection.\n\nIt consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers,\nas well as the permissions for updating the approved incoming/outgoing transfers.\n\nUpon initialization, all fields (minus the balances) are set to the defaults specified by the collection.\n\nThe outgoing transfers can be used to allow / disallow transfers which are sent from this user.\nIf a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedOutgoingTransfers is set to true.\n\nThe incoming transfers can be used to allow / disallow transfers which are sent to this user.\nIf a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedIncomingTransfers is set to true.\n\nNote that the user approved transfers are only checked if the collection approved transfers do not specify to override\nthe user approved transfers. \n\nThe permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Whether to auto-approve all incoming transfers by default. \nThis is just shorthand for adding an accept everything incoming approval\nwith no restrictions.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Whether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy).","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Whether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy).","type":"boolean"},"balances":{"description":"The list of balances associated with this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"incomingApprovals":{"description":"The list of approved incoming transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserIncomingApproval"}},"outgoingApprovals":{"description":"The list of approved outgoing transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserOutgoingApproval"}},"userPermissions":{"description":"The permissions for this user's actions and transfers.","$ref":"#/definitions/tokenization.UserPermissions"}}},"tokenization.UserIncomingApproval":{"description":"UserIncomingApproval defines the rules for the approval of an incoming transfer to a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.IncomingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.UserIncomingApprovalPermission":{"description":"UserIncomingApprovalPermission defines the permissions for updating the user's approved incoming transfers.\n\nSee CollectionApprovalPermission for more details. This is equivalent without the toListId field because that is always the user.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.UserOutgoingApproval":{"description":"UserOutgoingApproval defines the rules for the approval of an outgoing transfer from a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.OutgoingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.UserOutgoingApprovalPermission":{"description":"UserOutgoingApprovalPermission defines the permissions for updating the user's approved outgoing transfers.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.UserPermissions":{"description":"UserPermissions defines the permissions for the user about their approvals (i.e., what the user can and cannot do).\n\nSee CollectionPermissions for more details on the different types of permissions.\n\ncanUpdateOutgoingApprovals and canUpdateOutgoingApprovals follow the same as the canUpdateCollectionApprovals in CollectionPermissions,\nbut certain fields are removed because they are not relevant to the user.","type":"object","properties":{"canUpdateAutoApproveAllIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for all incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated outgoing transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateIncomingApprovals":{"description":"Permissions related to updating the user's approved incoming transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserIncomingApprovalPermission"}},"canUpdateOutgoingApprovals":{"description":"Permissions related to updating the user's approved outgoing transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserOutgoingApprovalPermission"}}}},"tokenization.UserRoyalties":{"description":"UserRoyalties defines the royalties for a user.","type":"object","properties":{"payoutAddress":{"description":"Payout address for the royalties.","type":"string"},"percentage":{"description":"Percentage of the transfer amount to apply as royalties. 1 to 10000 represents basis points.","type":"string"}}},"tokenization.VoteProof":{"description":"VoteProof represents a vote cast for a voting challenge.","type":"object","properties":{"proposalId":{"description":"The proposal ID this vote is for.","type":"string"},"votedAt":{"description":"Timestamp (unix ms) when this vote was cast. Set automatically by the chain.","type":"string"},"voter":{"description":"The address of the voter casting the vote.","type":"string"},"yesWeight":{"description":"The percentage weight (0-100) allocated to \"yes\" vote.\nThe remaining percentage (100 - yesWeight) is allocated to \"no\" vote.\nExample: yesWeight=70 means 70% yes, 30% no.","type":"string"}}},"tokenization.Voter":{"description":"Voter defines a voter with their address and weight.","type":"object","properties":{"address":{"description":"The address of the voter.","type":"string"},"weight":{"description":"The weight of this voter's vote.","type":"string"}}},"tokenization.VotingChallenge":{"description":"VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge.\nRequires a weighted quorum threshold to be met through votes from specified voters.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage\nof total possible weight (all voters), not just voted weight. If you update the proposal ID, then the\nvote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge\nto prevent overlap and unexpected behavior.","type":"object","properties":{"customData":{"description":"Arbitrary custom data associated with this voting challenge.","type":"string"},"delayAfterQuorum":{"description":"Mandatory delay in milliseconds after quorum is reached before the transfer can execute.\nIf set, the transfer will fail until: now \u003e= quorumReachedTimestamp + delayAfterQuorum.\nDuring the delay, signers can remove their votes to cancel (quorum drops = delay resets).","type":"string"},"proposalId":{"type":"string","title":"The ID of this voting challenge for tracking votes (scoped like challengeTrackerId).\nFormat: collectionId-approverAddress-approvalLevel-approvalId-challengeId"},"quorumThreshold":{"description":"The quorum threshold as a percentage (0-100) of total possible weight that must vote \"yes\".\nExample: 50 means 50% of total voter weight must vote yes for approval.","type":"string"},"resetAfterExecution":{"description":"If true, all votes for this challenge are cleared after a successful transfer execution.\nThis makes the challenge reusable (e.g., for vault withdrawals that need fresh approval each time).","type":"boolean"},"uri":{"description":"The URI associated with this voting challenge.","type":"string"},"voters":{"description":"List of voters with their weights. Each voter can cast a weighted vote.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Voter"}}}},"tokenization.v27.ActionPermission":{"description":"ActionPermission defines the permissions for performing an action.\n\nThis is simple and straightforward as the only thing we need to check is the permitted/forbidden times.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.AddressChecks":{"type":"object","title":"AddressChecks defines checks for address types (EVM contract, liquidity pool, etc.)","properties":{"mustBeEvmContract":{"description":"Require the address to be an EVM contract (has code).","type":"boolean"},"mustBeLiquidityPool":{"description":"Require the address to be a liquidity pool.","type":"boolean"},"mustNotBeEvmContract":{"description":"Require the address to not be an EVM contract (no code).","type":"boolean"},"mustNotBeLiquidityPool":{"description":"Require the address to not be a liquidity pool.","type":"boolean"}}},"tokenization.v27.AddressListInput":{"description":"AddressListInput is used for creating address lists via MsgCreateAddressLists.\nIt contains all fields from AddressList except createdBy, which is automatically set from the message creator.","type":"object","properties":{"addresses":{"description":"List of addresses included in the list.","type":"array","items":{"type":"string"}},"customData":{"description":"Custom arbitrary data or additional information related to the address list.","type":"string"},"listId":{"description":"Unique identifier for the address list.","type":"string"},"uri":{"description":"URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable.","type":"string"},"whitelist":{"description":"Indicates whether the list includes the specified addresses (true) or excludes them (false).","type":"boolean"}}},"tokenization.v27.AliasPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v27.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DenomUnit"}},"metadata":{"description":"The metadata for this alias path.","$ref":"#/definitions/tokenization.v27.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v27.AltTimeChecks":{"type":"object","title":"AltTimeChecks defines alternative time-based checks for approval denial.\nIf the transfer time falls within any of the specified offline hours or days, the approval is denied.\nUses UTC timezone for neutral timezone approach.\nofflineHours: ranges of hours (0-23) when transfers should be denied\nofflineDays: ranges of days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied","properties":{"offlineDays":{"description":"Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied. Uses UTC timezone.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"offlineHours":{"description":"Hours (0-23) when transfers should be denied. Uses UTC timezone.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.ApprovalAmounts":{"description":"ApprovalAmounts defines approval amounts per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times \nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallApprovalAmount":{"description":"Overall approval amount.","type":"string"},"perFromAddressApprovalAmount":{"description":"Approval amount per \"from\" address.","type":"string"},"perInitiatedByAddressApprovalAmount":{"description":"Approval amount per \"initiated by\" address.","type":"string"},"perToAddressApprovalAmount":{"description":"Approval amount per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v27.ResetTimeIntervals"}}},"tokenization.v27.ApprovalCriteria":{"description":"ApprovalCriteria defines the criteria for approving transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"allowBackedMinting":{"description":"If true, this collection approval allows backed minting operations (CosmosCoinBackedPath).\nWhen false, this approval cannot be used for transfers involving backed minting addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"allowSpecialWrapping":{"description":"If true, this collection approval allows special wrapping operations (CosmosCoinWrapperPath).\nWhen false, this approval cannot be used for transfers involving wrapping addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v27.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v27.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v27.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v27.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"overridesFromOutgoingApprovals":{"description":"Overrides the user's outgoing approvals for approval. If true, this collection-level approval\ntakes precedence over any outgoing approvals defined by the sender, allowing the collection to\ncontrol outgoing transfer behavior.","type":"boolean"},"overridesToIncomingApprovals":{"description":"Overrides the user's incoming approvals for approval. If true, this collection-level approval\ntakes precedence over any incoming approvals defined by the recipient, allowing the collection to\ncontrol incoming transfer behavior.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v27.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"userRoyalties":{"description":"User level royalties to apply to the transfer. Defines the percentage and payout address for\nroyalties that should be collected when this approval is used for a transfer.","$ref":"#/definitions/tokenization.v27.UserRoyalties"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.VotingChallenge"}}}},"tokenization.v27.ApprovalIdentifierDetails":{"description":"ApprovalIdentifierDetails defines the details to identify a specific approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v27.AutoDeletionOptions":{"description":"AutoDeletionOptions defines the options for auto-deletion of approvals.","type":"object","properties":{"afterOneUse":{"type":"boolean","title":"After one use?"},"afterOverallMaxNumTransfers":{"type":"boolean","title":"After overall max number of uses threshold is met?"},"allowCounterpartyPurge":{"type":"boolean","title":"Allow counterparty to purge this approval if they are the only initiator"},"allowPurgeIfExpired":{"type":"boolean","title":"Allow others to call PurgeApprovals on behalf of this approval owner"}}},"tokenization.v27.Balance":{"description":"Balance represents the balance of a token for a specific user.\nThe user amounts xAmount of a token specified for the time ranges specified.\n\nExample: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021.\n\nIf times or tokenIDs have len \u003e 1, then the user owns all token IDs specified for all time ranges specified.","type":"object","properties":{"amount":{"description":"The amount of the token owned by the user.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"The token IDs for which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.CoinTransfer":{"type":"object","properties":{"coins":{"description":"The sdk.Coins to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"overrideFromWithApproverAddress":{"description":"By default, the from address is the initiator of the transaction.\nIf this is set to true, we will override the from address with the approver address.\nNote: This is not applicable for collection approvals (since approverAddress == '').","type":"boolean"},"overrideToWithInitiator":{"description":"By default, the to address is what is specified in the coin transfer.\nIf this is set to true, we will override the to address with the initiator of the transaction.","type":"boolean"},"to":{"description":"The address of the recipient of the transfer.","type":"string"}}},"tokenization.v27.CollectionApproval":{"type":"object","title":"CollectionApproval defines the rules for the approval of a transfer on the collection level","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v27.ApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v27.CollectionApprovalPermission":{"description":"CollectionApprovalPermission defines what collection approved transfers can be updated vs. are locked.\n\nEach transfer is broken down to a (from, to, initiatedBy, transferTime, tokenId) tuple.\nFor a transfer to match, we need to match ALL of the fields in the combination. \nThese are determined by the fromListId, toListId, initiatedByListId, transferTimes, tokenIds fields.\nAddressLists are used for (from, to, initiatedBy) which are a permanent list of addresses identified by an ID (see AddressLists). \n\npermanentlyPermitted/ForbiddenTimes: when can the manager execute this permission?\n\nEx: Let's say we are updating the transferability for the transfer tuple (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", 10, 1000).\nWe would check to find the FIRST CollectionApprovalPermission that matches this combination.\nIf we find a match, we would check the permitted/forbidden times to see if we can execute this permission (default is ALLOWED).\n\nEx: So if you wanted to freeze the transferability to enforce that token ID 1 will always be transferable, you could set\nthe combination (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", \"All Transfer Times\", 1) to always be forbidden.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.CollectionMetadata":{"description":"This message defines the metadata for the collection.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the collection metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the collection metadata.","type":"string"}}},"tokenization.v27.CollectionPermissions":{"description":"CollectionPermissions defines the permissions for the collection (i.e., what the manager can and cannot do).\n\nThere are three types of permissions for a collection: ActionPermission, TokenIdsActionPermission, and CollectionApprovalPermission.\n\nThe permission type allows fine-grained access control for each action.\n- ActionPermission: defines when the manager can perform an action or update a field.\n- TokenIdsActionPermission: defines when the manager can perform an action for specific tokens\n- CollectionApprovalPermission: defines when the manager can update the transferability of the collection and what transfers can be updated vs. locked.\n\nNote there are a few different times here which could get confusing:\n- permanentlyPermitted/ForbiddenTimes - the times that a permission can be performed\n- transferTimes - the times that a transfer occurs\n- ownershipTimes - the times when a token is owned by a user\n\nThe permitted/permanentlyForbiddenTimes are used to determine when a permission can be executed.\nOnce a time is set to be permitted or forbidden, it is PERMANENT and cannot be changed.\nIf a time is not set to be permitted or forbidden, it is considered NEUTRAL and can be updated but is ALLOWED by default.\n\nIMPORTANT: We take first-match only for the permissions. This means that if you forbid time T in array index 0 and permit time T in index 1, \nwe will only check the first permission (forbid time T) and not the second permission (permit time T).","type":"object","properties":{"canAddMoreAliasPaths":{"description":"Permissions related to adding more alias paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canAddMoreCosmosCoinWrapperPaths":{"description":"Permissions related to adding more cosmos coin wrapper paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canArchiveCollection":{"description":"Permissions related to archiving the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canDeleteCollection":{"description":"Permissions related to deleting the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateCollectionApprovals":{"description":"Permissions related to updating collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApprovalPermission"}},"canUpdateCollectionMetadata":{"description":"Permissions related to updating the metadata of the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateCustomData":{"description":"Permissions related to updating custom data for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateManager":{"description":"Permissions related to updating the collection's manager.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateStandards":{"description":"Permissions related to updating standards for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateTokenMetadata":{"description":"Permissions related to updating token metadata for specific tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenIdsActionPermission"}},"canUpdateValidTokenIds":{"description":"Permissions related to creating more tokens for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenIdsActionPermission"}}}},"tokenization.v27.Conversion":{"description":"Conversion defines a bidirectional conversion between a cosmos coin (with denom) and token balances.","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin side of the conversion (amount + denom).","$ref":"#/definitions/tokenization.v27.ConversionSideAWithDenom"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}}}},"tokenization.v27.ConversionSideA":{"description":"ConversionSideA represents the cosmos coin amount side of a conversion without denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"}}},"tokenization.v27.ConversionSideAWithDenom":{"description":"ConversionSideAWithDenom represents the cosmos coin side of a conversion with denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"},"denom":{"description":"The denomination of the cosmos coin.","type":"string"}}},"tokenization.v27.ConversionWithoutDenom":{"description":"ConversionWithoutDenom defines a bidirectional conversion between a cosmos coin amount (without denom) and token balances.\nThe denom is stored at the base level (e.g., in AliasPath or CosmosCoinWrapperPath).","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin amount side of the conversion (amount only, denom stored separately).","$ref":"#/definitions/tokenization.v27.ConversionSideA"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}}}},"tokenization.v27.CosmosCoinBackedPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v27.Conversion"}}},"tokenization.v27.CosmosCoinWrapperPathAddObject":{"type":"object","properties":{"allowOverrideWithAnyValidToken":{"type":"boolean"},"conversion":{"$ref":"#/definitions/tokenization.v27.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DenomUnit"}},"metadata":{"description":"The metadata for this wrapper path.","$ref":"#/definitions/tokenization.v27.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v27.DenomUnit":{"type":"object","properties":{"decimals":{"description":"The number of decimal places for this unit. Defines the precision of the unit.","type":"string"},"isDefaultDisplay":{"description":"If true, this is the default display unit. Only one unit should be marked as the default display unit.\nThis unit will be used by default when displaying the coin amount. If none are marked default, we use the base level.","type":"boolean"},"metadata":{"description":"The metadata for this denomination unit.","$ref":"#/definitions/tokenization.v27.PathMetadata"},"symbol":{"description":"The symbol for this unit (e.g., \"BADGE\", \"nBADGE\"). Used for display purposes.","type":"string"}}},"tokenization.v27.DynamicStoreChallenge":{"description":"DynamicStoreChallenge defines a challenge that requires the initiator to pass a dynamic store check.","type":"object","properties":{"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"storeId":{"description":"The ID of the dynamic store to check.","type":"string"}}},"tokenization.v27.ETHSignatureChallenge":{"description":"ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge.\n\nAn ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce.\nThe signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId) and each signature can only be used once.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once.\nIf you update the challenge ID, then the used signatures tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this ETH signature challenge for tracking the number of uses per signature.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this ETH signature challenge.","type":"string"},"signer":{"description":"The Ethereum address that must sign the nonce for verification.","type":"string"},"uri":{"description":"The URI associated with this ETH signature challenge, optionally providing metadata about the challenge.","type":"string"}}},"tokenization.v27.ETHSignatureProof":{"description":"ETHSignatureProof represents an Ethereum signature proof for a challenge.","type":"object","properties":{"nonce":{"description":"The nonce that was signed. The signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId).","type":"string"},"signature":{"description":"The Ethereum signature of the nonce.","type":"string"}}},"tokenization.v27.EVMQueryChallenge":{"description":"EVMQueryChallenge defines a rule for approval via read-only EVM contract query.\n\nThe challenge executes a staticcall to the specified contract with the given calldata.\nThe result is compared against the expected result (if provided) or checked for non-zero return.\n\nIMPORTANT: This is read-only and cannot modify state. The query is executed with a gas limit\nto prevent DoS attacks. All results are deterministic since EVM state is consistent within a block.","type":"object","properties":{"calldata":{"type":"string","title":"ABI-encoded function selector + arguments (hex string without 0x prefix)\nExample: \"70a08231000000000000000000000000{address}\" for balanceOf(address)\nCan use placeholders: $initiator, $sender, $recipient (replaced at runtime)"},"comparisonOperator":{"description":"Comparison operator: \"eq\" (equals), \"ne\" (not equals), \"gt\" (greater than), \"gte\", \"lt\", \"lte\"\nOnly \"eq\" and \"ne\" work for non-numeric types. Default is \"eq\".","type":"string"},"contractAddress":{"type":"string","title":"The EVM contract address to query (0x format or bb1 format)"},"customData":{"type":"string","title":"Arbitrary custom data"},"expectedResult":{"description":"Expected return value (hex string without 0x prefix). If empty, any non-error result passes.\nFor boolean checks, use \"0000...0001\" for true.","type":"string"},"gasLimit":{"type":"string","title":"Gas limit for the query (default 100000, max 500000)"},"uri":{"type":"string","title":"The URI associated with this challenge (metadata)"}}},"tokenization.v27.IncomingApprovalCriteria":{"description":"IncomingApprovalCriteria defines the criteria for approving incoming transfers.\nThis is used for user-level incoming approvals and only includes fields relevant to incoming transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v27.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v27.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v27.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v27.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v27.PredeterminedBalances"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No recipient checks are included for incoming approvals since the recipient is the user themselves.","$ref":"#/definitions/tokenization.v27.AddressChecks"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.VotingChallenge"}}}},"tokenization.v27.IncrementedBalances":{"description":"IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method.","type":"object","properties":{"allowOverrideTimestamp":{"description":"Whether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set).","type":"boolean"},"allowOverrideWithAnyValidToken":{"type":"boolean","title":"Allow override of any valid ID"},"durationFromTimestamp":{"description":"The amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy.","type":"string"},"incrementOwnershipTimesBy":{"description":"The amount by which to increment ownership times. Incompatible with approveStartingFromNowBy.","type":"string"},"incrementTokenIdsBy":{"description":"The amount by which to increment token IDs.","type":"string"},"recurringOwnershipTimes":{"description":"Recurring ownership times.","$ref":"#/definitions/tokenization.v27.RecurringOwnershipTimes"},"startBalances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}}}},"tokenization.v27.InvariantsAddObject":{"description":"InvariantsAddObject is used for adding invariants without specifying addresses.\nAddresses are generated by the keeper and stored in the collection.","type":"object","properties":{"cosmosCoinBackedPath":{"description":"The IBC backed (sdk.coin) path for the collection. Only one path is allowed.\nAddress will be generated by the keeper.","$ref":"#/definitions/tokenization.v27.CosmosCoinBackedPathAddObject"},"disablePoolCreation":{"description":"If true, disallows pool creation with this collection's assets.\nWhen true, any attempt to create a pool with tokenization assets from this collection will fail.","type":"boolean"},"evmQueryChallenges":{"type":"array","title":"EVM query invariants that must pass after all transfers complete.\nThese are checked once per message after all balance updates, with access to ALL recipient addresses.\nPlaceholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient","items":{"type":"object","$ref":"#/definitions/tokenization.v27.EVMQueryChallenge"}},"maxSupplyPerId":{"description":"Maximum supply per token ID. Checked against Total address balances after transfers complete.\nA value of 0 means no limit (unlimited).","type":"string"},"noCustomOwnershipTimes":{"description":"If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }].\nThis prevents time-based restrictions on token ownership.","type":"boolean"},"noForcefulPostMintTransfers":{"description":"If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true.\nThis prevents forceful transfers that bypass user-level approvals.\nThis only applies to transfers where the from address does not equal \"Mint\".","type":"boolean"}}},"tokenization.v27.ManualBalances":{"description":"ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set.","type":"object","properties":{"balances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}}}},"tokenization.v27.MaxNumTransfers":{"description":"MaxNumTransfers defines the maximum number of transfers per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times\nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallMaxNumTransfers":{"description":"Overall maximum number of transfers.","type":"string"},"perFromAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"from\" address.","type":"string"},"perInitiatedByAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"initiated by\" address.","type":"string"},"perToAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v27.ResetTimeIntervals"}}},"tokenization.v27.MerkleChallenge":{"description":"Challenges define a rule for the approval in the form of a Merkle challenge.\n\nA Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof,\nthen the challenge is met. All challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials.\n\nIMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge.\nIf you update the challenge ID, then the used leaves tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this Merkle challenge for tracking the number of uses per leaf.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this Merkle challenge.","type":"string"},"expectedProofLength":{"description":"The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks.","type":"string"},"leafSigner":{"description":"Ethereum address that must sign the leaf. Used to protect against man-in-the-middle attacks.\nSignature scheme: sign(leaf + \"-\" + creatorAddress), verified using elliptic curve signature verification.","type":"string"},"maxUsesPerLeaf":{"description":"The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks.","type":"string"},"root":{"description":"The root hash of the Merkle tree to which the Merkle path must lead for verification.","type":"string"},"uri":{"description":"The URI associated with this Merkle challenge, optionally providing metadata about the challenge.","type":"string"},"useCreatorAddressAsLeaf":{"description":"If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses.","type":"boolean"}}},"tokenization.v27.MerklePathItem":{"description":"MerklePathItem represents an item in a Merkle path.","type":"object","properties":{"aunt":{"description":"The hash of the sibling node (aunt) in the Merkle path.","type":"string"},"onRight":{"description":"Indicates whether the aunt node is on the right side of the path.","type":"boolean"}}},"tokenization.v27.MerkleProof":{"description":"MerkleProof represents a Merkle proof, consistent with Tendermint/Crypto Merkle tree.","type":"object","properties":{"aunts":{"description":"List of Merkle path items (aunts) that make up the proof.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerklePathItem"}},"leaf":{"description":"The hash of the leaf node for which the proof is generated.","type":"string"},"leafSignature":{"description":"The signature of the leaf node tying the address to the leaf node.","type":"string"}}},"tokenization.v27.MsgCastVote":{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","type":"object","properties":{"approvalId":{"description":"The approval ID.","type":"string"},"approvalLevel":{"description":"The approval level (\"collection\", \"incoming\", or \"outgoing\").","type":"string"},"approverAddress":{"description":"The approver address (empty string for collection-level approvals).","type":"string"},"collectionId":{"description":"The collection ID for the voting challenge.","type":"string"},"creator":{"description":"The address of the voter casting the vote.","type":"string"},"proposalId":{"description":"The proposal ID (challenge ID) from the VotingChallenge.","type":"string"},"yesWeight":{"description":"The percentage weight (0-100) allocated to \"yes\" vote.\nThe remaining percentage (100 - yesWeight) is allocated to \"no\" vote.\nExample: yesWeight=70 means 70% yes, 30% no.","type":"string"}}},"tokenization.v27.MsgCastVoteResponse":{"type":"object"},"tokenization.v27.MsgCreateAddressLists":{"description":"MsgCreateAddressLists is used to create address lists.","type":"object","properties":{"addressLists":{"description":"Address lists to create. The createdBy field will be automatically set to the creator address.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.AddressListInput"}},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgCreateAddressListsResponse":{"description":"MsgCreateAddressListsResponse is the response to MsgCreateAddressLists.","type":"object"},"tokenization.v27.MsgCreateCollection":{"description":"MsgCreateCollection is used to create a new collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.AliasPathAddObject"}},"collectionApprovals":{"description":"Collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApproval"}},"collectionMetadata":{"description":"Collection metadata.","$ref":"#/definitions/tokenization.v27.CollectionMetadata"},"collectionPermissions":{"description":"Collection permissions.","$ref":"#/definitions/tokenization.v27.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v27.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v27.InvariantsAddObject"},"isArchived":{"description":"isArchived flag.","type":"boolean"},"manager":{"description":"Manager address.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"Standards entries.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"Token metadata entries.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenMetadata"}},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.MsgCreateCollectionResponse":{"description":"MsgCreateCollectionResponse is the response to MsgCreateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgCreateDynamicStore":{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The default value for uninitialized addresses (true/false).","type":"boolean"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v27.MsgCreateDynamicStoreResponse":{"description":"MsgCreateDynamicStoreResponse is the response to MsgCreateDynamicStore.","type":"object","properties":{"storeId":{"description":"ID of the dynamic store.","type":"string"}}},"tokenization.v27.MsgDeleteCollection":{"description":"MsgDeleteCollection is used to delete a collection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgDeleteCollectionResponse":{"description":"MsgDeleteCollectionResponse is the response to MsgDeleteCollection.","type":"object"},"tokenization.v27.MsgDeleteDynamicStore":{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store to delete.","type":"string"}}},"tokenization.v27.MsgDeleteDynamicStoreResponse":{"description":"MsgDeleteDynamicStoreResponse is the response to MsgDeleteDynamicStore.","type":"object"},"tokenization.v27.MsgDeleteIncomingApproval":{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgDeleteIncomingApprovalResponse":{"description":"MsgDeleteIncomingApprovalResponse is the response to MsgDeleteIncomingApproval.","type":"object"},"tokenization.v27.MsgDeleteOutgoingApproval":{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgDeleteOutgoingApprovalResponse":{"description":"MsgDeleteOutgoingApprovalResponse is the response to MsgDeleteOutgoingApproval.","type":"object"},"tokenization.v27.MsgPurgeApprovals":{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","type":"object","properties":{"approvalsToPurge":{"description":"Specific approvals to purge. If empty, purges all applicable approvals based on other flags.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ApprovalIdentifierDetails"}},"approverAddress":{"description":"Address of the user whose approvals to purge. If empty, defaults to creator.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"purgeCounterpartyApprovals":{"description":"Whether to purge counterparty approvals (approvals where the creator is the only initiator).","type":"boolean"},"purgeExpired":{"description":"Whether to purge expired approvals (approvals with no future valid transfer times).","type":"boolean"}}},"tokenization.v27.MsgPurgeApprovalsResponse":{"description":"MsgPurgeApprovalsResponse is the response to MsgPurgeApprovals.","type":"object","properties":{"numPurged":{"description":"Number of approvals purged.","type":"string"}}},"tokenization.v27.MsgSetCollectionApprovals":{"type":"object","title":"MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission","properties":{"canUpdateCollectionApprovals":{"type":"array","title":"Permission to update collection approvals","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApprovalPermission"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApproval"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgSetCollectionApprovalsResponse":{"description":"MsgSetCollectionApprovalsResponse is the response to MsgSetCollectionApprovals.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetCollectionMetadata":{"type":"object","title":"MsgSetCollectionMetadata sets the collection metadata and canUpdateCollectionMetadata permission","properties":{"canUpdateCollectionMetadata":{"type":"array","title":"Permission to update collection metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v27.CollectionMetadata"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgSetCollectionMetadataResponse":{"description":"MsgSetCollectionMetadataResponse is the response to MsgSetCollectionMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetCustomData":{"type":"object","title":"MsgSetCustomData sets the custom data and canUpdateCustomData permission","properties":{"canUpdateCustomData":{"type":"array","title":"Permission to update custom data","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"}}},"tokenization.v27.MsgSetCustomDataResponse":{"description":"MsgSetCustomDataResponse is the response to MsgSetCustomData.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetDynamicStoreValue":{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","type":"object","properties":{"address":{"description":"The address for which to set the value.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store.","type":"string"},"value":{"description":"The boolean value to set (true/false).","type":"boolean"}}},"tokenization.v27.MsgSetDynamicStoreValueResponse":{"description":"MsgSetDynamicStoreValueResponse is the response to MsgSetDynamicStoreValue.","type":"object"},"tokenization.v27.MsgSetIncomingApproval":{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","type":"object","properties":{"approval":{"description":"The incoming approval to set.","$ref":"#/definitions/tokenization.v27.UserIncomingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgSetIncomingApprovalResponse":{"description":"MsgSetIncomingApprovalResponse is the response to MsgSetIncomingApproval.","type":"object"},"tokenization.v27.MsgSetIsArchived":{"type":"object","title":"MsgSetIsArchived sets the isArchived and canArchiveCollection permission","properties":{"canArchiveCollection":{"type":"array","title":"Permission to archive collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"isArchived":{"description":"New isArchived to set.","type":"boolean"}}},"tokenization.v27.MsgSetIsArchivedResponse":{"description":"MsgSetIsArchivedResponse is the response to MsgSetIsArchived.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetManager":{"type":"object","title":"MsgSetManager sets the manager and canUpdateManager permission","properties":{"canUpdateManager":{"type":"array","title":"Permission to update manager","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"manager":{"description":"New manager to set.","type":"string"}}},"tokenization.v27.MsgSetManagerResponse":{"description":"MsgSetManagerResponse is the response to MsgSetManager.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetOutgoingApproval":{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","type":"object","properties":{"approval":{"description":"The outgoing approval to set.","$ref":"#/definitions/tokenization.v27.UserOutgoingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgSetOutgoingApprovalResponse":{"description":"MsgSetOutgoingApprovalResponse is the response to MsgSetOutgoingApproval.","type":"object"},"tokenization.v27.MsgSetReservedProtocolAddress":{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","type":"object","properties":{"address":{"description":"Address to set or unset as reserved protocol address.","type":"string"},"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"isReservedProtocol":{"description":"Whether the address should be a reserved protocol address (true) or not (false).","type":"boolean"}}},"tokenization.v27.MsgSetReservedProtocolAddressResponse":{"description":"MsgSetReservedProtocolAddressResponse is the response to MsgSetReservedProtocolAddress.","type":"object"},"tokenization.v27.MsgSetStandards":{"type":"object","title":"MsgSetStandards sets the standards and canUpdateStandards permission","properties":{"canUpdateStandards":{"type":"array","title":"Permission to update standards","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}}}},"tokenization.v27.MsgSetStandardsResponse":{"description":"MsgSetStandardsResponse is the response to MsgSetStandards.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetTokenMetadata":{"type":"object","title":"MsgSetTokenMetadata sets the token metadata and canUpdateTokenMetadata permission","properties":{"canUpdateTokenMetadata":{"type":"array","title":"Permission to update token metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenMetadata"}}}},"tokenization.v27.MsgSetTokenMetadataResponse":{"description":"MsgSetTokenMetadataResponse is the response to MsgSetTokenMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetValidTokenIds":{"type":"object","title":"MsgSetValidTokenIds sets the validTokenIds and canUpdateValidTokenIds permission","properties":{"canUpdateValidTokenIds":{"type":"array","title":"Permission to update valid token IDs","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.MsgSetValidTokenIdsResponse":{"description":"MsgSetValidTokenIdsResponse is the response to MsgSetValidTokenIds.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgTransferTokens":{"description":"MsgTransferTokens is used to transfer tokens.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"transfers":{"description":"Transfers to execute.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Transfer"}}}},"tokenization.v27.MsgTransferTokensResponse":{"description":"MsgTransferTokensResponse is the response to MsgTransferTokens.","type":"object"},"tokenization.v27.MsgUniversalUpdateCollection":{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v27.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v27.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v27.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v27.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.MsgUniversalUpdateCollectionResponse":{"description":"MsgUniversalUpdateCollectionResponse is the response to MsgUniversalUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgUpdateCollection":{"description":"MsgUpdateCollection is used to update a collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v27.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v27.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v27.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.MsgUpdateCollectionResponse":{"description":"MsgUpdateCollectionResponse is the response to MsgUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgUpdateDynamicStore":{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The new default value for uninitialized addresses (true/false).","type":"boolean"},"globalEnabled":{"description":"The global kill switch state (true = enabled, false = disabled/halted).\nCallers should query the current value first if they want to keep it unchanged.","type":"boolean"},"storeId":{"description":"ID of the dynamic store to update.","type":"string"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v27.MsgUpdateDynamicStoreResponse":{"description":"MsgUpdateDynamicStoreResponse is the response to MsgUpdateDynamicStore.","type":"object"},"tokenization.v27.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/tokenization.v27.Params"}}},"tokenization.v27.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"tokenization.v27.MsgUpdateUserApprovals":{"description":"MsgUpdateUserApprovals is used to update user approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Auto-approve setting for all incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Auto-approve setting for self-initiated incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Auto-approve setting for self-initiated outgoing transfers.","type":"boolean"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"incomingApprovals":{"description":"New incoming approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserIncomingApproval"}},"outgoingApprovals":{"description":"New outgoing approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserOutgoingApproval"}},"updateAutoApproveAllIncomingTransfers":{"description":"Indicates if auto-approve settings for all incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Indicates if auto-approve settings for self-initiated incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Indicates if auto-approve settings for self-initiated outgoing transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIncomingApprovals":{"description":"Indicates if incoming approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateOutgoingApprovals":{"description":"Indicates if outgoing approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateUserPermissions":{"description":"Indicates if user permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"userPermissions":{"description":"New user permissions to set.","$ref":"#/definitions/tokenization.v27.UserPermissions"}}},"tokenization.v27.MsgUpdateUserApprovalsResponse":{"description":"MsgUpdateUserApprovalsResponse is the response to MsgUpdateUserApprovals.","type":"object"},"tokenization.v27.MustOwnTokens":{"description":"MustOwnTokens represents a condition where a user must own specific tokens\nto be approved to transfer.\n\n- collectionId: The ID of the collection for the tokens that must be owned\n- amountRange: The range of amounts the user must own (min to max)\n- ownershipTimes: The time ranges during which the user must own the tokens.\n- tokenIds: The token IDs the user must own.\n- overrideWithCurrentTime: If true, auto override ownershipTimes with the current time.\n- mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for \u003e= 1 millisecond is sufficient.","type":"object","properties":{"amountRange":{"description":"The range of amounts the user must own (min to max).","$ref":"#/definitions/tokenization.v27.UintRange"},"collectionId":{"description":"The ID of the collection.","type":"string"},"mustSatisfyForAllAssets":{"description":"If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token.","type":"boolean"},"overrideWithCurrentTime":{"description":"If true, override ownershipTimes with the current time.","type":"boolean"},"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user must own the tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"The token IDs the user must own.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.OutgoingApprovalCriteria":{"description":"OutgoingApprovalCriteria defines the criteria for approving outgoing transfers.\nThis is used for user-level outgoing approvals and only includes fields relevant to outgoing transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v27.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v27.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v27.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v27.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v27.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No sender checks are included for outgoing approvals since the sender is the user themselves.","$ref":"#/definitions/tokenization.v27.AddressChecks"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.VotingChallenge"}}}},"tokenization.v27.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"affiliate_percentage":{"type":"string","title":"affiliate_percentage defines the percentage of the transfer amount that goes to the affiliate"},"allowed_denoms":{"type":"array","title":"allowed_denoms defines the list of denoms that are allowed to be used in coin_transfers","items":{"type":"string"}}}},"tokenization.v27.PathMetadata":{"description":"This message defines the metadata for paths (alias paths and cosmos coin wrapper paths).\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the path metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the path metadata.","type":"string"}}},"tokenization.v27.PrecalculateBalancesFromApprovalDetails":{"description":"PrecalculateBalancesFromApprovalDetails defines the details for precalculating balances from an approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"precalculationOptions":{"description":"The options for precalculating the balances.","$ref":"#/definitions/tokenization.v27.PrecalculationOptions"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v27.PrecalculationOptions":{"description":"PrecalculationOptions defines the options for precalculating the balances.","type":"object","properties":{"overrideTimestamp":{"description":"The timestamp to override with when calculating the balances.","type":"string"},"tokenIdsOverride":{"description":"The IDs to override for the transfer. Only applicable if using this option in precalculation.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.PredeterminedBalances":{"description":"PredeterminedBalances represents balances with predetermined order calculation.","type":"object","properties":{"incrementedBalances":{"description":"Balances that have a starting amount and increment. If this is nil, then we use the manual balances.","$ref":"#/definitions/tokenization.v27.IncrementedBalances"},"manualBalances":{"description":"Manual balances that can be entered. If this is nil, then we use the incremented balances.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ManualBalances"}},"orderCalculationMethod":{"description":"The method to calculate the order of predetermined balances.","$ref":"#/definitions/tokenization.v27.PredeterminedOrderCalculationMethod"}}},"tokenization.v27.PredeterminedOrderCalculationMethod":{"description":"PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order.","type":"object","properties":{"challengeTrackerId":{"description":"If useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method.","type":"string"},"useMerkleChallengeLeafIndex":{"description":"Use the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc.","type":"boolean"},"useOverallNumTransfers":{"description":"Use the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc.","type":"boolean"},"usePerFromAddressNumTransfers":{"description":"Use the number of transfers per \"from\" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc.","type":"boolean"},"usePerInitiatedByAddressNumTransfers":{"description":"Use the number of transfers per \"initiated by\" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc.","type":"boolean"},"usePerToAddressNumTransfers":{"description":"Use the number of transfers per \"to\" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc.","type":"boolean"}}},"tokenization.v27.RecurringOwnershipTimes":{"description":"RecurringOwnershipTimes represents a list of recurring ownership times.","type":"object","properties":{"chargePeriodLength":{"type":"string","title":"Grace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period"},"intervalLength":{"description":"The interval length in unix milliseconds.","type":"string"},"startTime":{"description":"The original start time of the first interval.","type":"string"}}},"tokenization.v27.ResetTimeIntervals":{"description":"Time intervals to reset the trackers at.","type":"object","properties":{"intervalLength":{"description":"Interval length in unix milliseconds.","type":"string"},"startTime":{"description":"Original start time of the first interval.","type":"string"}}},"tokenization.v27.TokenIdsActionPermission":{"description":"TokenIdsActionPermission defines the permissions for performing an action for specific tokens.\nCurrently, this is only used for creating new tokens.\n\nEx: If you want to lock the ability to create new tokens for tokenIds [1,2] at ownershipTimes 1/1/2020 - 1/1/2021, \nyou could set the combination (tokenIds: [1,2], ownershipTimes: [1/1/2020 - 1/1/2021]) to always be forbidden.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.TokenMetadata":{"description":"This message defines the metadata for specific token IDs.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the token metadata.","type":"string"},"tokenIds":{"description":"The token IDs to which this metadata applies.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the token metadata.","type":"string"}}},"tokenization.v27.Transfer":{"description":"Transfer defines the details of a transfer of tokens.","type":"object","properties":{"balances":{"description":"The balances to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}},"ethSignatureProofs":{"description":"The ETH signature proofs / solutions for all ETH signature challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ETHSignatureProof"}},"from":{"description":"The address of the sender of the transfer.","type":"string"},"memo":{"description":"The memo for the transfer.","type":"string"},"merkleProofs":{"description":"The Merkle proofs / solutions for all Merkle challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerkleProof"}},"onlyCheckPrioritizedCollectionApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedIncomingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedOutgoingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"precalculateBalancesFromApproval":{"description":"If defined, we will use the predeterminedBalances from the specified approval to calculate the balances at execution time.\nWe will override the balances field with the precalculated balances. Only applicable for approvals with predeterminedBalances set.","$ref":"#/definitions/tokenization.v27.PrecalculateBalancesFromApprovalDetails"},"prioritizedApprovals":{"description":"The prioritized approvals for the transfer. By default, we scan linearly through the approvals and use the first match.\nThis field can be used to prioritize specific approvals and scan through them first.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ApprovalIdentifierDetails"}},"toAddresses":{"description":"The addresses of the recipients of the transfer.","type":"array","items":{"type":"string"}}}},"tokenization.v27.UintRange":{"description":"The UintRange is a range of IDs from some start to some end (inclusive).\nuintRanges are one of the core types used.\n\nThey are used for everything from token IDs to time ranges to min/max balance amounts.\n\nSee the BitBadges documentation for more information.","type":"object","properties":{"end":{"description":"The ending value of the range (inclusive).","type":"string"},"start":{"description":"The starting value of the range (inclusive).","type":"string"}}},"tokenization.v27.UserBalanceStore":{"description":"UserBalanceStore is the store for the user balances for a collection.\n\nIt consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers,\nas well as the permissions for updating the approved incoming/outgoing transfers.\n\nUpon initialization, all fields (minus the balances) are set to the defaults specified by the collection.\n\nThe outgoing transfers can be used to allow / disallow transfers which are sent from this user.\nIf a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedOutgoingTransfers is set to true.\n\nThe incoming transfers can be used to allow / disallow transfers which are sent to this user.\nIf a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedIncomingTransfers is set to true.\n\nNote that the user approved transfers are only checked if the collection approved transfers do not specify to override\nthe user approved transfers. \n\nThe permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Whether to auto-approve all incoming transfers by default. \nThis is just shorthand for adding an accept everything incoming approval\nwith no restrictions.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Whether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy).","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Whether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy).","type":"boolean"},"balances":{"description":"The list of balances associated with this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}},"incomingApprovals":{"description":"The list of approved incoming transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserIncomingApproval"}},"outgoingApprovals":{"description":"The list of approved outgoing transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserOutgoingApproval"}},"userPermissions":{"description":"The permissions for this user's actions and transfers.","$ref":"#/definitions/tokenization.v27.UserPermissions"}}},"tokenization.v27.UserIncomingApproval":{"description":"UserIncomingApproval defines the rules for the approval of an incoming transfer to a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v27.IncomingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v27.UserIncomingApprovalPermission":{"description":"UserIncomingApprovalPermission defines the permissions for updating the user's approved incoming transfers.\n\nSee CollectionApprovalPermission for more details. This is equivalent without the toListId field because that is always the user.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.UserOutgoingApproval":{"description":"UserOutgoingApproval defines the rules for the approval of an outgoing transfer from a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v27.OutgoingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v27.UserOutgoingApprovalPermission":{"description":"UserOutgoingApprovalPermission defines the permissions for updating the user's approved outgoing transfers.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.UserPermissions":{"description":"UserPermissions defines the permissions for the user about their approvals (i.e., what the user can and cannot do).\n\nSee CollectionPermissions for more details on the different types of permissions.\n\ncanUpdateOutgoingApprovals and canUpdateOutgoingApprovals follow the same as the canUpdateCollectionApprovals in CollectionPermissions,\nbut certain fields are removed because they are not relevant to the user.","type":"object","properties":{"canUpdateAutoApproveAllIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for all incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated outgoing transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateIncomingApprovals":{"description":"Permissions related to updating the user's approved incoming transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserIncomingApprovalPermission"}},"canUpdateOutgoingApprovals":{"description":"Permissions related to updating the user's approved outgoing transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserOutgoingApprovalPermission"}}}},"tokenization.v27.UserRoyalties":{"description":"UserRoyalties defines the royalties for a user.","type":"object","properties":{"payoutAddress":{"description":"Payout address for the royalties.","type":"string"},"percentage":{"description":"Percentage of the transfer amount to apply as royalties. 1 to 10000 represents basis points.","type":"string"}}},"tokenization.v27.Voter":{"description":"Voter defines a voter with their address and weight.","type":"object","properties":{"address":{"description":"The address of the voter.","type":"string"},"weight":{"description":"The weight of this voter's vote.","type":"string"}}},"tokenization.v27.VotingChallenge":{"description":"VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge.\nRequires a weighted quorum threshold to be met through votes from specified voters.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage\nof total possible weight (all voters), not just voted weight. If you update the proposal ID, then the\nvote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge\nto prevent overlap and unexpected behavior.","type":"object","properties":{"customData":{"description":"Arbitrary custom data associated with this voting challenge.","type":"string"},"proposalId":{"type":"string","title":"The ID of this voting challenge for tracking votes (scoped like challengeTrackerId).\nFormat: collectionId-approverAddress-approvalLevel-approvalId-challengeId"},"quorumThreshold":{"description":"The quorum threshold as a percentage (0-100) of total possible weight that must vote \"yes\".\nExample: 50 means 50% of total voter weight must vote yes for approval.","type":"string"},"uri":{"description":"The URI associated with this voting challenge.","type":"string"},"voters":{"description":"List of voters with their weights. Each voter can cast a weighted vote.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Voter"}}}},"tokenization.v28.ActionPermission":{"description":"ActionPermission defines the permissions for performing an action.\n\nThis is simple and straightforward as the only thing we need to check is the permitted/forbidden times.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.AddressChecks":{"type":"object","title":"AddressChecks defines checks for address types (EVM contract, liquidity pool, etc.)","properties":{"mustBeEvmContract":{"description":"Require the address to be an EVM contract (has code).","type":"boolean"},"mustBeLiquidityPool":{"description":"Require the address to be a liquidity pool.","type":"boolean"},"mustNotBeEvmContract":{"description":"Require the address to not be an EVM contract (no code).","type":"boolean"},"mustNotBeLiquidityPool":{"description":"Require the address to not be a liquidity pool.","type":"boolean"}}},"tokenization.v28.AddressListInput":{"description":"AddressListInput is used for creating address lists via MsgCreateAddressLists.\nIt contains all fields from AddressList except createdBy, which is automatically set from the message creator.","type":"object","properties":{"addresses":{"description":"List of addresses included in the list.","type":"array","items":{"type":"string"}},"customData":{"description":"Custom arbitrary data or additional information related to the address list.","type":"string"},"listId":{"description":"Unique identifier for the address list.","type":"string"},"uri":{"description":"URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable.","type":"string"},"whitelist":{"description":"Indicates whether the list includes the specified addresses (true) or excludes them (false).","type":"boolean"}}},"tokenization.v28.AliasPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v28.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DenomUnit"}},"metadata":{"description":"The metadata for this alias path.","$ref":"#/definitions/tokenization.v28.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v28.AltTimeChecks":{"type":"object","title":"AltTimeChecks defines alternative time-based checks for approval denial.\nIf the transfer time falls within any of the specified offline hours or days, the approval is denied.\nUses UTC timezone for neutral timezone approach.\nofflineHours: ranges of hours (0-23) when transfers should be denied\nofflineDays: ranges of days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied","properties":{"offlineDays":{"description":"Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied. Uses UTC timezone.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"offlineHours":{"description":"Hours (0-23) when transfers should be denied. Uses UTC timezone.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.ApprovalAmounts":{"description":"ApprovalAmounts defines approval amounts per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times \nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallApprovalAmount":{"description":"Overall approval amount.","type":"string"},"perFromAddressApprovalAmount":{"description":"Approval amount per \"from\" address.","type":"string"},"perInitiatedByAddressApprovalAmount":{"description":"Approval amount per \"initiated by\" address.","type":"string"},"perToAddressApprovalAmount":{"description":"Approval amount per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v28.ResetTimeIntervals"}}},"tokenization.v28.ApprovalCriteria":{"description":"ApprovalCriteria defines the criteria for approving transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"allowBackedMinting":{"description":"If true, this collection approval allows backed minting operations (CosmosCoinBackedPath).\nWhen false, this approval cannot be used for transfers involving backed minting addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"allowSpecialWrapping":{"description":"If true, this collection approval allows special wrapping operations (CosmosCoinWrapperPath).\nWhen false, this approval cannot be used for transfers involving wrapping addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v28.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v28.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v28.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v28.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"overridesFromOutgoingApprovals":{"description":"Overrides the user's outgoing approvals for approval. If true, this collection-level approval\ntakes precedence over any outgoing approvals defined by the sender, allowing the collection to\ncontrol outgoing transfer behavior.","type":"boolean"},"overridesToIncomingApprovals":{"description":"Overrides the user's incoming approvals for approval. If true, this collection-level approval\ntakes precedence over any incoming approvals defined by the recipient, allowing the collection to\ncontrol incoming transfer behavior.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v28.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"userRoyalties":{"description":"User level royalties to apply to the transfer. Defines the percentage and payout address for\nroyalties that should be collected when this approval is used for a transfer.","$ref":"#/definitions/tokenization.v28.UserRoyalties"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.VotingChallenge"}}}},"tokenization.v28.ApprovalIdentifierDetails":{"description":"ApprovalIdentifierDetails defines the details to identify a specific approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v28.AutoDeletionOptions":{"description":"AutoDeletionOptions defines the options for auto-deletion of approvals.","type":"object","properties":{"afterOneUse":{"type":"boolean","title":"After one use?"},"afterOverallMaxNumTransfers":{"type":"boolean","title":"After overall max number of uses threshold is met?"},"allowCounterpartyPurge":{"type":"boolean","title":"Allow counterparty to purge this approval if they are the only initiator"},"allowPurgeIfExpired":{"type":"boolean","title":"Allow others to call PurgeApprovals on behalf of this approval owner"}}},"tokenization.v28.Balance":{"description":"Balance represents the balance of a token for a specific user.\nThe user amounts xAmount of a token specified for the time ranges specified.\n\nExample: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021.\n\nIf times or tokenIDs have len \u003e 1, then the user owns all token IDs specified for all time ranges specified.","type":"object","properties":{"amount":{"description":"The amount of the token owned by the user.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"The token IDs for which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.CoinTransfer":{"type":"object","properties":{"coins":{"description":"The sdk.Coins to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"overrideFromWithApproverAddress":{"description":"By default, the from address is the initiator of the transaction.\nIf this is set to true, we will override the from address with the approver address.\nNote: This is not applicable for collection approvals (since approverAddress == '').","type":"boolean"},"overrideToWithInitiator":{"description":"By default, the to address is what is specified in the coin transfer.\nIf this is set to true, we will override the to address with the initiator of the transaction.","type":"boolean"},"to":{"description":"The address of the recipient of the transfer.","type":"string"}}},"tokenization.v28.CollectionApproval":{"type":"object","title":"CollectionApproval defines the rules for the approval of a transfer on the collection level","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v28.ApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v28.CollectionApprovalPermission":{"description":"CollectionApprovalPermission defines what collection approved transfers can be updated vs. are locked.\n\nEach transfer is broken down to a (from, to, initiatedBy, transferTime, tokenId) tuple.\nFor a transfer to match, we need to match ALL of the fields in the combination. \nThese are determined by the fromListId, toListId, initiatedByListId, transferTimes, tokenIds fields.\nAddressLists are used for (from, to, initiatedBy) which are a permanent list of addresses identified by an ID (see AddressLists). \n\npermanentlyPermitted/ForbiddenTimes: when can the manager execute this permission?\n\nEx: Let's say we are updating the transferability for the transfer tuple (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", 10, 1000).\nWe would check to find the FIRST CollectionApprovalPermission that matches this combination.\nIf we find a match, we would check the permitted/forbidden times to see if we can execute this permission (default is ALLOWED).\n\nEx: So if you wanted to freeze the transferability to enforce that token ID 1 will always be transferable, you could set\nthe combination (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", \"All Transfer Times\", 1) to always be forbidden.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.CollectionMetadata":{"description":"This message defines the metadata for the collection.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the collection metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the collection metadata.","type":"string"}}},"tokenization.v28.CollectionPermissions":{"description":"CollectionPermissions defines the permissions for the collection (i.e., what the manager can and cannot do).\n\nThere are three types of permissions for a collection: ActionPermission, TokenIdsActionPermission, and CollectionApprovalPermission.\n\nThe permission type allows fine-grained access control for each action.\n- ActionPermission: defines when the manager can perform an action or update a field.\n- TokenIdsActionPermission: defines when the manager can perform an action for specific tokens\n- CollectionApprovalPermission: defines when the manager can update the transferability of the collection and what transfers can be updated vs. locked.\n\nNote there are a few different times here which could get confusing:\n- permanentlyPermitted/ForbiddenTimes - the times that a permission can be performed\n- transferTimes - the times that a transfer occurs\n- ownershipTimes - the times when a token is owned by a user\n\nThe permitted/permanentlyForbiddenTimes are used to determine when a permission can be executed.\nOnce a time is set to be permitted or forbidden, it is PERMANENT and cannot be changed.\nIf a time is not set to be permitted or forbidden, it is considered NEUTRAL and can be updated but is ALLOWED by default.\n\nIMPORTANT: We take first-match only for the permissions. This means that if you forbid time T in array index 0 and permit time T in index 1, \nwe will only check the first permission (forbid time T) and not the second permission (permit time T).","type":"object","properties":{"canAddMoreAliasPaths":{"description":"Permissions related to adding more alias paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canAddMoreCosmosCoinWrapperPaths":{"description":"Permissions related to adding more cosmos coin wrapper paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canArchiveCollection":{"description":"Permissions related to archiving the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canDeleteCollection":{"description":"Permissions related to deleting the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateCollectionApprovals":{"description":"Permissions related to updating collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApprovalPermission"}},"canUpdateCollectionMetadata":{"description":"Permissions related to updating the metadata of the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateCustomData":{"description":"Permissions related to updating custom data for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateManager":{"description":"Permissions related to updating the collection's manager.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateStandards":{"description":"Permissions related to updating standards for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateTokenMetadata":{"description":"Permissions related to updating token metadata for specific tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenIdsActionPermission"}},"canUpdateValidTokenIds":{"description":"Permissions related to creating more tokens for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenIdsActionPermission"}}}},"tokenization.v28.Conversion":{"description":"Conversion defines a bidirectional conversion between a cosmos coin (with denom) and token balances.","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin side of the conversion (amount + denom).","$ref":"#/definitions/tokenization.v28.ConversionSideAWithDenom"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}}}},"tokenization.v28.ConversionSideA":{"description":"ConversionSideA represents the cosmos coin amount side of a conversion without denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"}}},"tokenization.v28.ConversionSideAWithDenom":{"description":"ConversionSideAWithDenom represents the cosmos coin side of a conversion with denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"},"denom":{"description":"The denomination of the cosmos coin.","type":"string"}}},"tokenization.v28.ConversionWithoutDenom":{"description":"ConversionWithoutDenom defines a bidirectional conversion between a cosmos coin amount (without denom) and token balances.\nThe denom is stored at the base level (e.g., in AliasPath or CosmosCoinWrapperPath).","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin amount side of the conversion (amount only, denom stored separately).","$ref":"#/definitions/tokenization.v28.ConversionSideA"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}}}},"tokenization.v28.CosmosCoinBackedPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v28.Conversion"}}},"tokenization.v28.CosmosCoinWrapperPathAddObject":{"type":"object","properties":{"allowOverrideWithAnyValidToken":{"type":"boolean"},"conversion":{"$ref":"#/definitions/tokenization.v28.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DenomUnit"}},"metadata":{"description":"The metadata for this wrapper path.","$ref":"#/definitions/tokenization.v28.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v28.DenomUnit":{"type":"object","properties":{"decimals":{"description":"The number of decimal places for this unit. Defines the precision of the unit.","type":"string"},"isDefaultDisplay":{"description":"If true, this is the default display unit. Only one unit should be marked as the default display unit.\nThis unit will be used by default when displaying the coin amount. If none are marked default, we use the base level.","type":"boolean"},"metadata":{"description":"The metadata for this denomination unit.","$ref":"#/definitions/tokenization.v28.PathMetadata"},"symbol":{"description":"The symbol for this unit (e.g., \"BADGE\", \"nBADGE\"). Used for display purposes.","type":"string"}}},"tokenization.v28.DynamicStoreChallenge":{"description":"DynamicStoreChallenge defines a challenge that requires the initiator to pass a dynamic store check.","type":"object","properties":{"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"storeId":{"description":"The ID of the dynamic store to check.","type":"string"}}},"tokenization.v28.ETHSignatureChallenge":{"description":"ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge.\n\nAn ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce.\nThe signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId) and each signature can only be used once.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once.\nIf you update the challenge ID, then the used signatures tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this ETH signature challenge for tracking the number of uses per signature.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this ETH signature challenge.","type":"string"},"signer":{"description":"The Ethereum address that must sign the nonce for verification.","type":"string"},"uri":{"description":"The URI associated with this ETH signature challenge, optionally providing metadata about the challenge.","type":"string"}}},"tokenization.v28.ETHSignatureProof":{"description":"ETHSignatureProof represents an Ethereum signature proof for a challenge.","type":"object","properties":{"nonce":{"description":"The nonce that was signed. The signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId).","type":"string"},"signature":{"description":"The Ethereum signature of the nonce.","type":"string"}}},"tokenization.v28.EVMQueryChallenge":{"description":"EVMQueryChallenge defines a rule for approval via read-only EVM contract query.\n\nThe challenge executes a staticcall to the specified contract with the given calldata.\nThe result is compared against the expected result (if provided) or checked for non-zero return.\n\nIMPORTANT: This is read-only and cannot modify state. The query is executed with a gas limit\nto prevent DoS attacks. All results are deterministic since EVM state is consistent within a block.","type":"object","properties":{"calldata":{"type":"string","title":"ABI-encoded function selector + arguments (hex string without 0x prefix)\nExample: \"70a08231000000000000000000000000{address}\" for balanceOf(address)\nCan use placeholders: $initiator, $sender, $recipient (replaced at runtime)"},"comparisonOperator":{"description":"Comparison operator: \"eq\" (equals), \"ne\" (not equals), \"gt\" (greater than), \"gte\", \"lt\", \"lte\"\nOnly \"eq\" and \"ne\" work for non-numeric types. Default is \"eq\".","type":"string"},"contractAddress":{"type":"string","title":"The EVM contract address to query (0x format or bb1 format)"},"customData":{"type":"string","title":"Arbitrary custom data"},"expectedResult":{"description":"Expected return value (hex string without 0x prefix). If empty, any non-error result passes.\nFor boolean checks, use \"0000...0001\" for true.","type":"string"},"gasLimit":{"type":"string","title":"Gas limit for the query (default 100000, max 500000)"},"uri":{"type":"string","title":"The URI associated with this challenge (metadata)"}}},"tokenization.v28.IncomingApprovalCriteria":{"description":"IncomingApprovalCriteria defines the criteria for approving incoming transfers.\nThis is used for user-level incoming approvals and only includes fields relevant to incoming transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v28.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v28.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v28.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v28.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v28.PredeterminedBalances"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No recipient checks are included for incoming approvals since the recipient is the user themselves.","$ref":"#/definitions/tokenization.v28.AddressChecks"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.VotingChallenge"}}}},"tokenization.v28.IncrementedBalances":{"description":"IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method.","type":"object","properties":{"allowAmountScaling":{"description":"When true, the actual transfer can be any evenly divisible integer multiple (\u003e=1x) of startBalances.\napprovalCriteria.coinTransfers are scaled by the same multiplier.\nAll other IncrementedBalances fields must be zero/false/nil when this is true.","type":"boolean"},"allowOverrideTimestamp":{"description":"Whether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set).","type":"boolean"},"allowOverrideWithAnyValidToken":{"type":"boolean","title":"Allow override of any valid ID"},"durationFromTimestamp":{"description":"The amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy.","type":"string"},"incrementOwnershipTimesBy":{"description":"The amount by which to increment ownership times. Incompatible with approveStartingFromNowBy.","type":"string"},"incrementTokenIdsBy":{"description":"The amount by which to increment token IDs.","type":"string"},"maxScalingMultiplier":{"description":"Maximum allowed scaling multiplier. Must be \u003e 0 when allowAmountScaling is true.\nThe chain rejects transfers where the computed multiplier exceeds this cap.\nIgnored (set to \"0\") when allowAmountScaling is false.","type":"string"},"recurringOwnershipTimes":{"description":"Recurring ownership times.","$ref":"#/definitions/tokenization.v28.RecurringOwnershipTimes"},"startBalances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}}}},"tokenization.v28.InvariantsAddObject":{"description":"InvariantsAddObject is used for adding invariants without specifying addresses.\nAddresses are generated by the keeper and stored in the collection.","type":"object","properties":{"cosmosCoinBackedPath":{"description":"The IBC backed (sdk.coin) path for the collection. Only one path is allowed.\nAddress will be generated by the keeper.","$ref":"#/definitions/tokenization.v28.CosmosCoinBackedPathAddObject"},"disablePoolCreation":{"description":"If true, disallows pool creation with this collection's assets.\nWhen true, any attempt to create a pool with tokenization assets from this collection will fail.","type":"boolean"},"evmQueryChallenges":{"type":"array","title":"EVM query invariants that must pass after all transfers complete.\nThese are checked once per message after all balance updates, with access to ALL recipient addresses.\nPlaceholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient","items":{"type":"object","$ref":"#/definitions/tokenization.v28.EVMQueryChallenge"}},"maxSupplyPerId":{"description":"Maximum supply per token ID. Checked against Total address balances after transfers complete.\nA value of 0 means no limit (unlimited).","type":"string"},"noCustomOwnershipTimes":{"description":"If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }].\nThis prevents time-based restrictions on token ownership.","type":"boolean"},"noForcefulPostMintTransfers":{"description":"If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true.\nThis prevents forceful transfers that bypass user-level approvals.\nThis only applies to transfers where the from address does not equal \"Mint\".","type":"boolean"}}},"tokenization.v28.ManualBalances":{"description":"ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set.","type":"object","properties":{"balances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}}}},"tokenization.v28.MaxNumTransfers":{"description":"MaxNumTransfers defines the maximum number of transfers per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times\nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallMaxNumTransfers":{"description":"Overall maximum number of transfers.","type":"string"},"perFromAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"from\" address.","type":"string"},"perInitiatedByAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"initiated by\" address.","type":"string"},"perToAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v28.ResetTimeIntervals"}}},"tokenization.v28.MerkleChallenge":{"description":"Challenges define a rule for the approval in the form of a Merkle challenge.\n\nA Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof,\nthen the challenge is met. All challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials.\n\nIMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge.\nIf you update the challenge ID, then the used leaves tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this Merkle challenge for tracking the number of uses per leaf.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this Merkle challenge.","type":"string"},"expectedProofLength":{"description":"The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks.","type":"string"},"leafSigner":{"description":"Ethereum address that must sign the leaf. Used to protect against man-in-the-middle attacks.\nSignature scheme: sign(leaf + \"-\" + creatorAddress), verified using elliptic curve signature verification.","type":"string"},"maxUsesPerLeaf":{"description":"The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks.","type":"string"},"root":{"description":"The root hash of the Merkle tree to which the Merkle path must lead for verification.","type":"string"},"uri":{"description":"The URI associated with this Merkle challenge, optionally providing metadata about the challenge.","type":"string"},"useCreatorAddressAsLeaf":{"description":"If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses.","type":"boolean"}}},"tokenization.v28.MerklePathItem":{"description":"MerklePathItem represents an item in a Merkle path.","type":"object","properties":{"aunt":{"description":"The hash of the sibling node (aunt) in the Merkle path.","type":"string"},"onRight":{"description":"Indicates whether the aunt node is on the right side of the path.","type":"boolean"}}},"tokenization.v28.MerkleProof":{"description":"MerkleProof represents a Merkle proof, consistent with Tendermint/Crypto Merkle tree.","type":"object","properties":{"aunts":{"description":"List of Merkle path items (aunts) that make up the proof.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerklePathItem"}},"leaf":{"description":"The hash of the leaf node for which the proof is generated.","type":"string"},"leafSignature":{"description":"The signature of the leaf node tying the address to the leaf node.","type":"string"}}},"tokenization.v28.MsgCastVote":{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","type":"object","properties":{"approvalId":{"description":"The approval ID.","type":"string"},"approvalLevel":{"description":"The approval level (\"collection\", \"incoming\", or \"outgoing\").","type":"string"},"approverAddress":{"description":"The approver address (empty string for collection-level approvals).","type":"string"},"collectionId":{"description":"The collection ID for the voting challenge.","type":"string"},"creator":{"description":"The address of the voter casting the vote.","type":"string"},"proposalId":{"description":"The proposal ID (challenge ID) from the VotingChallenge.","type":"string"},"yesWeight":{"description":"The percentage weight (0-100) allocated to \"yes\" vote.\nThe remaining percentage (100 - yesWeight) is allocated to \"no\" vote.\nExample: yesWeight=70 means 70% yes, 30% no.","type":"string"}}},"tokenization.v28.MsgCastVoteResponse":{"type":"object"},"tokenization.v28.MsgCreateAddressLists":{"description":"MsgCreateAddressLists is used to create address lists.","type":"object","properties":{"addressLists":{"description":"Address lists to create. The createdBy field will be automatically set to the creator address.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.AddressListInput"}},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgCreateAddressListsResponse":{"description":"MsgCreateAddressListsResponse is the response to MsgCreateAddressLists.","type":"object"},"tokenization.v28.MsgCreateCollection":{"description":"MsgCreateCollection is used to create a new collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.AliasPathAddObject"}},"collectionApprovals":{"description":"Collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApproval"}},"collectionMetadata":{"description":"Collection metadata.","$ref":"#/definitions/tokenization.v28.CollectionMetadata"},"collectionPermissions":{"description":"Collection permissions.","$ref":"#/definitions/tokenization.v28.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v28.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v28.InvariantsAddObject"},"isArchived":{"description":"isArchived flag.","type":"boolean"},"manager":{"description":"Manager address.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"Standards entries.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"Token metadata entries.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenMetadata"}},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.MsgCreateCollectionResponse":{"description":"MsgCreateCollectionResponse is the response to MsgCreateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgCreateDynamicStore":{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The default value for uninitialized addresses (true/false).","type":"boolean"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v28.MsgCreateDynamicStoreResponse":{"description":"MsgCreateDynamicStoreResponse is the response to MsgCreateDynamicStore.","type":"object","properties":{"storeId":{"description":"ID of the dynamic store.","type":"string"}}},"tokenization.v28.MsgDeleteCollection":{"description":"MsgDeleteCollection is used to delete a collection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgDeleteCollectionResponse":{"description":"MsgDeleteCollectionResponse is the response to MsgDeleteCollection.","type":"object"},"tokenization.v28.MsgDeleteDynamicStore":{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store to delete.","type":"string"}}},"tokenization.v28.MsgDeleteDynamicStoreResponse":{"description":"MsgDeleteDynamicStoreResponse is the response to MsgDeleteDynamicStore.","type":"object"},"tokenization.v28.MsgDeleteIncomingApproval":{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgDeleteIncomingApprovalResponse":{"description":"MsgDeleteIncomingApprovalResponse is the response to MsgDeleteIncomingApproval.","type":"object"},"tokenization.v28.MsgDeleteOutgoingApproval":{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgDeleteOutgoingApprovalResponse":{"description":"MsgDeleteOutgoingApprovalResponse is the response to MsgDeleteOutgoingApproval.","type":"object"},"tokenization.v28.MsgPurgeApprovals":{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","type":"object","properties":{"approvalsToPurge":{"description":"Specific approvals to purge. If empty, purges all applicable approvals based on other flags.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ApprovalIdentifierDetails"}},"approverAddress":{"description":"Address of the user whose approvals to purge. If empty, defaults to creator.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"purgeCounterpartyApprovals":{"description":"Whether to purge counterparty approvals (approvals where the creator is the only initiator).","type":"boolean"},"purgeExpired":{"description":"Whether to purge expired approvals (approvals with no future valid transfer times).","type":"boolean"}}},"tokenization.v28.MsgPurgeApprovalsResponse":{"description":"MsgPurgeApprovalsResponse is the response to MsgPurgeApprovals.","type":"object","properties":{"numPurged":{"description":"Number of approvals purged.","type":"string"}}},"tokenization.v28.MsgSetCollectionApprovals":{"type":"object","title":"MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission","properties":{"canUpdateCollectionApprovals":{"type":"array","title":"Permission to update collection approvals","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApprovalPermission"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApproval"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgSetCollectionApprovalsResponse":{"description":"MsgSetCollectionApprovalsResponse is the response to MsgSetCollectionApprovals.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetCollectionMetadata":{"type":"object","title":"MsgSetCollectionMetadata sets the collection metadata and canUpdateCollectionMetadata permission","properties":{"canUpdateCollectionMetadata":{"type":"array","title":"Permission to update collection metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v28.CollectionMetadata"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgSetCollectionMetadataResponse":{"description":"MsgSetCollectionMetadataResponse is the response to MsgSetCollectionMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetCustomData":{"type":"object","title":"MsgSetCustomData sets the custom data and canUpdateCustomData permission","properties":{"canUpdateCustomData":{"type":"array","title":"Permission to update custom data","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"}}},"tokenization.v28.MsgSetCustomDataResponse":{"description":"MsgSetCustomDataResponse is the response to MsgSetCustomData.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetDynamicStoreValue":{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","type":"object","properties":{"address":{"description":"The address for which to set the value.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store.","type":"string"},"value":{"description":"The boolean value to set (true/false).","type":"boolean"}}},"tokenization.v28.MsgSetDynamicStoreValueResponse":{"description":"MsgSetDynamicStoreValueResponse is the response to MsgSetDynamicStoreValue.","type":"object"},"tokenization.v28.MsgSetIncomingApproval":{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","type":"object","properties":{"approval":{"description":"The incoming approval to set.","$ref":"#/definitions/tokenization.v28.UserIncomingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgSetIncomingApprovalResponse":{"description":"MsgSetIncomingApprovalResponse is the response to MsgSetIncomingApproval.","type":"object"},"tokenization.v28.MsgSetIsArchived":{"type":"object","title":"MsgSetIsArchived sets the isArchived and canArchiveCollection permission","properties":{"canArchiveCollection":{"type":"array","title":"Permission to archive collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"isArchived":{"description":"New isArchived to set.","type":"boolean"}}},"tokenization.v28.MsgSetIsArchivedResponse":{"description":"MsgSetIsArchivedResponse is the response to MsgSetIsArchived.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetManager":{"type":"object","title":"MsgSetManager sets the manager and canUpdateManager permission","properties":{"canUpdateManager":{"type":"array","title":"Permission to update manager","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"manager":{"description":"New manager to set.","type":"string"}}},"tokenization.v28.MsgSetManagerResponse":{"description":"MsgSetManagerResponse is the response to MsgSetManager.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetOutgoingApproval":{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","type":"object","properties":{"approval":{"description":"The outgoing approval to set.","$ref":"#/definitions/tokenization.v28.UserOutgoingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgSetOutgoingApprovalResponse":{"description":"MsgSetOutgoingApprovalResponse is the response to MsgSetOutgoingApproval.","type":"object"},"tokenization.v28.MsgSetReservedProtocolAddress":{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","type":"object","properties":{"address":{"description":"Address to set or unset as reserved protocol address.","type":"string"},"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"isReservedProtocol":{"description":"Whether the address should be a reserved protocol address (true) or not (false).","type":"boolean"}}},"tokenization.v28.MsgSetReservedProtocolAddressResponse":{"description":"MsgSetReservedProtocolAddressResponse is the response to MsgSetReservedProtocolAddress.","type":"object"},"tokenization.v28.MsgSetStandards":{"type":"object","title":"MsgSetStandards sets the standards and canUpdateStandards permission","properties":{"canUpdateStandards":{"type":"array","title":"Permission to update standards","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}}}},"tokenization.v28.MsgSetStandardsResponse":{"description":"MsgSetStandardsResponse is the response to MsgSetStandards.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetTokenMetadata":{"type":"object","title":"MsgSetTokenMetadata sets the token metadata and canUpdateTokenMetadata permission","properties":{"canUpdateTokenMetadata":{"type":"array","title":"Permission to update token metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenMetadata"}}}},"tokenization.v28.MsgSetTokenMetadataResponse":{"description":"MsgSetTokenMetadataResponse is the response to MsgSetTokenMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetValidTokenIds":{"type":"object","title":"MsgSetValidTokenIds sets the validTokenIds and canUpdateValidTokenIds permission","properties":{"canUpdateValidTokenIds":{"type":"array","title":"Permission to update valid token IDs","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.MsgSetValidTokenIdsResponse":{"description":"MsgSetValidTokenIdsResponse is the response to MsgSetValidTokenIds.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgTransferTokens":{"description":"MsgTransferTokens is used to transfer tokens.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"transfers":{"description":"Transfers to execute.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Transfer"}}}},"tokenization.v28.MsgTransferTokensResponse":{"description":"MsgTransferTokensResponse is the response to MsgTransferTokens.","type":"object"},"tokenization.v28.MsgUniversalUpdateCollection":{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v28.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v28.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v28.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v28.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.MsgUniversalUpdateCollectionResponse":{"description":"MsgUniversalUpdateCollectionResponse is the response to MsgUniversalUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgUpdateCollection":{"description":"MsgUpdateCollection is used to update a collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v28.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v28.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v28.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.MsgUpdateCollectionResponse":{"description":"MsgUpdateCollectionResponse is the response to MsgUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgUpdateDynamicStore":{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The new default value for uninitialized addresses (true/false).","type":"boolean"},"globalEnabled":{"description":"The global kill switch state (true = enabled, false = disabled/halted).\nCallers should query the current value first if they want to keep it unchanged.","type":"boolean"},"storeId":{"description":"ID of the dynamic store to update.","type":"string"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v28.MsgUpdateDynamicStoreResponse":{"description":"MsgUpdateDynamicStoreResponse is the response to MsgUpdateDynamicStore.","type":"object"},"tokenization.v28.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/tokenization.v28.Params"}}},"tokenization.v28.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"tokenization.v28.MsgUpdateUserApprovals":{"description":"MsgUpdateUserApprovals is used to update user approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Auto-approve setting for all incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Auto-approve setting for self-initiated incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Auto-approve setting for self-initiated outgoing transfers.","type":"boolean"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"incomingApprovals":{"description":"New incoming approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserIncomingApproval"}},"outgoingApprovals":{"description":"New outgoing approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserOutgoingApproval"}},"updateAutoApproveAllIncomingTransfers":{"description":"Indicates if auto-approve settings for all incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Indicates if auto-approve settings for self-initiated incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Indicates if auto-approve settings for self-initiated outgoing transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIncomingApprovals":{"description":"Indicates if incoming approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateOutgoingApprovals":{"description":"Indicates if outgoing approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateUserPermissions":{"description":"Indicates if user permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"userPermissions":{"description":"New user permissions to set.","$ref":"#/definitions/tokenization.v28.UserPermissions"}}},"tokenization.v28.MsgUpdateUserApprovalsResponse":{"description":"MsgUpdateUserApprovalsResponse is the response to MsgUpdateUserApprovals.","type":"object"},"tokenization.v28.MustOwnTokens":{"description":"MustOwnTokens represents a condition where a user must own specific tokens\nto be approved to transfer.\n\n- collectionId: The ID of the collection for the tokens that must be owned\n- amountRange: The range of amounts the user must own (min to max)\n- ownershipTimes: The time ranges during which the user must own the tokens.\n- tokenIds: The token IDs the user must own.\n- overrideWithCurrentTime: If true, auto override ownershipTimes with the current time.\n- mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for \u003e= 1 millisecond is sufficient.","type":"object","properties":{"amountRange":{"description":"The range of amounts the user must own (min to max).","$ref":"#/definitions/tokenization.v28.UintRange"},"collectionId":{"description":"The ID of the collection.","type":"string"},"mustSatisfyForAllAssets":{"description":"If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token.","type":"boolean"},"overrideWithCurrentTime":{"description":"If true, override ownershipTimes with the current time.","type":"boolean"},"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user must own the tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"The token IDs the user must own.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.OutgoingApprovalCriteria":{"description":"OutgoingApprovalCriteria defines the criteria for approving outgoing transfers.\nThis is used for user-level outgoing approvals and only includes fields relevant to outgoing transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v28.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v28.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v28.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v28.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v28.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No sender checks are included for outgoing approvals since the sender is the user themselves.","$ref":"#/definitions/tokenization.v28.AddressChecks"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.VotingChallenge"}}}},"tokenization.v28.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"affiliate_percentage":{"type":"string","title":"affiliate_percentage defines the percentage of the transfer amount that goes to the affiliate"},"allowed_denoms":{"type":"array","title":"allowed_denoms defines the list of denoms that are allowed to be used in coin_transfers","items":{"type":"string"}}}},"tokenization.v28.PathMetadata":{"description":"This message defines the metadata for paths (alias paths and cosmos coin wrapper paths).\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the path metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the path metadata.","type":"string"}}},"tokenization.v28.PrecalculateBalancesFromApprovalDetails":{"description":"PrecalculateBalancesFromApprovalDetails defines the details for precalculating balances from an approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"precalculationOptions":{"description":"The options for precalculating the balances.","$ref":"#/definitions/tokenization.v28.PrecalculationOptions"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v28.PrecalculationOptions":{"description":"PrecalculationOptions defines the options for precalculating the balances.","type":"object","properties":{"overrideTimestamp":{"description":"The timestamp to override with when calculating the balances.","type":"string"},"scalingMultiplier":{"description":"When \u003e 0 and allowAmountScaling is true on the approval, all precalculated balance amounts\nare multiplied by this value. Must be \u003c= maxScalingMultiplier. 0 means no scaling (returns 1x base).","type":"string"},"tokenIdsOverride":{"description":"The IDs to override for the transfer. Only applicable if using this option in precalculation.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.PredeterminedBalances":{"description":"PredeterminedBalances represents balances with predetermined order calculation.","type":"object","properties":{"incrementedBalances":{"description":"Balances that have a starting amount and increment. If this is nil, then we use the manual balances.","$ref":"#/definitions/tokenization.v28.IncrementedBalances"},"manualBalances":{"description":"Manual balances that can be entered. If this is nil, then we use the incremented balances.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ManualBalances"}},"orderCalculationMethod":{"description":"The method to calculate the order of predetermined balances.","$ref":"#/definitions/tokenization.v28.PredeterminedOrderCalculationMethod"}}},"tokenization.v28.PredeterminedOrderCalculationMethod":{"description":"PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order.","type":"object","properties":{"challengeTrackerId":{"description":"If useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method.","type":"string"},"useMerkleChallengeLeafIndex":{"description":"Use the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc.","type":"boolean"},"useOverallNumTransfers":{"description":"Use the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc.","type":"boolean"},"usePerFromAddressNumTransfers":{"description":"Use the number of transfers per \"from\" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc.","type":"boolean"},"usePerInitiatedByAddressNumTransfers":{"description":"Use the number of transfers per \"initiated by\" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc.","type":"boolean"},"usePerToAddressNumTransfers":{"description":"Use the number of transfers per \"to\" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc.","type":"boolean"}}},"tokenization.v28.RecurringOwnershipTimes":{"description":"RecurringOwnershipTimes represents a list of recurring ownership times.","type":"object","properties":{"chargePeriodLength":{"type":"string","title":"Grace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period"},"intervalLength":{"description":"The interval length in unix milliseconds.","type":"string"},"startTime":{"description":"The original start time of the first interval.","type":"string"}}},"tokenization.v28.ResetTimeIntervals":{"description":"Time intervals to reset the trackers at.","type":"object","properties":{"intervalLength":{"description":"Interval length in unix milliseconds.","type":"string"},"startTime":{"description":"Original start time of the first interval.","type":"string"}}},"tokenization.v28.TokenIdsActionPermission":{"description":"TokenIdsActionPermission defines the permissions for performing an action for specific tokens.\nCurrently, this is only used for creating new tokens.\n\nEx: If you want to lock the ability to create new tokens for tokenIds [1,2] at ownershipTimes 1/1/2020 - 1/1/2021, \nyou could set the combination (tokenIds: [1,2], ownershipTimes: [1/1/2020 - 1/1/2021]) to always be forbidden.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.TokenMetadata":{"description":"This message defines the metadata for specific token IDs.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the token metadata.","type":"string"},"tokenIds":{"description":"The token IDs to which this metadata applies.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the token metadata.","type":"string"}}},"tokenization.v28.Transfer":{"description":"Transfer defines the details of a transfer of tokens.","type":"object","properties":{"balances":{"description":"The balances to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}},"ethSignatureProofs":{"description":"The ETH signature proofs / solutions for all ETH signature challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ETHSignatureProof"}},"from":{"description":"The address of the sender of the transfer.","type":"string"},"memo":{"description":"The memo for the transfer.","type":"string"},"merkleProofs":{"description":"The Merkle proofs / solutions for all Merkle challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerkleProof"}},"onlyCheckPrioritizedCollectionApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedIncomingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedOutgoingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"precalculateBalancesFromApproval":{"description":"If defined, we will use the predeterminedBalances from the specified approval to calculate the balances at execution time.\nWe will override the balances field with the precalculated balances. Only applicable for approvals with predeterminedBalances set.","$ref":"#/definitions/tokenization.v28.PrecalculateBalancesFromApprovalDetails"},"prioritizedApprovals":{"description":"The prioritized approvals for the transfer. By default, we scan linearly through the approvals and use the first match.\nThis field can be used to prioritize specific approvals and scan through them first.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ApprovalIdentifierDetails"}},"toAddresses":{"description":"The addresses of the recipients of the transfer.","type":"array","items":{"type":"string"}}}},"tokenization.v28.UintRange":{"description":"The UintRange is a range of IDs from some start to some end (inclusive).\nuintRanges are one of the core types used.\n\nThey are used for everything from token IDs to time ranges to min/max balance amounts.\n\nSee the BitBadges documentation for more information.","type":"object","properties":{"end":{"description":"The ending value of the range (inclusive).","type":"string"},"start":{"description":"The starting value of the range (inclusive).","type":"string"}}},"tokenization.v28.UserBalanceStore":{"description":"UserBalanceStore is the store for the user balances for a collection.\n\nIt consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers,\nas well as the permissions for updating the approved incoming/outgoing transfers.\n\nUpon initialization, all fields (minus the balances) are set to the defaults specified by the collection.\n\nThe outgoing transfers can be used to allow / disallow transfers which are sent from this user.\nIf a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedOutgoingTransfers is set to true.\n\nThe incoming transfers can be used to allow / disallow transfers which are sent to this user.\nIf a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedIncomingTransfers is set to true.\n\nNote that the user approved transfers are only checked if the collection approved transfers do not specify to override\nthe user approved transfers. \n\nThe permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Whether to auto-approve all incoming transfers by default. \nThis is just shorthand for adding an accept everything incoming approval\nwith no restrictions.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Whether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy).","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Whether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy).","type":"boolean"},"balances":{"description":"The list of balances associated with this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}},"incomingApprovals":{"description":"The list of approved incoming transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserIncomingApproval"}},"outgoingApprovals":{"description":"The list of approved outgoing transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserOutgoingApproval"}},"userPermissions":{"description":"The permissions for this user's actions and transfers.","$ref":"#/definitions/tokenization.v28.UserPermissions"}}},"tokenization.v28.UserIncomingApproval":{"description":"UserIncomingApproval defines the rules for the approval of an incoming transfer to a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v28.IncomingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v28.UserIncomingApprovalPermission":{"description":"UserIncomingApprovalPermission defines the permissions for updating the user's approved incoming transfers.\n\nSee CollectionApprovalPermission for more details. This is equivalent without the toListId field because that is always the user.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.UserOutgoingApproval":{"description":"UserOutgoingApproval defines the rules for the approval of an outgoing transfer from a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v28.OutgoingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v28.UserOutgoingApprovalPermission":{"description":"UserOutgoingApprovalPermission defines the permissions for updating the user's approved outgoing transfers.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.UserPermissions":{"description":"UserPermissions defines the permissions for the user about their approvals (i.e., what the user can and cannot do).\n\nSee CollectionPermissions for more details on the different types of permissions.\n\ncanUpdateOutgoingApprovals and canUpdateOutgoingApprovals follow the same as the canUpdateCollectionApprovals in CollectionPermissions,\nbut certain fields are removed because they are not relevant to the user.","type":"object","properties":{"canUpdateAutoApproveAllIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for all incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated outgoing transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateIncomingApprovals":{"description":"Permissions related to updating the user's approved incoming transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserIncomingApprovalPermission"}},"canUpdateOutgoingApprovals":{"description":"Permissions related to updating the user's approved outgoing transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserOutgoingApprovalPermission"}}}},"tokenization.v28.UserRoyalties":{"description":"UserRoyalties defines the royalties for a user.","type":"object","properties":{"payoutAddress":{"description":"Payout address for the royalties.","type":"string"},"percentage":{"description":"Percentage of the transfer amount to apply as royalties. 1 to 10000 represents basis points.","type":"string"}}},"tokenization.v28.Voter":{"description":"Voter defines a voter with their address and weight.","type":"object","properties":{"address":{"description":"The address of the voter.","type":"string"},"weight":{"description":"The weight of this voter's vote.","type":"string"}}},"tokenization.v28.VotingChallenge":{"description":"VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge.\nRequires a weighted quorum threshold to be met through votes from specified voters.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage\nof total possible weight (all voters), not just voted weight. If you update the proposal ID, then the\nvote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge\nto prevent overlap and unexpected behavior.","type":"object","properties":{"customData":{"description":"Arbitrary custom data associated with this voting challenge.","type":"string"},"proposalId":{"type":"string","title":"The ID of this voting challenge for tracking votes (scoped like challengeTrackerId).\nFormat: collectionId-approverAddress-approvalLevel-approvalId-challengeId"},"quorumThreshold":{"description":"The quorum threshold as a percentage (0-100) of total possible weight that must vote \"yes\".\nExample: 50 means 50% of total voter weight must vote yes for approval.","type":"string"},"uri":{"description":"The URI associated with this voting challenge.","type":"string"},"voters":{"description":"List of voters with their weights. Each voter can cast a weighted vote.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Voter"}}}}},"tags":[{"name":"Query"},{"name":"Msg"}]} \ No newline at end of file +{"id":"github.com/bitbadges/bitbadgeschain","consumes":["application/json"],"produces":["application/json"],"swagger":"2.0","info":{"description":"Chain github.com/bitbadges/bitbadgeschain REST API","title":"HTTP API Console","contact":{"name":"github.com/bitbadges/bitbadgeschain"},"version":"version not set"},"paths":{"/bitbadges/bitbadgeschain/managersplitter":{"get":{"tags":["Query"],"summary":"AllManagerSplitters queries all manager splitters.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllManagerSplitters","parameters":[{"type":"string","format":"byte","description":"key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.","name":"pagination.key","in":"query"},{"type":"string","format":"uint64","description":"offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.","name":"pagination.offset","in":"query"},{"type":"string","format":"uint64","description":"limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.","name":"pagination.limit","in":"query"},{"type":"boolean","description":"count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.","name":"pagination.count_total","in":"query"},{"type":"boolean","description":"reverse is set to true if results are to be returned in the descending order.","name":"pagination.reverse","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.QueryAllManagerSplittersResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/managersplitter/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin22","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/managersplitter/{address}":{"get":{"tags":["Query"],"summary":"ManagerSplitter queries a manager splitter by address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ManagerSplitter","parameters":[{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.QueryGetManagerSplitterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/sendmanager/balance/{address}/{denom}":{"get":{"tags":["Query"],"summary":"Balance queries the balance of a specific denom for an address with alias routing.\nThis allows querying both standard coins and alias denoms (e.g., badgeslp:).","operationId":"GithubCombitbadgesbitbadgeschainQuery_Balance","parameters":[{"type":"string","description":"address is the address to query balances for.","name":"address","in":"path","required":true},{"type":"string","description":"denom is the specific denomination to query the balance for.","name":"denom","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/sendmanager.QueryBalanceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/sendmanager/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin34","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/sendmanager.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_address_list/{listId}":{"get":{"tags":["Query"],"summary":"Queries an address list by ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetAddressList","parameters":[{"type":"string","name":"listId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetAddressListResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_all_reserved_protocol_addresses":{"get":{"tags":["Query"],"summary":"Queries all reserved protocol addresses.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetAllReservedProtocolAddresses","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetAllReservedProtocolAddressesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_approvals_tracker/{collectionId}/{approvalLevel}/{approverAddress}/{amountTrackerId}/{trackerType}/{approvedAddress}":{"get":{"tags":["Query"],"summary":"Queries an approvals tracker by ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetApprovalTracker","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"amountTrackerId","in":"path","required":true},{"type":"string","name":"trackerType","in":"path","required":true},{"type":"string","description":"if trackerType is \"overall\", leave blank","name":"approvedAddress","in":"path","required":true},{"type":"string","name":"approvalId","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetApprovalTrackerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_balance/{collectionId}/{address}":{"get":{"tags":["Query"],"summary":"Queries an addresses balance for a collection, specified by its ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetBalance","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetBalanceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_balance_for_token/{collectionId}/{address}/{tokenId}":{"get":{"tags":["Query"],"summary":"Queries the balance amount for a specific token ID at a specific time.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetBalanceForToken","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","name":"address","in":"path","required":true},{"type":"string","name":"tokenId","in":"path","required":true},{"type":"string","description":"Optional - milliseconds since epoch, defaults to current block time","name":"time","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetBalanceForTokenResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_challenge_tracker/{collectionId}/{approvalLevel}/{approverAddress}/{challengeTrackerId}/{leafIndex}":{"get":{"tags":["Query"],"summary":"Queries the number of times a given leaf has been used for a given merkle challenge.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetChallengeTracker","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"challengeTrackerId","in":"path","required":true},{"type":"string","name":"leafIndex","in":"path","required":true},{"type":"string","name":"approvalId","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetChallengeTrackerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_collection/{collectionId}":{"get":{"tags":["Query"],"summary":"Queries a collection by ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetCollection","parameters":[{"type":"string","name":"collectionId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_collection_stats/{collectionId}":{"get":{"tags":["Query"],"summary":"Queries collection stats (holder count and circulating supply) by collection ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetCollectionStats","parameters":[{"type":"string","name":"collectionId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetCollectionStatsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_dynamic_store/{storeId}":{"get":{"tags":["Query"],"summary":"Queries a dynamic store by ID.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetDynamicStore","parameters":[{"type":"string","name":"storeId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_dynamic_store_value/{storeId}/{address}":{"get":{"tags":["Query"],"summary":"Queries a dynamic store value by store ID and address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetDynamicStoreValue","parameters":[{"type":"string","name":"storeId","in":"path","required":true},{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetDynamicStoreValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_eth_signature_tracker/{collectionId}/{approvalLevel}/{approverAddress}/{approvalId}/{challengeTrackerId}/{signature}":{"get":{"tags":["Query"],"summary":"Queries the number of times a given signature has been used for a given ETH signature challenge.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetETHSignatureTracker","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"approvalId","in":"path","required":true},{"type":"string","name":"challengeTrackerId","in":"path","required":true},{"type":"string","name":"signature","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetETHSignatureTrackerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_vote/{collectionId}/{approvalLevel}/{approverAddress}/{approvalId}/{proposalId}/{voterAddress}":{"get":{"tags":["Query"],"summary":"Queries a vote by collection ID, approval level, approver address, approval ID, proposal ID, and voter address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetVote","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"approvalId","in":"path","required":true},{"type":"string","name":"proposalId","in":"path","required":true},{"type":"string","name":"voterAddress","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_votes/{collectionId}/{approvalLevel}/{approverAddress}/{approvalId}/{proposalId}":{"get":{"tags":["Query"],"summary":"Queries all votes for a proposal.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetVotes","parameters":[{"type":"string","name":"collectionId","in":"path","required":true},{"type":"string","description":"\"collection\" or \"incoming\" or \"outgoing\"","name":"approvalLevel","in":"path","required":true},{"type":"string","description":"if approvalLevel is \"collection\", leave blank","name":"approverAddress","in":"path","required":true},{"type":"string","name":"approvalId","in":"path","required":true},{"type":"string","name":"proposalId","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetVotesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/get_wrappable_balances/{denom}/{address}":{"get":{"tags":["Query"],"summary":"Queries the maximum wrappable amount for a given denom and user address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_GetWrappableBalances","parameters":[{"type":"string","name":"denom","in":"path","required":true},{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryGetWrappableBalancesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/is_address_reserved_protocol/{address}":{"get":{"tags":["Query"],"summary":"Queries if an address is a reserved protocol address.","operationId":"GithubCombitbadgesbitbadgeschainQuery_IsAddressReservedProtocol","parameters":[{"type":"string","name":"address","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryIsAddressReservedProtocolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/bitbadges/bitbadgeschain/tokenization/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin53","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cosmos.evm.vm.v1.Msg/RegisterPreinstalls":{"post":{"tags":["Msg"],"summary":"RegisterPreinstalls defines a governance operation for directly registering\npreinstalled contracts in the EVM. The authority is the same as is used for\nParams updates.","operationId":"Erc20Msg_RegisterPreinstalls","parameters":[{"description":"MsgRegisterPreinstalls defines a Msg for creating preinstalls in evm state.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgRegisterPreinstalls"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgRegisterPreinstallsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cosmos.evm.vm.v1.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defined a governance operation for updating the x/vm module\nparameters. The authority is hard-coded to the Cosmos SDK x/gov module\naccount","operationId":"Erc20Msg_UpdateParams","parameters":[{"description":"MsgUpdateParams defines a Msg for updating the x/vm module parameters.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/cosmos/evm/vm/v1/ethereum_tx":{"post":{"tags":["Msg"],"summary":"EthereumTx defines a method submitting Ethereum transactions.","operationId":"Erc20Msg_EthereumTx","parameters":[{"type":"string","format":"byte","description":"from is the bytes of ethereum signer address. This address value is checked\nagainst the address derived from the signature (V, R, S) using the\nsecp256k1 elliptic curve","name":"from","in":"query"},{"type":"string","format":"byte","description":"raw is the raw ethereum transaction","name":"raw","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/cosmos.evm.vm.v1.MsgEthereumTxResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.poolmodels.balancer.Msg/CreateBalancerPool":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateBalancerPool","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.poolmodels.balancer.MsgCreateBalancerPool"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.poolmodels.balancer.MsgCreateBalancerPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.poolmodels.stableswap.Msg/CreateStableswapPool":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateStableswapPool","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.poolmodels.stableswap.MsgCreateStableswapPool"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.poolmodels.stableswap.MsgCreateStableswapPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.poolmodels.stableswap.Msg/StableSwapAdjustScalingFactors":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_StableSwapAdjustScalingFactors","parameters":[{"description":"Sender must be the pool's scaling_factor_governor in order for the tx to\nsucceed. Adjusts stableswap scaling factors.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.poolmodels.stableswap.MsgStableSwapAdjustScalingFactors"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.poolmodels.stableswap.MsgStableSwapAdjustScalingFactorsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/ExitPool":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_ExitPool","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitPool"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/ExitSwapExternAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_ExitSwapExternAmountOut","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitSwapExternAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitSwapExternAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/ExitSwapShareAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_ExitSwapShareAmountIn","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitSwapShareAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgExitSwapShareAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/JoinPool":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_JoinPool","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinPool"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/JoinSwapExternAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_JoinSwapExternAmountIn","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinSwapExternAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinSwapExternAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/JoinSwapShareAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_JoinSwapShareAmountOut","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinSwapShareAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgJoinSwapShareAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/SwapExactAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountIn","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/SwapExactAmountInWithIBCTransfer":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountInWithIBCTransfer","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountInWithIBCTransfer"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountInWithIBCTransferResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Msg/SwapExactAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountOut","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.MsgSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/gamm.v1beta1.Query/CalcJoinPoolNoSwapShares":{"post":{"tags":["Query"],"summary":"Simulates joining pool without a swap. Returns the amount of shares you'd\nget and tokens needed to provide","operationId":"GithubCombitbadgesbitbadgeschainQuery_CalcJoinPoolNoSwapShares","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesRequest"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/ibcratelimit.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParams","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/ibcratelimit.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/ibcratelimit.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/ibcratelimit.Msg/UpdateRateLimit":{"post":{"tags":["Msg"],"summary":"UpdateRateLimit defines a (governance) operation for updating or adding a single rate limit.\nIf a rate limit with the same channel_id and denom exists, it will be updated.\nOtherwise, it will be appended to the list. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateRateLimit","parameters":[{"description":"MsgUpdateRateLimit is the Msg/UpdateRateLimit request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/ibcratelimit.MsgUpdateRateLimit"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/ibcratelimit.MsgUpdateRateLimitResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/CreateManagerSplitter":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateManagerSplitter","parameters":[{"description":"MsgCreateManagerSplitter creates a new manager splitter entity.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgCreateManagerSplitter"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgCreateManagerSplitterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/DeleteManagerSplitter":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteManagerSplitter","parameters":[{"description":"MsgDeleteManagerSplitter deletes a manager splitter entity.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgDeleteManagerSplitter"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgDeleteManagerSplitterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/ExecuteUniversalUpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_ExecuteUniversalUpdateCollection","parameters":[{"description":"MsgExecuteUniversalUpdateCollection executes a UniversalUpdateCollection message\nthrough the manager splitter, checking permissions before execution.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgExecuteUniversalUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgExecuteUniversalUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/UpdateManagerSplitter":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateManagerSplitter","parameters":[{"description":"MsgUpdateManagerSplitter updates an existing manager splitter entity.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgUpdateManagerSplitter"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgUpdateManagerSplitterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/managersplitter.Msg/UpdateParams":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin23","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/managersplitter.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/managersplitter.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/filtered_pools":{"get":{"tags":["Query"],"summary":"PoolsWithFilter allows you to query specific pools with requested\nparameters","operationId":"GithubCombitbadgesbitbadgeschainQuery_PoolsWithFilter","parameters":[{"type":"string","description":"String of the coins in single string separated by comma. Ex)\n10uatom,100uosmo","name":"min_liquidity","in":"query"},{"type":"string","name":"pool_type","in":"query"},{"type":"string","format":"byte","description":"key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.","name":"pagination.key","in":"query"},{"type":"string","format":"uint64","description":"offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.","name":"pagination.offset","in":"query"},{"type":"string","format":"uint64","description":"limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.","name":"pagination.limit","in":"query"},{"type":"boolean","description":"count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.","name":"pagination.count_total","in":"query"},{"type":"boolean","description":"reverse is set to true if results are to be returned in the descending order.","name":"pagination.reverse","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolsWithFilterResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/num_pools":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_NumPools","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryNumPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/params":{"get":{"tags":["Query"],"summary":"Params returns gamm module params.","operationId":"GithubCombitbadgesbitbadgeschainQuery_Params","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.ParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pool_type/{pool_id}":{"get":{"tags":["Query"],"summary":"PoolType returns the type of the pool.\nReturns \"Balancer\" as a string literal when the pool is a balancer pool.\nErrors if the pool is failed to be type caseted.","operationId":"GithubCombitbadgesbitbadgeschainQuery_PoolType","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolTypeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_Pools","parameters":[{"type":"string","format":"byte","description":"key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.","name":"pagination.key","in":"query"},{"type":"string","format":"uint64","description":"offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.","name":"pagination.offset","in":"query"},{"type":"string","format":"uint64","description":"limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.","name":"pagination.limit","in":"query"},{"type":"boolean","description":"count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.","name":"pagination.count_total","in":"query"},{"type":"boolean","description":"reverse is set to true if results are to be returned in the descending order.","name":"pagination.reverse","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_Pool","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/exit_swap_share_amount_in":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_CalcExitPoolCoinsFromShares","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"share_in_amount","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/join_swap_exact_in":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_CalcJoinPoolShares","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryCalcJoinPoolSharesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/params":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_PoolParams","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryPoolParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/prices":{"get":{"tags":["Query"],"summary":"SpotPrice defines a gRPC query handler that returns the spot price given\na base denomination and a quote denomination.","operationId":"GithubCombitbadgesbitbadgeschainQuery_SpotPrice","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"base_asset_denom","in":"query"},{"type":"string","name":"quote_asset_denom","in":"query"},{"type":"boolean","description":"DEPRECATED","name":"withSwapFee","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QuerySpotPriceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/total_pool_liquidity":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalPoolLiquidity","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryTotalPoolLiquidityResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/pools/{pool_id}/total_shares":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalShares","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryTotalSharesResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/total_liquidity":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalLiquidity","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QueryTotalLiquidityResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/{pool_id}/estimate/swap_exact_amount_in":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountIn","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"sender","in":"query"},{"type":"string","name":"token_in","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QuerySwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v1beta1/{pool_id}/estimate/swap_exact_amount_out":{"get":{"tags":["Query"],"summary":"Deprecated: please use the alternative in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountOut","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"sender","in":"query"},{"type":"string","name":"token_out","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v1beta1.QuerySwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/gamm/v2/pools/{pool_id}/prices":{"get":{"tags":["Query"],"summary":"Deprecated: please use alternate in x/poolmanager","operationId":"GithubCombitbadgesbitbadgeschainQuery_SpotPriceMixin13","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"base_asset_denom","in":"query"},{"type":"string","name":"quote_asset_denom","in":"query"},{"type":"boolean","description":"DEPRECATED","name":"withSwapFee","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/gamm.v2.QuerySpotPriceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/pools/{pool_id}/prices":{"get":{"tags":["Query"],"summary":"SpotPrice defines a gRPC query handler that returns the spot price given\na base denomination and a quote denomination.","operationId":"GithubCombitbadgesbitbadgeschainQuery_SpotPriceMixin26","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"base_asset_denom","in":"query"},{"type":"string","name":"quote_asset_denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.SpotPriceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/Params":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_ParamsMixin26","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.ParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/all-pools":{"get":{"tags":["Query"],"summary":"AllPools returns all pools on the Osmosis chain sorted by IDs.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllPools","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.AllPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/all_registered_alloyed_pools":{"get":{"tags":["Query"],"summary":"AllRegisteredAlloyedPools returns all registered alloyed pools. The\nregistered alloyed pool contains the pool's contract address, along with\nthe current distribution composition of taker fee share denoms within the\nalloyed pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllRegisteredAlloyedPools","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.AllRegisteredAlloyedPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/all_taker_fee_share_accumulators":{"get":{"tags":["Query"],"summary":"AllTakerFeeShareAccumulators returns all taker fee share accumulators. A\ntaker fee share accumulator includes the denom of the denom getting the\ntaker fees, and an accumulated value of coins that the denom has accrued\nsince the last time it was distributed in the epoch prior.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllTakerFeeShareAccumulators","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.AllTakerFeeShareAccumulatorsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/all_taker_fee_share_agreements":{"get":{"tags":["Query"],"summary":"AllTakerFeeShareAgreements returns all taker fee share agreements.\nA taker fee share agreement includes the denom of the denom getting the\ntaker fees, the percent of the taker fees that the denom gets when it is\nin the route being traded against, and the address that the taker fees are\nsent to at epoch.","operationId":"GithubCombitbadgesbitbadgeschainQuery_AllTakerFeeShareAgreements","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.AllTakerFeeShareAgreementsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/list-pools-by-denom":{"get":{"tags":["Query"],"summary":"ListPoolsByDenom return all pools by denom","operationId":"GithubCombitbadgesbitbadgeschainQuery_ListPoolsByDenom","parameters":[{"type":"string","name":"denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.ListPoolsByDenomResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/num_pools":{"get":{"tags":["Query"],"summary":"Returns the total number of pools existing in Osmosis.","operationId":"GithubCombitbadgesbitbadgeschainQuery_NumPoolsMixin26","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.NumPoolsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/pools/{pool_id}":{"get":{"tags":["Query"],"summary":"Pool returns the Pool specified by the pool id","operationId":"GithubCombitbadgesbitbadgeschainQuery_PoolMixin26","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.PoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/pools/{pool_id}/total_pool_liquidity":{"get":{"tags":["Query"],"summary":"TotalPoolLiquidity returns the total liquidity of the specified pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalPoolLiquidityMixin26","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TotalPoolLiquidityResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/pools/{pool_id}/total_volume":{"get":{"tags":["Query"],"summary":"TotalVolumeForPool returns the total volume of the specified pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalVolumeForPool","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TotalVolumeForPoolResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/total_liquidity":{"get":{"tags":["Query"],"summary":"TotalLiquidity returns the total liquidity across all pools.","operationId":"GithubCombitbadgesbitbadgeschainQuery_TotalLiquidityMixin26","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TotalLiquidityResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/trading_pair_takerfee":{"get":{"tags":["Query"],"summary":"TradingPairTakerFee returns the taker fee for a given set of denoms","operationId":"GithubCombitbadgesbitbadgeschainQuery_TradingPairTakerFee","parameters":[{"type":"string","name":"denom_0","in":"query"},{"type":"string","name":"denom_1","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TradingPairTakerFeeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{denom}/registered_alloyed_pool_from_denom":{"get":{"tags":["Query"],"summary":"RegisteredAlloyedPoolFromDenom returns the registered alloyed pool state\nfrom the given denom. The registered alloyed pool contains the pool's\ncontract address, along with the current distribution composition of taker\nfee share denoms within the alloyed pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_RegisteredAlloyedPoolFromDenom","parameters":[{"type":"string","name":"denom","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{denom}/taker_fee_share_agreement_from_denom":{"get":{"tags":["Query"],"summary":"TakerFeeShareAgreementFromDenom returns the taker fee share agreement for a\ngiven denom. A taker fee share agreement includes the denom of the denom\ngetting the taker fees, the percent of the taker fees that the denom gets\nwhen it is in the route being traded against, and the address that the\ntaker fees are sent to at epoch.","operationId":"GithubCombitbadgesbitbadgeschainQuery_TakerFeeShareAgreementFromDenom","parameters":[{"type":"string","name":"denom","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareAgreementFromDenomResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/single_pool_swap_exact_amount_in":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSinglePoolSwapExactAmountIn","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"token_in","in":"query"},{"type":"string","name":"token_out_denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_in":{"get":{"tags":["Query"],"summary":"Estimates swap amount out given in.","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountInMixin26","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","description":"DEPRECATED","name":"sender","in":"query"},{"type":"string","name":"token_in","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_in_with_primitive_types":{"get":{"tags":["Query"],"summary":"EstimateSwapExactAmountInWithPrimitiveTypes is an alternative query for\nEstimateSwapExactAmountIn. Supports query via GRPC-Gateway by using\nprimitive types instead of repeated structs. Each index in the\nroutes_pool_id field corresponds to the respective routes_token_out_denom\nvalue, thus they are required to have the same length and are grouped\ntogether as pairs.\nexample usage:\nhttp://0.0.0.0:1317/osmosis/poolmanager/v1beta1/1/estimate/\nswap_exact_amount_in_with_primitive_types?token_in=100000stake\u0026routes_token_out_denom=uatom\n\u0026routes_token_out_denom=uion\u0026routes_pool_id=1\u0026routes_pool_id=2","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountInWithPrimitiveTypes","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"token_in","in":"query"},{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"routes_pool_id","in":"query"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"routes_token_out_denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_out":{"get":{"tags":["Query"],"summary":"Estimates swap amount in given out.","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountOutMixin26","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","description":"DEPRECATED","name":"sender","in":"query"},{"type":"string","name":"token_out","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate/swap_exact_amount_out_with_primitive_types":{"get":{"tags":["Query"],"summary":"Estimates swap amount in given out.","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSwapExactAmountOutWithPrimitiveTypes","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"array","items":{"type":"string","format":"uint64"},"collectionFormat":"multi","name":"routes_pool_id","in":"query"},{"type":"array","items":{"type":"string"},"collectionFormat":"multi","name":"routes_token_in_denom","in":"query"},{"type":"string","name":"token_out","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate_out/single_pool_swap_exact_amount_out":{"get":{"tags":["Query"],"operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateSinglePoolSwapExactAmountOut","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"token_in_denom","in":"query"},{"type":"string","name":"token_out","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/estimate_trade":{"get":{"tags":["Query"],"summary":"EstimateTradeBasedOnPriceImpact returns an estimated trade based on price\nimpact, if a trade cannot be estimated a 0 input and 0 output would be\nreturned.","operationId":"GithubCombitbadgesbitbadgeschainQuery_EstimateTradeBasedOnPriceImpact","parameters":[{"type":"string","format":"uint64","description":"pool_id is the identifier of the liquidity pool that the trade will occur\non.","name":"pool_id","in":"path","required":true},{"type":"string","name":"from_coin.denom","in":"query"},{"type":"string","name":"from_coin.amount","in":"query"},{"type":"string","description":"to_coin_denom is the denom identifier of the token that the user wants to\nbuy.","name":"to_coin_denom","in":"query"},{"type":"string","description":"max_price_impact is the maximum percentage that the user is willing\nto affect the price of the liquidity pool.","name":"max_price_impact","in":"query"},{"type":"string","description":"external_price is an optional external price that the user can enter.\nIt adjusts the MaxPriceImpact as the SpotPrice of a pool can be changed at\nany time.","name":"external_price","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{pool_id}/registered_alloyed_pool_from_pool_id":{"get":{"tags":["Query"],"summary":"RegisteredAlloyedPoolFromPoolId returns the registered alloyed pool state\nfrom the given pool id. The registered alloyed pool contains the pool's\ncontract address, along with the current distribution composition of taker\nfee share denoms within the alloyed pool.","operationId":"GithubCombitbadgesbitbadgeschainQuery_RegisteredAlloyedPoolFromPoolId","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v1beta1/{takerFeeDenom}/{denom}/taker_fee_share_denoms_to_accrued_value":{"get":{"tags":["Query"],"summary":"TakerFeeShareDenomsToAccruedValue returns the accrued value (as an Int) of\nthe given taker fee denom (the collected fees) for the given fee share\ndenom (the denom with the taker fee share agreement)","operationId":"GithubCombitbadgesbitbadgeschainQuery_TakerFeeShareDenomsToAccruedValue","parameters":[{"type":"string","name":"takerFeeDenom","in":"path","required":true},{"type":"string","name":"denom","in":"path","required":true}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/osmosis/poolmanager/v2/pools/{pool_id}/prices":{"get":{"tags":["Query"],"summary":"SpotPriceV2 defines a gRPC query handler that returns the spot price given\na base denomination and a quote denomination.\nThe returned spot price has 36 decimal places. However, some of\nmodules perform sig fig rounding so most of the rightmost decimals can be\nzeroes.","operationId":"GithubCombitbadgesbitbadgeschainQuery_SpotPriceV2","parameters":[{"type":"string","format":"uint64","name":"pool_id","in":"path","required":true},{"type":"string","name":"base_asset_denom","in":"query"},{"type":"string","name":"quote_asset_denom","in":"query"}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v2.SpotPriceResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SetDenomPairTakerFee":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetDenomPairTakerFee","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSetDenomPairTakerFee"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSetDenomPairTakerFeeResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SetTakerFeeShareAgreementForDenom":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetTakerFeeShareAgreementForDenom","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenom"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenomResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SplitRouteSwapExactAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SplitRouteSwapExactAmountIn","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSplitRouteSwapExactAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSplitRouteSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SplitRouteSwapExactAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SplitRouteSwapExactAmountOut","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SwapExactAmountIn":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountInMixin30","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSwapExactAmountIn"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSwapExactAmountInResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/poolmanager.v1beta1.Msg/SwapExactAmountOut":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SwapExactAmountOutMixin30","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSwapExactAmountOut"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/poolmanager.v1beta1.MsgSwapExactAmountOutResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/sendmanager.Msg/SendWithAliasRouting":{"post":{"tags":["Msg"],"summary":"SendWithAliasRouting defines a message for sending coins with alias denom routing.\nThis allows sending both standard coins and alias denoms (e.g., badgeslp:) through the sendmanager.","operationId":"GithubCombitbadgesbitbadgeschainMsg_SendWithAliasRouting","parameters":[{"description":"MsgSendWithAliasRouting defines a message for sending coins with alias denom routing.\nThis message mirrors cosmos bank MsgSend but routes through sendmanager to handle\nboth standard coins and alias denoms (e.g., badgeslp:).","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/sendmanager.MsgSendWithAliasRouting"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/sendmanager.MsgSendWithAliasRoutingResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/sendmanager.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin35","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/sendmanager.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/sendmanager.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/CastVote":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CastVote","parameters":[{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgCastVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgCastVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/CreateAddressLists":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateAddressLists","parameters":[{"description":"MsgCreateAddressLists is used to create address lists.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgCreateAddressLists"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgCreateAddressListsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/CreateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateCollection","parameters":[{"description":"MsgCreateCollection is used to create a new collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgCreateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgCreateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/CreateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateDynamicStore","parameters":[{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgCreateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgCreateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/DeleteCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteCollection","parameters":[{"description":"MsgDeleteCollection is used to delete a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgDeleteCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgDeleteCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/DeleteDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteDynamicStore","parameters":[{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgDeleteDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgDeleteDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/DeleteIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteIncomingApproval","parameters":[{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgDeleteIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgDeleteIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/DeleteOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteOutgoingApproval","parameters":[{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgDeleteOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgDeleteOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/PurgeApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_PurgeApprovals","parameters":[{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgPurgeApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgPurgeApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetCollectionApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionApprovals","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetCollectionApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetCollectionApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetCollectionMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionMetadata","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetCollectionMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetCollectionMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetCustomData":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCustomData","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetCustomData"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetCustomDataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetDynamicStoreValue":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetDynamicStoreValue","parameters":[{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetDynamicStoreValue"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetDynamicStoreValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIncomingApproval","parameters":[{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetIsArchived":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIsArchived","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetIsArchived"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetIsArchivedResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetManager":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetManager","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetManager"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetManagerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetOutgoingApproval","parameters":[{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetReservedProtocolAddress":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetReservedProtocolAddress","parameters":[{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetReservedProtocolAddress"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetReservedProtocolAddressResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetStandards":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetStandards","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetStandards"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetStandardsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetTokenMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetTokenMetadata","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetTokenMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetTokenMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/SetValidTokenIds":{"post":{"tags":["Msg"],"summary":"Helper message types for UniversalUpdateCollection subsets","operationId":"GithubCombitbadgesbitbadgeschainMsg_SetValidTokenIds","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgSetValidTokenIds"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgSetValidTokenIdsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/TransferTokens":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_TransferTokens","parameters":[{"description":"MsgTransferTokens is used to transfer tokens.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgTransferTokens"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgTransferTokensResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UniversalUpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UniversalUpdateCollection","parameters":[{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUniversalUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUniversalUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateCollection","parameters":[{"description":"MsgUpdateCollection is used to update a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UpdateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateDynamicStore","parameters":[{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUpdateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUpdateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin56","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.Msg/UpdateUserApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateUserApprovals","parameters":[{"description":"MsgUpdateUserApprovals is used to update user approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.MsgUpdateUserApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.MsgUpdateUserApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/CastVote":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CastVoteMixin76","parameters":[{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgCastVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgCastVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/CreateAddressLists":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateAddressListsMixin76","parameters":[{"description":"MsgCreateAddressLists is used to create address lists.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateAddressLists"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateAddressListsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/CreateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateCollectionMixin76","parameters":[{"description":"MsgCreateCollection is used to create a new collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/CreateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateDynamicStoreMixin76","parameters":[{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgCreateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/DeleteCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteCollectionMixin76","parameters":[{"description":"MsgDeleteCollection is used to delete a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/DeleteDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteDynamicStoreMixin76","parameters":[{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/DeleteIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteIncomingApprovalMixin76","parameters":[{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/DeleteOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteOutgoingApprovalMixin76","parameters":[{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgDeleteOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/PurgeApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_PurgeApprovalsMixin76","parameters":[{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgPurgeApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgPurgeApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetCollectionApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionApprovalsMixin76","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCollectionApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCollectionApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetCollectionMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionMetadataMixin76","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCollectionMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCollectionMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetCustomData":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCustomDataMixin76","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCustomData"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetCustomDataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetDynamicStoreValue":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetDynamicStoreValueMixin76","parameters":[{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetDynamicStoreValue"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetDynamicStoreValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIncomingApprovalMixin76","parameters":[{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetIsArchived":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIsArchivedMixin76","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetIsArchived"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetIsArchivedResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetManager":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetManagerMixin76","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetManager"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetManagerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetOutgoingApprovalMixin76","parameters":[{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetReservedProtocolAddress":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetReservedProtocolAddressMixin76","parameters":[{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetReservedProtocolAddress"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetReservedProtocolAddressResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetStandards":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetStandardsMixin76","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetStandards"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetStandardsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetTokenMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetTokenMetadataMixin76","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetTokenMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetTokenMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/SetValidTokenIds":{"post":{"tags":["Msg"],"summary":"Helper message types for UniversalUpdateCollection subsets","operationId":"GithubCombitbadgesbitbadgeschainMsg_SetValidTokenIdsMixin76","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgSetValidTokenIds"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgSetValidTokenIdsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/TransferTokens":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_TransferTokensMixin76","parameters":[{"description":"MsgTransferTokens is used to transfer tokens.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgTransferTokens"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgTransferTokensResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UniversalUpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UniversalUpdateCollectionMixin76","parameters":[{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUniversalUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUniversalUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateCollectionMixin76","parameters":[{"description":"MsgUpdateCollection is used to update a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UpdateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateDynamicStoreMixin76","parameters":[{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin76","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v27.Msg/UpdateUserApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateUserApprovalsMixin76","parameters":[{"description":"MsgUpdateUserApprovals is used to update user approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateUserApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v27.MsgUpdateUserApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/CastVote":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CastVoteMixin96","parameters":[{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgCastVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgCastVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/CreateAddressLists":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateAddressListsMixin96","parameters":[{"description":"MsgCreateAddressLists is used to create address lists.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateAddressLists"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateAddressListsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/CreateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateCollectionMixin96","parameters":[{"description":"MsgCreateCollection is used to create a new collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/CreateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateDynamicStoreMixin96","parameters":[{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgCreateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/DeleteCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteCollectionMixin96","parameters":[{"description":"MsgDeleteCollection is used to delete a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/DeleteDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteDynamicStoreMixin96","parameters":[{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/DeleteIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteIncomingApprovalMixin96","parameters":[{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/DeleteOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteOutgoingApprovalMixin96","parameters":[{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgDeleteOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/PurgeApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_PurgeApprovalsMixin96","parameters":[{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgPurgeApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgPurgeApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetCollectionApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionApprovalsMixin96","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCollectionApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCollectionApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetCollectionMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionMetadataMixin96","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCollectionMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCollectionMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetCustomData":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCustomDataMixin96","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCustomData"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetCustomDataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetDynamicStoreValue":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetDynamicStoreValueMixin96","parameters":[{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetDynamicStoreValue"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetDynamicStoreValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIncomingApprovalMixin96","parameters":[{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetIsArchived":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIsArchivedMixin96","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetIsArchived"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetIsArchivedResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetManager":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetManagerMixin96","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetManager"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetManagerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetOutgoingApprovalMixin96","parameters":[{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetReservedProtocolAddress":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetReservedProtocolAddressMixin96","parameters":[{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetReservedProtocolAddress"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetReservedProtocolAddressResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetStandards":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetStandardsMixin96","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetStandards"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetStandardsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetTokenMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetTokenMetadataMixin96","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetTokenMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetTokenMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/SetValidTokenIds":{"post":{"tags":["Msg"],"summary":"Helper message types for UniversalUpdateCollection subsets","operationId":"GithubCombitbadgesbitbadgeschainMsg_SetValidTokenIdsMixin96","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgSetValidTokenIds"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgSetValidTokenIdsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/TransferTokens":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_TransferTokensMixin96","parameters":[{"description":"MsgTransferTokens is used to transfer tokens.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgTransferTokens"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgTransferTokensResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UniversalUpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UniversalUpdateCollectionMixin96","parameters":[{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUniversalUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUniversalUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateCollectionMixin96","parameters":[{"description":"MsgUpdateCollection is used to update a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UpdateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateDynamicStoreMixin96","parameters":[{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin96","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v28.Msg/UpdateUserApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateUserApprovalsMixin96","parameters":[{"description":"MsgUpdateUserApprovals is used to update user approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateUserApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v28.MsgUpdateUserApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/CastVote":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CastVoteMixin116","parameters":[{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgCastVote"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgCastVoteResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/CreateAddressLists":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateAddressListsMixin116","parameters":[{"description":"MsgCreateAddressLists is used to create address lists.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgCreateAddressLists"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgCreateAddressListsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/CreateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateCollectionMixin116","parameters":[{"description":"MsgCreateCollection is used to create a new collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgCreateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgCreateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/CreateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_CreateDynamicStoreMixin116","parameters":[{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgCreateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgCreateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/DeleteCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteCollectionMixin116","parameters":[{"description":"MsgDeleteCollection is used to delete a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgDeleteCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgDeleteCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/DeleteDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteDynamicStoreMixin116","parameters":[{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgDeleteDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgDeleteDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/DeleteIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteIncomingApprovalMixin116","parameters":[{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgDeleteIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgDeleteIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/DeleteOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_DeleteOutgoingApprovalMixin116","parameters":[{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgDeleteOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgDeleteOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/PurgeApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_PurgeApprovalsMixin116","parameters":[{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgPurgeApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgPurgeApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetCollectionApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionApprovalsMixin116","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetCollectionApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetCollectionApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetCollectionMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCollectionMetadataMixin116","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetCollectionMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetCollectionMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetCustomData":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetCustomDataMixin116","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetCustomData"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetCustomDataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetDynamicStoreValue":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetDynamicStoreValueMixin116","parameters":[{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetDynamicStoreValue"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetDynamicStoreValueResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetIncomingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIncomingApprovalMixin116","parameters":[{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetIncomingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetIncomingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetIsArchived":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetIsArchivedMixin116","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetIsArchived"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetIsArchivedResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetManager":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetManagerMixin116","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetManager"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetManagerResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetOutgoingApproval":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetOutgoingApprovalMixin116","parameters":[{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetOutgoingApproval"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetOutgoingApprovalResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetReservedProtocolAddress":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetReservedProtocolAddressMixin116","parameters":[{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetReservedProtocolAddress"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetReservedProtocolAddressResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetStandards":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetStandardsMixin116","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetStandards"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetStandardsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetTokenMetadata":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_SetTokenMetadataMixin116","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetTokenMetadata"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetTokenMetadataResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/SetValidTokenIds":{"post":{"tags":["Msg"],"summary":"Helper message types for UniversalUpdateCollection subsets","operationId":"GithubCombitbadgesbitbadgeschainMsg_SetValidTokenIdsMixin116","parameters":[{"name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgSetValidTokenIds"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgSetValidTokenIdsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/TransferTokens":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_TransferTokensMixin116","parameters":[{"description":"MsgTransferTokens is used to transfer tokens.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgTransferTokens"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgTransferTokensResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/UniversalUpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UniversalUpdateCollectionMixin116","parameters":[{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgUniversalUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgUniversalUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/UpdateCollection":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateCollectionMixin116","parameters":[{"description":"MsgUpdateCollection is used to update a collection.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgUpdateCollection"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgUpdateCollectionResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/UpdateDynamicStore":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateDynamicStoreMixin116","parameters":[{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgUpdateDynamicStore"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgUpdateDynamicStoreResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateParamsMixin116","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/tokenization.v29.Msg/UpdateUserApprovals":{"post":{"tags":["Msg"],"operationId":"GithubCombitbadgesbitbadgeschainMsg_UpdateUserApprovalsMixin116","parameters":[{"description":"MsgUpdateUserApprovals is used to update user approvals.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/tokenization.v29.MsgUpdateUserApprovals"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/tokenization.v29.MsgUpdateUserApprovalsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}}},"definitions":{"cosmos.base.query.v1beta1.PageRequest":{"description":"message SomeRequest {\n Foo some_parameter = 1;\n PageRequest pagination = 2;\n }","type":"object","title":"PageRequest is to be embedded in gRPC request messages for efficient\npagination. Ex:","properties":{"count_total":{"description":"count_total is set to true to indicate that the result set should include\na count of the total number of items available for pagination in UIs.\ncount_total is only respected when offset is used. It is ignored when key\nis set.","type":"boolean"},"key":{"description":"key is a value returned in PageResponse.next_key to begin\nquerying the next page most efficiently. Only one of offset or key\nshould be set.","type":"string","format":"byte"},"limit":{"description":"limit is the total number of results to be returned in the result page.\nIf left empty it will default to a value to be set by each app.","type":"string","format":"uint64"},"offset":{"description":"offset is a numeric offset that can be used when key is unavailable.\nIt is less efficient than using key. Only one of offset or key should\nbe set.","type":"string","format":"uint64"},"reverse":{"description":"reverse is set to true if results are to be returned in the descending order.","type":"boolean"}}},"cosmos.base.query.v1beta1.PageResponse":{"description":"PageResponse is to be embedded in gRPC response messages where the\ncorresponding request message has used PageRequest.\n\n message SomeResponse {\n repeated Bar results = 1;\n PageResponse page = 2;\n }","type":"object","properties":{"next_key":{"description":"next_key is the key to be passed to PageRequest.key to\nquery the next page most efficiently. It will be empty if\nthere are no more results.","type":"string","format":"byte"},"total":{"type":"string","format":"uint64","title":"total is total number of results available if PageRequest.count_total\nwas set, its value is undefined otherwise"}}},"cosmos.base.v1beta1.Coin":{"description":"Coin defines a token with a denomination and an amount.\n\nNOTE: The amount field is an Int which implements the custom method\nsignatures required by gogoproto.","type":"object","properties":{"amount":{"type":"string"},"denom":{"type":"string"}}},"cosmos.evm.vm.v1.AccessControl":{"type":"object","title":"AccessControl defines the permission policy of the EVM\nfor creating and calling contracts","properties":{"call":{"title":"call defines the permission policy for calling contracts","$ref":"#/definitions/cosmos.evm.vm.v1.AccessControlType"},"create":{"title":"create defines the permission policy for creating contracts","$ref":"#/definitions/cosmos.evm.vm.v1.AccessControlType"}}},"cosmos.evm.vm.v1.AccessControlType":{"type":"object","title":"AccessControlType defines the permission type for policies","properties":{"access_control_list":{"type":"array","title":"access_control_list defines defines different things depending on the\nAccessType:\n- ACCESS_TYPE_PERMISSIONLESS: list of addresses that are blocked from\nperforming the operation\n- ACCESS_TYPE_RESTRICTED: ignored\n- ACCESS_TYPE_PERMISSIONED: list of addresses that are allowed to perform\nthe operation","items":{"type":"string"}},"access_type":{"title":"access_type defines which type of permission is required for the operation","$ref":"#/definitions/cosmos.evm.vm.v1.AccessType"}}},"cosmos.evm.vm.v1.AccessType":{"description":"- ACCESS_TYPE_PERMISSIONLESS: ACCESS_TYPE_PERMISSIONLESS does not restrict the operation to anyone\n - ACCESS_TYPE_RESTRICTED: ACCESS_TYPE_RESTRICTED restrict the operation to anyone\n - ACCESS_TYPE_PERMISSIONED: ACCESS_TYPE_PERMISSIONED only allows the operation for specific addresses","type":"string","title":"AccessType defines the types of permissions for the operations","default":"ACCESS_TYPE_PERMISSIONLESS","enum":["ACCESS_TYPE_PERMISSIONLESS","ACCESS_TYPE_RESTRICTED","ACCESS_TYPE_PERMISSIONED"]},"cosmos.evm.vm.v1.ExtendedDenomOptions":{"type":"object","properties":{"extended_denom":{"type":"string"}}},"cosmos.evm.vm.v1.Log":{"description":"Log represents an protobuf compatible Ethereum Log that defines a contract\nlog event. These events are generated by the LOG opcode and stored/indexed by\nthe node.\n\nNOTE: address, topics and data are consensus fields. The rest of the fields\nare derived, i.e. filled in by the nodes, but not secured by consensus.","type":"object","properties":{"address":{"type":"string","title":"address of the contract that generated the event"},"block_hash":{"type":"string","title":"block_hash of the block in which the transaction was included"},"block_number":{"type":"string","format":"uint64","title":"block_number of the block in which the transaction was included"},"block_timestamp":{"type":"string","format":"uint64","title":"block_timestamp is the timestamp of the block in which the transaction was"},"data":{"type":"string","format":"byte","title":"data which is supplied by the contract, usually ABI-encoded"},"index":{"type":"string","format":"uint64","title":"index of the log in the block"},"removed":{"description":"removed is true if this log was reverted due to a chain\nreorganisation. You must pay attention to this field if you receive logs\nthrough a filter query.","type":"boolean"},"topics":{"description":"topics is a list of topics provided by the contract.","type":"array","items":{"type":"string"}},"tx_hash":{"type":"string","title":"tx_hash is the transaction hash"},"tx_index":{"type":"string","format":"uint64","title":"tx_index of the transaction in the block"}}},"cosmos.evm.vm.v1.MsgEthereumTxResponse":{"description":"MsgEthereumTxResponse defines the Msg/EthereumTx response type.","type":"object","properties":{"block_hash":{"type":"string","format":"byte","title":"include the block hash for json-rpc to use"},"block_timestamp":{"type":"string","format":"uint64","title":"include the block timestamp for json-rpc to use"},"gas_used":{"type":"string","format":"uint64","title":"gas_used specifies how much gas was consumed by the transaction"},"hash":{"type":"string","title":"hash of the ethereum transaction in hex format. This hash differs from the\nCometBFT sha256 hash of the transaction bytes. See\nhttps://github.com/tendermint/tendermint/issues/6539 for reference"},"logs":{"description":"logs contains the transaction hash and the proto-compatible ethereum\nlogs.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.evm.vm.v1.Log"}},"max_used_gas":{"type":"string","format":"uint64","title":"max_used_gas specifies the gas consumed by the transaction, not including refunds"},"ret":{"type":"string","format":"byte","title":"ret is the returned data from evm function (result or data supplied with\nrevert opcode)"},"vm_error":{"type":"string","title":"vm_error is the error returned by vm execution"}}},"cosmos.evm.vm.v1.MsgRegisterPreinstalls":{"description":"MsgRegisterPreinstalls defines a Msg for creating preinstalls in evm state.","type":"object","properties":{"authority":{"description":"authority is the address of the governance account.","type":"string"},"preinstalls":{"description":"preinstalls defines the preinstalls to create.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.evm.vm.v1.Preinstall"}}}},"cosmos.evm.vm.v1.MsgRegisterPreinstallsResponse":{"description":"MsgRegisterPreinstallsResponse defines the response structure for executing a\nMsgRegisterPreinstalls message.","type":"object"},"cosmos.evm.vm.v1.MsgUpdateParams":{"description":"MsgUpdateParams defines a Msg for updating the x/vm module parameters.","type":"object","properties":{"authority":{"description":"authority is the address of the governance account.","type":"string"},"params":{"description":"params defines the x/vm parameters to update.\nNOTE: All parameters must be supplied.","$ref":"#/definitions/cosmos.evm.vm.v1.Params"}}},"cosmos.evm.vm.v1.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"cosmos.evm.vm.v1.Params":{"type":"object","title":"Params defines the EVM module parameters","properties":{"access_control":{"title":"access_control defines the permission policy of the EVM","$ref":"#/definitions/cosmos.evm.vm.v1.AccessControl"},"active_static_precompiles":{"type":"array","title":"active_static_precompiles defines the slice of hex addresses of the\nprecompiled contracts that are active","items":{"type":"string"}},"evm_channels":{"type":"array","title":"evm_channels is the list of channel identifiers from EVM compatible chains","items":{"type":"string"}},"evm_denom":{"description":"evm_denom represents the token denomination used to run the EVM state\ntransitions.","type":"string"},"extended_denom_options":{"$ref":"#/definitions/cosmos.evm.vm.v1.ExtendedDenomOptions"},"extra_eips":{"type":"array","title":"extra_eips defines the additional EIPs for the vm.Config","items":{"type":"string","format":"int64"}},"history_serve_window":{"type":"string","format":"uint64"}}},"cosmos.evm.vm.v1.Preinstall":{"type":"object","title":"Preinstall defines a contract that is preinstalled on-chain with a specific\ncontract address and bytecode","properties":{"address":{"type":"string","title":"address in hex format of the preinstall contract"},"code":{"type":"string","title":"code in hex format for the preinstall contract"},"name":{"type":"string","title":"name of the preinstall contract"}}},"gamm.poolmodels.balancer.MsgCreateBalancerPool":{"type":"object","title":"===================== MsgCreatePool","properties":{"pool_assets":{"type":"array","items":{"type":"object","$ref":"#/definitions/gamm.poolmodels.balancer.PoolAsset"}},"pool_params":{"$ref":"#/definitions/gamm.poolmodels.balancer.PoolParams"},"sender":{"type":"string"}}},"gamm.poolmodels.balancer.MsgCreateBalancerPoolResponse":{"type":"object","title":"Returns the poolID","properties":{"pool_id":{"type":"string","format":"uint64"}}},"gamm.poolmodels.balancer.PoolAsset":{"description":"Pool asset is an internal struct that combines the amount of the\ntoken in the pool, and its balancer weight.\nThis is an awkward packaging of data,\nand should be revisited in a future state migration.","type":"object","properties":{"token":{"description":"Coins we are talking about,\nthe denomination must be unique amongst all PoolAssets for this pool.","$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"weight":{"type":"string","title":"Weight that is not normalized. This weight must be less than 2^50"}}},"gamm.poolmodels.balancer.PoolParams":{"description":"PoolParams defined the parameters that will be managed by the pool\ngovernance in the future. This params are not managed by the chain\ngovernance. Instead they will be managed by the token holders of the pool.","type":"object","properties":{"exit_fee":{"type":"string","title":"N.B.: exit fee is disabled during pool creation in x/poolmanager. While old\npools can maintain a non-zero fee. No new pool can be created with non-zero\nfee anymore"},"swap_fee":{"type":"string"}}},"gamm.poolmodels.stableswap.MsgCreateStableswapPool":{"type":"object","title":"===================== MsgCreatePool","properties":{"future_pool_governor":{"type":"string"},"initial_pool_liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"pool_params":{"$ref":"#/definitions/gamm.poolmodels.stableswap.PoolParams"},"scaling_factor_controller":{"type":"string"},"scaling_factors":{"type":"array","items":{"type":"string","format":"uint64"}},"sender":{"type":"string"}}},"gamm.poolmodels.stableswap.MsgCreateStableswapPoolResponse":{"description":"Returns a poolID with custom poolName.","type":"object","properties":{"pool_id":{"type":"string","format":"uint64"}}},"gamm.poolmodels.stableswap.MsgStableSwapAdjustScalingFactors":{"description":"Sender must be the pool's scaling_factor_governor in order for the tx to\nsucceed. Adjusts stableswap scaling factors.","type":"object","properties":{"pool_id":{"type":"string","format":"uint64"},"scaling_factors":{"type":"array","items":{"type":"string","format":"uint64"}},"sender":{"type":"string"}}},"gamm.poolmodels.stableswap.MsgStableSwapAdjustScalingFactorsResponse":{"type":"object"},"gamm.poolmodels.stableswap.PoolParams":{"description":"PoolParams defined the parameters that will be managed by the pool\ngovernance in the future. This params are not managed by the chain\ngovernance. Instead they will be managed by the token holders of the pool.\nThe pool's token holders are specified in future_pool_governor.","type":"object","properties":{"exit_fee":{"type":"string","title":"N.B.: exit fee is disabled during pool creation in x/poolmanager. While old\npools can maintain a non-zero fee. No new pool can be created with non-zero\nfee anymore"},"swap_fee":{"type":"string"}}},"gamm.v1beta1.IBCTransferInfo":{"type":"object","title":"===================== IBC Transfer Info","properties":{"memo":{"type":"string"},"receiver":{"type":"string"},"source_channel":{"type":"string"},"timeout_timestamp":{"type":"string","format":"uint64"}}},"gamm.v1beta1.MsgExitPool":{"type":"object","title":"===================== MsgExitPool","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_in_amount":{"type":"string"},"token_out_mins":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.MsgExitPoolResponse":{"type":"object","properties":{"token_out":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.MsgExitSwapExternAmountOut":{"type":"object","title":"===================== MsgExitSwapExternAmountOut","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_in_max_amount":{"type":"string"},"token_out":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"gamm.v1beta1.MsgExitSwapExternAmountOutResponse":{"type":"object","properties":{"share_in_amount":{"type":"string"}}},"gamm.v1beta1.MsgExitSwapShareAmountIn":{"type":"object","title":"===================== MsgExitSwapShareAmountIn","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_in_amount":{"type":"string"},"token_out_denom":{"type":"string"},"token_out_min_amount":{"type":"string"}}},"gamm.v1beta1.MsgExitSwapShareAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"gamm.v1beta1.MsgJoinPool":{"type":"object","title":"===================== MsgJoinPool\nThis is really MsgJoinPoolNoSwap","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_out_amount":{"type":"string"},"token_in_maxs":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.MsgJoinPoolResponse":{"type":"object","properties":{"share_out_amount":{"type":"string"},"token_in":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.MsgJoinSwapExternAmountIn":{"type":"object","title":"===================== MsgJoinSwapExternAmountIn\nTODO: Rename to MsgJoinSwapExactAmountIn","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_out_min_amount":{"type":"string","title":"repeated cosmos.base.v1beta1.Coin tokensIn = 5 [\n (gogoproto.moretags) = \"yaml:\\\"tokens_in\\\"\",\n (gogoproto.nullable) = false\n ];"},"token_in":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"gamm.v1beta1.MsgJoinSwapExternAmountInResponse":{"type":"object","properties":{"share_out_amount":{"type":"string"}}},"gamm.v1beta1.MsgJoinSwapShareAmountOut":{"type":"object","title":"===================== MsgJoinSwapShareAmountOut","properties":{"pool_id":{"type":"string","format":"uint64"},"sender":{"type":"string"},"share_out_amount":{"type":"string"},"token_in_denom":{"type":"string"},"token_in_max_amount":{"type":"string"}}},"gamm.v1beta1.MsgJoinSwapShareAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountIn":{"type":"object","title":"===================== MsgSwapExactAmountIn","properties":{"affiliates":{"type":"array","title":"affiliates are optional fee recipients that receive fees calculated from token_out_min_amount","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.Affiliate"}},"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInRoute"}},"sender":{"type":"string"},"token_in":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"token_out_min_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountInWithIBCTransfer":{"type":"object","title":"===================== MsgSwapExactAmountInWithIBCTransfer","properties":{"affiliates":{"type":"array","title":"affiliates are optional fee recipients that receive fees calculated from token_out_min_amount","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.Affiliate"}},"ibc_transfer_info":{"$ref":"#/definitions/gamm.v1beta1.IBCTransferInfo"},"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInRoute"}},"sender":{"type":"string"},"token_in":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"token_out_min_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountInWithIBCTransferResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"gamm.v1beta1.MsgSwapExactAmountOut":{"type":"object","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountOutRoute"}},"sender":{"type":"string"},"token_in_max_amount":{"type":"string"},"token_out":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"gamm.v1beta1.MsgSwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"gamm.v1beta1.Params":{"type":"object","title":"Params holds parameters for the incentives module"},"gamm.v1beta1.ParamsResponse":{"type":"object","properties":{"params":{"$ref":"#/definitions/gamm.v1beta1.Params"}}},"gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesResponse":{"type":"object","properties":{"tokens_out":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesRequest":{"type":"object","title":"=============================== CalcJoinPoolNoSwapShares","properties":{"pool_id":{"type":"string","format":"uint64"},"tokens_in":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesResponse":{"type":"object","properties":{"shares_out":{"type":"string"},"tokens_out":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryCalcJoinPoolSharesResponse":{"type":"object","properties":{"share_out_amount":{"type":"string"},"tokens_out":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryNumPoolsResponse":{"type":"object","properties":{"num_pools":{"type":"string","format":"uint64"}}},"gamm.v1beta1.QueryPoolParamsResponse":{"type":"object","properties":{"params":{"$ref":"#/definitions/google.protobuf.Any"}}},"gamm.v1beta1.QueryPoolResponse":{"type":"object","title":"Deprecated: please use the alternative in x/poolmanager","properties":{"pool":{"$ref":"#/definitions/google.protobuf.Any"}}},"gamm.v1beta1.QueryPoolTypeResponse":{"type":"object","properties":{"pool_type":{"type":"string"}}},"gamm.v1beta1.QueryPoolsResponse":{"type":"object","properties":{"pagination":{"description":"pagination defines the pagination in the response.","$ref":"#/definitions/cosmos.base.query.v1beta1.PageResponse"},"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}}}},"gamm.v1beta1.QueryPoolsWithFilterResponse":{"type":"object","properties":{"pagination":{"description":"pagination defines the pagination in the response.","$ref":"#/definitions/cosmos.base.query.v1beta1.PageResponse"},"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}}}},"gamm.v1beta1.QuerySpotPriceResponse":{"description":"QuerySpotPriceResponse defines the gRPC response structure for a SpotPrice\nquery.","type":"object","properties":{"spot_price":{"type":"string","title":"String of the Dec. Ex) 10.203uatom"}}},"gamm.v1beta1.QuerySwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"gamm.v1beta1.QuerySwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"gamm.v1beta1.QueryTotalLiquidityResponse":{"type":"object","properties":{"liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryTotalPoolLiquidityResponse":{"type":"object","title":"Deprecated: please use the alternative in x/poolmanager","properties":{"liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"gamm.v1beta1.QueryTotalSharesResponse":{"type":"object","properties":{"total_shares":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"gamm.v2.QuerySpotPriceResponse":{"type":"object","title":"Deprecated: please use alternate in x/poolmanager","properties":{"spot_price":{"type":"string","title":"String of the Dec. Ex) 10.203uatom"}}},"google.protobuf.Any":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"google.rpc.Status":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}},"message":{"type":"string"}}},"ibcratelimit.AddressLimit":{"type":"object","title":"AddressLimit defines limits per address","properties":{"max_amount":{"type":"string","title":"max_amount is the maximum total amount allowed per address in the timeframe\nValue is represented as an integer (e.g., \"1000000\" = 1,000,000 tokens)\nIf set to 0, amount limit is disabled"},"max_transfers":{"type":"string","format":"int64","title":"max_transfers is the maximum number of transfers allowed per address in the timeframe\nIf set to 0, transfer count limit is disabled"},"timeframe_duration":{"type":"string","format":"int64","title":"timeframe_duration is the duration of the timeframe"},"timeframe_type":{"title":"timeframe_type defines the type of timeframe (block, hour, day)","$ref":"#/definitions/ibcratelimit.TimeframeType"}}},"ibcratelimit.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/ibcratelimit.Params"}}},"ibcratelimit.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"ibcratelimit.MsgUpdateRateLimit":{"description":"MsgUpdateRateLimit is the Msg/UpdateRateLimit request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"rate_limit":{"description":"rate_limit defines the rate limit configuration to update or add.\nIf a rate limit with the same channel_id and denom exists, it will be updated.\nOtherwise, it will be appended to the list.","$ref":"#/definitions/ibcratelimit.RateLimitConfig"}}},"ibcratelimit.MsgUpdateRateLimitResponse":{"description":"MsgUpdateRateLimitResponse defines the response structure for executing a\nMsgUpdateRateLimit message.","type":"object"},"ibcratelimit.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"rate_limits":{"type":"array","title":"rate_limits is an array of rate limit configurations\nEach configuration can specify channel_id, denom, and various limit types (supply_shift_limits, unique_sender_limits, address_limits)\nConfigurations are checked in order, and the first matching config is used\nIf no config matches, the transfer is allowed (no rate limit)","items":{"type":"object","$ref":"#/definitions/ibcratelimit.RateLimitConfig"}}}},"ibcratelimit.RateLimitConfig":{"type":"object","title":"RateLimitConfig defines a rate limit configuration for a specific channel and denom","properties":{"address_limits":{"type":"array","title":"address_limits defines per-address transfer limits\nAll limits are checked, and the transfer is rejected if any limit would be exceeded","items":{"type":"object","$ref":"#/definitions/ibcratelimit.AddressLimit"}},"channel_id":{"type":"string","title":"channel_id is the IBC channel ID this rate limit applies to\nIf empty, applies to all channels"},"denom":{"type":"string","title":"denom is the denomination this rate limit applies to\nMust be specified (empty denoms are not allowed)"},"supply_shift_limits":{"type":"array","title":"supply_shift_limits defines multiple timeframe limits for supply shift\nAll limits are checked, and the transfer is rejected if any limit would be exceeded","items":{"type":"object","$ref":"#/definitions/ibcratelimit.TimeframeLimit"}},"unique_sender_limits":{"type":"array","title":"unique_sender_limits defines limits on unique senders per channel\nAll limits are checked, and the transfer is rejected if any limit would be exceeded","items":{"type":"object","$ref":"#/definitions/ibcratelimit.UniqueSenderLimit"}}}},"ibcratelimit.TimeframeLimit":{"type":"object","title":"TimeframeLimit defines a limit for a specific timeframe","properties":{"max_amount":{"type":"string","title":"max_amount is the maximum absolute amount of supply change allowed in this timeframe\nValue is represented as an integer (e.g., \"1000000\" = 1,000,000 tokens)\nIf set to 0, this limit is disabled"},"timeframe_duration":{"type":"string","format":"int64","title":"timeframe_duration is the duration of the timeframe\nFor BLOCK: number of blocks\nFor HOUR: number of hours (will be converted to blocks using block time)\nFor DAY: number of days (will be converted to blocks using block time)"},"timeframe_type":{"title":"timeframe_type defines the type of timeframe (block, hour, day)","$ref":"#/definitions/ibcratelimit.TimeframeType"}}},"ibcratelimit.TimeframeType":{"description":"- TIMEFRAME_TYPE_BLOCK: Duration in blocks\n - TIMEFRAME_TYPE_HOUR: Duration in hours (converted to blocks using block time)\n - TIMEFRAME_TYPE_DAY: Duration in days (converted to blocks using block time)","type":"string","title":"TimeframeType defines the type of timeframe","default":"TIMEFRAME_TYPE_UNSPECIFIED","enum":["TIMEFRAME_TYPE_UNSPECIFIED","TIMEFRAME_TYPE_BLOCK","TIMEFRAME_TYPE_HOUR","TIMEFRAME_TYPE_DAY"]},"ibcratelimit.UniqueSenderLimit":{"type":"object","title":"UniqueSenderLimit defines limits on unique senders per channel","properties":{"max_unique_senders":{"type":"string","format":"int64","title":"max_unique_senders is the maximum number of unique senders allowed in the timeframe\nIf set to 0, this limit is disabled"},"timeframe_duration":{"type":"string","format":"int64","title":"timeframe_duration is the duration of the timeframe"},"timeframe_type":{"title":"timeframe_type defines the type of timeframe (block, hour, day)","$ref":"#/definitions/ibcratelimit.TimeframeType"}}},"managersplitter.ManagerSplitter":{"description":"ManagerSplitter defines the manager splitter entity.","type":"object","properties":{"address":{"description":"The module address of this manager splitter (derived from module name + ID).","type":"string"},"admin":{"description":"Permanent and static admin address. Has full control and can always execute all permissions.","type":"string"},"permissions":{"description":"Permissions mapping each CollectionPermission field to execution criteria.","$ref":"#/definitions/managersplitter.ManagerSplitterPermissions"}}},"managersplitter.ManagerSplitterPermissions":{"description":"ManagerSplitterPermissions mirrors the CollectionPermissions structure\nbut maps each permission to criteria for execution.","type":"object","properties":{"canAddMoreAliasPaths":{"description":"Permissions related to adding more alias paths to the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canAddMoreCosmosCoinWrapperPaths":{"description":"Permissions related to adding more cosmos coin wrapper paths to the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canArchiveCollection":{"description":"Permissions related to archiving the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canDeleteCollection":{"description":"Permissions related to deleting the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateCollectionApprovals":{"description":"Permissions related to updating collection approvals.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateCollectionMetadata":{"description":"Permissions related to updating the metadata of the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateCustomData":{"description":"Permissions related to updating custom data for the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateManager":{"description":"Permissions related to updating the collection's manager.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateStandards":{"description":"Permissions related to updating standards for the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateTokenMetadata":{"description":"Permissions related to updating token metadata for specific tokens.","$ref":"#/definitions/managersplitter.PermissionCriteria"},"canUpdateValidTokenIds":{"description":"Permissions related to creating more tokens for the collection.","$ref":"#/definitions/managersplitter.PermissionCriteria"}}},"managersplitter.MsgCreateManagerSplitter":{"description":"MsgCreateManagerSplitter creates a new manager splitter entity.","type":"object","properties":{"admin":{"description":"Admin address creating the entity.","type":"string"},"permissions":{"description":"Permissions mapping each CollectionPermission field to execution criteria.","$ref":"#/definitions/managersplitter.ManagerSplitterPermissions"}}},"managersplitter.MsgCreateManagerSplitterResponse":{"description":"MsgCreateManagerSplitterResponse is the response to MsgCreateManagerSplitter.","type":"object","properties":{"address":{"description":"The address of the created manager splitter.","type":"string"}}},"managersplitter.MsgDeleteManagerSplitter":{"description":"MsgDeleteManagerSplitter deletes a manager splitter entity.","type":"object","properties":{"address":{"description":"Address of the manager splitter to delete.","type":"string"},"admin":{"description":"Admin address deleting the entity.","type":"string"}}},"managersplitter.MsgDeleteManagerSplitterResponse":{"description":"MsgDeleteManagerSplitterResponse is the response to MsgDeleteManagerSplitter.","type":"object"},"managersplitter.MsgExecuteUniversalUpdateCollection":{"description":"MsgExecuteUniversalUpdateCollection executes a UniversalUpdateCollection message\nthrough the manager splitter, checking permissions before execution.","type":"object","properties":{"executor":{"description":"Address executing the message (must be approved or admin).","type":"string"},"managerSplitterAddress":{"description":"Address of the manager splitter to execute through.","type":"string"},"universalUpdateCollectionMsg":{"description":"The UniversalUpdateCollection message to execute.","$ref":"#/definitions/tokenization.MsgUniversalUpdateCollection"}}},"managersplitter.MsgExecuteUniversalUpdateCollectionResponse":{"description":"MsgExecuteUniversalUpdateCollectionResponse is the response to MsgExecuteUniversalUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection that was updated.","type":"string"}}},"managersplitter.MsgUpdateManagerSplitter":{"description":"MsgUpdateManagerSplitter updates an existing manager splitter entity.","type":"object","properties":{"address":{"description":"Address of the manager splitter to update.","type":"string"},"admin":{"description":"Admin address updating the entity.","type":"string"},"permissions":{"description":"New permissions to set.","$ref":"#/definitions/managersplitter.ManagerSplitterPermissions"}}},"managersplitter.MsgUpdateManagerSplitterResponse":{"description":"MsgUpdateManagerSplitterResponse is the response to MsgUpdateManagerSplitter.","type":"object"},"managersplitter.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/managersplitter.Params"}}},"managersplitter.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"managersplitter.Params":{"description":"Params defines the parameters for the module.","type":"object"},"managersplitter.PermissionCriteria":{"description":"PermissionCriteria defines the criteria for executing a permission.\nCurrently supports approved addresses (whitelist).","type":"object","properties":{"approvedAddresses":{"description":"List of approved addresses that can execute this permission.","type":"array","items":{"type":"string"}}}},"managersplitter.QueryAllManagerSplittersResponse":{"description":"QueryAllManagerSplittersResponse is response type for the Query/AllManagerSplitters RPC method.","type":"object","properties":{"managerSplitters":{"type":"array","items":{"type":"object","$ref":"#/definitions/managersplitter.ManagerSplitter"}},"pagination":{"$ref":"#/definitions/cosmos.base.query.v1beta1.PageResponse"}}},"managersplitter.QueryGetManagerSplitterResponse":{"description":"QueryGetManagerSplitterResponse is response type for the Query/ManagerSplitter RPC method.","type":"object","properties":{"managerSplitter":{"$ref":"#/definitions/managersplitter.ManagerSplitter"}}},"managersplitter.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/managersplitter.Params"}}},"poolmanager.v1beta1.Affiliate":{"type":"object","title":"===================== Affiliate\nAffiliate represents an affiliate fee recipient","properties":{"address":{"type":"string","title":"address is the affiliate recipient address"},"basis_points_fee":{"type":"string","title":"basis_points_fee is the fee in basis points (1/10000, e.g., 100 = 1%)"}}},"poolmanager.v1beta1.AllPoolsResponse":{"type":"object","properties":{"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}}}},"poolmanager.v1beta1.AllRegisteredAlloyedPoolsResponse":{"type":"object","properties":{"contract_states":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.AlloyContractTakerFeeShareState"}}}},"poolmanager.v1beta1.AllTakerFeeShareAccumulatorsResponse":{"type":"object","properties":{"taker_fee_skim_accumulators":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeSkimAccumulator"}}}},"poolmanager.v1beta1.AllTakerFeeShareAgreementsResponse":{"type":"object","properties":{"taker_fee_share_agreements":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareAgreement"}}}},"poolmanager.v1beta1.AlloyContractTakerFeeShareState":{"description":"AlloyContractTakerFeeShareState contains the contract address of the alloyed\nasset pool, along with the adjusted taker fee share agreements for any asset\nwithin the alloyed asset pool that has a taker fee share agreement. If for\ninstance there are two denoms, and denomA makes up 50 percent and denomB\nmakes up 50 percent, and denom A has a taker fee share agreement with a skim\npercent of 10%, then the adjusted taker fee share agreement for denomA will\nbe 5%.","type":"object","properties":{"contract_address":{"description":"contract_address is the address of the alloyed asset pool contract.","type":"string"},"taker_fee_share_agreements":{"description":"taker_fee_share_agreements is the adjusted taker fee share agreements for\nany asset within the alloyed asset pool that has a taker fee share\nagreement.","type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareAgreement"}}}},"poolmanager.v1beta1.DenomPairTakerFee":{"type":"object","properties":{"denom0":{"description":"DEPRECATED: Now that we are using uni-directional trading pairs, we are\nusing tokenInDenom and tokenOutDenom instead of denom0 and denom1 to\nprevent confusion.","type":"string"},"denom1":{"type":"string"},"taker_fee":{"type":"string"},"tokenInDenom":{"type":"string"},"tokenOutDenom":{"type":"string"}}},"poolmanager.v1beta1.EstimateSwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"poolmanager.v1beta1.EstimateSwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactResponse":{"description":"EstimateTradeBasedOnPriceImpactResponse represents the response data\nfor an estimated trade based on price impact. If a trade fails to be\nestimated the response would be 0,0 for input_coin and output_coin and will\nnot error.","type":"object","properties":{"input_coin":{"description":"input_coin is the actual input amount that would be tradeable\nunder the specified price impact.","$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"output_coin":{"description":"output_coin is the amount of tokens of the ToCoinDenom type\nthat will be received for the actual InputCoin trade.","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"poolmanager.v1beta1.ListPoolsByDenomResponse":{"type":"object","properties":{"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}}}},"poolmanager.v1beta1.MsgSetDenomPairTakerFee":{"type":"object","title":"===================== MsgSetDenomPairTakerFee","properties":{"denom_pair_taker_fee":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.DenomPairTakerFee"}},"sender":{"type":"string"}}},"poolmanager.v1beta1.MsgSetDenomPairTakerFeeResponse":{"type":"object","properties":{"success":{"type":"boolean"}}},"poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenom":{"type":"object","title":"===================== MsgSetTakerFeeShareAgreementForDenom","properties":{"denom":{"description":"denom is the denom that the taker fee share agreement is being set for.\nEx. If this is set to \"nBTC\", then any trade route that includes \"nBTC\"\nwill have the skim_percent skimmed from the taker fees and sent to the\nskim_address.","type":"string"},"sender":{"type":"string"},"skim_address":{"description":"skim_address is the address belonging to the respective bridge provider\nthat the skimmed taker fees will be sent to at the end of each epoch.","type":"string"},"skim_percent":{"description":"skim_percent is the percentage of taker fees that will be skimmed for the\nbridge provider, in the event that the bridge provider's denom is included\nin the swap route.","type":"string"}}},"poolmanager.v1beta1.MsgSetTakerFeeShareAgreementForDenomResponse":{"type":"object"},"poolmanager.v1beta1.MsgSplitRouteSwapExactAmountIn":{"type":"object","title":"===================== MsgSplitRouteSwapExactAmountIn","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInSplitRoute"}},"sender":{"type":"string"},"token_in_denom":{"type":"string"},"token_out_min_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSplitRouteSwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOut":{"type":"object","title":"===================== MsgSplitRouteSwapExactAmountOut","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountOutSplitRoute"}},"sender":{"type":"string"},"token_in_max_amount":{"type":"string"},"token_out_denom":{"type":"string"}}},"poolmanager.v1beta1.MsgSplitRouteSwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSwapExactAmountIn":{"type":"object","title":"===================== MsgSwapExactAmountIn","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInRoute"}},"sender":{"type":"string"},"token_in":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"},"token_out_min_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSwapExactAmountInResponse":{"type":"object","properties":{"token_out_amount":{"type":"string"}}},"poolmanager.v1beta1.MsgSwapExactAmountOut":{"type":"object","title":"===================== MsgSwapExactAmountOut","properties":{"routes":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountOutRoute"}},"sender":{"type":"string"},"token_in_max_amount":{"type":"string"},"token_out":{"$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"poolmanager.v1beta1.MsgSwapExactAmountOutResponse":{"type":"object","properties":{"token_in_amount":{"type":"string"}}},"poolmanager.v1beta1.NumPoolsResponse":{"type":"object","properties":{"num_pools":{"type":"string","format":"uint64"}}},"poolmanager.v1beta1.Params":{"type":"object","title":"Params holds parameters for the poolmanager module","properties":{"taker_fee_params":{"description":"taker_fee_params is the container of taker fee parameters.","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeParams"}}},"poolmanager.v1beta1.ParamsResponse":{"type":"object","properties":{"params":{"$ref":"#/definitions/poolmanager.v1beta1.Params"}}},"poolmanager.v1beta1.PoolResponse":{"type":"object","properties":{"pool":{"$ref":"#/definitions/google.protobuf.Any"}}},"poolmanager.v1beta1.RegisteredAlloyedPoolFromDenomResponse":{"type":"object","properties":{"contract_state":{"$ref":"#/definitions/poolmanager.v1beta1.AlloyContractTakerFeeShareState"}}},"poolmanager.v1beta1.RegisteredAlloyedPoolFromPoolIdResponse":{"type":"object","properties":{"contract_state":{"$ref":"#/definitions/poolmanager.v1beta1.AlloyContractTakerFeeShareState"}}},"poolmanager.v1beta1.SpotPriceResponse":{"description":"SpotPriceResponse defines the gRPC response structure for a SpotPrice\nquery.","type":"object","properties":{"spot_price":{"type":"string","title":"String of the Dec. Ex) 10.203uatom"}}},"poolmanager.v1beta1.SwapAmountInRoute":{"type":"object","properties":{"pool_id":{"type":"string","format":"uint64"},"token_out_denom":{"type":"string"}}},"poolmanager.v1beta1.SwapAmountInSplitRoute":{"type":"object","properties":{"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountInRoute"}},"token_in_amount":{"type":"string"}}},"poolmanager.v1beta1.SwapAmountOutRoute":{"type":"object","properties":{"pool_id":{"type":"string","format":"uint64"},"token_in_denom":{"type":"string"}}},"poolmanager.v1beta1.SwapAmountOutSplitRoute":{"type":"object","properties":{"pools":{"type":"array","items":{"type":"object","$ref":"#/definitions/poolmanager.v1beta1.SwapAmountOutRoute"}},"token_out_amount":{"type":"string"}}},"poolmanager.v1beta1.TakerFeeDistributionPercentage":{"description":"TakerFeeDistributionPercentage defines what percent of the taker fee category\ngets distributed to the available categories.","type":"object","properties":{"community_pool":{"type":"string"},"staking_rewards":{"type":"string"}}},"poolmanager.v1beta1.TakerFeeParams":{"description":"TakerFeeParams consolidates the taker fee parameters for the poolmanager.","type":"object","properties":{"admin_addresses":{"description":"admin_addresses is a list of addresses that are allowed to set and remove\ncustom taker fees for denom pairs. Governance also has the ability to set\nand remove custom taker fees for denom pairs, but with the normal\ngovernance delay.","type":"array","items":{"type":"string"}},"community_pool_denom_to_swap_non_whitelisted_assets_to":{"description":"community_pool_denom_to_swap_non_whitelisted_assets_to is the denom that\nnon-whitelisted taker fees will be swapped to before being sent to\nthe community pool.","type":"string"},"community_pool_denom_whitelist":{"description":"community_pool_denom_whitelist is a list of denoms that should be sent\ndirectly to the community pool instead of being swapped to the\n`community_pool_denom_to_swap_non_whitelisted_assets_to`.","type":"array","items":{"type":"string"}},"default_taker_fee":{"description":"default_taker_fee is the fee used when creating a new pool that doesn't\nfall under a custom pool taker fee or stableswap taker fee category.","type":"string"},"non_osmo_taker_fee_distribution":{"description":"non_osmo_taker_fee_distribution defines the distribution of taker fees\ngenerated in non-OSMO. As of this writing, it has two categories:\n- staking_rewards: the percent of the taker fee that gets swapped to OSMO\n and then distributed to stakers.\n- community_pool: the percent of the taker fee that gets sent to the\n community pool. Note: If the non-OSMO asset is an authorized_quote_denom,\n that denom is sent directly to the community pool. Otherwise, it is\n swapped to the community_pool_denom_to_swap_non_whitelisted_assets_to and\n then sent to the community pool as that denom.","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeDistributionPercentage"},"osmo_taker_fee_distribution":{"description":"osmo_taker_fee_distribution defines the distribution of taker fees\ngenerated in OSMO. As of this writing, it has two categories:\n- staking_rewards: the percent of the taker fee that gets distributed to\n stakers.\n- community_pool: the percent of the taker fee that gets sent to the\n community pool.","$ref":"#/definitions/poolmanager.v1beta1.TakerFeeDistributionPercentage"},"reduced_fee_whitelist":{"description":"reduced_fee_whitelist is a list of addresses that are\nallowed to pay a reduce taker fee when performing a swap\n(i.e. swap without paying the taker fee).\nIt is intended to be used for integrators who meet qualifying factors\nthat are approved by governance.\nInitially, the taker fee is allowed to be bypassed completely. However\nIn the future, we will charge a reduced taker fee instead of no fee at all.","type":"array","items":{"type":"string"}}}},"poolmanager.v1beta1.TakerFeeShareAgreement":{"description":"TakerFeeShareAgreement represents the agreement between the Osmosis protocol\nand a specific denom to share a certain percent of taker fees generated in\nany route that contains said denom. For example, if the agreement specifies a\n10% skim_percent, this means 10% of the taker fees generated in a swap route\ncontaining the specified denom will be sent to the address specified\nin the skim_address field at the end of each epoch. These skim_percents are\nadditive, so if three taker fee agreements have skim percents of 10%, 20%,\nand 30%, the total skim percent for the route will be 60%.","type":"object","properties":{"denom":{"description":"denom is the denom that has the taker fee share agreement.","type":"string"},"skim_address":{"description":"skim_address is the address belonging to the respective denom\nthat the skimmed taker fees will be sent to at the end of each epoch.","type":"string"},"skim_percent":{"description":"skim_percent is the percentage of taker fees that will be skimmed for the\ndenom, in the event that the denom is included in the swap route.","type":"string"}}},"poolmanager.v1beta1.TakerFeeShareAgreementFromDenomResponse":{"type":"object","properties":{"taker_fee_share_agreement":{"$ref":"#/definitions/poolmanager.v1beta1.TakerFeeShareAgreement"}}},"poolmanager.v1beta1.TakerFeeShareDenomsToAccruedValueResponse":{"type":"object","properties":{"amount":{"type":"string"}}},"poolmanager.v1beta1.TakerFeeSkimAccumulator":{"description":"TakerFeeSkimAccumulator accumulates the total skimmed taker fees for each\ndenom that has a taker fee share agreement.","type":"object","properties":{"denom":{"description":"denom is the denom that has the taker fee share agreement.","type":"string"},"skimmed_taker_fees":{"description":"skimmed_taker_fees is the total skimmed taker fees for the denom.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"poolmanager.v1beta1.TotalLiquidityResponse":{"type":"object","properties":{"liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"poolmanager.v1beta1.TotalPoolLiquidityResponse":{"type":"object","properties":{"liquidity":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"poolmanager.v1beta1.TotalVolumeForPoolResponse":{"type":"object","properties":{"volume":{"type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}}},"poolmanager.v1beta1.TradingPairTakerFeeResponse":{"type":"object","properties":{"taker_fee":{"type":"string"}}},"poolmanager.v2.SpotPriceResponse":{"description":"SpotPriceResponse defines the gRPC response structure for a SpotPrice\nquery.","type":"object","properties":{"spot_price":{"type":"string","title":"String of the BigDec. Ex) 10.203uatom"}}},"sendmanager.MsgSendWithAliasRouting":{"description":"MsgSendWithAliasRouting defines a message for sending coins with alias denom routing.\nThis message mirrors cosmos bank MsgSend but routes through sendmanager to handle\nboth standard coins and alias denoms (e.g., badgeslp:).","type":"object","properties":{"amount":{"description":"amount is the list of coins to send.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"from_address":{"description":"from_address is the address of the account sending the coins.","type":"string"},"to_address":{"description":"to_address is the address of the account receiving the coins.","type":"string"}}},"sendmanager.MsgSendWithAliasRoutingResponse":{"description":"MsgSendWithAliasRoutingResponse defines the response structure for executing a\nMsgSendWithAliasRouting message.","type":"object"},"sendmanager.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/sendmanager.Params"}}},"sendmanager.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"sendmanager.Params":{"description":"Params defines the parameters for the module.","type":"object"},"sendmanager.QueryBalanceResponse":{"description":"QueryBalanceResponse is response type for the Query/Balance RPC method.","type":"object","properties":{"balance":{"description":"balance is the balance of the specified denom for the address.","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}}},"sendmanager.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/sendmanager.Params"}}},"tokenization.ActionPermission":{"description":"ActionPermission defines the permissions for performing an action.\n\nThis is simple and straightforward as the only thing we need to check is the permitted/forbidden times.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.AddressChecks":{"type":"object","title":"AddressChecks defines checks for address types (EVM contract, liquidity pool, etc.)","properties":{"mustBeEvmContract":{"description":"Require the address to be an EVM contract (has code).","type":"boolean"},"mustBeLiquidityPool":{"description":"Require the address to be a liquidity pool.","type":"boolean"},"mustNotBeEvmContract":{"description":"Require the address to not be an EVM contract (no code).","type":"boolean"},"mustNotBeLiquidityPool":{"description":"Require the address to not be a liquidity pool.","type":"boolean"}}},"tokenization.AddressList":{"type":"object","title":"An AddressList is a list of addresses that are referenced by an ID.\nAddressLists are used in defining approvals ia a reusbale identifier. \nNote: We also support a reserved ID system by string ID; \"Mint\", \"!Mint\"","properties":{"addresses":{"description":"List of addresses included in the list.","type":"array","items":{"type":"string"}},"createdBy":{"description":"The user or entity who created the address list.","type":"string"},"customData":{"description":"Custom arbitrary data or additional information related to the address list.","type":"string"},"listId":{"description":"Unique identifier for the address list.","type":"string"},"uri":{"description":"URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable.","type":"string"},"whitelist":{"description":"Indicates whether the list includes the specified addresses (true) or excludes them (false).","type":"boolean"}}},"tokenization.AddressListInput":{"description":"AddressListInput is used for creating address lists via MsgCreateAddressLists.\nIt contains all fields from AddressList except createdBy, which is automatically set from the message creator.","type":"object","properties":{"addresses":{"description":"List of addresses included in the list.","type":"array","items":{"type":"string"}},"customData":{"description":"Custom arbitrary data or additional information related to the address list.","type":"string"},"listId":{"description":"Unique identifier for the address list.","type":"string"},"uri":{"description":"URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable.","type":"string"},"whitelist":{"description":"Indicates whether the list includes the specified addresses (true) or excludes them (false).","type":"boolean"}}},"tokenization.AliasPath":{"type":"object","properties":{"conversion":{"description":"The conversion between cosmos coin and token balances.","$ref":"#/definitions/tokenization.ConversionWithoutDenom"},"denom":{"description":"The denomination (denom) to be used for the alias.","type":"string"},"denomUnits":{"description":"Denomination units for the alias. Defines how the coin can be displayed with different decimal places and symbols.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DenomUnit"}},"metadata":{"description":"The metadata for this alias path.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"description":"The symbol for the alias (e.g., \"BADGE\", \"NFT\"). Used for display purposes. Note that this may not be the default.","type":"string"}}},"tokenization.AliasPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DenomUnit"}},"metadata":{"description":"The metadata for this alias path.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.AltTimeChecks":{"type":"object","title":"AltTimeChecks defines alternative time-based checks for approval denial.\nIf the transfer time falls within any of the specified offline hours or days, the approval is denied.\nUses UTC timezone for neutral timezone approach.\nofflineHours: ranges of hours (0-23) when transfers should be denied\nofflineDays: ranges of days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied","properties":{"offlineDays":{"description":"Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"offlineDaysOfMonth":{"description":"Days of month (1-31) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"offlineHours":{"description":"Hours (0-23) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"offlineMonths":{"description":"Months (1-12, where 1=January, 12=December) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"offlineWeeksOfYear":{"description":"Weeks of year (1-52) when transfers should be denied. Uses ISO 8601 week numbering.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"timezoneOffsetMinutes":{"description":"Timezone offset magnitude in minutes from UTC. Default 0 = UTC. Examples: 300 for EST (UTC-5), 330 for IST (UTC+5:30).\nAll time checks are evaluated after applying this offset to the block time.","type":"string"},"timezoneOffsetNegative":{"type":"boolean","title":"If true, the timezone offset is subtracted (west of UTC). If false, it is added (east of UTC).\nExample: EST (UTC-5) = timezoneOffsetMinutes: 300, timezoneOffsetNegative: true"}}},"tokenization.ApprovalAmounts":{"description":"ApprovalAmounts defines approval amounts per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times \nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallApprovalAmount":{"description":"Overall approval amount.","type":"string"},"perFromAddressApprovalAmount":{"description":"Approval amount per \"from\" address.","type":"string"},"perInitiatedByAddressApprovalAmount":{"description":"Approval amount per \"initiated by\" address.","type":"string"},"perToAddressApprovalAmount":{"description":"Approval amount per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.ResetTimeIntervals"}}},"tokenization.ApprovalChange":{"description":"ApprovalChange represents a change to an approval (created, edited, or deleted).","type":"object","properties":{"action":{"type":"string"},"approvalId":{"type":"string"},"approvalLevel":{"type":"string"},"version":{"type":"string"}}},"tokenization.ApprovalCriteria":{"description":"ApprovalCriteria defines the criteria for approving transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"allowBackedMinting":{"description":"If true, this collection approval allows backed minting operations (CosmosCoinBackedPath).\nWhen false, this approval cannot be used for transfers involving backed minting addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"allowSpecialWrapping":{"description":"If true, this collection approval allows special wrapping operations (CosmosCoinWrapperPath).\nWhen false, this approval cannot be used for transfers involving wrapping addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"overridesFromOutgoingApprovals":{"description":"Overrides the user's outgoing approvals for approval. If true, this collection-level approval\ntakes precedence over any outgoing approvals defined by the sender, allowing the collection to\ncontrol outgoing transfer behavior.","type":"boolean"},"overridesToIncomingApprovals":{"description":"Overrides the user's incoming approvals for approval. If true, this collection-level approval\ntakes precedence over any incoming approvals defined by the recipient, allowing the collection to\ncontrol incoming transfer behavior.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"userApprovalSettings":{"description":"Issuer-imposed constraints on user-level coin transfers. Propagated to user-level approvals\nduring greedy transfer matching (same pattern as userRoyalties). Only applicable on collection-level approvals.\nIf conflicting settings across multiple matched approvals, the transfer is rejected (like royalties).","$ref":"#/definitions/tokenization.UserApprovalSettings"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.VotingChallenge"}}}},"tokenization.ApprovalIdentifierDetails":{"description":"ApprovalIdentifierDetails defines the details to identify a specific approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.ApprovalTracker":{"description":"ApprovalTracker defines the tracker for approvals. This tracks the cumulative number of transfers and associated balances transferred.","type":"object","properties":{"amounts":{"description":"Cumulative balances associated with the transfers that have been processed.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"lastUpdatedAt":{"description":"Last updated at time.","type":"string"},"numTransfers":{"description":"The number of transfers that have been processed.","type":"string"}}},"tokenization.ApprovalUsed":{"description":"ApprovalUsed represents an approval that was consumed during a transfer.","type":"object","properties":{"approvalId":{"type":"string"},"approvalLevel":{"type":"string"},"approverAddress":{"type":"string"},"version":{"type":"string"}}},"tokenization.AutoDeletionOptions":{"description":"AutoDeletionOptions defines the options for auto-deletion of approvals.","type":"object","properties":{"afterOneUse":{"type":"boolean","title":"After one use?"},"afterOverallMaxNumTransfers":{"type":"boolean","title":"After overall max number of uses threshold is met?"},"allowCounterpartyPurge":{"type":"boolean","title":"Allow counterparty to purge this approval if they are the only initiator"},"allowPurgeIfExpired":{"type":"boolean","title":"Allow others to call PurgeApprovals on behalf of this approval owner"}}},"tokenization.Balance":{"description":"Balance represents the balance of a token for a specific user.\nThe user amounts xAmount of a token specified for the time ranges specified.\n\nExample: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021.\n\nIf times or tokenIDs have len \u003e 1, then the user owns all token IDs specified for all time ranges specified.","type":"object","properties":{"amount":{"description":"The amount of the token owned by the user.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"The token IDs for which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.CoinTransfer":{"type":"object","properties":{"coins":{"description":"The sdk.Coins to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"overrideFromWithApproverAddress":{"description":"By default, the from address is the initiator of the transaction.\nIf this is set to true, we will override the from address with the approver address.\nNote: This is not applicable for collection approvals (since approverAddress == '').","type":"boolean"},"overrideToWithInitiator":{"description":"By default, the to address is what is specified in the coin transfer.\nIf this is set to true, we will override the to address with the initiator of the transaction.","type":"boolean"},"to":{"description":"The address of the recipient of the transfer.","type":"string"}}},"tokenization.CoinTransferProto":{"description":"CoinTransferProto represents a coin transfer that occurred during a transaction.","type":"object","properties":{"amount":{"type":"string"},"denom":{"type":"string"},"from":{"type":"string"},"isProtocolFee":{"type":"boolean"},"to":{"type":"string"}}},"tokenization.CollectionApproval":{"type":"object","title":"CollectionApproval defines the rules for the approval of a transfer on the collection level","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.ApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.CollectionApprovalPermission":{"description":"CollectionApprovalPermission defines what collection approved transfers can be updated vs. are locked.\n\nEach transfer is broken down to a (from, to, initiatedBy, transferTime, tokenId) tuple.\nFor a transfer to match, we need to match ALL of the fields in the combination. \nThese are determined by the fromListId, toListId, initiatedByListId, transferTimes, tokenIds fields.\nAddressLists are used for (from, to, initiatedBy) which are a permanent list of addresses identified by an ID (see AddressLists). \n\npermanentlyPermitted/ForbiddenTimes: when can the manager execute this permission?\n\nEx: Let's say we are updating the transferability for the transfer tuple (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", 10, 1000).\nWe would check to find the FIRST CollectionApprovalPermission that matches this combination.\nIf we find a match, we would check the permitted/forbidden times to see if we can execute this permission (default is ALLOWED).\n\nEx: So if you wanted to freeze the transferability to enforce that token ID 1 will always be transferable, you could set\nthe combination (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", \"All Transfer Times\", 1) to always be forbidden.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.CollectionInvariants":{"description":"CollectionInvariants defines the invariants that apply to a collection.","type":"object","properties":{"cosmosCoinBackedPath":{"description":"The IBC backed (sdk.coin) path for the collection. Only one path is allowed.","$ref":"#/definitions/tokenization.CosmosCoinBackedPath"},"disablePoolCreation":{"description":"If true, disallows pool creation with this collection's assets.\nWhen true, any attempt to create a pool with tokenization assets from this collection will fail.","type":"boolean"},"evmQueryChallenges":{"type":"array","title":"EVM query invariants that must pass after all transfers complete.\nThese are checked once per message after all balance updates, with access to ALL recipient addresses.\nPlaceholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"maxSupplyPerId":{"description":"Maximum supply per token ID. Checked against Total address balances after transfers complete.\nA value of 0 means no limit (unlimited).","type":"string"},"noCustomOwnershipTimes":{"description":"If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }].\nThis prevents time-based restrictions on token ownership.","type":"boolean"},"noForcefulPostMintTransfers":{"description":"If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true.\nThis prevents forceful transfers that bypass user-level approvals.\nThis only applies to transfers where the from address does not equal \"Mint\".","type":"boolean"}}},"tokenization.CollectionMetadata":{"description":"This message defines the metadata for the collection.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the collection metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the collection metadata.","type":"string"}}},"tokenization.CollectionPermissions":{"description":"CollectionPermissions defines the permissions for the collection (i.e., what the manager can and cannot do).\n\nThere are three types of permissions for a collection: ActionPermission, TokenIdsActionPermission, and CollectionApprovalPermission.\n\nThe permission type allows fine-grained access control for each action.\n- ActionPermission: defines when the manager can perform an action or update a field.\n- TokenIdsActionPermission: defines when the manager can perform an action for specific tokens\n- CollectionApprovalPermission: defines when the manager can update the transferability of the collection and what transfers can be updated vs. locked.\n\nNote there are a few different times here which could get confusing:\n- permanentlyPermitted/ForbiddenTimes - the times that a permission can be performed\n- transferTimes - the times that a transfer occurs\n- ownershipTimes - the times when a token is owned by a user\n\nThe permitted/permanentlyForbiddenTimes are used to determine when a permission can be executed.\nOnce a time is set to be permitted or forbidden, it is PERMANENT and cannot be changed.\nIf a time is not set to be permitted or forbidden, it is considered NEUTRAL and can be updated but is ALLOWED by default.\n\nIMPORTANT: We take first-match only for the permissions. This means that if you forbid time T in array index 0 and permit time T in index 1, \nwe will only check the first permission (forbid time T) and not the second permission (permit time T).","type":"object","properties":{"canAddMoreAliasPaths":{"description":"Permissions related to adding more alias paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canAddMoreCosmosCoinWrapperPaths":{"description":"Permissions related to adding more cosmos coin wrapper paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canArchiveCollection":{"description":"Permissions related to archiving the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canDeleteCollection":{"description":"Permissions related to deleting the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateCollectionApprovals":{"description":"Permissions related to updating collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApprovalPermission"}},"canUpdateCollectionMetadata":{"description":"Permissions related to updating the metadata of the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateCustomData":{"description":"Permissions related to updating custom data for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateManager":{"description":"Permissions related to updating the collection's manager.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateStandards":{"description":"Permissions related to updating standards for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateTokenMetadata":{"description":"Permissions related to updating token metadata for specific tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenIdsActionPermission"}},"canUpdateValidTokenIds":{"description":"Permissions related to creating more tokens for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenIdsActionPermission"}}}},"tokenization.CollectionStats":{"description":"CollectionStats tracks aggregated statistics for a collection.","type":"object","properties":{"balances":{"type":"array","title":"Tracks circulating supply as Balance[] for proper range handling","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"holderCount":{"type":"string"}}},"tokenization.Conversion":{"description":"Conversion defines a bidirectional conversion between a cosmos coin (with denom) and token balances.","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin side of the conversion (amount + denom).","$ref":"#/definitions/tokenization.ConversionSideAWithDenom"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}}}},"tokenization.ConversionSideA":{"description":"ConversionSideA represents the cosmos coin amount side of a conversion without denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"}}},"tokenization.ConversionSideAWithDenom":{"description":"ConversionSideAWithDenom represents the cosmos coin side of a conversion with denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"},"denom":{"description":"The denomination of the cosmos coin.","type":"string"}}},"tokenization.ConversionWithoutDenom":{"description":"ConversionWithoutDenom defines a bidirectional conversion between a cosmos coin amount (without denom) and token balances.\nThe denom is stored at the base level (e.g., in AliasPath or CosmosCoinWrapperPath).","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin amount side of the conversion (amount only, denom stored separately).","$ref":"#/definitions/tokenization.ConversionSideA"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}}}},"tokenization.CosmosCoinBackedPath":{"type":"object","properties":{"address":{"description":"The address associated with this backed path. Used for routing and escrowing IBC tokens.","type":"string"},"conversion":{"description":"The conversion between IBC cosmos coin and token balances.","$ref":"#/definitions/tokenization.Conversion"}}},"tokenization.CosmosCoinBackedPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.Conversion"}}},"tokenization.CosmosCoinWrapperPath":{"type":"object","properties":{"address":{"description":"The BitBadges address associated with this wrapper path. Used for routing and identifying the wrapper.","type":"string"},"allowOverrideWithAnyValidToken":{"description":"If true, allows this wrapper path to be used with any valid token ID in the collection via an {id} placeholder.","type":"boolean"},"conversion":{"description":"The conversion between cosmos coin and token balances.","$ref":"#/definitions/tokenization.ConversionWithoutDenom"},"denom":{"description":"The denomination (denom) to be used for the wrapped coin or the alias denom.","type":"string"},"denomUnits":{"description":"Denomination units for the wrapped coin. Defines how the coin can be displayed with different\ndecimal places and symbols (e.g., base unit, display unit). You can specify which is the default display unit (base level or one of these).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DenomUnit"}},"metadata":{"description":"The metadata for this wrapper path.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"description":"The symbol for the wrapped coin (e.g., \"BADGE\", \"NFT\"). Used for display purposes. Note that this may not be the default.","type":"string"}}},"tokenization.CosmosCoinWrapperPathAddObject":{"type":"object","properties":{"allowOverrideWithAnyValidToken":{"type":"boolean"},"conversion":{"$ref":"#/definitions/tokenization.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DenomUnit"}},"metadata":{"description":"The metadata for this wrapper path.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.DenomUnit":{"type":"object","properties":{"decimals":{"description":"The number of decimal places for this unit. Defines the precision of the unit.","type":"string"},"isDefaultDisplay":{"description":"If true, this is the default display unit. Only one unit should be marked as the default display unit.\nThis unit will be used by default when displaying the coin amount. If none are marked default, we use the base level.","type":"boolean"},"metadata":{"description":"The metadata for this denomination unit.","$ref":"#/definitions/tokenization.PathMetadata"},"symbol":{"description":"The symbol for this unit (e.g., \"BADGE\", \"nBADGE\"). Used for display purposes.","type":"string"}}},"tokenization.DynamicStore":{"description":"A DynamicStore is a flexible storage object that can store arbitrary data.\nIt is identified by a unique ID assigned by the blockchain, which is a uint64 that increments.\nDynamic stores are created by users and can only be updated or deleted by their creator.\nThey provide a way to store custom data on-chain with proper access control.","type":"object","properties":{"createdBy":{"description":"The address of the creator of this dynamic store.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The default value for uninitialized addresses (true/false).","type":"boolean"},"globalEnabled":{"description":"Global kill switch state (defaults to true on creation, can be toggled via UpdateDynamicStore).\nWhen false, all approvals using this store via DynamicStoreChallenge will fail immediately.","type":"boolean"},"storeId":{"description":"The unique identifier for this dynamic store. This is assigned by the blockchain.","type":"string"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.DynamicStoreChallenge":{"description":"DynamicStoreChallenge defines a challenge that requires the initiator to pass a dynamic store check.","type":"object","properties":{"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"storeId":{"description":"The ID of the dynamic store to check.","type":"string"}}},"tokenization.DynamicStoreValue":{"description":"A DynamicStoreValue stores a boolean value for a specific address in a dynamic store.\nThis allows the creator to set true/false values per address that can be checked during approval.","type":"object","properties":{"address":{"description":"The address for which this value is stored.","type":"string"},"storeId":{"description":"The unique identifier for this dynamic store.","type":"string"},"value":{"description":"The boolean value (true/false).","type":"boolean"}}},"tokenization.ETHSignatureChallenge":{"description":"ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge.\n\nAn ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce.\nThe signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId) and each signature can only be used once.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once.\nIf you update the challenge ID, then the used signatures tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this ETH signature challenge for tracking the number of uses per signature.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this ETH signature challenge.","type":"string"},"signer":{"description":"The Ethereum address that must sign the nonce for verification.","type":"string"},"uri":{"description":"The URI associated with this ETH signature challenge, optionally providing metadata about the challenge.","type":"string"}}},"tokenization.ETHSignatureProof":{"description":"ETHSignatureProof represents an Ethereum signature proof for a challenge.","type":"object","properties":{"nonce":{"description":"The nonce that was signed. The signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId).","type":"string"},"signature":{"description":"The Ethereum signature of the nonce.","type":"string"}}},"tokenization.EVMQueryChallenge":{"description":"EVMQueryChallenge defines a rule for approval via read-only EVM contract query.\n\nThe challenge executes a staticcall to the specified contract with the given calldata.\nThe result is compared against the expected result (if provided) or checked for non-zero return.\n\nIMPORTANT: This is read-only and cannot modify state. The query is executed with a gas limit\nto prevent DoS attacks. All results are deterministic since EVM state is consistent within a block.","type":"object","properties":{"calldata":{"type":"string","title":"ABI-encoded function selector + arguments (hex string without 0x prefix)\nExample: \"70a08231000000000000000000000000{address}\" for balanceOf(address)\nCan use placeholders: $initiator, $sender, $recipient (replaced at runtime)"},"comparisonOperator":{"description":"Comparison operator: \"eq\" (equals), \"ne\" (not equals), \"gt\" (greater than), \"gte\", \"lt\", \"lte\"\nOnly \"eq\" and \"ne\" work for non-numeric types. Default is \"eq\".","type":"string"},"contractAddress":{"type":"string","title":"The EVM contract address to query (0x format or bb1 format)"},"customData":{"type":"string","title":"Arbitrary custom data"},"expectedResult":{"description":"Expected return value (hex string without 0x prefix). If empty, any non-error result passes.\nFor boolean checks, use \"0000...0001\" for true.","type":"string"},"gasLimit":{"type":"string","title":"Gas limit for the query (default 100000, max 500000)"},"uri":{"type":"string","title":"The URI associated with this challenge (metadata)"}}},"tokenization.IncomingApprovalCriteria":{"description":"IncomingApprovalCriteria defines the criteria for approving incoming transfers.\nThis is used for user-level incoming approvals and only includes fields relevant to incoming transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.PredeterminedBalances"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No recipient checks are included for incoming approvals since the recipient is the user themselves.","$ref":"#/definitions/tokenization.AddressChecks"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.VotingChallenge"}}}},"tokenization.IncrementedBalances":{"description":"IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method.","type":"object","properties":{"allowAmountScaling":{"description":"When true, the actual transfer can be any evenly divisible integer multiple (\u003e=1x) of startBalances.\napprovalCriteria.coinTransfers are scaled by the same multiplier.\nAll other IncrementedBalances fields must be zero/false/nil when this is true.","type":"boolean"},"allowOverrideTimestamp":{"description":"Whether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set).","type":"boolean"},"allowOverrideWithAnyValidToken":{"type":"boolean","title":"Allow override of any valid ID"},"durationFromTimestamp":{"description":"The amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy.","type":"string"},"incrementOwnershipTimesBy":{"description":"The amount by which to increment ownership times. Incompatible with approveStartingFromNowBy.","type":"string"},"incrementTokenIdsBy":{"description":"The amount by which to increment token IDs.","type":"string"},"maxScalingMultiplier":{"description":"Maximum allowed scaling multiplier. Must be \u003e 0 when allowAmountScaling is true.\nThe chain rejects transfers where the computed multiplier exceeds this cap.\nIgnored (set to \"0\") when allowAmountScaling is false.","type":"string"},"recurringOwnershipTimes":{"description":"Recurring ownership times.","$ref":"#/definitions/tokenization.RecurringOwnershipTimes"},"startBalances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}}}},"tokenization.InvariantsAddObject":{"description":"InvariantsAddObject is used for adding invariants without specifying addresses.\nAddresses are generated by the keeper and stored in the collection.","type":"object","properties":{"cosmosCoinBackedPath":{"description":"The IBC backed (sdk.coin) path for the collection. Only one path is allowed.\nAddress will be generated by the keeper.","$ref":"#/definitions/tokenization.CosmosCoinBackedPathAddObject"},"disablePoolCreation":{"description":"If true, disallows pool creation with this collection's assets.\nWhen true, any attempt to create a pool with tokenization assets from this collection will fail.","type":"boolean"},"evmQueryChallenges":{"type":"array","title":"EVM query invariants that must pass after all transfers complete.\nThese are checked once per message after all balance updates, with access to ALL recipient addresses.\nPlaceholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"maxSupplyPerId":{"description":"Maximum supply per token ID. Checked against Total address balances after transfers complete.\nA value of 0 means no limit (unlimited).","type":"string"},"noCustomOwnershipTimes":{"description":"If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }].\nThis prevents time-based restrictions on token ownership.","type":"boolean"},"noForcefulPostMintTransfers":{"description":"If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true.\nThis prevents forceful transfers that bypass user-level approvals.\nThis only applies to transfers where the from address does not equal \"Mint\".","type":"boolean"}}},"tokenization.ManualBalances":{"description":"ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set.","type":"object","properties":{"balances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}}}},"tokenization.MaxNumTransfers":{"description":"MaxNumTransfers defines the maximum number of transfers per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times\nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallMaxNumTransfers":{"description":"Overall maximum number of transfers.","type":"string"},"perFromAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"from\" address.","type":"string"},"perInitiatedByAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"initiated by\" address.","type":"string"},"perToAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.ResetTimeIntervals"}}},"tokenization.MerkleChallenge":{"description":"Challenges define a rule for the approval in the form of a Merkle challenge.\n\nA Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof,\nthen the challenge is met. All challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials.\n\nIMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge.\nIf you update the challenge ID, then the used leaves tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this Merkle challenge for tracking the number of uses per leaf.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this Merkle challenge.","type":"string"},"expectedProofLength":{"description":"The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks.","type":"string"},"leafSigner":{"description":"Ethereum address that must sign the leaf. Used to protect against man-in-the-middle attacks.\nSignature scheme: sign(leaf + \"-\" + creatorAddress), verified using elliptic curve signature verification.","type":"string"},"maxUsesPerLeaf":{"description":"The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks.","type":"string"},"root":{"description":"The root hash of the Merkle tree to which the Merkle path must lead for verification.","type":"string"},"uri":{"description":"The URI associated with this Merkle challenge, optionally providing metadata about the challenge.","type":"string"},"useCreatorAddressAsLeaf":{"description":"If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses.","type":"boolean"}}},"tokenization.MerklePathItem":{"description":"MerklePathItem represents an item in a Merkle path.","type":"object","properties":{"aunt":{"description":"The hash of the sibling node (aunt) in the Merkle path.","type":"string"},"onRight":{"description":"Indicates whether the aunt node is on the right side of the path.","type":"boolean"}}},"tokenization.MerkleProof":{"description":"MerkleProof represents a Merkle proof, consistent with Tendermint/Crypto Merkle tree.","type":"object","properties":{"aunts":{"description":"List of Merkle path items (aunts) that make up the proof.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerklePathItem"}},"leaf":{"description":"The hash of the leaf node for which the proof is generated.","type":"string"},"leafSignature":{"description":"The signature of the leaf node tying the address to the leaf node.","type":"string"}}},"tokenization.MsgCastVote":{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","type":"object","properties":{"approvalId":{"description":"The approval ID.","type":"string"},"approvalLevel":{"description":"The approval level (\"collection\", \"incoming\", or \"outgoing\").","type":"string"},"approverAddress":{"description":"The approver address (empty string for collection-level approvals).","type":"string"},"collectionId":{"description":"The collection ID for the voting challenge.","type":"string"},"creator":{"description":"The address of the voter casting the vote.","type":"string"},"proposalId":{"description":"The proposal ID (challenge ID) from the VotingChallenge.","type":"string"},"yesWeight":{"description":"The percentage weight (0-100) allocated to \"yes\" vote.\nThe remaining percentage (100 - yesWeight) is allocated to \"no\" vote.\nExample: yesWeight=70 means 70% yes, 30% no.","type":"string"}}},"tokenization.MsgCastVoteResponse":{"type":"object"},"tokenization.MsgCreateAddressLists":{"description":"MsgCreateAddressLists is used to create address lists.","type":"object","properties":{"addressLists":{"description":"Address lists to create. The createdBy field will be automatically set to the creator address.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AddressListInput"}},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgCreateAddressListsResponse":{"description":"MsgCreateAddressListsResponse is the response to MsgCreateAddressLists.","type":"object"},"tokenization.MsgCreateCollection":{"description":"MsgCreateCollection is used to create a new collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AliasPathAddObject"}},"collectionApprovals":{"description":"Collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionMetadata":{"description":"Collection metadata.","$ref":"#/definitions/tokenization.CollectionMetadata"},"collectionPermissions":{"description":"Collection permissions.","$ref":"#/definitions/tokenization.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.InvariantsAddObject"},"isArchived":{"description":"isArchived flag.","type":"boolean"},"manager":{"description":"Manager address.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"Standards entries.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"Token metadata entries.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.MsgCreateCollectionResponse":{"description":"MsgCreateCollectionResponse is the response to MsgCreateCollection.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgCreateDynamicStore":{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The default value for uninitialized addresses (true/false).","type":"boolean"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.MsgCreateDynamicStoreResponse":{"description":"MsgCreateDynamicStoreResponse is the response to MsgCreateDynamicStore.","type":"object","properties":{"reviewItems":{"type":"array","items":{"type":"string"}},"storeId":{"description":"ID of the dynamic store.","type":"string"}}},"tokenization.MsgDeleteCollection":{"description":"MsgDeleteCollection is used to delete a collection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgDeleteCollectionResponse":{"description":"MsgDeleteCollectionResponse is the response to MsgDeleteCollection.","type":"object"},"tokenization.MsgDeleteDynamicStore":{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store to delete.","type":"string"}}},"tokenization.MsgDeleteDynamicStoreResponse":{"description":"MsgDeleteDynamicStoreResponse is the response to MsgDeleteDynamicStore.","type":"object"},"tokenization.MsgDeleteIncomingApproval":{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgDeleteIncomingApprovalResponse":{"description":"MsgDeleteIncomingApprovalResponse is the response to MsgDeleteIncomingApproval.","type":"object","properties":{"found":{"type":"boolean"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.MsgDeleteOutgoingApproval":{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgDeleteOutgoingApprovalResponse":{"description":"MsgDeleteOutgoingApprovalResponse is the response to MsgDeleteOutgoingApproval.","type":"object","properties":{"found":{"type":"boolean"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.MsgPurgeApprovals":{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","type":"object","properties":{"approvalsToPurge":{"description":"Specific approvals to purge. If empty, purges all applicable approvals based on other flags.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalIdentifierDetails"}},"approverAddress":{"description":"Address of the user whose approvals to purge. If empty, defaults to creator.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"purgeCounterpartyApprovals":{"description":"Whether to purge counterparty approvals (approvals where the creator is the only initiator).","type":"boolean"},"purgeExpired":{"description":"Whether to purge expired approvals (approvals with no future valid transfer times).","type":"boolean"}}},"tokenization.MsgPurgeApprovalsResponse":{"description":"MsgPurgeApprovalsResponse is the response to MsgPurgeApprovals.","type":"object","properties":{"numPurged":{"description":"Number of approvals purged.","type":"string"},"purgedApprovalIds":{"type":"array","items":{"type":"string"}},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgSetCollectionApprovals":{"type":"object","title":"MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission","properties":{"canUpdateCollectionApprovals":{"type":"array","title":"Permission to update collection approvals","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApprovalPermission"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgSetCollectionApprovalsResponse":{"description":"MsgSetCollectionApprovalsResponse is the response to MsgSetCollectionApprovals.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgSetCollectionMetadata":{"type":"object","title":"MsgSetCollectionMetadata sets the collection metadata and canUpdateCollectionMetadata permission","properties":{"canUpdateCollectionMetadata":{"type":"array","title":"Permission to update collection metadata","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.CollectionMetadata"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgSetCollectionMetadataResponse":{"description":"MsgSetCollectionMetadataResponse is the response to MsgSetCollectionMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetCustomData":{"type":"object","title":"MsgSetCustomData sets the custom data and canUpdateCustomData permission","properties":{"canUpdateCustomData":{"type":"array","title":"Permission to update custom data","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"}}},"tokenization.MsgSetCustomDataResponse":{"description":"MsgSetCustomDataResponse is the response to MsgSetCustomData.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetDynamicStoreValue":{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","type":"object","properties":{"address":{"description":"The address for which to set the value.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store.","type":"string"},"value":{"description":"The boolean value to set (true/false).","type":"boolean"}}},"tokenization.MsgSetDynamicStoreValueResponse":{"description":"MsgSetDynamicStoreValueResponse is the response to MsgSetDynamicStoreValue.","type":"object","properties":{"previousValue":{"type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgSetIncomingApproval":{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","type":"object","properties":{"approval":{"description":"The incoming approval to set.","$ref":"#/definitions/tokenization.UserIncomingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgSetIncomingApprovalResponse":{"description":"MsgSetIncomingApprovalResponse is the response to MsgSetIncomingApproval.","type":"object","properties":{"action":{"type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.MsgSetIsArchived":{"type":"object","title":"MsgSetIsArchived sets the isArchived and canArchiveCollection permission","properties":{"canArchiveCollection":{"type":"array","title":"Permission to archive collection","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"isArchived":{"description":"New isArchived to set.","type":"boolean"}}},"tokenization.MsgSetIsArchivedResponse":{"description":"MsgSetIsArchivedResponse is the response to MsgSetIsArchived.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetManager":{"type":"object","title":"MsgSetManager sets the manager and canUpdateManager permission","properties":{"canUpdateManager":{"type":"array","title":"Permission to update manager","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"manager":{"description":"New manager to set.","type":"string"}}},"tokenization.MsgSetManagerResponse":{"description":"MsgSetManagerResponse is the response to MsgSetManager.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetOutgoingApproval":{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","type":"object","properties":{"approval":{"description":"The outgoing approval to set.","$ref":"#/definitions/tokenization.UserOutgoingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.MsgSetOutgoingApprovalResponse":{"description":"MsgSetOutgoingApprovalResponse is the response to MsgSetOutgoingApproval.","type":"object","properties":{"action":{"type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.MsgSetReservedProtocolAddress":{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","type":"object","properties":{"address":{"description":"Address to set or unset as reserved protocol address.","type":"string"},"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"isReservedProtocol":{"description":"Whether the address should be a reserved protocol address (true) or not (false).","type":"boolean"}}},"tokenization.MsgSetReservedProtocolAddressResponse":{"description":"MsgSetReservedProtocolAddressResponse is the response to MsgSetReservedProtocolAddress.","type":"object"},"tokenization.MsgSetStandards":{"type":"object","title":"MsgSetStandards sets the standards and canUpdateStandards permission","properties":{"canUpdateStandards":{"type":"array","title":"Permission to update standards","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}}}},"tokenization.MsgSetStandardsResponse":{"description":"MsgSetStandardsResponse is the response to MsgSetStandards.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetTokenMetadata":{"type":"object","title":"MsgSetTokenMetadata sets the token metadata and canUpdateTokenMetadata permission","properties":{"canUpdateTokenMetadata":{"type":"array","title":"Permission to update token metadata","items":{"type":"object","$ref":"#/definitions/tokenization.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}}}},"tokenization.MsgSetTokenMetadataResponse":{"description":"MsgSetTokenMetadataResponse is the response to MsgSetTokenMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgSetValidTokenIds":{"type":"object","title":"MsgSetValidTokenIds sets the validTokenIds and canUpdateValidTokenIds permission","properties":{"canUpdateValidTokenIds":{"type":"array","title":"Permission to update valid token IDs","items":{"type":"object","$ref":"#/definitions/tokenization.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.MsgSetValidTokenIdsResponse":{"description":"MsgSetValidTokenIdsResponse is the response to MsgSetValidTokenIds.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.MsgTransferTokens":{"description":"MsgTransferTokens is used to transfer tokens.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"transfers":{"description":"Transfers to execute.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Transfer"}}}},"tokenization.MsgTransferTokensResponse":{"description":"MsgTransferTokensResponse is the response to MsgTransferTokens.","type":"object","properties":{"approvalsUsed":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalUsed"}},"balancesTransferred":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"coinTransfers":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CoinTransferProto"}},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgUniversalUpdateCollection":{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.MsgUniversalUpdateCollectionResponse":{"description":"MsgUniversalUpdateCollectionResponse is the response to MsgUniversalUpdateCollection.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgUpdateCollection":{"description":"MsgUpdateCollection is used to update a collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.MsgUpdateCollectionResponse":{"description":"MsgUpdateCollectionResponse is the response to MsgUpdateCollection.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MsgUpdateDynamicStore":{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The new default value for uninitialized addresses (true/false).","type":"boolean"},"globalEnabled":{"description":"The global kill switch state (true = enabled, false = disabled/halted).\nCallers should query the current value first if they want to keep it unchanged.","type":"boolean"},"storeId":{"description":"ID of the dynamic store to update.","type":"string"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.MsgUpdateDynamicStoreResponse":{"description":"MsgUpdateDynamicStoreResponse is the response to MsgUpdateDynamicStore.","type":"object"},"tokenization.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/tokenization.Params"}}},"tokenization.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"tokenization.MsgUpdateUserApprovals":{"description":"MsgUpdateUserApprovals is used to update user approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Auto-approve setting for all incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Auto-approve setting for self-initiated incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Auto-approve setting for self-initiated outgoing transfers.","type":"boolean"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"incomingApprovals":{"description":"New incoming approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserIncomingApproval"}},"outgoingApprovals":{"description":"New outgoing approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserOutgoingApproval"}},"updateAutoApproveAllIncomingTransfers":{"description":"Indicates if auto-approve settings for all incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Indicates if auto-approve settings for self-initiated incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Indicates if auto-approve settings for self-initiated outgoing transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIncomingApprovals":{"description":"Indicates if incoming approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateOutgoingApprovals":{"description":"Indicates if outgoing approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateUserPermissions":{"description":"Indicates if user permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"userPermissions":{"description":"New user permissions to set.","$ref":"#/definitions/tokenization.UserPermissions"}}},"tokenization.MsgUpdateUserApprovalsResponse":{"description":"MsgUpdateUserApprovalsResponse is the response to MsgUpdateUserApprovals.","type":"object","properties":{"incomingChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"outgoingChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalChange"}},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.MustOwnTokens":{"description":"MustOwnTokens represents a condition where a user must own specific tokens\nto be approved to transfer.\n\n- collectionId: The ID of the collection for the tokens that must be owned\n- amountRange: The range of amounts the user must own (min to max)\n- ownershipTimes: The time ranges during which the user must own the tokens.\n- tokenIds: The token IDs the user must own.\n- overrideWithCurrentTime: If true, auto override ownershipTimes with the current time.\n- mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for \u003e= 1 millisecond is sufficient.","type":"object","properties":{"amountRange":{"description":"The range of amounts the user must own (min to max).","$ref":"#/definitions/tokenization.UintRange"},"collectionId":{"description":"The ID of the collection.","type":"string"},"mustSatisfyForAllAssets":{"description":"If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token.","type":"boolean"},"overrideWithCurrentTime":{"description":"If true, override ownershipTimes with the current time.","type":"boolean"},"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user must own the tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"The token IDs the user must own.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.OutgoingApprovalCriteria":{"description":"OutgoingApprovalCriteria defines the criteria for approving outgoing transfers.\nThis is used for user-level outgoing approvals and only includes fields relevant to outgoing transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No sender checks are included for outgoing approvals since the sender is the user themselves.","$ref":"#/definitions/tokenization.AddressChecks"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.VotingChallenge"}}}},"tokenization.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"affiliate_percentage":{"type":"string","title":"affiliate_percentage defines the percentage of the transfer amount that goes to the affiliate"},"allowed_denoms":{"type":"array","title":"allowed_denoms defines the list of denoms that are allowed to be used in coin_transfers","items":{"type":"string"}}}},"tokenization.PathMetadata":{"description":"This message defines the metadata for paths (alias paths and cosmos coin wrapper paths).\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the path metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the path metadata.","type":"string"}}},"tokenization.PrecalculateBalancesFromApprovalDetails":{"description":"PrecalculateBalancesFromApprovalDetails defines the details for precalculating balances from an approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"precalculationOptions":{"description":"The options for precalculating the balances.","$ref":"#/definitions/tokenization.PrecalculationOptions"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.PrecalculationOptions":{"description":"PrecalculationOptions defines the options for precalculating the balances.","type":"object","properties":{"overrideTimestamp":{"description":"The timestamp to override with when calculating the balances.","type":"string"},"scalingMultiplier":{"description":"When \u003e 0 and allowAmountScaling is true on the approval, all precalculated balance amounts\nare multiplied by this value. Must be \u003c= maxScalingMultiplier. 0 means no scaling (returns 1x base).","type":"string"},"tokenIdsOverride":{"description":"The IDs to override for the transfer. Only applicable if using this option in precalculation.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.PredeterminedBalances":{"description":"PredeterminedBalances represents balances with predetermined order calculation.","type":"object","properties":{"incrementedBalances":{"description":"Balances that have a starting amount and increment. If this is nil, then we use the manual balances.","$ref":"#/definitions/tokenization.IncrementedBalances"},"manualBalances":{"description":"Manual balances that can be entered. If this is nil, then we use the incremented balances.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ManualBalances"}},"orderCalculationMethod":{"description":"The method to calculate the order of predetermined balances.","$ref":"#/definitions/tokenization.PredeterminedOrderCalculationMethod"}}},"tokenization.PredeterminedOrderCalculationMethod":{"description":"PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order.","type":"object","properties":{"challengeTrackerId":{"description":"If useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method.","type":"string"},"useMerkleChallengeLeafIndex":{"description":"Use the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc.","type":"boolean"},"useOverallNumTransfers":{"description":"Use the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc.","type":"boolean"},"usePerFromAddressNumTransfers":{"description":"Use the number of transfers per \"from\" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc.","type":"boolean"},"usePerInitiatedByAddressNumTransfers":{"description":"Use the number of transfers per \"initiated by\" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc.","type":"boolean"},"usePerToAddressNumTransfers":{"description":"Use the number of transfers per \"to\" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc.","type":"boolean"}}},"tokenization.QueryGetAddressListResponse":{"type":"object","properties":{"list":{"$ref":"#/definitions/tokenization.AddressList"}}},"tokenization.QueryGetAllReservedProtocolAddressesResponse":{"type":"object","properties":{"addresses":{"type":"array","items":{"type":"string"}}}},"tokenization.QueryGetApprovalTrackerResponse":{"type":"object","properties":{"tracker":{"$ref":"#/definitions/tokenization.ApprovalTracker"}}},"tokenization.QueryGetBalanceForTokenResponse":{"type":"object","properties":{"balance":{"type":"string"}}},"tokenization.QueryGetBalanceResponse":{"type":"object","properties":{"balance":{"$ref":"#/definitions/tokenization.UserBalanceStore"}}},"tokenization.QueryGetChallengeTrackerResponse":{"type":"object","properties":{"numUsed":{"type":"string"}}},"tokenization.QueryGetCollectionResponse":{"type":"object","properties":{"collection":{"$ref":"#/definitions/tokenization.TokenCollection"}}},"tokenization.QueryGetCollectionStatsResponse":{"type":"object","properties":{"stats":{"$ref":"#/definitions/tokenization.CollectionStats"}}},"tokenization.QueryGetDynamicStoreResponse":{"type":"object","properties":{"store":{"$ref":"#/definitions/tokenization.DynamicStore"}}},"tokenization.QueryGetDynamicStoreValueResponse":{"type":"object","properties":{"value":{"$ref":"#/definitions/tokenization.DynamicStoreValue"}}},"tokenization.QueryGetETHSignatureTrackerResponse":{"type":"object","properties":{"numUsed":{"type":"string"}}},"tokenization.QueryGetVoteResponse":{"type":"object","properties":{"vote":{"$ref":"#/definitions/tokenization.VoteProof"}}},"tokenization.QueryGetVotesResponse":{"type":"object","properties":{"votes":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.VoteProof"}}}},"tokenization.QueryGetWrappableBalancesResponse":{"type":"object","properties":{"amount":{"type":"string"}}},"tokenization.QueryIsAddressReservedProtocolResponse":{"type":"object","properties":{"isReservedProtocol":{"type":"boolean"}}},"tokenization.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/tokenization.Params"}}},"tokenization.RecurringOwnershipTimes":{"description":"RecurringOwnershipTimes represents a list of recurring ownership times.","type":"object","properties":{"chargePeriodLength":{"type":"string","title":"Grace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period"},"intervalLength":{"description":"The interval length in unix milliseconds.","type":"string"},"startTime":{"description":"The original start time of the first interval.","type":"string"}}},"tokenization.ResetTimeIntervals":{"description":"Time intervals to reset the trackers at.","type":"object","properties":{"intervalLength":{"description":"Interval length in unix milliseconds.","type":"string"},"startTime":{"description":"Original start time of the first interval.","type":"string"}}},"tokenization.TokenCollection":{"description":"A TokenCollection is the top-level object for a collection of tokens. \nIt defines everything about the collection, such as the manager, metadata, etc.\n\nAll collections are identified by a collectionId assigned by the blockchain, which is a uint64 that increments (i.e. the first collection has ID 1).\n\nAll collections can have a manager who is responsible for managing the collection and can be granted certain admin\npermissions, such as the ability to mint new tokens.\n\nCollections may have different balance types: standard vs. off-chain - indexed vs. inherited.vs off-chain - non-indexed vs non-public.\n\nSee documentation for more details.","type":"object","properties":{"aliasPaths":{"description":"The alias (non-wrapping) paths for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.AliasPath"}},"collectionApprovals":{"description":"Transferability of the collection for collections with standard balances, subject to changes over time.\nOverrides user approvals for a transfer if specified.\nTransfer must satisfy both user and collection-level approvals.\nOnly applicable to on-chain balances.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CollectionApproval"}},"collectionId":{"description":"The unique identifier for this collection. This is assigned by the blockchain. First collection has ID 1.","type":"string"},"collectionMetadata":{"description":"The metadata for the collection itself.","$ref":"#/definitions/tokenization.CollectionMetadata"},"collectionPermissions":{"description":"Permissions that define what the manager of the collection can do or not do.","$ref":"#/definitions/tokenization.CollectionPermissions"},"cosmosCoinWrapperPaths":{"description":"The IBC wrapper (sdk.coin) paths for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.CosmosCoinWrapperPath"}},"createdBy":{"description":"The user or entity who created the collection.","type":"string"},"customData":{"description":"An arbitrary field that can store any data.","type":"string"},"defaultBalances":{"description":"The default store of a balance / approvals for a user, upon genesis.","$ref":"#/definitions/tokenization.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.","$ref":"#/definitions/tokenization.CollectionInvariants"},"isArchived":{"description":"Whether the collection is archived or not.\nWhen archived, it becomes read-only, and no transactions can be processed until it is unarchived.","type":"boolean"},"manager":{"description":"The address of the manager of this collection.","type":"string"},"mintEscrowAddress":{"description":"The generated address of the collection. Also used to escrow Mint balances.","type":"string"},"standards":{"description":"Standards that define how to interpret the fields of the collection.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"The metadata for each token in the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.TokenMetadata"}},"validTokenIds":{"description":"The valid token IDs for this collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.TokenIdsActionPermission":{"description":"TokenIdsActionPermission defines the permissions for performing an action for specific tokens.\nCurrently, this is only used for creating new tokens.\n\nEx: If you want to lock the ability to create new tokens for tokenIds [1,2] at ownershipTimes 1/1/2020 - 1/1/2021, \nyou could set the combination (tokenIds: [1,2], ownershipTimes: [1/1/2020 - 1/1/2021]) to always be forbidden.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.TokenMetadata":{"description":"This message defines the metadata for specific token IDs.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the token metadata.","type":"string"},"tokenIds":{"description":"The token IDs to which this metadata applies.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the token metadata.","type":"string"}}},"tokenization.Transfer":{"description":"Transfer defines the details of a transfer of tokens.","type":"object","properties":{"balances":{"description":"The balances to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"ethSignatureProofs":{"description":"The ETH signature proofs / solutions for all ETH signature challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ETHSignatureProof"}},"from":{"description":"The address of the sender of the transfer.","type":"string"},"memo":{"description":"The memo for the transfer.","type":"string"},"merkleProofs":{"description":"The Merkle proofs / solutions for all Merkle challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.MerkleProof"}},"onlyCheckPrioritizedCollectionApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedIncomingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedOutgoingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"precalculateBalancesFromApproval":{"description":"If defined, we will use the predeterminedBalances from the specified approval to calculate the balances at execution time.\nWe will override the balances field with the precalculated balances. Only applicable for approvals with predeterminedBalances set.","$ref":"#/definitions/tokenization.PrecalculateBalancesFromApprovalDetails"},"prioritizedApprovals":{"description":"The prioritized approvals for the transfer. By default, we scan linearly through the approvals and use the first match.\nThis field can be used to prioritize specific approvals and scan through them first.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ApprovalIdentifierDetails"}},"toAddresses":{"description":"The addresses of the recipients of the transfer.","type":"array","items":{"type":"string"}}}},"tokenization.UintRange":{"description":"The UintRange is a range of IDs from some start to some end (inclusive).\nuintRanges are one of the core types used.\n\nThey are used for everything from token IDs to time ranges to min/max balance amounts.\n\nSee the BitBadges documentation for more information.","type":"object","properties":{"end":{"description":"The ending value of the range (inclusive).","type":"string"},"start":{"description":"The starting value of the range (inclusive).","type":"string"}}},"tokenization.UserApprovalSettings":{"description":"UserApprovalSettings defines issuer-imposed constraints on user-level approvals.\nSet on collection-level ApprovalCriteria and propagated to user-level approvals\nduring greedy transfer matching. Each balance slice carries its own settings.","type":"object","properties":{"allowedDenoms":{"description":"Restricts which denoms user-level coinTransfers can reference (beyond params-level AllowedDenoms).\nIf empty, all params-allowed denoms are permitted.","type":"array","items":{"type":"string"}},"disableUserCoinTransfers":{"description":"If true, user-level approvals cannot trigger coinTransfers at all for transfers matched by this collection approval.","type":"boolean"},"userRoyalties":{"description":"User-level royalties to enforce for transfers matched by this collection approval.","$ref":"#/definitions/tokenization.UserRoyalties"}}},"tokenization.UserBalanceStore":{"description":"UserBalanceStore is the store for the user balances for a collection.\n\nIt consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers,\nas well as the permissions for updating the approved incoming/outgoing transfers.\n\nUpon initialization, all fields (minus the balances) are set to the defaults specified by the collection.\n\nThe outgoing transfers can be used to allow / disallow transfers which are sent from this user.\nIf a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedOutgoingTransfers is set to true.\n\nThe incoming transfers can be used to allow / disallow transfers which are sent to this user.\nIf a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedIncomingTransfers is set to true.\n\nNote that the user approved transfers are only checked if the collection approved transfers do not specify to override\nthe user approved transfers. \n\nThe permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Whether to auto-approve all incoming transfers by default. \nThis is just shorthand for adding an accept everything incoming approval\nwith no restrictions.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Whether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy).","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Whether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy).","type":"boolean"},"balances":{"description":"The list of balances associated with this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Balance"}},"incomingApprovals":{"description":"The list of approved incoming transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserIncomingApproval"}},"outgoingApprovals":{"description":"The list of approved outgoing transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserOutgoingApproval"}},"userPermissions":{"description":"The permissions for this user's actions and transfers.","$ref":"#/definitions/tokenization.UserPermissions"}}},"tokenization.UserIncomingApproval":{"description":"UserIncomingApproval defines the rules for the approval of an incoming transfer to a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.IncomingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.UserIncomingApprovalPermission":{"description":"UserIncomingApprovalPermission defines the permissions for updating the user's approved incoming transfers.\n\nSee CollectionApprovalPermission for more details. This is equivalent without the toListId field because that is always the user.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.UserOutgoingApproval":{"description":"UserOutgoingApproval defines the rules for the approval of an outgoing transfer from a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.OutgoingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.UserOutgoingApprovalPermission":{"description":"UserOutgoingApprovalPermission defines the permissions for updating the user's approved outgoing transfers.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UintRange"}}}},"tokenization.UserPermissions":{"description":"UserPermissions defines the permissions for the user about their approvals (i.e., what the user can and cannot do).\n\nSee CollectionPermissions for more details on the different types of permissions.\n\ncanUpdateOutgoingApprovals and canUpdateOutgoingApprovals follow the same as the canUpdateCollectionApprovals in CollectionPermissions,\nbut certain fields are removed because they are not relevant to the user.","type":"object","properties":{"canUpdateAutoApproveAllIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for all incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated outgoing transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.ActionPermission"}},"canUpdateIncomingApprovals":{"description":"Permissions related to updating the user's approved incoming transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserIncomingApprovalPermission"}},"canUpdateOutgoingApprovals":{"description":"Permissions related to updating the user's approved outgoing transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.UserOutgoingApprovalPermission"}}}},"tokenization.UserRoyalties":{"description":"UserRoyalties defines the royalties for a user.","type":"object","properties":{"payoutAddress":{"description":"Payout address for the royalties.","type":"string"},"percentage":{"description":"Percentage of the transfer amount to apply as royalties. 1 to 10000 represents basis points.","type":"string"}}},"tokenization.VoteProof":{"description":"VoteProof represents a vote cast for a voting challenge.","type":"object","properties":{"proposalId":{"description":"The proposal ID this vote is for.","type":"string"},"votedAt":{"description":"Timestamp (unix ms) when this vote was cast. Set automatically by the chain.","type":"string"},"voter":{"description":"The address of the voter casting the vote.","type":"string"},"yesWeight":{"description":"The percentage weight (0-100) allocated to \"yes\" vote.\nThe remaining percentage (100 - yesWeight) is allocated to \"no\" vote.\nExample: yesWeight=70 means 70% yes, 30% no.","type":"string"}}},"tokenization.Voter":{"description":"Voter defines a voter with their address and weight.","type":"object","properties":{"address":{"description":"The address of the voter.","type":"string"},"weight":{"description":"The weight of this voter's vote.","type":"string"}}},"tokenization.VotingChallenge":{"description":"VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge.\nRequires a weighted quorum threshold to be met through votes from specified voters.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage\nof total possible weight (all voters), not just voted weight. If you update the proposal ID, then the\nvote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge\nto prevent overlap and unexpected behavior.","type":"object","properties":{"customData":{"description":"Arbitrary custom data associated with this voting challenge.","type":"string"},"delayAfterQuorum":{"description":"Mandatory delay in milliseconds after quorum is reached before the transfer can execute.\nIf set, the transfer will fail until: now \u003e= quorumReachedTimestamp + delayAfterQuorum.\nDuring the delay, signers can remove their votes to cancel (quorum drops = delay resets).","type":"string"},"proposalId":{"type":"string","title":"The ID of this voting challenge for tracking votes (scoped like challengeTrackerId).\nFormat: collectionId-approverAddress-approvalLevel-approvalId-challengeId"},"quorumThreshold":{"description":"The quorum threshold as a percentage (0-100) of total possible weight that must vote \"yes\".\nExample: 50 means 50% of total voter weight must vote yes for approval.","type":"string"},"resetAfterExecution":{"description":"If true, all votes for this challenge are cleared after a successful transfer execution.\nThis makes the challenge reusable (e.g., for vault withdrawals that need fresh approval each time).","type":"boolean"},"uri":{"description":"The URI associated with this voting challenge.","type":"string"},"voters":{"description":"List of voters with their weights. Each voter can cast a weighted vote.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.Voter"}}}},"tokenization.v27.ActionPermission":{"description":"ActionPermission defines the permissions for performing an action.\n\nThis is simple and straightforward as the only thing we need to check is the permitted/forbidden times.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.AddressChecks":{"type":"object","title":"AddressChecks defines checks for address types (EVM contract, liquidity pool, etc.)","properties":{"mustBeEvmContract":{"description":"Require the address to be an EVM contract (has code).","type":"boolean"},"mustBeLiquidityPool":{"description":"Require the address to be a liquidity pool.","type":"boolean"},"mustNotBeEvmContract":{"description":"Require the address to not be an EVM contract (no code).","type":"boolean"},"mustNotBeLiquidityPool":{"description":"Require the address to not be a liquidity pool.","type":"boolean"}}},"tokenization.v27.AddressListInput":{"description":"AddressListInput is used for creating address lists via MsgCreateAddressLists.\nIt contains all fields from AddressList except createdBy, which is automatically set from the message creator.","type":"object","properties":{"addresses":{"description":"List of addresses included in the list.","type":"array","items":{"type":"string"}},"customData":{"description":"Custom arbitrary data or additional information related to the address list.","type":"string"},"listId":{"description":"Unique identifier for the address list.","type":"string"},"uri":{"description":"URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable.","type":"string"},"whitelist":{"description":"Indicates whether the list includes the specified addresses (true) or excludes them (false).","type":"boolean"}}},"tokenization.v27.AliasPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v27.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DenomUnit"}},"metadata":{"description":"The metadata for this alias path.","$ref":"#/definitions/tokenization.v27.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v27.AltTimeChecks":{"type":"object","title":"AltTimeChecks defines alternative time-based checks for approval denial.\nIf the transfer time falls within any of the specified offline hours or days, the approval is denied.\nUses UTC timezone for neutral timezone approach.\nofflineHours: ranges of hours (0-23) when transfers should be denied\nofflineDays: ranges of days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied","properties":{"offlineDays":{"description":"Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied. Uses UTC timezone.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"offlineHours":{"description":"Hours (0-23) when transfers should be denied. Uses UTC timezone.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.ApprovalAmounts":{"description":"ApprovalAmounts defines approval amounts per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times \nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallApprovalAmount":{"description":"Overall approval amount.","type":"string"},"perFromAddressApprovalAmount":{"description":"Approval amount per \"from\" address.","type":"string"},"perInitiatedByAddressApprovalAmount":{"description":"Approval amount per \"initiated by\" address.","type":"string"},"perToAddressApprovalAmount":{"description":"Approval amount per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v27.ResetTimeIntervals"}}},"tokenization.v27.ApprovalCriteria":{"description":"ApprovalCriteria defines the criteria for approving transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"allowBackedMinting":{"description":"If true, this collection approval allows backed minting operations (CosmosCoinBackedPath).\nWhen false, this approval cannot be used for transfers involving backed minting addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"allowSpecialWrapping":{"description":"If true, this collection approval allows special wrapping operations (CosmosCoinWrapperPath).\nWhen false, this approval cannot be used for transfers involving wrapping addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v27.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v27.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v27.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v27.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"overridesFromOutgoingApprovals":{"description":"Overrides the user's outgoing approvals for approval. If true, this collection-level approval\ntakes precedence over any outgoing approvals defined by the sender, allowing the collection to\ncontrol outgoing transfer behavior.","type":"boolean"},"overridesToIncomingApprovals":{"description":"Overrides the user's incoming approvals for approval. If true, this collection-level approval\ntakes precedence over any incoming approvals defined by the recipient, allowing the collection to\ncontrol incoming transfer behavior.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v27.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"userRoyalties":{"description":"User level royalties to apply to the transfer. Defines the percentage and payout address for\nroyalties that should be collected when this approval is used for a transfer.","$ref":"#/definitions/tokenization.v27.UserRoyalties"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.VotingChallenge"}}}},"tokenization.v27.ApprovalIdentifierDetails":{"description":"ApprovalIdentifierDetails defines the details to identify a specific approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v27.AutoDeletionOptions":{"description":"AutoDeletionOptions defines the options for auto-deletion of approvals.","type":"object","properties":{"afterOneUse":{"type":"boolean","title":"After one use?"},"afterOverallMaxNumTransfers":{"type":"boolean","title":"After overall max number of uses threshold is met?"},"allowCounterpartyPurge":{"type":"boolean","title":"Allow counterparty to purge this approval if they are the only initiator"},"allowPurgeIfExpired":{"type":"boolean","title":"Allow others to call PurgeApprovals on behalf of this approval owner"}}},"tokenization.v27.Balance":{"description":"Balance represents the balance of a token for a specific user.\nThe user amounts xAmount of a token specified for the time ranges specified.\n\nExample: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021.\n\nIf times or tokenIDs have len \u003e 1, then the user owns all token IDs specified for all time ranges specified.","type":"object","properties":{"amount":{"description":"The amount of the token owned by the user.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"The token IDs for which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.CoinTransfer":{"type":"object","properties":{"coins":{"description":"The sdk.Coins to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"overrideFromWithApproverAddress":{"description":"By default, the from address is the initiator of the transaction.\nIf this is set to true, we will override the from address with the approver address.\nNote: This is not applicable for collection approvals (since approverAddress == '').","type":"boolean"},"overrideToWithInitiator":{"description":"By default, the to address is what is specified in the coin transfer.\nIf this is set to true, we will override the to address with the initiator of the transaction.","type":"boolean"},"to":{"description":"The address of the recipient of the transfer.","type":"string"}}},"tokenization.v27.CollectionApproval":{"type":"object","title":"CollectionApproval defines the rules for the approval of a transfer on the collection level","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v27.ApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v27.CollectionApprovalPermission":{"description":"CollectionApprovalPermission defines what collection approved transfers can be updated vs. are locked.\n\nEach transfer is broken down to a (from, to, initiatedBy, transferTime, tokenId) tuple.\nFor a transfer to match, we need to match ALL of the fields in the combination. \nThese are determined by the fromListId, toListId, initiatedByListId, transferTimes, tokenIds fields.\nAddressLists are used for (from, to, initiatedBy) which are a permanent list of addresses identified by an ID (see AddressLists). \n\npermanentlyPermitted/ForbiddenTimes: when can the manager execute this permission?\n\nEx: Let's say we are updating the transferability for the transfer tuple (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", 10, 1000).\nWe would check to find the FIRST CollectionApprovalPermission that matches this combination.\nIf we find a match, we would check the permitted/forbidden times to see if we can execute this permission (default is ALLOWED).\n\nEx: So if you wanted to freeze the transferability to enforce that token ID 1 will always be transferable, you could set\nthe combination (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", \"All Transfer Times\", 1) to always be forbidden.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.CollectionMetadata":{"description":"This message defines the metadata for the collection.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the collection metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the collection metadata.","type":"string"}}},"tokenization.v27.CollectionPermissions":{"description":"CollectionPermissions defines the permissions for the collection (i.e., what the manager can and cannot do).\n\nThere are three types of permissions for a collection: ActionPermission, TokenIdsActionPermission, and CollectionApprovalPermission.\n\nThe permission type allows fine-grained access control for each action.\n- ActionPermission: defines when the manager can perform an action or update a field.\n- TokenIdsActionPermission: defines when the manager can perform an action for specific tokens\n- CollectionApprovalPermission: defines when the manager can update the transferability of the collection and what transfers can be updated vs. locked.\n\nNote there are a few different times here which could get confusing:\n- permanentlyPermitted/ForbiddenTimes - the times that a permission can be performed\n- transferTimes - the times that a transfer occurs\n- ownershipTimes - the times when a token is owned by a user\n\nThe permitted/permanentlyForbiddenTimes are used to determine when a permission can be executed.\nOnce a time is set to be permitted or forbidden, it is PERMANENT and cannot be changed.\nIf a time is not set to be permitted or forbidden, it is considered NEUTRAL and can be updated but is ALLOWED by default.\n\nIMPORTANT: We take first-match only for the permissions. This means that if you forbid time T in array index 0 and permit time T in index 1, \nwe will only check the first permission (forbid time T) and not the second permission (permit time T).","type":"object","properties":{"canAddMoreAliasPaths":{"description":"Permissions related to adding more alias paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canAddMoreCosmosCoinWrapperPaths":{"description":"Permissions related to adding more cosmos coin wrapper paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canArchiveCollection":{"description":"Permissions related to archiving the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canDeleteCollection":{"description":"Permissions related to deleting the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateCollectionApprovals":{"description":"Permissions related to updating collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApprovalPermission"}},"canUpdateCollectionMetadata":{"description":"Permissions related to updating the metadata of the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateCustomData":{"description":"Permissions related to updating custom data for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateManager":{"description":"Permissions related to updating the collection's manager.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateStandards":{"description":"Permissions related to updating standards for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateTokenMetadata":{"description":"Permissions related to updating token metadata for specific tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenIdsActionPermission"}},"canUpdateValidTokenIds":{"description":"Permissions related to creating more tokens for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenIdsActionPermission"}}}},"tokenization.v27.Conversion":{"description":"Conversion defines a bidirectional conversion between a cosmos coin (with denom) and token balances.","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin side of the conversion (amount + denom).","$ref":"#/definitions/tokenization.v27.ConversionSideAWithDenom"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}}}},"tokenization.v27.ConversionSideA":{"description":"ConversionSideA represents the cosmos coin amount side of a conversion without denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"}}},"tokenization.v27.ConversionSideAWithDenom":{"description":"ConversionSideAWithDenom represents the cosmos coin side of a conversion with denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"},"denom":{"description":"The denomination of the cosmos coin.","type":"string"}}},"tokenization.v27.ConversionWithoutDenom":{"description":"ConversionWithoutDenom defines a bidirectional conversion between a cosmos coin amount (without denom) and token balances.\nThe denom is stored at the base level (e.g., in AliasPath or CosmosCoinWrapperPath).","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin amount side of the conversion (amount only, denom stored separately).","$ref":"#/definitions/tokenization.v27.ConversionSideA"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}}}},"tokenization.v27.CosmosCoinBackedPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v27.Conversion"}}},"tokenization.v27.CosmosCoinWrapperPathAddObject":{"type":"object","properties":{"allowOverrideWithAnyValidToken":{"type":"boolean"},"conversion":{"$ref":"#/definitions/tokenization.v27.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DenomUnit"}},"metadata":{"description":"The metadata for this wrapper path.","$ref":"#/definitions/tokenization.v27.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v27.DenomUnit":{"type":"object","properties":{"decimals":{"description":"The number of decimal places for this unit. Defines the precision of the unit.","type":"string"},"isDefaultDisplay":{"description":"If true, this is the default display unit. Only one unit should be marked as the default display unit.\nThis unit will be used by default when displaying the coin amount. If none are marked default, we use the base level.","type":"boolean"},"metadata":{"description":"The metadata for this denomination unit.","$ref":"#/definitions/tokenization.v27.PathMetadata"},"symbol":{"description":"The symbol for this unit (e.g., \"BADGE\", \"nBADGE\"). Used for display purposes.","type":"string"}}},"tokenization.v27.DynamicStoreChallenge":{"description":"DynamicStoreChallenge defines a challenge that requires the initiator to pass a dynamic store check.","type":"object","properties":{"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"storeId":{"description":"The ID of the dynamic store to check.","type":"string"}}},"tokenization.v27.ETHSignatureChallenge":{"description":"ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge.\n\nAn ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce.\nThe signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId) and each signature can only be used once.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once.\nIf you update the challenge ID, then the used signatures tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this ETH signature challenge for tracking the number of uses per signature.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this ETH signature challenge.","type":"string"},"signer":{"description":"The Ethereum address that must sign the nonce for verification.","type":"string"},"uri":{"description":"The URI associated with this ETH signature challenge, optionally providing metadata about the challenge.","type":"string"}}},"tokenization.v27.ETHSignatureProof":{"description":"ETHSignatureProof represents an Ethereum signature proof for a challenge.","type":"object","properties":{"nonce":{"description":"The nonce that was signed. The signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId).","type":"string"},"signature":{"description":"The Ethereum signature of the nonce.","type":"string"}}},"tokenization.v27.EVMQueryChallenge":{"description":"EVMQueryChallenge defines a rule for approval via read-only EVM contract query.\n\nThe challenge executes a staticcall to the specified contract with the given calldata.\nThe result is compared against the expected result (if provided) or checked for non-zero return.\n\nIMPORTANT: This is read-only and cannot modify state. The query is executed with a gas limit\nto prevent DoS attacks. All results are deterministic since EVM state is consistent within a block.","type":"object","properties":{"calldata":{"type":"string","title":"ABI-encoded function selector + arguments (hex string without 0x prefix)\nExample: \"70a08231000000000000000000000000{address}\" for balanceOf(address)\nCan use placeholders: $initiator, $sender, $recipient (replaced at runtime)"},"comparisonOperator":{"description":"Comparison operator: \"eq\" (equals), \"ne\" (not equals), \"gt\" (greater than), \"gte\", \"lt\", \"lte\"\nOnly \"eq\" and \"ne\" work for non-numeric types. Default is \"eq\".","type":"string"},"contractAddress":{"type":"string","title":"The EVM contract address to query (0x format or bb1 format)"},"customData":{"type":"string","title":"Arbitrary custom data"},"expectedResult":{"description":"Expected return value (hex string without 0x prefix). If empty, any non-error result passes.\nFor boolean checks, use \"0000...0001\" for true.","type":"string"},"gasLimit":{"type":"string","title":"Gas limit for the query (default 100000, max 500000)"},"uri":{"type":"string","title":"The URI associated with this challenge (metadata)"}}},"tokenization.v27.IncomingApprovalCriteria":{"description":"IncomingApprovalCriteria defines the criteria for approving incoming transfers.\nThis is used for user-level incoming approvals and only includes fields relevant to incoming transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v27.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v27.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v27.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v27.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v27.PredeterminedBalances"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No recipient checks are included for incoming approvals since the recipient is the user themselves.","$ref":"#/definitions/tokenization.v27.AddressChecks"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.VotingChallenge"}}}},"tokenization.v27.IncrementedBalances":{"description":"IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method.","type":"object","properties":{"allowOverrideTimestamp":{"description":"Whether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set).","type":"boolean"},"allowOverrideWithAnyValidToken":{"type":"boolean","title":"Allow override of any valid ID"},"durationFromTimestamp":{"description":"The amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy.","type":"string"},"incrementOwnershipTimesBy":{"description":"The amount by which to increment ownership times. Incompatible with approveStartingFromNowBy.","type":"string"},"incrementTokenIdsBy":{"description":"The amount by which to increment token IDs.","type":"string"},"recurringOwnershipTimes":{"description":"Recurring ownership times.","$ref":"#/definitions/tokenization.v27.RecurringOwnershipTimes"},"startBalances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}}}},"tokenization.v27.InvariantsAddObject":{"description":"InvariantsAddObject is used for adding invariants without specifying addresses.\nAddresses are generated by the keeper and stored in the collection.","type":"object","properties":{"cosmosCoinBackedPath":{"description":"The IBC backed (sdk.coin) path for the collection. Only one path is allowed.\nAddress will be generated by the keeper.","$ref":"#/definitions/tokenization.v27.CosmosCoinBackedPathAddObject"},"disablePoolCreation":{"description":"If true, disallows pool creation with this collection's assets.\nWhen true, any attempt to create a pool with tokenization assets from this collection will fail.","type":"boolean"},"evmQueryChallenges":{"type":"array","title":"EVM query invariants that must pass after all transfers complete.\nThese are checked once per message after all balance updates, with access to ALL recipient addresses.\nPlaceholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient","items":{"type":"object","$ref":"#/definitions/tokenization.v27.EVMQueryChallenge"}},"maxSupplyPerId":{"description":"Maximum supply per token ID. Checked against Total address balances after transfers complete.\nA value of 0 means no limit (unlimited).","type":"string"},"noCustomOwnershipTimes":{"description":"If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }].\nThis prevents time-based restrictions on token ownership.","type":"boolean"},"noForcefulPostMintTransfers":{"description":"If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true.\nThis prevents forceful transfers that bypass user-level approvals.\nThis only applies to transfers where the from address does not equal \"Mint\".","type":"boolean"}}},"tokenization.v27.ManualBalances":{"description":"ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set.","type":"object","properties":{"balances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}}}},"tokenization.v27.MaxNumTransfers":{"description":"MaxNumTransfers defines the maximum number of transfers per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times\nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallMaxNumTransfers":{"description":"Overall maximum number of transfers.","type":"string"},"perFromAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"from\" address.","type":"string"},"perInitiatedByAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"initiated by\" address.","type":"string"},"perToAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v27.ResetTimeIntervals"}}},"tokenization.v27.MerkleChallenge":{"description":"Challenges define a rule for the approval in the form of a Merkle challenge.\n\nA Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof,\nthen the challenge is met. All challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials.\n\nIMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge.\nIf you update the challenge ID, then the used leaves tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this Merkle challenge for tracking the number of uses per leaf.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this Merkle challenge.","type":"string"},"expectedProofLength":{"description":"The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks.","type":"string"},"leafSigner":{"description":"Ethereum address that must sign the leaf. Used to protect against man-in-the-middle attacks.\nSignature scheme: sign(leaf + \"-\" + creatorAddress), verified using elliptic curve signature verification.","type":"string"},"maxUsesPerLeaf":{"description":"The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks.","type":"string"},"root":{"description":"The root hash of the Merkle tree to which the Merkle path must lead for verification.","type":"string"},"uri":{"description":"The URI associated with this Merkle challenge, optionally providing metadata about the challenge.","type":"string"},"useCreatorAddressAsLeaf":{"description":"If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses.","type":"boolean"}}},"tokenization.v27.MerklePathItem":{"description":"MerklePathItem represents an item in a Merkle path.","type":"object","properties":{"aunt":{"description":"The hash of the sibling node (aunt) in the Merkle path.","type":"string"},"onRight":{"description":"Indicates whether the aunt node is on the right side of the path.","type":"boolean"}}},"tokenization.v27.MerkleProof":{"description":"MerkleProof represents a Merkle proof, consistent with Tendermint/Crypto Merkle tree.","type":"object","properties":{"aunts":{"description":"List of Merkle path items (aunts) that make up the proof.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerklePathItem"}},"leaf":{"description":"The hash of the leaf node for which the proof is generated.","type":"string"},"leafSignature":{"description":"The signature of the leaf node tying the address to the leaf node.","type":"string"}}},"tokenization.v27.MsgCastVote":{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","type":"object","properties":{"approvalId":{"description":"The approval ID.","type":"string"},"approvalLevel":{"description":"The approval level (\"collection\", \"incoming\", or \"outgoing\").","type":"string"},"approverAddress":{"description":"The approver address (empty string for collection-level approvals).","type":"string"},"collectionId":{"description":"The collection ID for the voting challenge.","type":"string"},"creator":{"description":"The address of the voter casting the vote.","type":"string"},"proposalId":{"description":"The proposal ID (challenge ID) from the VotingChallenge.","type":"string"},"yesWeight":{"description":"The percentage weight (0-100) allocated to \"yes\" vote.\nThe remaining percentage (100 - yesWeight) is allocated to \"no\" vote.\nExample: yesWeight=70 means 70% yes, 30% no.","type":"string"}}},"tokenization.v27.MsgCastVoteResponse":{"type":"object"},"tokenization.v27.MsgCreateAddressLists":{"description":"MsgCreateAddressLists is used to create address lists.","type":"object","properties":{"addressLists":{"description":"Address lists to create. The createdBy field will be automatically set to the creator address.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.AddressListInput"}},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgCreateAddressListsResponse":{"description":"MsgCreateAddressListsResponse is the response to MsgCreateAddressLists.","type":"object"},"tokenization.v27.MsgCreateCollection":{"description":"MsgCreateCollection is used to create a new collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.AliasPathAddObject"}},"collectionApprovals":{"description":"Collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApproval"}},"collectionMetadata":{"description":"Collection metadata.","$ref":"#/definitions/tokenization.v27.CollectionMetadata"},"collectionPermissions":{"description":"Collection permissions.","$ref":"#/definitions/tokenization.v27.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v27.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v27.InvariantsAddObject"},"isArchived":{"description":"isArchived flag.","type":"boolean"},"manager":{"description":"Manager address.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"Standards entries.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"Token metadata entries.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenMetadata"}},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.MsgCreateCollectionResponse":{"description":"MsgCreateCollectionResponse is the response to MsgCreateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgCreateDynamicStore":{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The default value for uninitialized addresses (true/false).","type":"boolean"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v27.MsgCreateDynamicStoreResponse":{"description":"MsgCreateDynamicStoreResponse is the response to MsgCreateDynamicStore.","type":"object","properties":{"storeId":{"description":"ID of the dynamic store.","type":"string"}}},"tokenization.v27.MsgDeleteCollection":{"description":"MsgDeleteCollection is used to delete a collection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgDeleteCollectionResponse":{"description":"MsgDeleteCollectionResponse is the response to MsgDeleteCollection.","type":"object"},"tokenization.v27.MsgDeleteDynamicStore":{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store to delete.","type":"string"}}},"tokenization.v27.MsgDeleteDynamicStoreResponse":{"description":"MsgDeleteDynamicStoreResponse is the response to MsgDeleteDynamicStore.","type":"object"},"tokenization.v27.MsgDeleteIncomingApproval":{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgDeleteIncomingApprovalResponse":{"description":"MsgDeleteIncomingApprovalResponse is the response to MsgDeleteIncomingApproval.","type":"object"},"tokenization.v27.MsgDeleteOutgoingApproval":{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgDeleteOutgoingApprovalResponse":{"description":"MsgDeleteOutgoingApprovalResponse is the response to MsgDeleteOutgoingApproval.","type":"object"},"tokenization.v27.MsgPurgeApprovals":{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","type":"object","properties":{"approvalsToPurge":{"description":"Specific approvals to purge. If empty, purges all applicable approvals based on other flags.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ApprovalIdentifierDetails"}},"approverAddress":{"description":"Address of the user whose approvals to purge. If empty, defaults to creator.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"purgeCounterpartyApprovals":{"description":"Whether to purge counterparty approvals (approvals where the creator is the only initiator).","type":"boolean"},"purgeExpired":{"description":"Whether to purge expired approvals (approvals with no future valid transfer times).","type":"boolean"}}},"tokenization.v27.MsgPurgeApprovalsResponse":{"description":"MsgPurgeApprovalsResponse is the response to MsgPurgeApprovals.","type":"object","properties":{"numPurged":{"description":"Number of approvals purged.","type":"string"}}},"tokenization.v27.MsgSetCollectionApprovals":{"type":"object","title":"MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission","properties":{"canUpdateCollectionApprovals":{"type":"array","title":"Permission to update collection approvals","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApprovalPermission"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApproval"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgSetCollectionApprovalsResponse":{"description":"MsgSetCollectionApprovalsResponse is the response to MsgSetCollectionApprovals.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetCollectionMetadata":{"type":"object","title":"MsgSetCollectionMetadata sets the collection metadata and canUpdateCollectionMetadata permission","properties":{"canUpdateCollectionMetadata":{"type":"array","title":"Permission to update collection metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v27.CollectionMetadata"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgSetCollectionMetadataResponse":{"description":"MsgSetCollectionMetadataResponse is the response to MsgSetCollectionMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetCustomData":{"type":"object","title":"MsgSetCustomData sets the custom data and canUpdateCustomData permission","properties":{"canUpdateCustomData":{"type":"array","title":"Permission to update custom data","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"}}},"tokenization.v27.MsgSetCustomDataResponse":{"description":"MsgSetCustomDataResponse is the response to MsgSetCustomData.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetDynamicStoreValue":{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","type":"object","properties":{"address":{"description":"The address for which to set the value.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store.","type":"string"},"value":{"description":"The boolean value to set (true/false).","type":"boolean"}}},"tokenization.v27.MsgSetDynamicStoreValueResponse":{"description":"MsgSetDynamicStoreValueResponse is the response to MsgSetDynamicStoreValue.","type":"object"},"tokenization.v27.MsgSetIncomingApproval":{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","type":"object","properties":{"approval":{"description":"The incoming approval to set.","$ref":"#/definitions/tokenization.v27.UserIncomingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgSetIncomingApprovalResponse":{"description":"MsgSetIncomingApprovalResponse is the response to MsgSetIncomingApproval.","type":"object"},"tokenization.v27.MsgSetIsArchived":{"type":"object","title":"MsgSetIsArchived sets the isArchived and canArchiveCollection permission","properties":{"canArchiveCollection":{"type":"array","title":"Permission to archive collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"isArchived":{"description":"New isArchived to set.","type":"boolean"}}},"tokenization.v27.MsgSetIsArchivedResponse":{"description":"MsgSetIsArchivedResponse is the response to MsgSetIsArchived.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetManager":{"type":"object","title":"MsgSetManager sets the manager and canUpdateManager permission","properties":{"canUpdateManager":{"type":"array","title":"Permission to update manager","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"manager":{"description":"New manager to set.","type":"string"}}},"tokenization.v27.MsgSetManagerResponse":{"description":"MsgSetManagerResponse is the response to MsgSetManager.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetOutgoingApproval":{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","type":"object","properties":{"approval":{"description":"The outgoing approval to set.","$ref":"#/definitions/tokenization.v27.UserOutgoingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v27.MsgSetOutgoingApprovalResponse":{"description":"MsgSetOutgoingApprovalResponse is the response to MsgSetOutgoingApproval.","type":"object"},"tokenization.v27.MsgSetReservedProtocolAddress":{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","type":"object","properties":{"address":{"description":"Address to set or unset as reserved protocol address.","type":"string"},"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"isReservedProtocol":{"description":"Whether the address should be a reserved protocol address (true) or not (false).","type":"boolean"}}},"tokenization.v27.MsgSetReservedProtocolAddressResponse":{"description":"MsgSetReservedProtocolAddressResponse is the response to MsgSetReservedProtocolAddress.","type":"object"},"tokenization.v27.MsgSetStandards":{"type":"object","title":"MsgSetStandards sets the standards and canUpdateStandards permission","properties":{"canUpdateStandards":{"type":"array","title":"Permission to update standards","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}}}},"tokenization.v27.MsgSetStandardsResponse":{"description":"MsgSetStandardsResponse is the response to MsgSetStandards.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetTokenMetadata":{"type":"object","title":"MsgSetTokenMetadata sets the token metadata and canUpdateTokenMetadata permission","properties":{"canUpdateTokenMetadata":{"type":"array","title":"Permission to update token metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenMetadata"}}}},"tokenization.v27.MsgSetTokenMetadataResponse":{"description":"MsgSetTokenMetadataResponse is the response to MsgSetTokenMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgSetValidTokenIds":{"type":"object","title":"MsgSetValidTokenIds sets the validTokenIds and canUpdateValidTokenIds permission","properties":{"canUpdateValidTokenIds":{"type":"array","title":"Permission to update valid token IDs","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.MsgSetValidTokenIdsResponse":{"description":"MsgSetValidTokenIdsResponse is the response to MsgSetValidTokenIds.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgTransferTokens":{"description":"MsgTransferTokens is used to transfer tokens.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"transfers":{"description":"Transfers to execute.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Transfer"}}}},"tokenization.v27.MsgTransferTokensResponse":{"description":"MsgTransferTokensResponse is the response to MsgTransferTokens.","type":"object"},"tokenization.v27.MsgUniversalUpdateCollection":{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v27.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v27.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v27.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v27.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.MsgUniversalUpdateCollectionResponse":{"description":"MsgUniversalUpdateCollectionResponse is the response to MsgUniversalUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgUpdateCollection":{"description":"MsgUpdateCollection is used to update a collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v27.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v27.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v27.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.MsgUpdateCollectionResponse":{"description":"MsgUpdateCollectionResponse is the response to MsgUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v27.MsgUpdateDynamicStore":{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The new default value for uninitialized addresses (true/false).","type":"boolean"},"globalEnabled":{"description":"The global kill switch state (true = enabled, false = disabled/halted).\nCallers should query the current value first if they want to keep it unchanged.","type":"boolean"},"storeId":{"description":"ID of the dynamic store to update.","type":"string"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v27.MsgUpdateDynamicStoreResponse":{"description":"MsgUpdateDynamicStoreResponse is the response to MsgUpdateDynamicStore.","type":"object"},"tokenization.v27.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/tokenization.v27.Params"}}},"tokenization.v27.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"tokenization.v27.MsgUpdateUserApprovals":{"description":"MsgUpdateUserApprovals is used to update user approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Auto-approve setting for all incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Auto-approve setting for self-initiated incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Auto-approve setting for self-initiated outgoing transfers.","type":"boolean"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"incomingApprovals":{"description":"New incoming approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserIncomingApproval"}},"outgoingApprovals":{"description":"New outgoing approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserOutgoingApproval"}},"updateAutoApproveAllIncomingTransfers":{"description":"Indicates if auto-approve settings for all incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Indicates if auto-approve settings for self-initiated incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Indicates if auto-approve settings for self-initiated outgoing transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIncomingApprovals":{"description":"Indicates if incoming approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateOutgoingApprovals":{"description":"Indicates if outgoing approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateUserPermissions":{"description":"Indicates if user permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"userPermissions":{"description":"New user permissions to set.","$ref":"#/definitions/tokenization.v27.UserPermissions"}}},"tokenization.v27.MsgUpdateUserApprovalsResponse":{"description":"MsgUpdateUserApprovalsResponse is the response to MsgUpdateUserApprovals.","type":"object"},"tokenization.v27.MustOwnTokens":{"description":"MustOwnTokens represents a condition where a user must own specific tokens\nto be approved to transfer.\n\n- collectionId: The ID of the collection for the tokens that must be owned\n- amountRange: The range of amounts the user must own (min to max)\n- ownershipTimes: The time ranges during which the user must own the tokens.\n- tokenIds: The token IDs the user must own.\n- overrideWithCurrentTime: If true, auto override ownershipTimes with the current time.\n- mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for \u003e= 1 millisecond is sufficient.","type":"object","properties":{"amountRange":{"description":"The range of amounts the user must own (min to max).","$ref":"#/definitions/tokenization.v27.UintRange"},"collectionId":{"description":"The ID of the collection.","type":"string"},"mustSatisfyForAllAssets":{"description":"If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token.","type":"boolean"},"overrideWithCurrentTime":{"description":"If true, override ownershipTimes with the current time.","type":"boolean"},"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user must own the tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"The token IDs the user must own.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.OutgoingApprovalCriteria":{"description":"OutgoingApprovalCriteria defines the criteria for approving outgoing transfers.\nThis is used for user-level outgoing approvals and only includes fields relevant to outgoing transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v27.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v27.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v27.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v27.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v27.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v27.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No sender checks are included for outgoing approvals since the sender is the user themselves.","$ref":"#/definitions/tokenization.v27.AddressChecks"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.VotingChallenge"}}}},"tokenization.v27.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"affiliate_percentage":{"type":"string","title":"affiliate_percentage defines the percentage of the transfer amount that goes to the affiliate"},"allowed_denoms":{"type":"array","title":"allowed_denoms defines the list of denoms that are allowed to be used in coin_transfers","items":{"type":"string"}}}},"tokenization.v27.PathMetadata":{"description":"This message defines the metadata for paths (alias paths and cosmos coin wrapper paths).\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the path metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the path metadata.","type":"string"}}},"tokenization.v27.PrecalculateBalancesFromApprovalDetails":{"description":"PrecalculateBalancesFromApprovalDetails defines the details for precalculating balances from an approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"precalculationOptions":{"description":"The options for precalculating the balances.","$ref":"#/definitions/tokenization.v27.PrecalculationOptions"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v27.PrecalculationOptions":{"description":"PrecalculationOptions defines the options for precalculating the balances.","type":"object","properties":{"overrideTimestamp":{"description":"The timestamp to override with when calculating the balances.","type":"string"},"tokenIdsOverride":{"description":"The IDs to override for the transfer. Only applicable if using this option in precalculation.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.PredeterminedBalances":{"description":"PredeterminedBalances represents balances with predetermined order calculation.","type":"object","properties":{"incrementedBalances":{"description":"Balances that have a starting amount and increment. If this is nil, then we use the manual balances.","$ref":"#/definitions/tokenization.v27.IncrementedBalances"},"manualBalances":{"description":"Manual balances that can be entered. If this is nil, then we use the incremented balances.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ManualBalances"}},"orderCalculationMethod":{"description":"The method to calculate the order of predetermined balances.","$ref":"#/definitions/tokenization.v27.PredeterminedOrderCalculationMethod"}}},"tokenization.v27.PredeterminedOrderCalculationMethod":{"description":"PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order.","type":"object","properties":{"challengeTrackerId":{"description":"If useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method.","type":"string"},"useMerkleChallengeLeafIndex":{"description":"Use the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc.","type":"boolean"},"useOverallNumTransfers":{"description":"Use the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc.","type":"boolean"},"usePerFromAddressNumTransfers":{"description":"Use the number of transfers per \"from\" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc.","type":"boolean"},"usePerInitiatedByAddressNumTransfers":{"description":"Use the number of transfers per \"initiated by\" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc.","type":"boolean"},"usePerToAddressNumTransfers":{"description":"Use the number of transfers per \"to\" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc.","type":"boolean"}}},"tokenization.v27.RecurringOwnershipTimes":{"description":"RecurringOwnershipTimes represents a list of recurring ownership times.","type":"object","properties":{"chargePeriodLength":{"type":"string","title":"Grace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period"},"intervalLength":{"description":"The interval length in unix milliseconds.","type":"string"},"startTime":{"description":"The original start time of the first interval.","type":"string"}}},"tokenization.v27.ResetTimeIntervals":{"description":"Time intervals to reset the trackers at.","type":"object","properties":{"intervalLength":{"description":"Interval length in unix milliseconds.","type":"string"},"startTime":{"description":"Original start time of the first interval.","type":"string"}}},"tokenization.v27.TokenIdsActionPermission":{"description":"TokenIdsActionPermission defines the permissions for performing an action for specific tokens.\nCurrently, this is only used for creating new tokens.\n\nEx: If you want to lock the ability to create new tokens for tokenIds [1,2] at ownershipTimes 1/1/2020 - 1/1/2021, \nyou could set the combination (tokenIds: [1,2], ownershipTimes: [1/1/2020 - 1/1/2021]) to always be forbidden.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.TokenMetadata":{"description":"This message defines the metadata for specific token IDs.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the token metadata.","type":"string"},"tokenIds":{"description":"The token IDs to which this metadata applies.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the token metadata.","type":"string"}}},"tokenization.v27.Transfer":{"description":"Transfer defines the details of a transfer of tokens.","type":"object","properties":{"balances":{"description":"The balances to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}},"ethSignatureProofs":{"description":"The ETH signature proofs / solutions for all ETH signature challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ETHSignatureProof"}},"from":{"description":"The address of the sender of the transfer.","type":"string"},"memo":{"description":"The memo for the transfer.","type":"string"},"merkleProofs":{"description":"The Merkle proofs / solutions for all Merkle challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.MerkleProof"}},"onlyCheckPrioritizedCollectionApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedIncomingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedOutgoingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"precalculateBalancesFromApproval":{"description":"If defined, we will use the predeterminedBalances from the specified approval to calculate the balances at execution time.\nWe will override the balances field with the precalculated balances. Only applicable for approvals with predeterminedBalances set.","$ref":"#/definitions/tokenization.v27.PrecalculateBalancesFromApprovalDetails"},"prioritizedApprovals":{"description":"The prioritized approvals for the transfer. By default, we scan linearly through the approvals and use the first match.\nThis field can be used to prioritize specific approvals and scan through them first.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ApprovalIdentifierDetails"}},"toAddresses":{"description":"The addresses of the recipients of the transfer.","type":"array","items":{"type":"string"}}}},"tokenization.v27.UintRange":{"description":"The UintRange is a range of IDs from some start to some end (inclusive).\nuintRanges are one of the core types used.\n\nThey are used for everything from token IDs to time ranges to min/max balance amounts.\n\nSee the BitBadges documentation for more information.","type":"object","properties":{"end":{"description":"The ending value of the range (inclusive).","type":"string"},"start":{"description":"The starting value of the range (inclusive).","type":"string"}}},"tokenization.v27.UserBalanceStore":{"description":"UserBalanceStore is the store for the user balances for a collection.\n\nIt consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers,\nas well as the permissions for updating the approved incoming/outgoing transfers.\n\nUpon initialization, all fields (minus the balances) are set to the defaults specified by the collection.\n\nThe outgoing transfers can be used to allow / disallow transfers which are sent from this user.\nIf a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedOutgoingTransfers is set to true.\n\nThe incoming transfers can be used to allow / disallow transfers which are sent to this user.\nIf a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedIncomingTransfers is set to true.\n\nNote that the user approved transfers are only checked if the collection approved transfers do not specify to override\nthe user approved transfers. \n\nThe permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Whether to auto-approve all incoming transfers by default. \nThis is just shorthand for adding an accept everything incoming approval\nwith no restrictions.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Whether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy).","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Whether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy).","type":"boolean"},"balances":{"description":"The list of balances associated with this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Balance"}},"incomingApprovals":{"description":"The list of approved incoming transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserIncomingApproval"}},"outgoingApprovals":{"description":"The list of approved outgoing transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserOutgoingApproval"}},"userPermissions":{"description":"The permissions for this user's actions and transfers.","$ref":"#/definitions/tokenization.v27.UserPermissions"}}},"tokenization.v27.UserIncomingApproval":{"description":"UserIncomingApproval defines the rules for the approval of an incoming transfer to a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v27.IncomingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v27.UserIncomingApprovalPermission":{"description":"UserIncomingApprovalPermission defines the permissions for updating the user's approved incoming transfers.\n\nSee CollectionApprovalPermission for more details. This is equivalent without the toListId field because that is always the user.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.UserOutgoingApproval":{"description":"UserOutgoingApproval defines the rules for the approval of an outgoing transfer from a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v27.OutgoingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v27.UserOutgoingApprovalPermission":{"description":"UserOutgoingApprovalPermission defines the permissions for updating the user's approved outgoing transfers.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UintRange"}}}},"tokenization.v27.UserPermissions":{"description":"UserPermissions defines the permissions for the user about their approvals (i.e., what the user can and cannot do).\n\nSee CollectionPermissions for more details on the different types of permissions.\n\ncanUpdateOutgoingApprovals and canUpdateOutgoingApprovals follow the same as the canUpdateCollectionApprovals in CollectionPermissions,\nbut certain fields are removed because they are not relevant to the user.","type":"object","properties":{"canUpdateAutoApproveAllIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for all incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated outgoing transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.ActionPermission"}},"canUpdateIncomingApprovals":{"description":"Permissions related to updating the user's approved incoming transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserIncomingApprovalPermission"}},"canUpdateOutgoingApprovals":{"description":"Permissions related to updating the user's approved outgoing transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.UserOutgoingApprovalPermission"}}}},"tokenization.v27.UserRoyalties":{"description":"UserRoyalties defines the royalties for a user.","type":"object","properties":{"payoutAddress":{"description":"Payout address for the royalties.","type":"string"},"percentage":{"description":"Percentage of the transfer amount to apply as royalties. 1 to 10000 represents basis points.","type":"string"}}},"tokenization.v27.Voter":{"description":"Voter defines a voter with their address and weight.","type":"object","properties":{"address":{"description":"The address of the voter.","type":"string"},"weight":{"description":"The weight of this voter's vote.","type":"string"}}},"tokenization.v27.VotingChallenge":{"description":"VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge.\nRequires a weighted quorum threshold to be met through votes from specified voters.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage\nof total possible weight (all voters), not just voted weight. If you update the proposal ID, then the\nvote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge\nto prevent overlap and unexpected behavior.","type":"object","properties":{"customData":{"description":"Arbitrary custom data associated with this voting challenge.","type":"string"},"proposalId":{"type":"string","title":"The ID of this voting challenge for tracking votes (scoped like challengeTrackerId).\nFormat: collectionId-approverAddress-approvalLevel-approvalId-challengeId"},"quorumThreshold":{"description":"The quorum threshold as a percentage (0-100) of total possible weight that must vote \"yes\".\nExample: 50 means 50% of total voter weight must vote yes for approval.","type":"string"},"uri":{"description":"The URI associated with this voting challenge.","type":"string"},"voters":{"description":"List of voters with their weights. Each voter can cast a weighted vote.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v27.Voter"}}}},"tokenization.v28.ActionPermission":{"description":"ActionPermission defines the permissions for performing an action.\n\nThis is simple and straightforward as the only thing we need to check is the permitted/forbidden times.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.AddressChecks":{"type":"object","title":"AddressChecks defines checks for address types (EVM contract, liquidity pool, etc.)","properties":{"mustBeEvmContract":{"description":"Require the address to be an EVM contract (has code).","type":"boolean"},"mustBeLiquidityPool":{"description":"Require the address to be a liquidity pool.","type":"boolean"},"mustNotBeEvmContract":{"description":"Require the address to not be an EVM contract (no code).","type":"boolean"},"mustNotBeLiquidityPool":{"description":"Require the address to not be a liquidity pool.","type":"boolean"}}},"tokenization.v28.AddressListInput":{"description":"AddressListInput is used for creating address lists via MsgCreateAddressLists.\nIt contains all fields from AddressList except createdBy, which is automatically set from the message creator.","type":"object","properties":{"addresses":{"description":"List of addresses included in the list.","type":"array","items":{"type":"string"}},"customData":{"description":"Custom arbitrary data or additional information related to the address list.","type":"string"},"listId":{"description":"Unique identifier for the address list.","type":"string"},"uri":{"description":"URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable.","type":"string"},"whitelist":{"description":"Indicates whether the list includes the specified addresses (true) or excludes them (false).","type":"boolean"}}},"tokenization.v28.AliasPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v28.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DenomUnit"}},"metadata":{"description":"The metadata for this alias path.","$ref":"#/definitions/tokenization.v28.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v28.AltTimeChecks":{"type":"object","title":"AltTimeChecks defines alternative time-based checks for approval denial.\nIf the transfer time falls within any of the specified offline hours or days, the approval is denied.\nUses UTC timezone for neutral timezone approach.\nofflineHours: ranges of hours (0-23) when transfers should be denied\nofflineDays: ranges of days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied","properties":{"offlineDays":{"description":"Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied. Uses UTC timezone.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"offlineHours":{"description":"Hours (0-23) when transfers should be denied. Uses UTC timezone.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.ApprovalAmounts":{"description":"ApprovalAmounts defines approval amounts per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times \nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallApprovalAmount":{"description":"Overall approval amount.","type":"string"},"perFromAddressApprovalAmount":{"description":"Approval amount per \"from\" address.","type":"string"},"perInitiatedByAddressApprovalAmount":{"description":"Approval amount per \"initiated by\" address.","type":"string"},"perToAddressApprovalAmount":{"description":"Approval amount per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v28.ResetTimeIntervals"}}},"tokenization.v28.ApprovalCriteria":{"description":"ApprovalCriteria defines the criteria for approving transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"allowBackedMinting":{"description":"If true, this collection approval allows backed minting operations (CosmosCoinBackedPath).\nWhen false, this approval cannot be used for transfers involving backed minting addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"allowSpecialWrapping":{"description":"If true, this collection approval allows special wrapping operations (CosmosCoinWrapperPath).\nWhen false, this approval cannot be used for transfers involving wrapping addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v28.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v28.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v28.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v28.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"overridesFromOutgoingApprovals":{"description":"Overrides the user's outgoing approvals for approval. If true, this collection-level approval\ntakes precedence over any outgoing approvals defined by the sender, allowing the collection to\ncontrol outgoing transfer behavior.","type":"boolean"},"overridesToIncomingApprovals":{"description":"Overrides the user's incoming approvals for approval. If true, this collection-level approval\ntakes precedence over any incoming approvals defined by the recipient, allowing the collection to\ncontrol incoming transfer behavior.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v28.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"userRoyalties":{"description":"User level royalties to apply to the transfer. Defines the percentage and payout address for\nroyalties that should be collected when this approval is used for a transfer.","$ref":"#/definitions/tokenization.v28.UserRoyalties"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.VotingChallenge"}}}},"tokenization.v28.ApprovalIdentifierDetails":{"description":"ApprovalIdentifierDetails defines the details to identify a specific approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v28.AutoDeletionOptions":{"description":"AutoDeletionOptions defines the options for auto-deletion of approvals.","type":"object","properties":{"afterOneUse":{"type":"boolean","title":"After one use?"},"afterOverallMaxNumTransfers":{"type":"boolean","title":"After overall max number of uses threshold is met?"},"allowCounterpartyPurge":{"type":"boolean","title":"Allow counterparty to purge this approval if they are the only initiator"},"allowPurgeIfExpired":{"type":"boolean","title":"Allow others to call PurgeApprovals on behalf of this approval owner"}}},"tokenization.v28.Balance":{"description":"Balance represents the balance of a token for a specific user.\nThe user amounts xAmount of a token specified for the time ranges specified.\n\nExample: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021.\n\nIf times or tokenIDs have len \u003e 1, then the user owns all token IDs specified for all time ranges specified.","type":"object","properties":{"amount":{"description":"The amount of the token owned by the user.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"The token IDs for which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.CoinTransfer":{"type":"object","properties":{"coins":{"description":"The sdk.Coins to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"overrideFromWithApproverAddress":{"description":"By default, the from address is the initiator of the transaction.\nIf this is set to true, we will override the from address with the approver address.\nNote: This is not applicable for collection approvals (since approverAddress == '').","type":"boolean"},"overrideToWithInitiator":{"description":"By default, the to address is what is specified in the coin transfer.\nIf this is set to true, we will override the to address with the initiator of the transaction.","type":"boolean"},"to":{"description":"The address of the recipient of the transfer.","type":"string"}}},"tokenization.v28.CollectionApproval":{"type":"object","title":"CollectionApproval defines the rules for the approval of a transfer on the collection level","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v28.ApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v28.CollectionApprovalPermission":{"description":"CollectionApprovalPermission defines what collection approved transfers can be updated vs. are locked.\n\nEach transfer is broken down to a (from, to, initiatedBy, transferTime, tokenId) tuple.\nFor a transfer to match, we need to match ALL of the fields in the combination. \nThese are determined by the fromListId, toListId, initiatedByListId, transferTimes, tokenIds fields.\nAddressLists are used for (from, to, initiatedBy) which are a permanent list of addresses identified by an ID (see AddressLists). \n\npermanentlyPermitted/ForbiddenTimes: when can the manager execute this permission?\n\nEx: Let's say we are updating the transferability for the transfer tuple (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", 10, 1000).\nWe would check to find the FIRST CollectionApprovalPermission that matches this combination.\nIf we find a match, we would check the permitted/forbidden times to see if we can execute this permission (default is ALLOWED).\n\nEx: So if you wanted to freeze the transferability to enforce that token ID 1 will always be transferable, you could set\nthe combination (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", \"All Transfer Times\", 1) to always be forbidden.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.CollectionMetadata":{"description":"This message defines the metadata for the collection.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the collection metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the collection metadata.","type":"string"}}},"tokenization.v28.CollectionPermissions":{"description":"CollectionPermissions defines the permissions for the collection (i.e., what the manager can and cannot do).\n\nThere are three types of permissions for a collection: ActionPermission, TokenIdsActionPermission, and CollectionApprovalPermission.\n\nThe permission type allows fine-grained access control for each action.\n- ActionPermission: defines when the manager can perform an action or update a field.\n- TokenIdsActionPermission: defines when the manager can perform an action for specific tokens\n- CollectionApprovalPermission: defines when the manager can update the transferability of the collection and what transfers can be updated vs. locked.\n\nNote there are a few different times here which could get confusing:\n- permanentlyPermitted/ForbiddenTimes - the times that a permission can be performed\n- transferTimes - the times that a transfer occurs\n- ownershipTimes - the times when a token is owned by a user\n\nThe permitted/permanentlyForbiddenTimes are used to determine when a permission can be executed.\nOnce a time is set to be permitted or forbidden, it is PERMANENT and cannot be changed.\nIf a time is not set to be permitted or forbidden, it is considered NEUTRAL and can be updated but is ALLOWED by default.\n\nIMPORTANT: We take first-match only for the permissions. This means that if you forbid time T in array index 0 and permit time T in index 1, \nwe will only check the first permission (forbid time T) and not the second permission (permit time T).","type":"object","properties":{"canAddMoreAliasPaths":{"description":"Permissions related to adding more alias paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canAddMoreCosmosCoinWrapperPaths":{"description":"Permissions related to adding more cosmos coin wrapper paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canArchiveCollection":{"description":"Permissions related to archiving the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canDeleteCollection":{"description":"Permissions related to deleting the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateCollectionApprovals":{"description":"Permissions related to updating collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApprovalPermission"}},"canUpdateCollectionMetadata":{"description":"Permissions related to updating the metadata of the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateCustomData":{"description":"Permissions related to updating custom data for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateManager":{"description":"Permissions related to updating the collection's manager.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateStandards":{"description":"Permissions related to updating standards for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateTokenMetadata":{"description":"Permissions related to updating token metadata for specific tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenIdsActionPermission"}},"canUpdateValidTokenIds":{"description":"Permissions related to creating more tokens for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenIdsActionPermission"}}}},"tokenization.v28.Conversion":{"description":"Conversion defines a bidirectional conversion between a cosmos coin (with denom) and token balances.","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin side of the conversion (amount + denom).","$ref":"#/definitions/tokenization.v28.ConversionSideAWithDenom"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}}}},"tokenization.v28.ConversionSideA":{"description":"ConversionSideA represents the cosmos coin amount side of a conversion without denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"}}},"tokenization.v28.ConversionSideAWithDenom":{"description":"ConversionSideAWithDenom represents the cosmos coin side of a conversion with denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"},"denom":{"description":"The denomination of the cosmos coin.","type":"string"}}},"tokenization.v28.ConversionWithoutDenom":{"description":"ConversionWithoutDenom defines a bidirectional conversion between a cosmos coin amount (without denom) and token balances.\nThe denom is stored at the base level (e.g., in AliasPath or CosmosCoinWrapperPath).","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin amount side of the conversion (amount only, denom stored separately).","$ref":"#/definitions/tokenization.v28.ConversionSideA"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}}}},"tokenization.v28.CosmosCoinBackedPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v28.Conversion"}}},"tokenization.v28.CosmosCoinWrapperPathAddObject":{"type":"object","properties":{"allowOverrideWithAnyValidToken":{"type":"boolean"},"conversion":{"$ref":"#/definitions/tokenization.v28.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DenomUnit"}},"metadata":{"description":"The metadata for this wrapper path.","$ref":"#/definitions/tokenization.v28.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v28.DenomUnit":{"type":"object","properties":{"decimals":{"description":"The number of decimal places for this unit. Defines the precision of the unit.","type":"string"},"isDefaultDisplay":{"description":"If true, this is the default display unit. Only one unit should be marked as the default display unit.\nThis unit will be used by default when displaying the coin amount. If none are marked default, we use the base level.","type":"boolean"},"metadata":{"description":"The metadata for this denomination unit.","$ref":"#/definitions/tokenization.v28.PathMetadata"},"symbol":{"description":"The symbol for this unit (e.g., \"BADGE\", \"nBADGE\"). Used for display purposes.","type":"string"}}},"tokenization.v28.DynamicStoreChallenge":{"description":"DynamicStoreChallenge defines a challenge that requires the initiator to pass a dynamic store check.","type":"object","properties":{"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"storeId":{"description":"The ID of the dynamic store to check.","type":"string"}}},"tokenization.v28.ETHSignatureChallenge":{"description":"ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge.\n\nAn ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce.\nThe signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId) and each signature can only be used once.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once.\nIf you update the challenge ID, then the used signatures tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this ETH signature challenge for tracking the number of uses per signature.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this ETH signature challenge.","type":"string"},"signer":{"description":"The Ethereum address that must sign the nonce for verification.","type":"string"},"uri":{"description":"The URI associated with this ETH signature challenge, optionally providing metadata about the challenge.","type":"string"}}},"tokenization.v28.ETHSignatureProof":{"description":"ETHSignatureProof represents an Ethereum signature proof for a challenge.","type":"object","properties":{"nonce":{"description":"The nonce that was signed. The signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId).","type":"string"},"signature":{"description":"The Ethereum signature of the nonce.","type":"string"}}},"tokenization.v28.EVMQueryChallenge":{"description":"EVMQueryChallenge defines a rule for approval via read-only EVM contract query.\n\nThe challenge executes a staticcall to the specified contract with the given calldata.\nThe result is compared against the expected result (if provided) or checked for non-zero return.\n\nIMPORTANT: This is read-only and cannot modify state. The query is executed with a gas limit\nto prevent DoS attacks. All results are deterministic since EVM state is consistent within a block.","type":"object","properties":{"calldata":{"type":"string","title":"ABI-encoded function selector + arguments (hex string without 0x prefix)\nExample: \"70a08231000000000000000000000000{address}\" for balanceOf(address)\nCan use placeholders: $initiator, $sender, $recipient (replaced at runtime)"},"comparisonOperator":{"description":"Comparison operator: \"eq\" (equals), \"ne\" (not equals), \"gt\" (greater than), \"gte\", \"lt\", \"lte\"\nOnly \"eq\" and \"ne\" work for non-numeric types. Default is \"eq\".","type":"string"},"contractAddress":{"type":"string","title":"The EVM contract address to query (0x format or bb1 format)"},"customData":{"type":"string","title":"Arbitrary custom data"},"expectedResult":{"description":"Expected return value (hex string without 0x prefix). If empty, any non-error result passes.\nFor boolean checks, use \"0000...0001\" for true.","type":"string"},"gasLimit":{"type":"string","title":"Gas limit for the query (default 100000, max 500000)"},"uri":{"type":"string","title":"The URI associated with this challenge (metadata)"}}},"tokenization.v28.IncomingApprovalCriteria":{"description":"IncomingApprovalCriteria defines the criteria for approving incoming transfers.\nThis is used for user-level incoming approvals and only includes fields relevant to incoming transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v28.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v28.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v28.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v28.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v28.PredeterminedBalances"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No recipient checks are included for incoming approvals since the recipient is the user themselves.","$ref":"#/definitions/tokenization.v28.AddressChecks"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.VotingChallenge"}}}},"tokenization.v28.IncrementedBalances":{"description":"IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method.","type":"object","properties":{"allowAmountScaling":{"description":"When true, the actual transfer can be any evenly divisible integer multiple (\u003e=1x) of startBalances.\napprovalCriteria.coinTransfers are scaled by the same multiplier.\nAll other IncrementedBalances fields must be zero/false/nil when this is true.","type":"boolean"},"allowOverrideTimestamp":{"description":"Whether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set).","type":"boolean"},"allowOverrideWithAnyValidToken":{"type":"boolean","title":"Allow override of any valid ID"},"durationFromTimestamp":{"description":"The amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy.","type":"string"},"incrementOwnershipTimesBy":{"description":"The amount by which to increment ownership times. Incompatible with approveStartingFromNowBy.","type":"string"},"incrementTokenIdsBy":{"description":"The amount by which to increment token IDs.","type":"string"},"maxScalingMultiplier":{"description":"Maximum allowed scaling multiplier. Must be \u003e 0 when allowAmountScaling is true.\nThe chain rejects transfers where the computed multiplier exceeds this cap.\nIgnored (set to \"0\") when allowAmountScaling is false.","type":"string"},"recurringOwnershipTimes":{"description":"Recurring ownership times.","$ref":"#/definitions/tokenization.v28.RecurringOwnershipTimes"},"startBalances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}}}},"tokenization.v28.InvariantsAddObject":{"description":"InvariantsAddObject is used for adding invariants without specifying addresses.\nAddresses are generated by the keeper and stored in the collection.","type":"object","properties":{"cosmosCoinBackedPath":{"description":"The IBC backed (sdk.coin) path for the collection. Only one path is allowed.\nAddress will be generated by the keeper.","$ref":"#/definitions/tokenization.v28.CosmosCoinBackedPathAddObject"},"disablePoolCreation":{"description":"If true, disallows pool creation with this collection's assets.\nWhen true, any attempt to create a pool with tokenization assets from this collection will fail.","type":"boolean"},"evmQueryChallenges":{"type":"array","title":"EVM query invariants that must pass after all transfers complete.\nThese are checked once per message after all balance updates, with access to ALL recipient addresses.\nPlaceholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient","items":{"type":"object","$ref":"#/definitions/tokenization.v28.EVMQueryChallenge"}},"maxSupplyPerId":{"description":"Maximum supply per token ID. Checked against Total address balances after transfers complete.\nA value of 0 means no limit (unlimited).","type":"string"},"noCustomOwnershipTimes":{"description":"If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }].\nThis prevents time-based restrictions on token ownership.","type":"boolean"},"noForcefulPostMintTransfers":{"description":"If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true.\nThis prevents forceful transfers that bypass user-level approvals.\nThis only applies to transfers where the from address does not equal \"Mint\".","type":"boolean"}}},"tokenization.v28.ManualBalances":{"description":"ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set.","type":"object","properties":{"balances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}}}},"tokenization.v28.MaxNumTransfers":{"description":"MaxNumTransfers defines the maximum number of transfers per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times\nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallMaxNumTransfers":{"description":"Overall maximum number of transfers.","type":"string"},"perFromAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"from\" address.","type":"string"},"perInitiatedByAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"initiated by\" address.","type":"string"},"perToAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v28.ResetTimeIntervals"}}},"tokenization.v28.MerkleChallenge":{"description":"Challenges define a rule for the approval in the form of a Merkle challenge.\n\nA Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof,\nthen the challenge is met. All challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials.\n\nIMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge.\nIf you update the challenge ID, then the used leaves tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this Merkle challenge for tracking the number of uses per leaf.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this Merkle challenge.","type":"string"},"expectedProofLength":{"description":"The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks.","type":"string"},"leafSigner":{"description":"Ethereum address that must sign the leaf. Used to protect against man-in-the-middle attacks.\nSignature scheme: sign(leaf + \"-\" + creatorAddress), verified using elliptic curve signature verification.","type":"string"},"maxUsesPerLeaf":{"description":"The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks.","type":"string"},"root":{"description":"The root hash of the Merkle tree to which the Merkle path must lead for verification.","type":"string"},"uri":{"description":"The URI associated with this Merkle challenge, optionally providing metadata about the challenge.","type":"string"},"useCreatorAddressAsLeaf":{"description":"If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses.","type":"boolean"}}},"tokenization.v28.MerklePathItem":{"description":"MerklePathItem represents an item in a Merkle path.","type":"object","properties":{"aunt":{"description":"The hash of the sibling node (aunt) in the Merkle path.","type":"string"},"onRight":{"description":"Indicates whether the aunt node is on the right side of the path.","type":"boolean"}}},"tokenization.v28.MerkleProof":{"description":"MerkleProof represents a Merkle proof, consistent with Tendermint/Crypto Merkle tree.","type":"object","properties":{"aunts":{"description":"List of Merkle path items (aunts) that make up the proof.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerklePathItem"}},"leaf":{"description":"The hash of the leaf node for which the proof is generated.","type":"string"},"leafSignature":{"description":"The signature of the leaf node tying the address to the leaf node.","type":"string"}}},"tokenization.v28.MsgCastVote":{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","type":"object","properties":{"approvalId":{"description":"The approval ID.","type":"string"},"approvalLevel":{"description":"The approval level (\"collection\", \"incoming\", or \"outgoing\").","type":"string"},"approverAddress":{"description":"The approver address (empty string for collection-level approvals).","type":"string"},"collectionId":{"description":"The collection ID for the voting challenge.","type":"string"},"creator":{"description":"The address of the voter casting the vote.","type":"string"},"proposalId":{"description":"The proposal ID (challenge ID) from the VotingChallenge.","type":"string"},"yesWeight":{"description":"The percentage weight (0-100) allocated to \"yes\" vote.\nThe remaining percentage (100 - yesWeight) is allocated to \"no\" vote.\nExample: yesWeight=70 means 70% yes, 30% no.","type":"string"}}},"tokenization.v28.MsgCastVoteResponse":{"type":"object"},"tokenization.v28.MsgCreateAddressLists":{"description":"MsgCreateAddressLists is used to create address lists.","type":"object","properties":{"addressLists":{"description":"Address lists to create. The createdBy field will be automatically set to the creator address.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.AddressListInput"}},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgCreateAddressListsResponse":{"description":"MsgCreateAddressListsResponse is the response to MsgCreateAddressLists.","type":"object"},"tokenization.v28.MsgCreateCollection":{"description":"MsgCreateCollection is used to create a new collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.AliasPathAddObject"}},"collectionApprovals":{"description":"Collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApproval"}},"collectionMetadata":{"description":"Collection metadata.","$ref":"#/definitions/tokenization.v28.CollectionMetadata"},"collectionPermissions":{"description":"Collection permissions.","$ref":"#/definitions/tokenization.v28.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v28.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v28.InvariantsAddObject"},"isArchived":{"description":"isArchived flag.","type":"boolean"},"manager":{"description":"Manager address.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"Standards entries.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"Token metadata entries.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenMetadata"}},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.MsgCreateCollectionResponse":{"description":"MsgCreateCollectionResponse is the response to MsgCreateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgCreateDynamicStore":{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The default value for uninitialized addresses (true/false).","type":"boolean"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v28.MsgCreateDynamicStoreResponse":{"description":"MsgCreateDynamicStoreResponse is the response to MsgCreateDynamicStore.","type":"object","properties":{"storeId":{"description":"ID of the dynamic store.","type":"string"}}},"tokenization.v28.MsgDeleteCollection":{"description":"MsgDeleteCollection is used to delete a collection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgDeleteCollectionResponse":{"description":"MsgDeleteCollectionResponse is the response to MsgDeleteCollection.","type":"object"},"tokenization.v28.MsgDeleteDynamicStore":{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store to delete.","type":"string"}}},"tokenization.v28.MsgDeleteDynamicStoreResponse":{"description":"MsgDeleteDynamicStoreResponse is the response to MsgDeleteDynamicStore.","type":"object"},"tokenization.v28.MsgDeleteIncomingApproval":{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgDeleteIncomingApprovalResponse":{"description":"MsgDeleteIncomingApprovalResponse is the response to MsgDeleteIncomingApproval.","type":"object"},"tokenization.v28.MsgDeleteOutgoingApproval":{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgDeleteOutgoingApprovalResponse":{"description":"MsgDeleteOutgoingApprovalResponse is the response to MsgDeleteOutgoingApproval.","type":"object"},"tokenization.v28.MsgPurgeApprovals":{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","type":"object","properties":{"approvalsToPurge":{"description":"Specific approvals to purge. If empty, purges all applicable approvals based on other flags.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ApprovalIdentifierDetails"}},"approverAddress":{"description":"Address of the user whose approvals to purge. If empty, defaults to creator.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"purgeCounterpartyApprovals":{"description":"Whether to purge counterparty approvals (approvals where the creator is the only initiator).","type":"boolean"},"purgeExpired":{"description":"Whether to purge expired approvals (approvals with no future valid transfer times).","type":"boolean"}}},"tokenization.v28.MsgPurgeApprovalsResponse":{"description":"MsgPurgeApprovalsResponse is the response to MsgPurgeApprovals.","type":"object","properties":{"numPurged":{"description":"Number of approvals purged.","type":"string"}}},"tokenization.v28.MsgSetCollectionApprovals":{"type":"object","title":"MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission","properties":{"canUpdateCollectionApprovals":{"type":"array","title":"Permission to update collection approvals","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApprovalPermission"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApproval"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgSetCollectionApprovalsResponse":{"description":"MsgSetCollectionApprovalsResponse is the response to MsgSetCollectionApprovals.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetCollectionMetadata":{"type":"object","title":"MsgSetCollectionMetadata sets the collection metadata and canUpdateCollectionMetadata permission","properties":{"canUpdateCollectionMetadata":{"type":"array","title":"Permission to update collection metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v28.CollectionMetadata"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgSetCollectionMetadataResponse":{"description":"MsgSetCollectionMetadataResponse is the response to MsgSetCollectionMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetCustomData":{"type":"object","title":"MsgSetCustomData sets the custom data and canUpdateCustomData permission","properties":{"canUpdateCustomData":{"type":"array","title":"Permission to update custom data","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"}}},"tokenization.v28.MsgSetCustomDataResponse":{"description":"MsgSetCustomDataResponse is the response to MsgSetCustomData.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetDynamicStoreValue":{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","type":"object","properties":{"address":{"description":"The address for which to set the value.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store.","type":"string"},"value":{"description":"The boolean value to set (true/false).","type":"boolean"}}},"tokenization.v28.MsgSetDynamicStoreValueResponse":{"description":"MsgSetDynamicStoreValueResponse is the response to MsgSetDynamicStoreValue.","type":"object"},"tokenization.v28.MsgSetIncomingApproval":{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","type":"object","properties":{"approval":{"description":"The incoming approval to set.","$ref":"#/definitions/tokenization.v28.UserIncomingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgSetIncomingApprovalResponse":{"description":"MsgSetIncomingApprovalResponse is the response to MsgSetIncomingApproval.","type":"object"},"tokenization.v28.MsgSetIsArchived":{"type":"object","title":"MsgSetIsArchived sets the isArchived and canArchiveCollection permission","properties":{"canArchiveCollection":{"type":"array","title":"Permission to archive collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"isArchived":{"description":"New isArchived to set.","type":"boolean"}}},"tokenization.v28.MsgSetIsArchivedResponse":{"description":"MsgSetIsArchivedResponse is the response to MsgSetIsArchived.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetManager":{"type":"object","title":"MsgSetManager sets the manager and canUpdateManager permission","properties":{"canUpdateManager":{"type":"array","title":"Permission to update manager","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"manager":{"description":"New manager to set.","type":"string"}}},"tokenization.v28.MsgSetManagerResponse":{"description":"MsgSetManagerResponse is the response to MsgSetManager.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetOutgoingApproval":{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","type":"object","properties":{"approval":{"description":"The outgoing approval to set.","$ref":"#/definitions/tokenization.v28.UserOutgoingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v28.MsgSetOutgoingApprovalResponse":{"description":"MsgSetOutgoingApprovalResponse is the response to MsgSetOutgoingApproval.","type":"object"},"tokenization.v28.MsgSetReservedProtocolAddress":{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","type":"object","properties":{"address":{"description":"Address to set or unset as reserved protocol address.","type":"string"},"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"isReservedProtocol":{"description":"Whether the address should be a reserved protocol address (true) or not (false).","type":"boolean"}}},"tokenization.v28.MsgSetReservedProtocolAddressResponse":{"description":"MsgSetReservedProtocolAddressResponse is the response to MsgSetReservedProtocolAddress.","type":"object"},"tokenization.v28.MsgSetStandards":{"type":"object","title":"MsgSetStandards sets the standards and canUpdateStandards permission","properties":{"canUpdateStandards":{"type":"array","title":"Permission to update standards","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}}}},"tokenization.v28.MsgSetStandardsResponse":{"description":"MsgSetStandardsResponse is the response to MsgSetStandards.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetTokenMetadata":{"type":"object","title":"MsgSetTokenMetadata sets the token metadata and canUpdateTokenMetadata permission","properties":{"canUpdateTokenMetadata":{"type":"array","title":"Permission to update token metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenMetadata"}}}},"tokenization.v28.MsgSetTokenMetadataResponse":{"description":"MsgSetTokenMetadataResponse is the response to MsgSetTokenMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgSetValidTokenIds":{"type":"object","title":"MsgSetValidTokenIds sets the validTokenIds and canUpdateValidTokenIds permission","properties":{"canUpdateValidTokenIds":{"type":"array","title":"Permission to update valid token IDs","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.MsgSetValidTokenIdsResponse":{"description":"MsgSetValidTokenIdsResponse is the response to MsgSetValidTokenIds.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgTransferTokens":{"description":"MsgTransferTokens is used to transfer tokens.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"transfers":{"description":"Transfers to execute.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Transfer"}}}},"tokenization.v28.MsgTransferTokensResponse":{"description":"MsgTransferTokensResponse is the response to MsgTransferTokens.","type":"object"},"tokenization.v28.MsgUniversalUpdateCollection":{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v28.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v28.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v28.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v28.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.MsgUniversalUpdateCollectionResponse":{"description":"MsgUniversalUpdateCollectionResponse is the response to MsgUniversalUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgUpdateCollection":{"description":"MsgUpdateCollection is used to update a collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v28.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v28.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v28.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.MsgUpdateCollectionResponse":{"description":"MsgUpdateCollectionResponse is the response to MsgUpdateCollection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v28.MsgUpdateDynamicStore":{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The new default value for uninitialized addresses (true/false).","type":"boolean"},"globalEnabled":{"description":"The global kill switch state (true = enabled, false = disabled/halted).\nCallers should query the current value first if they want to keep it unchanged.","type":"boolean"},"storeId":{"description":"ID of the dynamic store to update.","type":"string"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v28.MsgUpdateDynamicStoreResponse":{"description":"MsgUpdateDynamicStoreResponse is the response to MsgUpdateDynamicStore.","type":"object"},"tokenization.v28.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/tokenization.v28.Params"}}},"tokenization.v28.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"tokenization.v28.MsgUpdateUserApprovals":{"description":"MsgUpdateUserApprovals is used to update user approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Auto-approve setting for all incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Auto-approve setting for self-initiated incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Auto-approve setting for self-initiated outgoing transfers.","type":"boolean"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"incomingApprovals":{"description":"New incoming approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserIncomingApproval"}},"outgoingApprovals":{"description":"New outgoing approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserOutgoingApproval"}},"updateAutoApproveAllIncomingTransfers":{"description":"Indicates if auto-approve settings for all incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Indicates if auto-approve settings for self-initiated incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Indicates if auto-approve settings for self-initiated outgoing transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIncomingApprovals":{"description":"Indicates if incoming approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateOutgoingApprovals":{"description":"Indicates if outgoing approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateUserPermissions":{"description":"Indicates if user permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"userPermissions":{"description":"New user permissions to set.","$ref":"#/definitions/tokenization.v28.UserPermissions"}}},"tokenization.v28.MsgUpdateUserApprovalsResponse":{"description":"MsgUpdateUserApprovalsResponse is the response to MsgUpdateUserApprovals.","type":"object"},"tokenization.v28.MustOwnTokens":{"description":"MustOwnTokens represents a condition where a user must own specific tokens\nto be approved to transfer.\n\n- collectionId: The ID of the collection for the tokens that must be owned\n- amountRange: The range of amounts the user must own (min to max)\n- ownershipTimes: The time ranges during which the user must own the tokens.\n- tokenIds: The token IDs the user must own.\n- overrideWithCurrentTime: If true, auto override ownershipTimes with the current time.\n- mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for \u003e= 1 millisecond is sufficient.","type":"object","properties":{"amountRange":{"description":"The range of amounts the user must own (min to max).","$ref":"#/definitions/tokenization.v28.UintRange"},"collectionId":{"description":"The ID of the collection.","type":"string"},"mustSatisfyForAllAssets":{"description":"If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token.","type":"boolean"},"overrideWithCurrentTime":{"description":"If true, override ownershipTimes with the current time.","type":"boolean"},"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user must own the tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"The token IDs the user must own.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.OutgoingApprovalCriteria":{"description":"OutgoingApprovalCriteria defines the criteria for approving outgoing transfers.\nThis is used for user-level outgoing approvals and only includes fields relevant to outgoing transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v28.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v28.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v28.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v28.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v28.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v28.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No sender checks are included for outgoing approvals since the sender is the user themselves.","$ref":"#/definitions/tokenization.v28.AddressChecks"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.VotingChallenge"}}}},"tokenization.v28.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"affiliate_percentage":{"type":"string","title":"affiliate_percentage defines the percentage of the transfer amount that goes to the affiliate"},"allowed_denoms":{"type":"array","title":"allowed_denoms defines the list of denoms that are allowed to be used in coin_transfers","items":{"type":"string"}}}},"tokenization.v28.PathMetadata":{"description":"This message defines the metadata for paths (alias paths and cosmos coin wrapper paths).\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the path metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the path metadata.","type":"string"}}},"tokenization.v28.PrecalculateBalancesFromApprovalDetails":{"description":"PrecalculateBalancesFromApprovalDetails defines the details for precalculating balances from an approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"precalculationOptions":{"description":"The options for precalculating the balances.","$ref":"#/definitions/tokenization.v28.PrecalculationOptions"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v28.PrecalculationOptions":{"description":"PrecalculationOptions defines the options for precalculating the balances.","type":"object","properties":{"overrideTimestamp":{"description":"The timestamp to override with when calculating the balances.","type":"string"},"scalingMultiplier":{"description":"When \u003e 0 and allowAmountScaling is true on the approval, all precalculated balance amounts\nare multiplied by this value. Must be \u003c= maxScalingMultiplier. 0 means no scaling (returns 1x base).","type":"string"},"tokenIdsOverride":{"description":"The IDs to override for the transfer. Only applicable if using this option in precalculation.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.PredeterminedBalances":{"description":"PredeterminedBalances represents balances with predetermined order calculation.","type":"object","properties":{"incrementedBalances":{"description":"Balances that have a starting amount and increment. If this is nil, then we use the manual balances.","$ref":"#/definitions/tokenization.v28.IncrementedBalances"},"manualBalances":{"description":"Manual balances that can be entered. If this is nil, then we use the incremented balances.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ManualBalances"}},"orderCalculationMethod":{"description":"The method to calculate the order of predetermined balances.","$ref":"#/definitions/tokenization.v28.PredeterminedOrderCalculationMethod"}}},"tokenization.v28.PredeterminedOrderCalculationMethod":{"description":"PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order.","type":"object","properties":{"challengeTrackerId":{"description":"If useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method.","type":"string"},"useMerkleChallengeLeafIndex":{"description":"Use the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc.","type":"boolean"},"useOverallNumTransfers":{"description":"Use the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc.","type":"boolean"},"usePerFromAddressNumTransfers":{"description":"Use the number of transfers per \"from\" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc.","type":"boolean"},"usePerInitiatedByAddressNumTransfers":{"description":"Use the number of transfers per \"initiated by\" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc.","type":"boolean"},"usePerToAddressNumTransfers":{"description":"Use the number of transfers per \"to\" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc.","type":"boolean"}}},"tokenization.v28.RecurringOwnershipTimes":{"description":"RecurringOwnershipTimes represents a list of recurring ownership times.","type":"object","properties":{"chargePeriodLength":{"type":"string","title":"Grace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period"},"intervalLength":{"description":"The interval length in unix milliseconds.","type":"string"},"startTime":{"description":"The original start time of the first interval.","type":"string"}}},"tokenization.v28.ResetTimeIntervals":{"description":"Time intervals to reset the trackers at.","type":"object","properties":{"intervalLength":{"description":"Interval length in unix milliseconds.","type":"string"},"startTime":{"description":"Original start time of the first interval.","type":"string"}}},"tokenization.v28.TokenIdsActionPermission":{"description":"TokenIdsActionPermission defines the permissions for performing an action for specific tokens.\nCurrently, this is only used for creating new tokens.\n\nEx: If you want to lock the ability to create new tokens for tokenIds [1,2] at ownershipTimes 1/1/2020 - 1/1/2021, \nyou could set the combination (tokenIds: [1,2], ownershipTimes: [1/1/2020 - 1/1/2021]) to always be forbidden.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.TokenMetadata":{"description":"This message defines the metadata for specific token IDs.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the token metadata.","type":"string"},"tokenIds":{"description":"The token IDs to which this metadata applies.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the token metadata.","type":"string"}}},"tokenization.v28.Transfer":{"description":"Transfer defines the details of a transfer of tokens.","type":"object","properties":{"balances":{"description":"The balances to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}},"ethSignatureProofs":{"description":"The ETH signature proofs / solutions for all ETH signature challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ETHSignatureProof"}},"from":{"description":"The address of the sender of the transfer.","type":"string"},"memo":{"description":"The memo for the transfer.","type":"string"},"merkleProofs":{"description":"The Merkle proofs / solutions for all Merkle challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.MerkleProof"}},"onlyCheckPrioritizedCollectionApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedIncomingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedOutgoingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"precalculateBalancesFromApproval":{"description":"If defined, we will use the predeterminedBalances from the specified approval to calculate the balances at execution time.\nWe will override the balances field with the precalculated balances. Only applicable for approvals with predeterminedBalances set.","$ref":"#/definitions/tokenization.v28.PrecalculateBalancesFromApprovalDetails"},"prioritizedApprovals":{"description":"The prioritized approvals for the transfer. By default, we scan linearly through the approvals and use the first match.\nThis field can be used to prioritize specific approvals and scan through them first.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ApprovalIdentifierDetails"}},"toAddresses":{"description":"The addresses of the recipients of the transfer.","type":"array","items":{"type":"string"}}}},"tokenization.v28.UintRange":{"description":"The UintRange is a range of IDs from some start to some end (inclusive).\nuintRanges are one of the core types used.\n\nThey are used for everything from token IDs to time ranges to min/max balance amounts.\n\nSee the BitBadges documentation for more information.","type":"object","properties":{"end":{"description":"The ending value of the range (inclusive).","type":"string"},"start":{"description":"The starting value of the range (inclusive).","type":"string"}}},"tokenization.v28.UserBalanceStore":{"description":"UserBalanceStore is the store for the user balances for a collection.\n\nIt consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers,\nas well as the permissions for updating the approved incoming/outgoing transfers.\n\nUpon initialization, all fields (minus the balances) are set to the defaults specified by the collection.\n\nThe outgoing transfers can be used to allow / disallow transfers which are sent from this user.\nIf a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedOutgoingTransfers is set to true.\n\nThe incoming transfers can be used to allow / disallow transfers which are sent to this user.\nIf a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedIncomingTransfers is set to true.\n\nNote that the user approved transfers are only checked if the collection approved transfers do not specify to override\nthe user approved transfers. \n\nThe permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Whether to auto-approve all incoming transfers by default. \nThis is just shorthand for adding an accept everything incoming approval\nwith no restrictions.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Whether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy).","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Whether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy).","type":"boolean"},"balances":{"description":"The list of balances associated with this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Balance"}},"incomingApprovals":{"description":"The list of approved incoming transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserIncomingApproval"}},"outgoingApprovals":{"description":"The list of approved outgoing transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserOutgoingApproval"}},"userPermissions":{"description":"The permissions for this user's actions and transfers.","$ref":"#/definitions/tokenization.v28.UserPermissions"}}},"tokenization.v28.UserIncomingApproval":{"description":"UserIncomingApproval defines the rules for the approval of an incoming transfer to a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v28.IncomingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v28.UserIncomingApprovalPermission":{"description":"UserIncomingApprovalPermission defines the permissions for updating the user's approved incoming transfers.\n\nSee CollectionApprovalPermission for more details. This is equivalent without the toListId field because that is always the user.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.UserOutgoingApproval":{"description":"UserOutgoingApproval defines the rules for the approval of an outgoing transfer from a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v28.OutgoingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v28.UserOutgoingApprovalPermission":{"description":"UserOutgoingApprovalPermission defines the permissions for updating the user's approved outgoing transfers.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UintRange"}}}},"tokenization.v28.UserPermissions":{"description":"UserPermissions defines the permissions for the user about their approvals (i.e., what the user can and cannot do).\n\nSee CollectionPermissions for more details on the different types of permissions.\n\ncanUpdateOutgoingApprovals and canUpdateOutgoingApprovals follow the same as the canUpdateCollectionApprovals in CollectionPermissions,\nbut certain fields are removed because they are not relevant to the user.","type":"object","properties":{"canUpdateAutoApproveAllIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for all incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated outgoing transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.ActionPermission"}},"canUpdateIncomingApprovals":{"description":"Permissions related to updating the user's approved incoming transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserIncomingApprovalPermission"}},"canUpdateOutgoingApprovals":{"description":"Permissions related to updating the user's approved outgoing transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.UserOutgoingApprovalPermission"}}}},"tokenization.v28.UserRoyalties":{"description":"UserRoyalties defines the royalties for a user.","type":"object","properties":{"payoutAddress":{"description":"Payout address for the royalties.","type":"string"},"percentage":{"description":"Percentage of the transfer amount to apply as royalties. 1 to 10000 represents basis points.","type":"string"}}},"tokenization.v28.Voter":{"description":"Voter defines a voter with their address and weight.","type":"object","properties":{"address":{"description":"The address of the voter.","type":"string"},"weight":{"description":"The weight of this voter's vote.","type":"string"}}},"tokenization.v28.VotingChallenge":{"description":"VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge.\nRequires a weighted quorum threshold to be met through votes from specified voters.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage\nof total possible weight (all voters), not just voted weight. If you update the proposal ID, then the\nvote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge\nto prevent overlap and unexpected behavior.","type":"object","properties":{"customData":{"description":"Arbitrary custom data associated with this voting challenge.","type":"string"},"proposalId":{"type":"string","title":"The ID of this voting challenge for tracking votes (scoped like challengeTrackerId).\nFormat: collectionId-approverAddress-approvalLevel-approvalId-challengeId"},"quorumThreshold":{"description":"The quorum threshold as a percentage (0-100) of total possible weight that must vote \"yes\".\nExample: 50 means 50% of total voter weight must vote yes for approval.","type":"string"},"uri":{"description":"The URI associated with this voting challenge.","type":"string"},"voters":{"description":"List of voters with their weights. Each voter can cast a weighted vote.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v28.Voter"}}}},"tokenization.v29.ActionPermission":{"description":"ActionPermission defines the permissions for performing an action.\n\nThis is simple and straightforward as the only thing we need to check is the permitted/forbidden times.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.AddressChecks":{"type":"object","title":"AddressChecks defines checks for address types (EVM contract, liquidity pool, etc.)","properties":{"mustBeEvmContract":{"description":"Require the address to be an EVM contract (has code).","type":"boolean"},"mustBeLiquidityPool":{"description":"Require the address to be a liquidity pool.","type":"boolean"},"mustNotBeEvmContract":{"description":"Require the address to not be an EVM contract (no code).","type":"boolean"},"mustNotBeLiquidityPool":{"description":"Require the address to not be a liquidity pool.","type":"boolean"}}},"tokenization.v29.AddressListInput":{"description":"AddressListInput is used for creating address lists via MsgCreateAddressLists.\nIt contains all fields from AddressList except createdBy, which is automatically set from the message creator.","type":"object","properties":{"addresses":{"description":"List of addresses included in the list.","type":"array","items":{"type":"string"}},"customData":{"description":"Custom arbitrary data or additional information related to the address list.","type":"string"},"listId":{"description":"Unique identifier for the address list.","type":"string"},"uri":{"description":"URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable.","type":"string"},"whitelist":{"description":"Indicates whether the list includes the specified addresses (true) or excludes them (false).","type":"boolean"}}},"tokenization.v29.AliasPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v29.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.DenomUnit"}},"metadata":{"description":"The metadata for this alias path.","$ref":"#/definitions/tokenization.v29.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v29.AltTimeChecks":{"type":"object","title":"AltTimeChecks defines alternative time-based checks for approval denial.\nIf the transfer time falls within any of the specified offline hours or days, the approval is denied.\nUses UTC timezone for neutral timezone approach.\nofflineHours: ranges of hours (0-23) when transfers should be denied\nofflineDays: ranges of days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied","properties":{"offlineDays":{"description":"Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"offlineDaysOfMonth":{"description":"Days of month (1-31) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"offlineHours":{"description":"Hours (0-23) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"offlineMonths":{"description":"Months (1-12, where 1=January, 12=December) when transfers should be denied.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"offlineWeeksOfYear":{"description":"Weeks of year (1-52) when transfers should be denied. Uses ISO 8601 week numbering.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"timezoneOffsetMinutes":{"description":"Timezone offset magnitude in minutes from UTC. Default 0 = UTC. Examples: 300 for EST (UTC-5), 330 for IST (UTC+5:30).\nAll time checks are evaluated after applying this offset to the block time.","type":"string"},"timezoneOffsetNegative":{"type":"boolean","title":"If true, the timezone offset is subtracted (west of UTC). If false, it is added (east of UTC).\nExample: EST (UTC-5) = timezoneOffsetMinutes: 300, timezoneOffsetNegative: true"}}},"tokenization.v29.ApprovalAmounts":{"description":"ApprovalAmounts defines approval amounts per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times \nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallApprovalAmount":{"description":"Overall approval amount.","type":"string"},"perFromAddressApprovalAmount":{"description":"Approval amount per \"from\" address.","type":"string"},"perInitiatedByAddressApprovalAmount":{"description":"Approval amount per \"initiated by\" address.","type":"string"},"perToAddressApprovalAmount":{"description":"Approval amount per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v29.ResetTimeIntervals"}}},"tokenization.v29.ApprovalChange":{"description":"ApprovalChange represents a change to an approval (created, edited, or deleted).","type":"object","properties":{"action":{"type":"string"},"approvalId":{"type":"string"},"approvalLevel":{"type":"string"},"version":{"type":"string"}}},"tokenization.v29.ApprovalCriteria":{"description":"ApprovalCriteria defines the criteria for approving transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"allowBackedMinting":{"description":"If true, this collection approval allows backed minting operations (CosmosCoinBackedPath).\nWhen false, this approval cannot be used for transfers involving backed minting addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"allowSpecialWrapping":{"description":"If true, this collection approval allows special wrapping operations (CosmosCoinWrapperPath).\nWhen false, this approval cannot be used for transfers involving wrapping addresses.\nThis prevents accidental allowances when toListIds is \"All\".","type":"boolean"},"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v29.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v29.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v29.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v29.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v29.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"overridesFromOutgoingApprovals":{"description":"Overrides the user's outgoing approvals for approval. If true, this collection-level approval\ntakes precedence over any outgoing approvals defined by the sender, allowing the collection to\ncontrol outgoing transfer behavior.","type":"boolean"},"overridesToIncomingApprovals":{"description":"Overrides the user's incoming approvals for approval. If true, this collection-level approval\ntakes precedence over any incoming approvals defined by the recipient, allowing the collection to\ncontrol incoming transfer behavior.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v29.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v29.AddressChecks"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v29.AddressChecks"},"userApprovalSettings":{"description":"Issuer-imposed constraints on user-level coin transfers. Propagated to user-level approvals\nduring greedy transfer matching (same pattern as userRoyalties). Only applicable on collection-level approvals.\nIf conflicting settings across multiple matched approvals, the transfer is rejected (like royalties).","$ref":"#/definitions/tokenization.v29.UserApprovalSettings"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.VotingChallenge"}}}},"tokenization.v29.ApprovalIdentifierDetails":{"description":"ApprovalIdentifierDetails defines the details to identify a specific approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v29.ApprovalUsed":{"description":"ApprovalUsed represents an approval that was consumed during a transfer.","type":"object","properties":{"approvalId":{"type":"string"},"approvalLevel":{"type":"string"},"approverAddress":{"type":"string"},"version":{"type":"string"}}},"tokenization.v29.AutoDeletionOptions":{"description":"AutoDeletionOptions defines the options for auto-deletion of approvals.","type":"object","properties":{"afterOneUse":{"type":"boolean","title":"After one use?"},"afterOverallMaxNumTransfers":{"type":"boolean","title":"After overall max number of uses threshold is met?"},"allowCounterpartyPurge":{"type":"boolean","title":"Allow counterparty to purge this approval if they are the only initiator"},"allowPurgeIfExpired":{"type":"boolean","title":"Allow others to call PurgeApprovals on behalf of this approval owner"}}},"tokenization.v29.Balance":{"description":"Balance represents the balance of a token for a specific user.\nThe user amounts xAmount of a token specified for the time ranges specified.\n\nExample: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021.\n\nIf times or tokenIDs have len \u003e 1, then the user owns all token IDs specified for all time ranges specified.","type":"object","properties":{"amount":{"description":"The amount of the token owned by the user.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"tokenIds":{"description":"The token IDs for which the user owns the token.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.CoinTransfer":{"type":"object","properties":{"coins":{"description":"The sdk.Coins to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"overrideFromWithApproverAddress":{"description":"By default, the from address is the initiator of the transaction.\nIf this is set to true, we will override the from address with the approver address.\nNote: This is not applicable for collection approvals (since approverAddress == '').","type":"boolean"},"overrideToWithInitiator":{"description":"By default, the to address is what is specified in the coin transfer.\nIf this is set to true, we will override the to address with the initiator of the transaction.","type":"boolean"},"to":{"description":"The address of the recipient of the transfer.","type":"string"}}},"tokenization.v29.CoinTransferProto":{"description":"CoinTransferProto represents a coin transfer that occurred during a transaction.","type":"object","properties":{"amount":{"type":"string"},"denom":{"type":"string"},"from":{"type":"string"},"isProtocolFee":{"type":"boolean"},"to":{"type":"string"}}},"tokenization.v29.CollectionApproval":{"type":"object","title":"CollectionApproval defines the rules for the approval of a transfer on the collection level","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v29.ApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v29.CollectionApprovalPermission":{"description":"CollectionApprovalPermission defines what collection approved transfers can be updated vs. are locked.\n\nEach transfer is broken down to a (from, to, initiatedBy, transferTime, tokenId) tuple.\nFor a transfer to match, we need to match ALL of the fields in the combination. \nThese are determined by the fromListId, toListId, initiatedByListId, transferTimes, tokenIds fields.\nAddressLists are used for (from, to, initiatedBy) which are a permanent list of addresses identified by an ID (see AddressLists). \n\npermanentlyPermitted/ForbiddenTimes: when can the manager execute this permission?\n\nEx: Let's say we are updating the transferability for the transfer tuple (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", 10, 1000).\nWe would check to find the FIRST CollectionApprovalPermission that matches this combination.\nIf we find a match, we would check the permitted/forbidden times to see if we can execute this permission (default is ALLOWED).\n\nEx: So if you wanted to freeze the transferability to enforce that token ID 1 will always be transferable, you could set\nthe combination (\"AllWithoutMint\", \"AllWithoutMint\", \"AllWithoutMint\", \"All Transfer Times\", 1) to always be forbidden.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.CollectionMetadata":{"description":"This message defines the metadata for the collection.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the collection metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the collection metadata.","type":"string"}}},"tokenization.v29.CollectionPermissions":{"description":"CollectionPermissions defines the permissions for the collection (i.e., what the manager can and cannot do).\n\nThere are three types of permissions for a collection: ActionPermission, TokenIdsActionPermission, and CollectionApprovalPermission.\n\nThe permission type allows fine-grained access control for each action.\n- ActionPermission: defines when the manager can perform an action or update a field.\n- TokenIdsActionPermission: defines when the manager can perform an action for specific tokens\n- CollectionApprovalPermission: defines when the manager can update the transferability of the collection and what transfers can be updated vs. locked.\n\nNote there are a few different times here which could get confusing:\n- permanentlyPermitted/ForbiddenTimes - the times that a permission can be performed\n- transferTimes - the times that a transfer occurs\n- ownershipTimes - the times when a token is owned by a user\n\nThe permitted/permanentlyForbiddenTimes are used to determine when a permission can be executed.\nOnce a time is set to be permitted or forbidden, it is PERMANENT and cannot be changed.\nIf a time is not set to be permitted or forbidden, it is considered NEUTRAL and can be updated but is ALLOWED by default.\n\nIMPORTANT: We take first-match only for the permissions. This means that if you forbid time T in array index 0 and permit time T in index 1, \nwe will only check the first permission (forbid time T) and not the second permission (permit time T).","type":"object","properties":{"canAddMoreAliasPaths":{"description":"Permissions related to adding more alias paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canAddMoreCosmosCoinWrapperPaths":{"description":"Permissions related to adding more cosmos coin wrapper paths to the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canArchiveCollection":{"description":"Permissions related to archiving the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canDeleteCollection":{"description":"Permissions related to deleting the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canUpdateCollectionApprovals":{"description":"Permissions related to updating collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CollectionApprovalPermission"}},"canUpdateCollectionMetadata":{"description":"Permissions related to updating the metadata of the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canUpdateCustomData":{"description":"Permissions related to updating custom data for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canUpdateManager":{"description":"Permissions related to updating the collection's manager.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canUpdateStandards":{"description":"Permissions related to updating standards for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canUpdateTokenMetadata":{"description":"Permissions related to updating token metadata for specific tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.TokenIdsActionPermission"}},"canUpdateValidTokenIds":{"description":"Permissions related to creating more tokens for the collection.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.TokenIdsActionPermission"}}}},"tokenization.v29.Conversion":{"description":"Conversion defines a bidirectional conversion between a cosmos coin (with denom) and token balances.","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin side of the conversion (amount + denom).","$ref":"#/definitions/tokenization.v29.ConversionSideAWithDenom"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.Balance"}}}},"tokenization.v29.ConversionSideA":{"description":"ConversionSideA represents the cosmos coin amount side of a conversion without denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"}}},"tokenization.v29.ConversionSideAWithDenom":{"description":"ConversionSideAWithDenom represents the cosmos coin side of a conversion with denomination.","type":"object","properties":{"amount":{"description":"The amount of the cosmos coin (0 decimals).","type":"string"},"denom":{"description":"The denomination of the cosmos coin.","type":"string"}}},"tokenization.v29.ConversionWithoutDenom":{"description":"ConversionWithoutDenom defines a bidirectional conversion between a cosmos coin amount (without denom) and token balances.\nThe denom is stored at the base level (e.g., in AliasPath or CosmosCoinWrapperPath).","type":"object","properties":{"sideA":{"description":"Side A: The cosmos coin amount side of the conversion (amount only, denom stored separately).","$ref":"#/definitions/tokenization.v29.ConversionSideA"},"sideB":{"description":"Side B: The token balances side of the conversion.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.Balance"}}}},"tokenization.v29.CosmosCoinBackedPathAddObject":{"type":"object","properties":{"conversion":{"$ref":"#/definitions/tokenization.v29.Conversion"}}},"tokenization.v29.CosmosCoinWrapperPathAddObject":{"type":"object","properties":{"allowOverrideWithAnyValidToken":{"type":"boolean"},"conversion":{"$ref":"#/definitions/tokenization.v29.ConversionWithoutDenom"},"denom":{"type":"string"},"denomUnits":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.DenomUnit"}},"metadata":{"description":"The metadata for this wrapper path.","$ref":"#/definitions/tokenization.v29.PathMetadata"},"symbol":{"type":"string"}}},"tokenization.v29.DenomUnit":{"type":"object","properties":{"decimals":{"description":"The number of decimal places for this unit. Defines the precision of the unit.","type":"string"},"isDefaultDisplay":{"description":"If true, this is the default display unit. Only one unit should be marked as the default display unit.\nThis unit will be used by default when displaying the coin amount. If none are marked default, we use the base level.","type":"boolean"},"metadata":{"description":"The metadata for this denomination unit.","$ref":"#/definitions/tokenization.v29.PathMetadata"},"symbol":{"description":"The symbol for this unit (e.g., \"BADGE\", \"nBADGE\"). Used for display purposes.","type":"string"}}},"tokenization.v29.DynamicStoreChallenge":{"description":"DynamicStoreChallenge defines a challenge that requires the initiator to pass a dynamic store check.","type":"object","properties":{"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"storeId":{"description":"The ID of the dynamic store to check.","type":"string"}}},"tokenization.v29.ETHSignatureChallenge":{"description":"ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge.\n\nAn ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce.\nThe signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId) and each signature can only be used once.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once.\nIf you update the challenge ID, then the used signatures tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this ETH signature challenge for tracking the number of uses per signature.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this ETH signature challenge.","type":"string"},"signer":{"description":"The Ethereum address that must sign the nonce for verification.","type":"string"},"uri":{"description":"The URI associated with this ETH signature challenge, optionally providing metadata about the challenge.","type":"string"}}},"tokenization.v29.ETHSignatureProof":{"description":"ETHSignatureProof represents an Ethereum signature proof for a challenge.","type":"object","properties":{"nonce":{"description":"The nonce that was signed. The signature scheme is ETHSign(nonce + \"-\" + initiatorAddress + \"-\" + collectionId + \"-\" + approverAddress + \"-\" + approvalLevel + \"-\" + approvalId + \"-\" + challengeId).","type":"string"},"signature":{"description":"The Ethereum signature of the nonce.","type":"string"}}},"tokenization.v29.EVMQueryChallenge":{"description":"EVMQueryChallenge defines a rule for approval via read-only EVM contract query.\n\nThe challenge executes a staticcall to the specified contract with the given calldata.\nThe result is compared against the expected result (if provided) or checked for non-zero return.\n\nIMPORTANT: This is read-only and cannot modify state. The query is executed with a gas limit\nto prevent DoS attacks. All results are deterministic since EVM state is consistent within a block.","type":"object","properties":{"calldata":{"type":"string","title":"ABI-encoded function selector + arguments (hex string without 0x prefix)\nExample: \"70a08231000000000000000000000000{address}\" for balanceOf(address)\nCan use placeholders: $initiator, $sender, $recipient (replaced at runtime)"},"comparisonOperator":{"description":"Comparison operator: \"eq\" (equals), \"ne\" (not equals), \"gt\" (greater than), \"gte\", \"lt\", \"lte\"\nOnly \"eq\" and \"ne\" work for non-numeric types. Default is \"eq\".","type":"string"},"contractAddress":{"type":"string","title":"The EVM contract address to query (0x format or bb1 format)"},"customData":{"type":"string","title":"Arbitrary custom data"},"expectedResult":{"description":"Expected return value (hex string without 0x prefix). If empty, any non-error result passes.\nFor boolean checks, use \"0000...0001\" for true.","type":"string"},"gasLimit":{"type":"string","title":"Gas limit for the query (default 100000, max 500000)"},"uri":{"type":"string","title":"The URI associated with this challenge (metadata)"}}},"tokenization.v29.IncomingApprovalCriteria":{"description":"IncomingApprovalCriteria defines the criteria for approving incoming transfers.\nThis is used for user-level incoming approvals and only includes fields relevant to incoming transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v29.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v29.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v29.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v29.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v29.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v29.PredeterminedBalances"},"requireFromDoesNotEqualInitiatedBy":{"description":"Require the \"from\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the sender equals the initiator are forbidden.","type":"boolean"},"requireFromEqualsInitiatedBy":{"description":"Require the \"from\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the sender matches the initiator are allowed.","type":"boolean"},"senderChecks":{"description":"Address checks for the sender of the transfer. Validates that the sender address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No recipient checks are included for incoming approvals since the recipient is the user themselves.","$ref":"#/definitions/tokenization.v29.AddressChecks"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.VotingChallenge"}}}},"tokenization.v29.IncrementedBalances":{"description":"IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method.","type":"object","properties":{"allowAmountScaling":{"description":"When true, the actual transfer can be any evenly divisible integer multiple (\u003e=1x) of startBalances.\napprovalCriteria.coinTransfers are scaled by the same multiplier.\nAll other IncrementedBalances fields must be zero/false/nil when this is true.","type":"boolean"},"allowOverrideTimestamp":{"description":"Whether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set).","type":"boolean"},"allowOverrideWithAnyValidToken":{"type":"boolean","title":"Allow override of any valid ID"},"durationFromTimestamp":{"description":"The amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy.","type":"string"},"incrementOwnershipTimesBy":{"description":"The amount by which to increment ownership times. Incompatible with approveStartingFromNowBy.","type":"string"},"incrementTokenIdsBy":{"description":"The amount by which to increment token IDs.","type":"string"},"maxScalingMultiplier":{"description":"Maximum allowed scaling multiplier. Must be \u003e 0 when allowAmountScaling is true.\nThe chain rejects transfers where the computed multiplier exceeds this cap.\nIgnored (set to \"0\") when allowAmountScaling is false.","type":"string"},"recurringOwnershipTimes":{"description":"Recurring ownership times.","$ref":"#/definitions/tokenization.v29.RecurringOwnershipTimes"},"startBalances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.Balance"}}}},"tokenization.v29.InvariantsAddObject":{"description":"InvariantsAddObject is used for adding invariants without specifying addresses.\nAddresses are generated by the keeper and stored in the collection.","type":"object","properties":{"cosmosCoinBackedPath":{"description":"The IBC backed (sdk.coin) path for the collection. Only one path is allowed.\nAddress will be generated by the keeper.","$ref":"#/definitions/tokenization.v29.CosmosCoinBackedPathAddObject"},"disablePoolCreation":{"description":"If true, disallows pool creation with this collection's assets.\nWhen true, any attempt to create a pool with tokenization assets from this collection will fail.","type":"boolean"},"evmQueryChallenges":{"type":"array","title":"EVM query invariants that must pass after all transfers complete.\nThese are checked once per message after all balance updates, with access to ALL recipient addresses.\nPlaceholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient","items":{"type":"object","$ref":"#/definitions/tokenization.v29.EVMQueryChallenge"}},"maxSupplyPerId":{"description":"Maximum supply per token ID. Checked against Total address balances after transfers complete.\nA value of 0 means no limit (unlimited).","type":"string"},"noCustomOwnershipTimes":{"description":"If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }].\nThis prevents time-based restrictions on token ownership.","type":"boolean"},"noForcefulPostMintTransfers":{"description":"If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true.\nThis prevents forceful transfers that bypass user-level approvals.\nThis only applies to transfers where the from address does not equal \"Mint\".","type":"boolean"}}},"tokenization.v29.ManualBalances":{"description":"ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set.","type":"object","properties":{"balances":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.Balance"}}}},"tokenization.v29.MaxNumTransfers":{"description":"MaxNumTransfers defines the maximum number of transfers per unique \"from,\" \"to,\" and/or \"initiated by\" address.\nIf any of these are nil or \"0\", we assume unlimited approvals.\nIf they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times\nmust not exceed the corresponding value.","type":"object","properties":{"amountTrackerId":{"description":"The ID of the amount tracker associated with this approval.\nWe use this ID to track the number of transfers and amounts transferred.","type":"string"},"overallMaxNumTransfers":{"description":"Overall maximum number of transfers.","type":"string"},"perFromAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"from\" address.","type":"string"},"perInitiatedByAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"initiated by\" address.","type":"string"},"perToAddressMaxNumTransfers":{"description":"Maximum number of transfers per \"to\" address.","type":"string"},"resetTimeIntervals":{"description":"Time intervals to reset the trackers at.","$ref":"#/definitions/tokenization.v29.ResetTimeIntervals"}}},"tokenization.v29.MerkleChallenge":{"description":"Challenges define a rule for the approval in the form of a Merkle challenge.\n\nA Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof,\nthen the challenge is met. All challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials.\n\nIMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge.\nIf you update the challenge ID, then the used leaves tracker will reset and start a new tally.\nWe recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.","type":"object","properties":{"challengeTrackerId":{"description":"The ID of this Merkle challenge for tracking the number of uses per leaf.","type":"string"},"customData":{"description":"Arbitrary custom data associated with this Merkle challenge.","type":"string"},"expectedProofLength":{"description":"The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks.","type":"string"},"leafSigner":{"description":"Ethereum address that must sign the leaf. Used to protect against man-in-the-middle attacks.\nSignature scheme: sign(leaf + \"-\" + creatorAddress), verified using elliptic curve signature verification.","type":"string"},"maxUsesPerLeaf":{"description":"The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks.","type":"string"},"root":{"description":"The root hash of the Merkle tree to which the Merkle path must lead for verification.","type":"string"},"uri":{"description":"The URI associated with this Merkle challenge, optionally providing metadata about the challenge.","type":"string"},"useCreatorAddressAsLeaf":{"description":"If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses.","type":"boolean"}}},"tokenization.v29.MerklePathItem":{"description":"MerklePathItem represents an item in a Merkle path.","type":"object","properties":{"aunt":{"description":"The hash of the sibling node (aunt) in the Merkle path.","type":"string"},"onRight":{"description":"Indicates whether the aunt node is on the right side of the path.","type":"boolean"}}},"tokenization.v29.MerkleProof":{"description":"MerkleProof represents a Merkle proof, consistent with Tendermint/Crypto Merkle tree.","type":"object","properties":{"aunts":{"description":"List of Merkle path items (aunts) that make up the proof.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.MerklePathItem"}},"leaf":{"description":"The hash of the leaf node for which the proof is generated.","type":"string"},"leafSignature":{"description":"The signature of the leaf node tying the address to the leaf node.","type":"string"}}},"tokenization.v29.MsgCastVote":{"description":"MsgCastVote allows a voter to cast or update their vote for a voting challenge.","type":"object","properties":{"approvalId":{"description":"The approval ID.","type":"string"},"approvalLevel":{"description":"The approval level (\"collection\", \"incoming\", or \"outgoing\").","type":"string"},"approverAddress":{"description":"The approver address (empty string for collection-level approvals).","type":"string"},"collectionId":{"description":"The collection ID for the voting challenge.","type":"string"},"creator":{"description":"The address of the voter casting the vote.","type":"string"},"proposalId":{"description":"The proposal ID (challenge ID) from the VotingChallenge.","type":"string"},"yesWeight":{"description":"The percentage weight (0-100) allocated to \"yes\" vote.\nThe remaining percentage (100 - yesWeight) is allocated to \"no\" vote.\nExample: yesWeight=70 means 70% yes, 30% no.","type":"string"}}},"tokenization.v29.MsgCastVoteResponse":{"type":"object"},"tokenization.v29.MsgCreateAddressLists":{"description":"MsgCreateAddressLists is used to create address lists.","type":"object","properties":{"addressLists":{"description":"Address lists to create. The createdBy field will be automatically set to the creator address.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.AddressListInput"}},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v29.MsgCreateAddressListsResponse":{"description":"MsgCreateAddressListsResponse is the response to MsgCreateAddressLists.","type":"object"},"tokenization.v29.MsgCreateCollection":{"description":"MsgCreateCollection is used to create a new collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.AliasPathAddObject"}},"collectionApprovals":{"description":"Collection approvals.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CollectionApproval"}},"collectionMetadata":{"description":"Collection metadata.","$ref":"#/definitions/tokenization.v29.CollectionMetadata"},"collectionPermissions":{"description":"Collection permissions.","$ref":"#/definitions/tokenization.v29.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v29.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v29.InvariantsAddObject"},"isArchived":{"description":"isArchived flag.","type":"boolean"},"manager":{"description":"Manager address.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"Standards entries.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"Token metadata entries.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.TokenMetadata"}},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.MsgCreateCollectionResponse":{"description":"MsgCreateCollectionResponse is the response to MsgCreateCollection.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.v29.MsgCreateDynamicStore":{"description":"MsgCreateDynamicStore is used to create a new dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The default value for uninitialized addresses (true/false).","type":"boolean"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v29.MsgCreateDynamicStoreResponse":{"description":"MsgCreateDynamicStoreResponse is the response to MsgCreateDynamicStore.","type":"object","properties":{"reviewItems":{"type":"array","items":{"type":"string"}},"storeId":{"description":"ID of the dynamic store.","type":"string"}}},"tokenization.v29.MsgDeleteCollection":{"description":"MsgDeleteCollection is used to delete a collection.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v29.MsgDeleteCollectionResponse":{"description":"MsgDeleteCollectionResponse is the response to MsgDeleteCollection.","type":"object"},"tokenization.v29.MsgDeleteDynamicStore":{"description":"MsgDeleteDynamicStore is used to delete a dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store to delete.","type":"string"}}},"tokenization.v29.MsgDeleteDynamicStoreResponse":{"description":"MsgDeleteDynamicStoreResponse is the response to MsgDeleteDynamicStore.","type":"object"},"tokenization.v29.MsgDeleteIncomingApproval":{"description":"MsgDeleteIncomingApproval is a helper message to delete a single incoming approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v29.MsgDeleteIncomingApprovalResponse":{"description":"MsgDeleteIncomingApprovalResponse is the response to MsgDeleteIncomingApproval.","type":"object","properties":{"found":{"type":"boolean"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.v29.MsgDeleteOutgoingApproval":{"description":"MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval to delete.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v29.MsgDeleteOutgoingApprovalResponse":{"description":"MsgDeleteOutgoingApprovalResponse is the response to MsgDeleteOutgoingApproval.","type":"object","properties":{"found":{"type":"boolean"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.v29.MsgPurgeApprovals":{"description":"MsgPurgeApprovals is a helper message to purge expired approvals.","type":"object","properties":{"approvalsToPurge":{"description":"Specific approvals to purge. If empty, purges all applicable approvals based on other flags.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ApprovalIdentifierDetails"}},"approverAddress":{"description":"Address of the user whose approvals to purge. If empty, defaults to creator.","type":"string"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"purgeCounterpartyApprovals":{"description":"Whether to purge counterparty approvals (approvals where the creator is the only initiator).","type":"boolean"},"purgeExpired":{"description":"Whether to purge expired approvals (approvals with no future valid transfer times).","type":"boolean"}}},"tokenization.v29.MsgPurgeApprovalsResponse":{"description":"MsgPurgeApprovalsResponse is the response to MsgPurgeApprovals.","type":"object","properties":{"numPurged":{"description":"Number of approvals purged.","type":"string"},"purgedApprovalIds":{"type":"array","items":{"type":"string"}},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.v29.MsgSetCollectionApprovals":{"type":"object","title":"MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission","properties":{"canUpdateCollectionApprovals":{"type":"array","title":"Permission to update collection approvals","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CollectionApprovalPermission"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CollectionApproval"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v29.MsgSetCollectionApprovalsResponse":{"description":"MsgSetCollectionApprovalsResponse is the response to MsgSetCollectionApprovals.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.v29.MsgSetCollectionMetadata":{"type":"object","title":"MsgSetCollectionMetadata sets the collection metadata and canUpdateCollectionMetadata permission","properties":{"canUpdateCollectionMetadata":{"type":"array","title":"Permission to update collection metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v29.CollectionMetadata"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v29.MsgSetCollectionMetadataResponse":{"description":"MsgSetCollectionMetadataResponse is the response to MsgSetCollectionMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v29.MsgSetCustomData":{"type":"object","title":"MsgSetCustomData sets the custom data and canUpdateCustomData permission","properties":{"canUpdateCustomData":{"type":"array","title":"Permission to update custom data","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"}}},"tokenization.v29.MsgSetCustomDataResponse":{"description":"MsgSetCustomDataResponse is the response to MsgSetCustomData.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v29.MsgSetDynamicStoreValue":{"description":"MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store.","type":"object","properties":{"address":{"description":"The address for which to set the value.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"storeId":{"description":"ID of the dynamic store.","type":"string"},"value":{"description":"The boolean value to set (true/false).","type":"boolean"}}},"tokenization.v29.MsgSetDynamicStoreValueResponse":{"description":"MsgSetDynamicStoreValueResponse is the response to MsgSetDynamicStoreValue.","type":"object","properties":{"previousValue":{"type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.v29.MsgSetIncomingApproval":{"description":"MsgSetIncomingApproval is a helper message to set a single incoming approval.","type":"object","properties":{"approval":{"description":"The incoming approval to set.","$ref":"#/definitions/tokenization.v29.UserIncomingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v29.MsgSetIncomingApprovalResponse":{"description":"MsgSetIncomingApprovalResponse is the response to MsgSetIncomingApproval.","type":"object","properties":{"action":{"type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.v29.MsgSetIsArchived":{"type":"object","title":"MsgSetIsArchived sets the isArchived and canArchiveCollection permission","properties":{"canArchiveCollection":{"type":"array","title":"Permission to archive collection","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"isArchived":{"description":"New isArchived to set.","type":"boolean"}}},"tokenization.v29.MsgSetIsArchivedResponse":{"description":"MsgSetIsArchivedResponse is the response to MsgSetIsArchived.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v29.MsgSetManager":{"type":"object","title":"MsgSetManager sets the manager and canUpdateManager permission","properties":{"canUpdateManager":{"type":"array","title":"Permission to update manager","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"manager":{"description":"New manager to set.","type":"string"}}},"tokenization.v29.MsgSetManagerResponse":{"description":"MsgSetManagerResponse is the response to MsgSetManager.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v29.MsgSetOutgoingApproval":{"description":"MsgSetOutgoingApproval is a helper message to set a single outgoing approval.","type":"object","properties":{"approval":{"description":"The outgoing approval to set.","$ref":"#/definitions/tokenization.v29.UserOutgoingApproval"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"}}},"tokenization.v29.MsgSetOutgoingApprovalResponse":{"description":"MsgSetOutgoingApprovalResponse is the response to MsgSetOutgoingApproval.","type":"object","properties":{"action":{"type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}},"version":{"type":"string"}}},"tokenization.v29.MsgSetReservedProtocolAddress":{"description":"MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only).","type":"object","properties":{"address":{"description":"Address to set or unset as reserved protocol address.","type":"string"},"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"isReservedProtocol":{"description":"Whether the address should be a reserved protocol address (true) or not (false).","type":"boolean"}}},"tokenization.v29.MsgSetReservedProtocolAddressResponse":{"description":"MsgSetReservedProtocolAddressResponse is the response to MsgSetReservedProtocolAddress.","type":"object"},"tokenization.v29.MsgSetStandards":{"type":"object","title":"MsgSetStandards sets the standards and canUpdateStandards permission","properties":{"canUpdateStandards":{"type":"array","title":"Permission to update standards","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}}}},"tokenization.v29.MsgSetStandardsResponse":{"description":"MsgSetStandardsResponse is the response to MsgSetStandards.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v29.MsgSetTokenMetadata":{"type":"object","title":"MsgSetTokenMetadata sets the token metadata and canUpdateTokenMetadata permission","properties":{"canUpdateTokenMetadata":{"type":"array","title":"Permission to update token metadata","items":{"type":"object","$ref":"#/definitions/tokenization.v29.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.TokenMetadata"}}}},"tokenization.v29.MsgSetTokenMetadataResponse":{"description":"MsgSetTokenMetadataResponse is the response to MsgSetTokenMetadata.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v29.MsgSetValidTokenIds":{"type":"object","title":"MsgSetValidTokenIds sets the validTokenIds and canUpdateValidTokenIds permission","properties":{"canUpdateValidTokenIds":{"type":"array","title":"Permission to update valid token IDs","items":{"type":"object","$ref":"#/definitions/tokenization.v29.TokenIdsActionPermission"}},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.MsgSetValidTokenIdsResponse":{"description":"MsgSetValidTokenIdsResponse is the response to MsgSetValidTokenIds.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"}}},"tokenization.v29.MsgTransferTokens":{"description":"MsgTransferTokens is used to transfer tokens.","type":"object","properties":{"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"transfers":{"description":"Transfers to execute.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.Transfer"}}}},"tokenization.v29.MsgTransferTokensResponse":{"description":"MsgTransferTokensResponse is the response to MsgTransferTokens.","type":"object","properties":{"approvalsUsed":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ApprovalUsed"}},"balancesTransferred":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.Balance"}},"coinTransfers":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CoinTransferProto"}},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.v29.MsgUniversalUpdateCollection":{"description":"MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module.\nIt is a universal interface that can be used for both creating and updating collections.\nWe have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v29.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v29.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"defaultBalances":{"title":"The default balances for the user","$ref":"#/definitions/tokenization.v29.UserBalanceStore"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v29.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.MsgUniversalUpdateCollectionResponse":{"description":"MsgUniversalUpdateCollectionResponse is the response to MsgUniversalUpdateCollection.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.v29.MsgUpdateCollection":{"description":"MsgUpdateCollection is used to update a collection.","type":"object","properties":{"aliasPathsToAdd":{"description":"Alias (non-wrapping) paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.AliasPathAddObject"}},"collectionApprovals":{"description":"New collection approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CollectionApproval"}},"collectionId":{"description":"ID of the collection (0 for new collection).","type":"string"},"collectionMetadata":{"description":"New collection metadata to set.","$ref":"#/definitions/tokenization.v29.CollectionMetadata"},"collectionPermissions":{"description":"New collection permissions to set.","$ref":"#/definitions/tokenization.v29.CollectionPermissions"},"cosmosCoinWrapperPathsToAdd":{"description":"IBC wrapper paths to add.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CosmosCoinWrapperPathAddObject"}},"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"New custom data to set.","type":"string"},"invariants":{"description":"Collection-level invariants that cannot be broken.\nThese are set upon genesis and cannot be modified.\nAddresses are generated by the keeper and stored in the collection.","$ref":"#/definitions/tokenization.v29.InvariantsAddObject"},"isArchived":{"description":"New isArchived to set.","type":"boolean"},"manager":{"description":"New manager to set.","type":"string"},"mintEscrowCoinsToTransfer":{"description":"Coins to be transferred to the mint escrow address.","type":"array","items":{"type":"object","$ref":"#/definitions/cosmos.base.v1beta1.Coin"}},"standards":{"description":"New standards to set.","type":"array","items":{"type":"string"}},"tokenMetadata":{"description":"New token metadata to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.TokenMetadata"}},"updateCollectionApprovals":{"description":"Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionMetadata":{"description":"Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCollectionPermissions":{"description":"Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateCustomData":{"description":"Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIsArchived":{"description":"Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateManager":{"description":"Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateStandards":{"description":"Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateTokenMetadata":{"description":"Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateValidTokenIds":{"description":"Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"validTokenIds":{"type":"array","title":"New token IDs to add to this collection","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.MsgUpdateCollectionResponse":{"description":"MsgUpdateCollectionResponse is the response to MsgUpdateCollection.","type":"object","properties":{"approvalChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ApprovalChange"}},"collectionId":{"description":"ID of the collection.","type":"string"},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.v29.MsgUpdateDynamicStore":{"description":"MsgUpdateDynamicStore is used to update an existing dynamic store.","type":"object","properties":{"creator":{"description":"Address of the creator.","type":"string"},"customData":{"description":"Custom data field for storing arbitrary data associated with this dynamic store.","type":"string"},"defaultValue":{"description":"The new default value for uninitialized addresses (true/false).","type":"boolean"},"globalEnabled":{"description":"The global kill switch state (true = enabled, false = disabled/halted).\nCallers should query the current value first if they want to keep it unchanged.","type":"boolean"},"storeId":{"description":"ID of the dynamic store to update.","type":"string"},"uri":{"description":"URI for additional metadata or resources associated with this dynamic store.","type":"string"}}},"tokenization.v29.MsgUpdateDynamicStoreResponse":{"description":"MsgUpdateDynamicStoreResponse is the response to MsgUpdateDynamicStore.","type":"object"},"tokenization.v29.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/tokenization.v29.Params"}}},"tokenization.v29.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"tokenization.v29.MsgUpdateUserApprovals":{"description":"MsgUpdateUserApprovals is used to update user approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Auto-approve setting for all incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Auto-approve setting for self-initiated incoming transfers.","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Auto-approve setting for self-initiated outgoing transfers.","type":"boolean"},"collectionId":{"description":"ID of the collection.","type":"string"},"creator":{"description":"Address of the creator.","type":"string"},"incomingApprovals":{"description":"New incoming approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UserIncomingApproval"}},"outgoingApprovals":{"description":"New outgoing approvals to set.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UserOutgoingApproval"}},"updateAutoApproveAllIncomingTransfers":{"description":"Indicates if auto-approve settings for all incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Indicates if auto-approve settings for self-initiated incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Indicates if auto-approve settings for self-initiated outgoing transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateIncomingApprovals":{"description":"Indicates if incoming approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateOutgoingApprovals":{"description":"Indicates if outgoing approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"updateUserPermissions":{"description":"Indicates if user permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value.","type":"boolean"},"userPermissions":{"description":"New user permissions to set.","$ref":"#/definitions/tokenization.v29.UserPermissions"}}},"tokenization.v29.MsgUpdateUserApprovalsResponse":{"description":"MsgUpdateUserApprovalsResponse is the response to MsgUpdateUserApprovals.","type":"object","properties":{"incomingChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ApprovalChange"}},"outgoingChanges":{"type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ApprovalChange"}},"reviewItems":{"type":"array","items":{"type":"string"}}}},"tokenization.v29.MustOwnTokens":{"description":"MustOwnTokens represents a condition where a user must own specific tokens\nto be approved to transfer.\n\n- collectionId: The ID of the collection for the tokens that must be owned\n- amountRange: The range of amounts the user must own (min to max)\n- ownershipTimes: The time ranges during which the user must own the tokens.\n- tokenIds: The token IDs the user must own.\n- overrideWithCurrentTime: If true, auto override ownershipTimes with the current time.\n- mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for \u003e= 1 millisecond is sufficient.","type":"object","properties":{"amountRange":{"description":"The range of amounts the user must own (min to max).","$ref":"#/definitions/tokenization.v29.UintRange"},"collectionId":{"description":"The ID of the collection.","type":"string"},"mustSatisfyForAllAssets":{"description":"If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token.","type":"boolean"},"overrideWithCurrentTime":{"description":"If true, override ownershipTimes with the current time.","type":"boolean"},"ownershipCheckParty":{"description":"The party to check ownership for. Options are \"initiator\", \"sender\", \"recipient\", or any valid bb1 address.\nIf a valid bb1 address is provided, ownership will be checked for that specific address.\nThis enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner).\nDefaults to \"initiator\" if empty or if the value is not a recognized option or valid bb1 address.","type":"string"},"ownershipTimes":{"description":"The time ranges during which the user must own the tokens.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"tokenIds":{"description":"The token IDs the user must own.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.OutgoingApprovalCriteria":{"description":"OutgoingApprovalCriteria defines the criteria for approving outgoing transfers.\nThis is used for user-level outgoing approvals and only includes fields relevant to outgoing transfers.\nAll criteria must be satisfied for the approval to be considered valid.","type":"object","properties":{"altTimeChecks":{"description":"Alternative time-based checks for approval denial (offline hours/days). Defines time periods\nduring which this approval should be denied, such as specific hours of the day or days of the week.","$ref":"#/definitions/tokenization.v29.AltTimeChecks"},"approvalAmounts":{"description":"Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts\ntransferred and enforces maximum limits per approval.","$ref":"#/definitions/tokenization.v29.ApprovalAmounts"},"autoDeletionOptions":{"description":"Auto-deletion options for this approval. Defines conditions under which this approval should be\nautomatically deleted (e.g., after a certain number of uses or time period).","$ref":"#/definitions/tokenization.v29.AutoDeletionOptions"},"coinTransfers":{"description":"The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees,\nroyalties) that must be executed alongside the token transfer for the approval to be valid.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.CoinTransfer"}},"dynamicStoreChallenges":{"description":"Dynamic store challenges that the initiator must pass for approval. The initiator must provide\nvalid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.DynamicStoreChallenge"}},"ethSignatureChallenges":{"description":"ETH signature challenges that the initiator must pass for approval. The initiator must provide\nvalid Ethereum signatures for all specified challenges. Each signature can only be used once.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ETHSignatureChallenge"}},"evmQueryChallenges":{"description":"EVM query challenges that must pass for approval. Read-only contract queries\nthat verify external EVM state (e.g., token ownership in another contract).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.EVMQueryChallenge"}},"initiatorChecks":{"description":"Address checks for the initiator of the transfer. Validates that the initiator address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).","$ref":"#/definitions/tokenization.v29.AddressChecks"},"maxNumTransfers":{"description":"Maximum number of transfers that can be processed using this approval. Tracks the count of transfers\nand enforces the limit to prevent exceeding the allowed number of uses.","$ref":"#/definitions/tokenization.v29.MaxNumTransfers"},"merkleChallenges":{"description":"Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs\nthat satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.MerkleChallenge"}},"mustOwnTokens":{"description":"Must own tokens for approval. Defines token ownership requirements that must be satisfied for\nthe approval to be valid. The initiator must own the specified tokens at the specified ownership times.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.MustOwnTokens"}},"mustPrioritize":{"description":"If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used.\nThis allows fine-grained control over which approvals are applied when multiple approvals could match.","type":"boolean"},"predeterminedBalances":{"description":"Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs\nthat can be transferred when using this approval.","$ref":"#/definitions/tokenization.v29.PredeterminedBalances"},"recipientChecks":{"description":"Address checks for the recipient of the transfer. Validates that the recipient address meets the\nspecified criteria (e.g., whitelist, blacklist, protocol address requirements).\nNote: No sender checks are included for outgoing approvals since the sender is the user themselves.","$ref":"#/definitions/tokenization.v29.AddressChecks"},"requireToDoesNotEqualInitiatedBy":{"description":"Require the \"to\" address to not be equal to the \"initiated by\" address for approval.\nIf true, transfers where the recipient equals the initiator are forbidden.","type":"boolean"},"requireToEqualsInitiatedBy":{"description":"Require the \"to\" address to be equal to the \"initiated by\" address for approval.\nIf true, only transfers where the recipient matches the initiator are allowed.","type":"boolean"},"votingChallenges":{"description":"Voting challenges that must be satisfied for approval. The initiator must provide\nvalid votes that meet the quorum threshold for all specified challenges.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.VotingChallenge"}}}},"tokenization.v29.Params":{"description":"Params defines the parameters for the module.","type":"object","properties":{"affiliate_percentage":{"type":"string","title":"affiliate_percentage defines the percentage of the transfer amount that goes to the affiliate"},"allowed_denoms":{"type":"array","title":"allowed_denoms defines the list of denoms that are allowed to be used in coin_transfers","items":{"type":"string"}}}},"tokenization.v29.PathMetadata":{"description":"This message defines the metadata for paths (alias paths and cosmos coin wrapper paths).\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the path metadata.","type":"string"},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the path metadata.","type":"string"}}},"tokenization.v29.PrecalculateBalancesFromApprovalDetails":{"description":"PrecalculateBalancesFromApprovalDetails defines the details for precalculating balances from an approval.","type":"object","properties":{"approvalId":{"description":"The ID of the approval.","type":"string"},"approvalLevel":{"description":"The level of the approval. Can be \"collection\", \"incoming\", or \"outgoing\".","type":"string"},"approverAddress":{"description":"The address of the approver. Leave blank \"\" if approvalLevel == \"collection\".","type":"string"},"precalculationOptions":{"description":"The options for precalculating the balances.","$ref":"#/definitions/tokenization.v29.PrecalculationOptions"},"version":{"description":"The version of the approval.","type":"string"}}},"tokenization.v29.PrecalculationOptions":{"description":"PrecalculationOptions defines the options for precalculating the balances.","type":"object","properties":{"overrideTimestamp":{"description":"The timestamp to override with when calculating the balances.","type":"string"},"scalingMultiplier":{"description":"When \u003e 0 and allowAmountScaling is true on the approval, all precalculated balance amounts\nare multiplied by this value. Must be \u003c= maxScalingMultiplier. 0 means no scaling (returns 1x base).","type":"string"},"tokenIdsOverride":{"description":"The IDs to override for the transfer. Only applicable if using this option in precalculation.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.PredeterminedBalances":{"description":"PredeterminedBalances represents balances with predetermined order calculation.","type":"object","properties":{"incrementedBalances":{"description":"Balances that have a starting amount and increment. If this is nil, then we use the manual balances.","$ref":"#/definitions/tokenization.v29.IncrementedBalances"},"manualBalances":{"description":"Manual balances that can be entered. If this is nil, then we use the incremented balances.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ManualBalances"}},"orderCalculationMethod":{"description":"The method to calculate the order of predetermined balances.","$ref":"#/definitions/tokenization.v29.PredeterminedOrderCalculationMethod"}}},"tokenization.v29.PredeterminedOrderCalculationMethod":{"description":"PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order.","type":"object","properties":{"challengeTrackerId":{"description":"If useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method.","type":"string"},"useMerkleChallengeLeafIndex":{"description":"Use the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc.","type":"boolean"},"useOverallNumTransfers":{"description":"Use the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc.","type":"boolean"},"usePerFromAddressNumTransfers":{"description":"Use the number of transfers per \"from\" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc.","type":"boolean"},"usePerInitiatedByAddressNumTransfers":{"description":"Use the number of transfers per \"initiated by\" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc.","type":"boolean"},"usePerToAddressNumTransfers":{"description":"Use the number of transfers per \"to\" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc.","type":"boolean"}}},"tokenization.v29.RecurringOwnershipTimes":{"description":"RecurringOwnershipTimes represents a list of recurring ownership times.","type":"object","properties":{"chargePeriodLength":{"type":"string","title":"Grace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period"},"intervalLength":{"description":"The interval length in unix milliseconds.","type":"string"},"startTime":{"description":"The original start time of the first interval.","type":"string"}}},"tokenization.v29.ResetTimeIntervals":{"description":"Time intervals to reset the trackers at.","type":"object","properties":{"intervalLength":{"description":"Interval length in unix milliseconds.","type":"string"},"startTime":{"description":"Original start time of the first interval.","type":"string"}}},"tokenization.v29.TokenIdsActionPermission":{"description":"TokenIdsActionPermission defines the permissions for performing an action for specific tokens.\nCurrently, this is only used for creating new tokens.\n\nEx: If you want to lock the ability to create new tokens for tokenIds [1,2] at ownershipTimes 1/1/2020 - 1/1/2021, \nyou could set the combination (tokenIds: [1,2], ownershipTimes: [1/1/2020 - 1/1/2021]) to always be forbidden.","type":"object","properties":{"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.TokenMetadata":{"description":"This message defines the metadata for specific token IDs.\nThe interpretation of this metadata should follow the collection standard.","type":"object","properties":{"customData":{"description":"Custom data or additional information related to the token metadata.","type":"string"},"tokenIds":{"description":"The token IDs to which this metadata applies.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"uri":{"description":"The URI (Uniform Resource Identifier) associated with the token metadata.","type":"string"}}},"tokenization.v29.Transfer":{"description":"Transfer defines the details of a transfer of tokens.","type":"object","properties":{"balances":{"description":"The balances to be transferred.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.Balance"}},"ethSignatureProofs":{"description":"The ETH signature proofs / solutions for all ETH signature challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ETHSignatureProof"}},"from":{"description":"The address of the sender of the transfer.","type":"string"},"memo":{"description":"The memo for the transfer.","type":"string"},"merkleProofs":{"description":"The Merkle proofs / solutions for all Merkle challenges required for the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.MerkleProof"}},"onlyCheckPrioritizedCollectionApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedIncomingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"onlyCheckPrioritizedOutgoingApprovals":{"description":"Whether to only check prioritized approvals for the transfer. \nIf true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals).\nIf false, we will check the prioritized approvals first and then scan through the rest of the approvals.","type":"boolean"},"precalculateBalancesFromApproval":{"description":"If defined, we will use the predeterminedBalances from the specified approval to calculate the balances at execution time.\nWe will override the balances field with the precalculated balances. Only applicable for approvals with predeterminedBalances set.","$ref":"#/definitions/tokenization.v29.PrecalculateBalancesFromApprovalDetails"},"prioritizedApprovals":{"description":"The prioritized approvals for the transfer. By default, we scan linearly through the approvals and use the first match.\nThis field can be used to prioritize specific approvals and scan through them first.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ApprovalIdentifierDetails"}},"toAddresses":{"description":"The addresses of the recipients of the transfer.","type":"array","items":{"type":"string"}}}},"tokenization.v29.UintRange":{"description":"The UintRange is a range of IDs from some start to some end (inclusive).\nuintRanges are one of the core types used.\n\nThey are used for everything from token IDs to time ranges to min/max balance amounts.\n\nSee the BitBadges documentation for more information.","type":"object","properties":{"end":{"description":"The ending value of the range (inclusive).","type":"string"},"start":{"description":"The starting value of the range (inclusive).","type":"string"}}},"tokenization.v29.UserApprovalSettings":{"description":"UserApprovalSettings defines issuer-imposed constraints on user-level approvals.\nSet on collection-level ApprovalCriteria and propagated to user-level approvals\nduring greedy transfer matching. Each balance slice carries its own settings.","type":"object","properties":{"allowedDenoms":{"description":"Restricts which denoms user-level coinTransfers can reference (beyond params-level AllowedDenoms).\nIf empty, all params-allowed denoms are permitted.","type":"array","items":{"type":"string"}},"disableUserCoinTransfers":{"description":"If true, user-level approvals cannot trigger coinTransfers at all for transfers matched by this collection approval.","type":"boolean"},"userRoyalties":{"description":"User-level royalties to enforce for transfers matched by this collection approval.","$ref":"#/definitions/tokenization.v29.UserRoyalties"}}},"tokenization.v29.UserBalanceStore":{"description":"UserBalanceStore is the store for the user balances for a collection.\n\nIt consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers,\nas well as the permissions for updating the approved incoming/outgoing transfers.\n\nUpon initialization, all fields (minus the balances) are set to the defaults specified by the collection.\n\nThe outgoing transfers can be used to allow / disallow transfers which are sent from this user.\nIf a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedOutgoingTransfers is set to true.\n\nThe incoming transfers can be used to allow / disallow transfers which are sent to this user.\nIf a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user)\nand autoApproveSelfInitiatedIncomingTransfers is set to true.\n\nNote that the user approved transfers are only checked if the collection approved transfers do not specify to override\nthe user approved transfers. \n\nThe permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals.","type":"object","properties":{"autoApproveAllIncomingTransfers":{"description":"Whether to auto-approve all incoming transfers by default. \nThis is just shorthand for adding an accept everything incoming approval\nwith no restrictions.","type":"boolean"},"autoApproveSelfInitiatedIncomingTransfers":{"description":"Whether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy).","type":"boolean"},"autoApproveSelfInitiatedOutgoingTransfers":{"description":"Whether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy).","type":"boolean"},"balances":{"description":"The list of balances associated with this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.Balance"}},"incomingApprovals":{"description":"The list of approved incoming transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UserIncomingApproval"}},"outgoingApprovals":{"description":"The list of approved outgoing transfers for this user.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UserOutgoingApproval"}},"userPermissions":{"description":"The permissions for this user's actions and transfers.","$ref":"#/definitions/tokenization.v29.UserPermissions"}}},"tokenization.v29.UserIncomingApproval":{"description":"UserIncomingApproval defines the rules for the approval of an incoming transfer to a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v29.IncomingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"fromListId":{"description":"The list ID for the sender of the transfer.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v29.UserIncomingApprovalPermission":{"description":"UserIncomingApprovalPermission defines the permissions for updating the user's approved incoming transfers.\n\nSee CollectionApprovalPermission for more details. This is equivalent without the toListId field because that is always the user.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"fromListId":{"description":"Identifier for the sender list.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.UserOutgoingApproval":{"description":"UserOutgoingApproval defines the rules for the approval of an outgoing transfer from a user.","type":"object","properties":{"approvalCriteria":{"description":"The criteria that must be met for this approval to be considered.","$ref":"#/definitions/tokenization.v29.OutgoingApprovalCriteria"},"approvalId":{"description":"The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming).","type":"string"},"customData":{"description":"Arbitrary custom data associated with this approval.","type":"string"},"initiatedByListId":{"description":"The list ID for the user who initiated the transfer.","type":"string"},"ownershipTimes":{"description":"The allowed range of ownership times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"toListId":{"description":"The list ID for the recipient of the transfer.","type":"string"},"tokenIds":{"description":"The allowed range of token IDs for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"transferTimes":{"description":"The allowed range of transfer times for approval.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"uri":{"description":"The URI associated with this approval, optionally providing metadata about the approval.","type":"string"},"version":{"description":"Version of the approval. Maintained internally.","type":"string"}}},"tokenization.v29.UserOutgoingApprovalPermission":{"description":"UserOutgoingApprovalPermission defines the permissions for updating the user's approved outgoing transfers.","type":"object","properties":{"approvalId":{"description":"Identifier for the approvalId. You can use \"All\" or \"!approvalId\" for shorthand.\nIf you use \"All\", this approval will match to all approvalIds.\nIf you use \"!approvalId\", this approval will match to all approvalIds except for approvalId.\nIf you use \"approvalId\", this approval will match to only the specified approvalId and fail on all others.","type":"string"},"initiatedByListId":{"description":"Identifier for the initiator list (who is approved?).","type":"string"},"ownershipTimes":{"description":"Specifies the ownership times for the tokens in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"permanentlyForbiddenTimes":{"description":"Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"permanentlyPermittedTimes":{"description":"Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"toListId":{"description":"Identifier for the recipient list.","type":"string"},"tokenIds":{"description":"Specifies the token IDs involved in the transfer.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}},"transferTimes":{"description":"Specifies the times when the transfer can occur.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UintRange"}}}},"tokenization.v29.UserPermissions":{"description":"UserPermissions defines the permissions for the user about their approvals (i.e., what the user can and cannot do).\n\nSee CollectionPermissions for more details on the different types of permissions.\n\ncanUpdateOutgoingApprovals and canUpdateOutgoingApprovals follow the same as the canUpdateCollectionApprovals in CollectionPermissions,\nbut certain fields are removed because they are not relevant to the user.","type":"object","properties":{"canUpdateAutoApproveAllIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for all incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedIncomingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated incoming transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canUpdateAutoApproveSelfInitiatedOutgoingTransfers":{"description":"Permissions related to updating auto-approval settings for self-initiated outgoing transfers (whether they are allowed by default).","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.ActionPermission"}},"canUpdateIncomingApprovals":{"description":"Permissions related to updating the user's approved incoming transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UserIncomingApprovalPermission"}},"canUpdateOutgoingApprovals":{"description":"Permissions related to updating the user's approved outgoing transfers.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.UserOutgoingApprovalPermission"}}}},"tokenization.v29.UserRoyalties":{"description":"UserRoyalties defines the royalties for a user.","type":"object","properties":{"payoutAddress":{"description":"Payout address for the royalties.","type":"string"},"percentage":{"description":"Percentage of the transfer amount to apply as royalties. 1 to 10000 represents basis points.","type":"string"}}},"tokenization.v29.Voter":{"description":"Voter defines a voter with their address and weight.","type":"object","properties":{"address":{"description":"The address of the voter.","type":"string"},"weight":{"description":"The weight of this voter's vote.","type":"string"}}},"tokenization.v29.VotingChallenge":{"description":"VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge.\nRequires a weighted quorum threshold to be met through votes from specified voters.\nAll challenges must be met with valid solutions for the transfer to be approved.\n\nIMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage\nof total possible weight (all voters), not just voted weight. If you update the proposal ID, then the\nvote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge\nto prevent overlap and unexpected behavior.","type":"object","properties":{"customData":{"description":"Arbitrary custom data associated with this voting challenge.","type":"string"},"delayAfterQuorum":{"description":"Mandatory delay in milliseconds after quorum is reached before the transfer can execute.\nIf set, the transfer will fail until: now \u003e= quorumReachedTimestamp + delayAfterQuorum.\nDuring the delay, signers can remove their votes to cancel (quorum drops = delay resets).","type":"string"},"proposalId":{"type":"string","title":"The ID of this voting challenge for tracking votes (scoped like challengeTrackerId).\nFormat: collectionId-approverAddress-approvalLevel-approvalId-challengeId"},"quorumThreshold":{"description":"The quorum threshold as a percentage (0-100) of total possible weight that must vote \"yes\".\nExample: 50 means 50% of total voter weight must vote yes for approval.","type":"string"},"resetAfterExecution":{"description":"If true, all votes for this challenge are cleared after a successful transfer execution.\nThis makes the challenge reusable (e.g., for vault withdrawals that need fresh approval each time).","type":"boolean"},"uri":{"description":"The URI associated with this voting challenge.","type":"string"},"voters":{"description":"List of voters with their weights. Each voter can cast a weighted vote.","type":"array","items":{"type":"object","$ref":"#/definitions/tokenization.v29.Voter"}}}}},"tags":[{"name":"Msg"},{"name":"Query"}]} \ No newline at end of file diff --git a/install.sh b/install.sh index b7c60cc2..6c9070c6 100755 --- a/install.sh +++ b/install.sh @@ -202,13 +202,13 @@ main() { echo "" if command -v bun >/dev/null 2>&1; then echo "Installing BitBadges SDK CLI (bitbadges-cli) via bun..." - bun install -g bitbadgesjs-sdk 2>&1 | tail -1 + bun install -g bitbadges 2>&1 | tail -1 elif command -v npm >/dev/null 2>&1; then echo "Installing BitBadges SDK CLI (bitbadges-cli) via npm..." - npm install -g bitbadgesjs-sdk 2>&1 | tail -1 + npm install -g bitbadges 2>&1 | tail -1 else echo "npm/bun not found — skipping SDK CLI install. To install later:" - echo " npm install -g bitbadgesjs-sdk" + echo " npm install -g bitbadges" fi if command -v bitbadges-cli >/dev/null 2>&1; then diff --git a/proto/anchor/genesis.proto b/proto/anchor/genesis.proto deleted file mode 100644 index 0eeabb87..00000000 --- a/proto/anchor/genesis.proto +++ /dev/null @@ -1,23 +0,0 @@ -syntax = "proto3"; - -package anchor; - -import "amino/amino.proto"; -import "gogoproto/gogo.proto"; -import "anchor/params.proto"; -import "anchor/tx.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/anchor/types"; - -// GenesisState defines the anchor module's genesis state. -message GenesisState { - - // params defines all the parameters of the module. - Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - string port_id = 2; - - - string nextLocationId = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; - repeated AnchorData anchorData = 4 [(gogoproto.nullable) = false]; -} - diff --git a/proto/anchor/module/module.pb.go b/proto/anchor/module/module.pb.go deleted file mode 100644 index 1da63838..00000000 --- a/proto/anchor/module/module.pb.go +++ /dev/null @@ -1,320 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: anchor/module/module.proto - -package anchor_module - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - proto "github.com/cosmos/gogoproto/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Module is the config object for the module. -type Module struct { - // authority defines the custom module authority. If not set, defaults to the governance module. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` -} - -func (m *Module) Reset() { *m = Module{} } -func (m *Module) String() string { return proto.CompactTextString(m) } -func (*Module) ProtoMessage() {} -func (*Module) Descriptor() ([]byte, []int) { - return fileDescriptor_2ed064113b7137c2, []int{0} -} -func (m *Module) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Module.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Module) XXX_Merge(src proto.Message) { - xxx_messageInfo_Module.Merge(m, src) -} -func (m *Module) XXX_Size() int { - return m.Size() -} -func (m *Module) XXX_DiscardUnknown() { - xxx_messageInfo_Module.DiscardUnknown(m) -} - -var xxx_messageInfo_Module proto.InternalMessageInfo - -func (m *Module) GetAuthority() string { - if m != nil { - return m.Authority - } - return "" -} - -func init() { - proto.RegisterType((*Module)(nil), "anchor.module.Module") -} - -func init() { proto.RegisterFile("anchor/module/module.proto", fileDescriptor_2ed064113b7137c2) } - -var fileDescriptor_2ed064113b7137c2 = []byte{ - // 180 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xcc, 0x4b, 0xce, - 0xc8, 0x2f, 0xd2, 0xcf, 0xcd, 0x4f, 0x29, 0xcd, 0x49, 0x85, 0x52, 0x7a, 0x05, 0x45, 0xf9, 0x25, - 0xf9, 0x42, 0xbc, 0x10, 0x39, 0x3d, 0x88, 0xa0, 0x94, 0x42, 0x72, 0x7e, 0x71, 0x6e, 0x7e, 0xb1, - 0x7e, 0x62, 0x41, 0x81, 0x7e, 0x99, 0x61, 0x62, 0x4e, 0x41, 0x46, 0xa2, 0x21, 0x8a, 0x06, 0xa5, - 0x18, 0x2e, 0x36, 0x5f, 0x30, 0x5f, 0x48, 0x86, 0x8b, 0x33, 0xb1, 0xb4, 0x24, 0x23, 0xbf, 0x28, - 0xb3, 0xa4, 0x52, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0x21, 0x60, 0x65, 0xb2, 0xeb, 0xc0, - 0xb4, 0x5b, 0x8c, 0x7a, 0x5c, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, - 0xfa, 0x49, 0x99, 0x25, 0x49, 0x89, 0x29, 0xe9, 0xa9, 0xc5, 0x08, 0x56, 0x72, 0x46, 0x62, 0x66, - 0x9e, 0x7e, 0x85, 0x3e, 0xc4, 0x19, 0x4e, 0x12, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, - 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, - 0xc7, 0x90, 0xc4, 0x06, 0xb6, 0xde, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xde, 0x05, 0x2c, 0x71, - 0xcd, 0x00, 0x00, 0x00, -} - -func (m *Module) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Module) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintModule(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintModule(dAtA []byte, offset int, v uint64) int { - offset -= sovModule(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Module) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovModule(uint64(l)) - } - return n -} - -func sovModule(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozModule(x uint64) (n int) { - return sovModule(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Module) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthModule - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthModule - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipModule(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipModule(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowModule - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowModule - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowModule - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthModule - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupModule - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthModule - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthModule = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowModule = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupModule = fmt.Errorf("proto: unexpected end of group") -) diff --git a/proto/anchor/module/module.proto b/proto/anchor/module/module.proto deleted file mode 100644 index b35f04ae..00000000 --- a/proto/anchor/module/module.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; -package anchor.module; - -import "cosmos/app/v1alpha1/module.proto"; - -// Module is the config object for the module. -message Module { - option (cosmos.app.v1alpha1.module) = { - go_import: "github.com/bitbadges/bitbadgeschain/x/anchor" - }; - - // authority defines the custom module authority. If not set, defaults to the governance module. - string authority = 1; -} \ No newline at end of file diff --git a/proto/anchor/packet.proto b/proto/anchor/packet.proto deleted file mode 100644 index 140f641f..00000000 --- a/proto/anchor/packet.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; -package anchor; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/anchor/types"; - -message AnchorPacketData { - oneof packet { - NoData noData = 1; - } -} - -message NoData { -} diff --git a/proto/anchor/params.proto b/proto/anchor/params.proto deleted file mode 100644 index d6b7a6bb..00000000 --- a/proto/anchor/params.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; -package anchor; - -import "amino/amino.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/anchor/types"; - -// Params defines the parameters for the module. -message Params { - option (amino.name) = "anchor/Params"; - option (gogoproto.equal) = true; -} \ No newline at end of file diff --git a/proto/anchor/query.proto b/proto/anchor/query.proto deleted file mode 100644 index 7b3d1104..00000000 --- a/proto/anchor/query.proto +++ /dev/null @@ -1,44 +0,0 @@ -syntax = "proto3"; -package anchor; - -import "amino/amino.proto"; -import "gogoproto/gogo.proto"; -import "google/api/annotations.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "anchor/params.proto"; -import "anchor/tx.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/anchor/types"; - -// Query defines the gRPC querier service. -service Query { - // Parameters queries the parameters of the module. - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/bitbadgeschain/anchor/params"; - } - - rpc GetValueAtLocation(QueryGetValueAtLocationRequest) returns (QueryGetValueAtLocationResponse) { - option (google.api.http).get = "/bitbadgeschain/anchor/locations/{locationId}"; - } -} - -// QueryParamsRequest is request type for the Query/Params RPC method. -message QueryParamsRequest {} - -// QueryParamsResponse is response type for the Query/Params RPC method. -message QueryParamsResponse { - // params holds all the parameters of this module. - Params params = 1 [ - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true - ]; -} - - -message QueryGetValueAtLocationRequest { - string locationId = 1; -} - -message QueryGetValueAtLocationResponse { - AnchorData anchorData = 1 [(gogoproto.nullable) = false]; -} \ No newline at end of file diff --git a/proto/anchor/tx.proto b/proto/anchor/tx.proto deleted file mode 100644 index 220597fd..00000000 --- a/proto/anchor/tx.proto +++ /dev/null @@ -1,60 +0,0 @@ -syntax = "proto3"; - -package anchor; - -import "amino/amino.proto"; -import "cosmos/msg/v1/msg.proto"; -import "cosmos_proto/cosmos.proto"; -import "gogoproto/gogo.proto"; -import "anchor/params.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/anchor/types"; - -// Msg defines the Msg service. -service Msg { - option (cosmos.msg.v1.service) = true; - - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse ); - rpc AddCustomData (MsgAddCustomData) returns (MsgAddCustomDataResponse); -} -// MsgUpdateParams is the Msg/UpdateParams request type. -message MsgUpdateParams { - option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "github.com/bitbadges/bitbadgeschain/x/anchor/MsgUpdateParams"; - - // authority is the address that controls the module (defaults to x/gov unless overwritten). - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - - // params defines the module parameters to update. - - // NOTE: All parameters must be supplied. - Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; -} - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -message MsgUpdateParamsResponse {} - -message AnchorCustomMsgType { - MsgAddCustomData addCustomDataMsg = 1; -} - -message MsgAddCustomData { - option (cosmos.msg.v1.signer) = "creator"; - option (amino.name) = "anchor/AddCustomData"; - string creator = 1; - string data = 2; -} - -message MsgAddCustomDataResponse { - // ID of the anchor location. - string locationId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; -} - -message AnchorData { - string creator = 1; - string data = 2; - string timestamp = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; -} diff --git a/proto/maps/balances.proto b/proto/maps/balances.proto deleted file mode 100644 index 64e1cfbd..00000000 --- a/proto/maps/balances.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; -package maps; - -import "gogoproto/gogo.proto"; -import "maps/params.proto"; -// this line is used by starport scaffolding # genesis/proto/import - -option go_package = "github.com/bitbadges/bitbadgeschain/x/maps/types"; - -/* - The UintRange is a range of IDs from some start to some end (inclusive). - - uintRanges are one of the core types used in the BitBadgesChain module. - They are used for everything from token IDs to time ranges to min/max balance amounts. - - See the BitBadges documentation for more information. -*/ -message UintRange { - // The starting value of the range (inclusive). - string start = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; - - // The ending value of the range (inclusive). - string end = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; -} \ No newline at end of file diff --git a/proto/maps/genesis.proto b/proto/maps/genesis.proto deleted file mode 100644 index 57ead91f..00000000 --- a/proto/maps/genesis.proto +++ /dev/null @@ -1,21 +0,0 @@ -syntax = "proto3"; - -package maps; - -import "gogoproto/gogo.proto"; -import "maps/params.proto"; -import "maps/tx.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/maps/types"; - -// GenesisState defines the maps module's genesis state. -message GenesisState { - Params params = 1 [(gogoproto.nullable) = false]; - string port_id = 2; - - repeated Map maps = 3; - repeated string full_keys = 4; - repeated ValueStore values = 5; - - repeated string duplicates_full_keys = 6; -} \ No newline at end of file diff --git a/proto/maps/metadata.proto b/proto/maps/metadata.proto deleted file mode 100644 index 7c04c9eb..00000000 --- a/proto/maps/metadata.proto +++ /dev/null @@ -1,20 +0,0 @@ -syntax = "proto3"; -package maps; - -import "google/protobuf/any.proto"; -import "maps/balances.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/maps/types"; - -/* - This message defines the metadata for the map. - The interpretation of this metadata should follow the map standard. -*/ -message Metadata { - // The URI (Uniform Resource Identifier) associated with the map metadata. - string uri = 1; - - // Custom data or additional information related to the map metadata. - string customData = 2; -} \ No newline at end of file diff --git a/proto/maps/module/module.pb.go b/proto/maps/module/module.pb.go deleted file mode 100644 index ad02e001..00000000 --- a/proto/maps/module/module.pb.go +++ /dev/null @@ -1,320 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/module/module.proto - -package maps_module - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - _ "cosmossdk.io/api/cosmos/app/v1alpha1" - proto "github.com/cosmos/gogoproto/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Module is the config object for the module. -type Module struct { - // authority defines the custom module authority. If not set, defaults to the governance module. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` -} - -func (m *Module) Reset() { *m = Module{} } -func (m *Module) String() string { return proto.CompactTextString(m) } -func (*Module) ProtoMessage() {} -func (*Module) Descriptor() ([]byte, []int) { - return fileDescriptor_8b5bb754d75954a6, []int{0} -} -func (m *Module) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Module.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Module) XXX_Merge(src proto.Message) { - xxx_messageInfo_Module.Merge(m, src) -} -func (m *Module) XXX_Size() int { - return m.Size() -} -func (m *Module) XXX_DiscardUnknown() { - xxx_messageInfo_Module.DiscardUnknown(m) -} - -var xxx_messageInfo_Module proto.InternalMessageInfo - -func (m *Module) GetAuthority() string { - if m != nil { - return m.Authority - } - return "" -} - -func init() { - proto.RegisterType((*Module)(nil), "maps.module.Module") -} - -func init() { proto.RegisterFile("maps/module/module.proto", fileDescriptor_8b5bb754d75954a6) } - -var fileDescriptor_8b5bb754d75954a6 = []byte{ - // 178 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xc8, 0x4d, 0x2c, 0x28, - 0xd6, 0xcf, 0xcd, 0x4f, 0x29, 0xcd, 0x49, 0x85, 0x52, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, - 0xdc, 0x20, 0x19, 0x3d, 0x88, 0x90, 0x94, 0x42, 0x72, 0x7e, 0x71, 0x6e, 0x7e, 0xb1, 0x7e, 0x62, - 0x41, 0x81, 0x7e, 0x99, 0x61, 0x62, 0x4e, 0x41, 0x46, 0xa2, 0x21, 0x8a, 0x72, 0xa5, 0x28, 0x2e, - 0x36, 0x5f, 0x30, 0x5f, 0x48, 0x86, 0x8b, 0x33, 0xb1, 0xb4, 0x24, 0x23, 0xbf, 0x28, 0xb3, 0xa4, - 0x52, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0x21, 0x60, 0x65, 0xb4, 0xeb, 0xc0, 0xb4, 0x5b, - 0x8c, 0x3a, 0x5c, 0x5a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x49, - 0x99, 0x25, 0x49, 0x89, 0x29, 0xe9, 0xa9, 0xc5, 0x08, 0x56, 0x72, 0x46, 0x62, 0x66, 0x9e, 0x7e, - 0x85, 0x3e, 0xc8, 0x11, 0x4e, 0x12, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, - 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x90, - 0xc4, 0x06, 0xb6, 0xdc, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x2b, 0x4a, 0x46, 0xc7, 0x00, - 0x00, 0x00, -} - -func (m *Module) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Module) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintModule(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintModule(dAtA []byte, offset int, v uint64) int { - offset -= sovModule(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Module) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovModule(uint64(l)) - } - return n -} - -func sovModule(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozModule(x uint64) (n int) { - return sovModule(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Module) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Module: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowModule - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthModule - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthModule - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipModule(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthModule - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipModule(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowModule - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowModule - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowModule - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthModule - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupModule - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthModule - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthModule = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowModule = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupModule = fmt.Errorf("proto: unexpected end of group") -) diff --git a/proto/maps/module/module.proto b/proto/maps/module/module.proto deleted file mode 100644 index 5387c946..00000000 --- a/proto/maps/module/module.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; -package maps.module; - -import "cosmos/app/v1alpha1/module.proto"; - -// Module is the config object for the module. -message Module { - option (cosmos.app.v1alpha1.module) = { - go_import: "github.com/bitbadges/bitbadgeschain/x/maps" - }; - - // authority defines the custom module authority. If not set, defaults to the governance module. - string authority = 1; -} \ No newline at end of file diff --git a/proto/maps/packet.proto b/proto/maps/packet.proto deleted file mode 100644 index 791d6b8b..00000000 --- a/proto/maps/packet.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; -package maps;; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/maps/types"; - -message MapsPacketData { - oneof packet { - NoData noData = 1; - } -} - -message NoData { -} diff --git a/proto/maps/params.proto b/proto/maps/params.proto deleted file mode 100644 index e5d0e9bf..00000000 --- a/proto/maps/params.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; -package maps;; - -import "amino/amino.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/maps/types"; - -// Params defines the parameters for the module. -message Params { - option (amino.name) = "github.com/bitbadges/bitbadgeschain/x/maps/Params"; - option (gogoproto.equal) = true; - - -} \ No newline at end of file diff --git a/proto/maps/permissions.proto b/proto/maps/permissions.proto deleted file mode 100644 index 6142b039..00000000 --- a/proto/maps/permissions.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; -package maps; - -import "google/protobuf/any.proto"; -import "maps/balances.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/maps/types"; - -/* - ActionPermission defines the permissions for performing an action. - - This is simple and straightforward as the only thing we need to check is the permitted/forbidden times. -*/ -message ActionPermission { - // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. - repeated UintRange permanentlyPermittedTimes = 1; - - // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. - repeated UintRange permanentlyForbiddenTimes = 2; -} - diff --git a/proto/maps/query.proto b/proto/maps/query.proto deleted file mode 100644 index 3c456748..00000000 --- a/proto/maps/query.proto +++ /dev/null @@ -1,50 +0,0 @@ -syntax = "proto3"; -package maps; - -import "gogoproto/gogo.proto"; -import "google/api/annotations.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "maps/params.proto"; -import "maps/tx.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/maps/types"; - -// Query defines the gRPC querier service. -service Query { - // Parameters queries the parameters of the module. - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/bitbadges/bitbadgeschain/maps/params"; - } - rpc Map(QueryGetMapRequest) returns (QueryGetMapResponse) { - option (google.api.http).get = "/bitbadges/bitbadgeschain/maps/{mapId}"; - } - rpc MapValue(QueryGetMapValueRequest) returns (QueryGetMapValueResponse) { - option (google.api.http).get = "/bitbadges/bitbadgeschain/maps/{mapId}/{key}"; - } -} - -// QueryParamsRequest is request type for the Query/Params RPC method. -message QueryParamsRequest {} - -// QueryParamsResponse is response type for the Query/Params RPC method. -message QueryParamsResponse { - // params holds all the parameters of this module. - Params params = 1 [(gogoproto.nullable) = false]; -} - -message QueryGetMapRequest { - string mapId = 1; -} - -message QueryGetMapResponse { - Map map = 1; -} - -message QueryGetMapValueRequest { - string mapId = 1; - string key = 2; -} - -message QueryGetMapValueResponse { - ValueStore value = 1; -} \ No newline at end of file diff --git a/proto/maps/tx.proto b/proto/maps/tx.proto deleted file mode 100644 index 1913616b..00000000 --- a/proto/maps/tx.proto +++ /dev/null @@ -1,172 +0,0 @@ -syntax = "proto3"; - -package maps; - -import "amino/amino.proto"; -import "cosmos/msg/v1/msg.proto"; -import "cosmos_proto/cosmos.proto"; -import "gogoproto/gogo.proto"; -import "maps/permissions.proto"; -import "maps/balances.proto"; -import "maps/params.proto"; -import "maps/metadata.proto"; - -option go_package = "github.com/bitbadges/bitbadgeschain/x/maps/types"; - -// Msg defines the Msg service. -service Msg { - option (cosmos.msg.v1.service) = true; - - rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); - rpc CreateMap (MsgCreateMap) returns (MsgCreateMapResponse); - rpc UpdateMap (MsgUpdateMap) returns (MsgUpdateMapResponse); - rpc DeleteMap (MsgDeleteMap) returns (MsgDeleteMapResponse); - rpc SetValue (MsgSetValue) returns (MsgSetValueResponse); -} - - -// MsgUpdateParams is the Msg/UpdateParams request type. -message MsgUpdateParams { - option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "maps/MsgUpdateParams"; - - // authority is the address that controls the module (defaults to x/gov unless overwritten). - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - - // params defines the module parameters to update. - // - // NOTE: All parameters must be supplied. - Params params = 2 [ - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true - ]; -} - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -message MsgUpdateParamsResponse {} - -message MapCustomMsgType { - MsgSetValue setValueMsg = 1; - MsgCreateMap createMapMsg = 2; - MsgUpdateMap updateMapMsg = 3; - MsgDeleteMap deleteMapMsg = 4; -} - -message ValueStore { - string key = 1; - string value = 2; - string lastSetBy = 3; -} - -message MapUpdateCriteria { - //All ID slots are only updatable by manager - bool managerOnly = 1; - //ID slots are only updatable by token ID owner of this collection (>1 balance at current time) - string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; - //Keys are address based and can only be updated by that respective address - bool creatorOnly = 3; - //Claim slots. Can unclaim by setting to blank. Uses lastSetBy. - bool firstComeFirstServe = 4; -} - -message ValueOptions { - bool noDuplicates = 1; - bool permanentOnceSet = 2; - bool expectUint = 3; - bool expectBoolean = 4; - bool expectAddress = 5; - bool expectUri = 6; -} - -message MapPermissions { - repeated ActionPermission canUpdateMetadata = 1; - repeated ActionPermission canUpdateManager = 2; - repeated ActionPermission canDeleteMap = 3; -} - - -message Map { - string creator = 1; - string mapId = 2; - - string inheritManagerFrom = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; - string manager = 4; - - //config options that will not change at all - MapUpdateCriteria updateCriteria = 5; - ValueOptions valueOptions = 6; - string defaultValue = 7; - - Metadata metadata = 10; - - MapPermissions permissions = 11; -} - -message MsgCreateMap { - option (cosmos.msg.v1.signer) = "creator"; - option (amino.name) = "maps/CreateMap"; - - string creator = 1; - string mapId = 2; - - string inheritManagerFrom = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; - string manager = 4; - - //config options that will not change at all - MapUpdateCriteria updateCriteria = 5; - ValueOptions valueOptions = 6; - string defaultValue = 7; - - Metadata metadata = 9; - - MapPermissions permissions = 10; -} - -message MsgCreateMapResponse {} - -message MsgUpdateMap { - option (cosmos.msg.v1.signer) = "creator"; - option (amino.name) = "maps/UpdateMap"; - - string creator = 1; - string mapId = 2; - - bool updateManager = 3; - string manager = 4; - - bool updateMetadata = 7; - Metadata metadata = 8; - - bool updatePermissions = 9; - MapPermissions permissions = 10; -} - -message MsgUpdateMapResponse {} - -message MsgDeleteMap { - option (cosmos.msg.v1.signer) = "creator"; - option (amino.name) = "maps/DeleteMap"; - - string creator = 1; - string mapId = 2; -} - -message MsgDeleteMapResponse {} - -message SetOptions { - bool useMostRecentCollectionId = 1; -} - -message MsgSetValue { - option (cosmos.msg.v1.signer) = "creator"; - option (amino.name) = "maps/SetValue"; - - string creator = 1; - string mapId = 2; - string key = 3; - string value = 4; - SetOptions options = 5; -} - -message MsgSetValueResponse {} \ No newline at end of file diff --git a/proto/tokenization/v29/address_lists.proto b/proto/tokenization/v29/address_lists.proto new file mode 100644 index 00000000..c2bcc749 --- /dev/null +++ b/proto/tokenization/v29/address_lists.proto @@ -0,0 +1,55 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/balances.proto"; + +// this line is used by starport scaffolding # proto/tx/import + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +/* + An AddressList is a list of addresses that are referenced by an ID. + AddressLists are used in defining approvals ia a reusbale identifier. + Note: We also support a reserved ID system by string ID; "Mint", "!Mint" +*/ +message AddressList { + // Unique identifier for the address list. + string listId = 1; + + // List of addresses included in the list. + repeated string addresses = 2; + + // Indicates whether the list includes the specified addresses (true) or excludes them (false). + bool whitelist = 3; + + // URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable. + string uri = 4; + + // Custom arbitrary data or additional information related to the address list. + string customData = 5; + + // The user or entity who created the address list. + string createdBy = 6; +} + +/* + AddressListInput is used for creating address lists via MsgCreateAddressLists. + It contains all fields from AddressList except createdBy, which is automatically set from the message creator. +*/ +message AddressListInput { + // Unique identifier for the address list. + string listId = 1; + + // List of addresses included in the list. + repeated string addresses = 2; + + // Indicates whether the list includes the specified addresses (true) or excludes them (false). + bool whitelist = 3; + + // URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable. + string uri = 4; + + // Custom arbitrary data or additional information related to the address list. + string customData = 5; +} diff --git a/proto/tokenization/v29/approval_conditions.proto b/proto/tokenization/v29/approval_conditions.proto new file mode 100644 index 00000000..37f7cbda --- /dev/null +++ b/proto/tokenization/v29/approval_conditions.proto @@ -0,0 +1,129 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/balances.proto"; +import "cosmos/base/v1beta1/coin.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +message CoinTransfer { + // The address of the recipient of the transfer. + string to = 1; + // The sdk.Coins to be transferred. + repeated cosmos.base.v1beta1.Coin coins = 2; + // By default, the from address is the initiator of the transaction. + // If this is set to true, we will override the from address with the approver address. + // Note: This is not applicable for collection approvals (since approverAddress == ''). + bool overrideFromWithApproverAddress = 3; + // By default, the to address is what is specified in the coin transfer. + // If this is set to true, we will override the to address with the initiator of the transaction. + bool overrideToWithInitiator = 4; +} + +/* + MustOwnTokens represents a condition where a user must own specific tokens + to be approved to transfer. + + - collectionId: The ID of the collection for the tokens that must be owned + - amountRange: The range of amounts the user must own (min to max) + - ownershipTimes: The time ranges during which the user must own the tokens. + - tokenIds: The token IDs the user must own. + - overrideWithCurrentTime: If true, auto override ownershipTimes with the current time. + - mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for >= 1 millisecond is sufficient. +*/ +message MustOwnTokens { + // The ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The range of amounts the user must own (min to max). + UintRange amountRange = 2; + + // The time ranges during which the user must own the tokens. + repeated UintRange ownershipTimes = 3; + + // The token IDs the user must own. + repeated UintRange tokenIds = 4; + + // If true, override ownershipTimes with the current time. + bool overrideWithCurrentTime = 5; + + // If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token. + bool mustSatisfyForAllAssets = 6; + + // The party to check ownership for. Options are "initiator", "sender", "recipient", or any valid bb1 address. + // If a valid bb1 address is provided, ownership will be checked for that specific address. + // This enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner). + // Defaults to "initiator" if empty or if the value is not a recognized option or valid bb1 address. + string ownershipCheckParty = 7; +} + +// DynamicStoreChallenge defines a challenge that requires the initiator to pass a dynamic store check. +message DynamicStoreChallenge { + // The ID of the dynamic store to check. + string storeId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The party to check ownership for. Options are "initiator", "sender", "recipient", or any valid bb1 address. + // If a valid bb1 address is provided, ownership will be checked for that specific address. + // This enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner). + // Defaults to "initiator" if empty or if the value is not a recognized option or valid bb1 address. + string ownershipCheckParty = 2; +} + +// AddressChecks defines checks for address types (EVM contract, liquidity pool, etc.) +message AddressChecks { + // Require the address to be an EVM contract (has code). + bool mustBeEvmContract = 1; + // Require the address to not be an EVM contract (no code). + bool mustNotBeEvmContract = 2; + // Require the address to be a liquidity pool. + bool mustBeLiquidityPool = 3; + // Require the address to not be a liquidity pool. + bool mustNotBeLiquidityPool = 4; +} + +// AltTimeChecks defines alternative time-based checks for approval denial. +// If the transfer time falls within any of the specified offline hours or days, the approval is denied. +// Uses UTC timezone for neutral timezone approach. +// offlineHours: ranges of hours (0-23) when transfers should be denied +// offlineDays: ranges of days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied +message AltTimeChecks { + // Hours (0-23) when transfers should be denied. + repeated UintRange offlineHours = 1; + // Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied. + repeated UintRange offlineDays = 2; + // Months (1-12, where 1=January, 12=December) when transfers should be denied. + repeated UintRange offlineMonths = 3; + // Days of month (1-31) when transfers should be denied. + repeated UintRange offlineDaysOfMonth = 4; + // Weeks of year (1-52) when transfers should be denied. Uses ISO 8601 week numbering. + repeated UintRange offlineWeeksOfYear = 5; + // Timezone offset magnitude in minutes from UTC. Default 0 = UTC. Examples: 300 for EST (UTC-5), 330 for IST (UTC+5:30). + // All time checks are evaluated after applying this offset to the block time. + string timezoneOffsetMinutes = 6 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // If true, the timezone offset is subtracted (west of UTC). If false, it is added (east of UTC). + // Example: EST (UTC-5) = timezoneOffsetMinutes: 300, timezoneOffsetNegative: true + bool timezoneOffsetNegative = 7; +} + +// UserApprovalSettings defines issuer-imposed constraints on user-level approvals. +// Set on collection-level ApprovalCriteria and propagated to user-level approvals +// during greedy transfer matching. Each balance slice carries its own settings. +message UserApprovalSettings { + // Restricts which denoms user-level coinTransfers can reference (beyond params-level AllowedDenoms). + // If empty, all params-allowed denoms are permitted. + repeated string allowedDenoms = 1; + // If true, user-level approvals cannot trigger coinTransfers at all for transfers matched by this collection approval. + bool disableUserCoinTransfers = 2; + // User-level royalties to enforce for transfers matched by this collection approval. + UserRoyalties userRoyalties = 3; +} + +// UserRoyalties defines the royalties for a user. +message UserRoyalties { + // Percentage of the transfer amount to apply as royalties. 1 to 10000 represents basis points. + string percentage = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Payout address for the royalties. + string payoutAddress = 2; +} + diff --git a/proto/tokenization/v29/approval_criteria.proto b/proto/tokenization/v29/approval_criteria.proto new file mode 100644 index 00000000..5287052b --- /dev/null +++ b/proto/tokenization/v29/approval_criteria.proto @@ -0,0 +1,226 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/challenges.proto"; +import "tokenization/v29/predetermined_balances.proto"; +import "tokenization/v29/approval_tracking.proto"; +import "tokenization/v29/approval_conditions.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// ApprovalCriteria defines the criteria for approving transfers. +// All criteria must be satisfied for the approval to be considered valid. +message ApprovalCriteria { + // Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs + // that satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash. + repeated MerkleChallenge merkleChallenges = 1; + // Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs + // that can be transferred when using this approval. + PredeterminedBalances predeterminedBalances = 2; + // Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts + // transferred and enforces maximum limits per approval. + ApprovalAmounts approvalAmounts = 3; + // Maximum number of transfers that can be processed using this approval. Tracks the count of transfers + // and enforces the limit to prevent exceeding the allowed number of uses. + MaxNumTransfers maxNumTransfers = 4; + // The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees, + // royalties) that must be executed alongside the token transfer for the approval to be valid. + repeated CoinTransfer coinTransfers = 5; + + // Require the "to" address to be equal to the "initiated by" address for approval. + // If true, only transfers where the recipient matches the initiator are allowed. + bool requireToEqualsInitiatedBy = 6; + // Require the "from" address to be equal to the "initiated by" address for approval. + // If true, only transfers where the sender matches the initiator are allowed. + bool requireFromEqualsInitiatedBy = 7; + // Require the "to" address to not be equal to the "initiated by" address for approval. + // If true, transfers where the recipient equals the initiator are forbidden. + bool requireToDoesNotEqualInitiatedBy = 8; + // Require the "from" address to not be equal to the "initiated by" address for approval. + // If true, transfers where the sender equals the initiator are forbidden. + bool requireFromDoesNotEqualInitiatedBy = 9; + + // Overrides the user's outgoing approvals for approval. If true, this collection-level approval + // takes precedence over any outgoing approvals defined by the sender, allowing the collection to + // control outgoing transfer behavior. + bool overridesFromOutgoingApprovals = 10; + // Overrides the user's incoming approvals for approval. If true, this collection-level approval + // takes precedence over any incoming approvals defined by the recipient, allowing the collection to + // control incoming transfer behavior. + bool overridesToIncomingApprovals = 11; + + // Auto-deletion options for this approval. Defines conditions under which this approval should be + // automatically deleted (e.g., after a certain number of uses or time period). + AutoDeletionOptions autoDeletionOptions = 12; + + // DEPRECATED: User royalties moved to UserApprovalSettings.userRoyalties (field 26). + // Field number 13 is reserved for backwards compatibility. + reserved 13; + + // Must own tokens for approval. Defines token ownership requirements that must be satisfied for + // the approval to be valid. The initiator must own the specified tokens at the specified ownership times. + repeated MustOwnTokens mustOwnTokens = 14; + // Dynamic store challenges that the initiator must pass for approval. The initiator must provide + // valid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups). + repeated DynamicStoreChallenge dynamicStoreChallenges = 15; + // ETH signature challenges that the initiator must pass for approval. The initiator must provide + // valid Ethereum signatures for all specified challenges. Each signature can only be used once. + repeated ETHSignatureChallenge ethSignatureChallenges = 16; + // Address checks for the sender of the transfer. Validates that the sender address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + AddressChecks senderChecks = 17; + // Address checks for the recipient of the transfer. Validates that the recipient address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + AddressChecks recipientChecks = 18; + // Address checks for the initiator of the transfer. Validates that the initiator address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + AddressChecks initiatorChecks = 19; + // Alternative time-based checks for approval denial (offline hours/days). Defines time periods + // during which this approval should be denied, such as specific hours of the day or days of the week. + AltTimeChecks altTimeChecks = 20; + // If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used. + // This allows fine-grained control over which approvals are applied when multiple approvals could match. + bool mustPrioritize = 21; + // Voting challenges that must be satisfied for approval. The initiator must provide + // valid votes that meet the quorum threshold for all specified challenges. + repeated VotingChallenge votingChallenges = 22; + // If true, this collection approval allows backed minting operations (CosmosCoinBackedPath). + // When false, this approval cannot be used for transfers involving backed minting addresses. + // This prevents accidental allowances when toListIds is "All". + bool allowBackedMinting = 23; + // If true, this collection approval allows special wrapping operations (CosmosCoinWrapperPath). + // When false, this approval cannot be used for transfers involving wrapping addresses. + // This prevents accidental allowances when toListIds is "All". + bool allowSpecialWrapping = 24; + // EVM query challenges that must pass for approval. Read-only contract queries + // that verify external EVM state (e.g., token ownership in another contract). + repeated EVMQueryChallenge evmQueryChallenges = 25; + // Issuer-imposed constraints on user-level coin transfers. Propagated to user-level approvals + // during greedy transfer matching (same pattern as userRoyalties). Only applicable on collection-level approvals. + // If conflicting settings across multiple matched approvals, the transfer is rejected (like royalties). + UserApprovalSettings userApprovalSettings = 26; +} + +// OutgoingApprovalCriteria defines the criteria for approving outgoing transfers. +// This is used for user-level outgoing approvals and only includes fields relevant to outgoing transfers. +// All criteria must be satisfied for the approval to be considered valid. +message OutgoingApprovalCriteria { + // Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs + // that satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash. + repeated MerkleChallenge merkleChallenges = 1; + // Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs + // that can be transferred when using this approval. + PredeterminedBalances predeterminedBalances = 2; + // Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts + // transferred and enforces maximum limits per approval. + ApprovalAmounts approvalAmounts = 3; + // Maximum number of transfers that can be processed using this approval. Tracks the count of transfers + // and enforces the limit to prevent exceeding the allowed number of uses. + MaxNumTransfers maxNumTransfers = 4; + // The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees, + // royalties) that must be executed alongside the token transfer for the approval to be valid. + repeated CoinTransfer coinTransfers = 5; + + // Require the "to" address to be equal to the "initiated by" address for approval. + // If true, only transfers where the recipient matches the initiator are allowed. + bool requireToEqualsInitiatedBy = 6; + // Require the "to" address to not be equal to the "initiated by" address for approval. + // If true, transfers where the recipient equals the initiator are forbidden. + bool requireToDoesNotEqualInitiatedBy = 7; + + // Auto-deletion options for this approval. Defines conditions under which this approval should be + // automatically deleted (e.g., after a certain number of uses or time period). + AutoDeletionOptions autoDeletionOptions = 8; + + // Must own tokens for approval. Defines token ownership requirements that must be satisfied for + // the approval to be valid. The initiator must own the specified tokens at the specified ownership times. + repeated MustOwnTokens mustOwnTokens = 9; + // Dynamic store challenges that the initiator must pass for approval. The initiator must provide + // valid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups). + repeated DynamicStoreChallenge dynamicStoreChallenges = 10; + // ETH signature challenges that the initiator must pass for approval. The initiator must provide + // valid Ethereum signatures for all specified challenges. Each signature can only be used once. + repeated ETHSignatureChallenge ethSignatureChallenges = 11; + // Address checks for the recipient of the transfer. Validates that the recipient address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + // Note: No sender checks are included for outgoing approvals since the sender is the user themselves. + AddressChecks recipientChecks = 12; + // Address checks for the initiator of the transfer. Validates that the initiator address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + AddressChecks initiatorChecks = 13; + // Alternative time-based checks for approval denial (offline hours/days). Defines time periods + // during which this approval should be denied, such as specific hours of the day or days of the week. + AltTimeChecks altTimeChecks = 14; + // If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used. + // This allows fine-grained control over which approvals are applied when multiple approvals could match. + bool mustPrioritize = 15; + // Voting challenges that must be satisfied for approval. The initiator must provide + // valid votes that meet the quorum threshold for all specified challenges. + repeated VotingChallenge votingChallenges = 16; + // EVM query challenges that must pass for approval. Read-only contract queries + // that verify external EVM state (e.g., token ownership in another contract). + repeated EVMQueryChallenge evmQueryChallenges = 17; +} + +// IncomingApprovalCriteria defines the criteria for approving incoming transfers. +// This is used for user-level incoming approvals and only includes fields relevant to incoming transfers. +// All criteria must be satisfied for the approval to be considered valid. +message IncomingApprovalCriteria { + // Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs + // that satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash. + repeated MerkleChallenge merkleChallenges = 1; + // Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs + // that can be transferred when using this approval. + PredeterminedBalances predeterminedBalances = 2; + // Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts + // transferred and enforces maximum limits per approval. + ApprovalAmounts approvalAmounts = 3; + // Maximum number of transfers that can be processed using this approval. Tracks the count of transfers + // and enforces the limit to prevent exceeding the allowed number of uses. + MaxNumTransfers maxNumTransfers = 4; + // The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees, + // royalties) that must be executed alongside the token transfer for the approval to be valid. + repeated CoinTransfer coinTransfers = 5; + + // Require the "from" address to be equal to the "initiated by" address for approval. + // If true, only transfers where the sender matches the initiator are allowed. + bool requireFromEqualsInitiatedBy = 6; + // Require the "from" address to not be equal to the "initiated by" address for approval. + // If true, transfers where the sender equals the initiator are forbidden. + bool requireFromDoesNotEqualInitiatedBy = 7; + + // Auto-deletion options for this approval. Defines conditions under which this approval should be + // automatically deleted (e.g., after a certain number of uses or time period). + AutoDeletionOptions autoDeletionOptions = 8; + + // Must own tokens for approval. Defines token ownership requirements that must be satisfied for + // the approval to be valid. The initiator must own the specified tokens at the specified ownership times. + repeated MustOwnTokens mustOwnTokens = 9; + // Dynamic store challenges that the initiator must pass for approval. The initiator must provide + // valid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups). + repeated DynamicStoreChallenge dynamicStoreChallenges = 10; + // ETH signature challenges that the initiator must pass for approval. The initiator must provide + // valid Ethereum signatures for all specified challenges. Each signature can only be used once. + repeated ETHSignatureChallenge ethSignatureChallenges = 11; + // Address checks for the sender of the transfer. Validates that the sender address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + // Note: No recipient checks are included for incoming approvals since the recipient is the user themselves. + AddressChecks senderChecks = 12; + // Address checks for the initiator of the transfer. Validates that the initiator address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + AddressChecks initiatorChecks = 13; + // Alternative time-based checks for approval denial (offline hours/days). Defines time periods + // during which this approval should be denied, such as specific hours of the day or days of the week. + AltTimeChecks altTimeChecks = 14; + // If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used. + // This allows fine-grained control over which approvals are applied when multiple approvals could match. + bool mustPrioritize = 15; + // Voting challenges that must be satisfied for approval. The initiator must provide + // valid votes that meet the quorum threshold for all specified challenges. + repeated VotingChallenge votingChallenges = 16; + // EVM query challenges that must pass for approval. Read-only contract queries + // that verify external EVM state (e.g., token ownership in another contract). + repeated EVMQueryChallenge evmQueryChallenges = 17; +} + diff --git a/proto/tokenization/v29/approval_tracking.proto b/proto/tokenization/v29/approval_tracking.proto new file mode 100644 index 00000000..a2488027 --- /dev/null +++ b/proto/tokenization/v29/approval_tracking.proto @@ -0,0 +1,78 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/balances.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// AutoDeletionOptions defines the options for auto-deletion of approvals. +message AutoDeletionOptions { + // After one use? + bool afterOneUse = 1; + // After overall max number of uses threshold is met? + bool afterOverallMaxNumTransfers = 2; + // Allow counterparty to purge this approval if they are the only initiator + bool allowCounterpartyPurge = 3; + // Allow others to call PurgeApprovals on behalf of this approval owner + bool allowPurgeIfExpired = 4; +} + +// Time intervals to reset the trackers at. +message ResetTimeIntervals { + // Original start time of the first interval. + string startTime = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Interval length in unix milliseconds. + string intervalLength = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// ApprovalAmounts defines approval amounts per unique "from," "to," and/or "initiated by" address. +// If any of these are nil or "0", we assume unlimited approvals. +// If they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times +// must not exceed the corresponding value. +message ApprovalAmounts { + // Overall approval amount. + string overallApprovalAmount = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Approval amount per "to" address. + string perToAddressApprovalAmount = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Approval amount per "from" address. + string perFromAddressApprovalAmount = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Approval amount per "initiated by" address. + string perInitiatedByAddressApprovalAmount = 4 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The ID of the amount tracker associated with this approval. + // We use this ID to track the number of transfers and amounts transferred. + string amountTrackerId = 6; + // Time intervals to reset the trackers at. + ResetTimeIntervals resetTimeIntervals = 7; +} + +// MaxNumTransfers defines the maximum number of transfers per unique "from," "to," and/or "initiated by" address. +// If any of these are nil or "0", we assume unlimited approvals. +// If they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times +// must not exceed the corresponding value. +message MaxNumTransfers { + // Overall maximum number of transfers. + string overallMaxNumTransfers = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Maximum number of transfers per "to" address. + string perToAddressMaxNumTransfers = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Maximum number of transfers per "from" address. + string perFromAddressMaxNumTransfers = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Maximum number of transfers per "initiated by" address. + string perInitiatedByAddressMaxNumTransfers = 4 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The ID of the amount tracker associated with this approval. + // We use this ID to track the number of transfers and amounts transferred. + string amountTrackerId = 6; + // Time intervals to reset the trackers at. + ResetTimeIntervals resetTimeIntervals = 7; +} + +// ApprovalTracker defines the tracker for approvals. This tracks the cumulative number of transfers and associated balances transferred. +message ApprovalTracker { + // The number of transfers that have been processed. + string numTransfers = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Cumulative balances associated with the transfers that have been processed. + repeated Balance amounts = 2; + // Last updated at time. + string lastUpdatedAt = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + diff --git a/proto/tokenization/v29/approvals.proto b/proto/tokenization/v29/approvals.proto new file mode 100644 index 00000000..c4b4f278 --- /dev/null +++ b/proto/tokenization/v29/approvals.proto @@ -0,0 +1,155 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/balances.proto"; +import "tokenization/v29/approval_criteria.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// CollectionApproval defines the rules for the approval of a transfer. +// Each transfer can be broken down into a (from, to, initiatedBy, transferTime, tokenId) tuple. +// We check the approvals for first match of this tuple, using the approvals. Subsequent matches are ignored. +// +// If the first match is disallowed, the transfer is disallowed. +// If the first match is allowed, then we check the rest of the restrictions. If any restrictions fail, then the transfer is disallowed. +// We do not proceed to the next match. +// +// Challenges defines the challenges that must be met with valid solutions for the transfer to be approved. +// +// requireTo/From(DoesNot)EqualsInitiatedBy defines whether the to/from address must equal the initiatedBy address or not. If it doesn't, then the transfer is disallowed. +// +// overallApprovals defines the overall approvals for the transfer (i.e. the running tally of the number of transfers and amounts transferred by all addresses). +// perAddressApprovals defines the approvals per unique from, to, and/or initiatedBy address. +// If any of these are nil, we assume unlimited approvals. +// +// IMPORTANT: We track the number of transfers and amounts transferred according to a tracker ID. This is a running tally that increments over time. +// Whenever a transfer is processed that maps to a specific tracker ID, we increment the number of transfers and amounts transferred. +// If the number of transfers or amounts transferred exceeds the corresponding overall or per address approvals, then the transfer is disallowed. +// Note we only track if overallApprovals or to/from/intiiatedByApprovals is not nil. +// If you want to reset the tracker tally, update the tracker ID to a new unique tracker ID. +// Tracker IDs are unique to their timelines. A tracker ID "abc" can be used for the collection, outgoing, and incoming timelines without overlap or overwriting one another. +// +// Ex: If overallApprovals maxNumTransfers = 20 and trackerID = "abc", then the first 20 transfers that map to trackerID = "abc" will be approved. The 21st transfer will be disallowed. +// +// IMPORTANT: Be very careful when updating an approved transfer but keeping the same tracker ID. +// For example, if you change the corresponding token IDs and the old token IDs overlap, then the overlapping token IDs will already have existing tallies. +// +// Another common area of confusion is what is actually being tallied. The tally is based on the approved transfer rules that are set. +// For example, if you don't have per address rules set and you update the approved transfer rules to include per address rules, +// then the tally doesn't retroactively apply the per address rules to the previous transfers. It starts at that time. +// +// Lastly, we have overridesFromOutgoingApprovals and overridesToIncomingApprovals. +// If these are set to true, we ignore the from / to user's approved outgoing / incoming transfers, respectively. +// This is useful, for example, for forcefully revoking tokens. +// If these are set to false, the transfer must also be approved by the from /to user's approved outgoing / incoming transfers, respectively. + +// CollectionApproval defines the rules for the approval of a transfer on the collection level +message CollectionApproval { + // The list ID for the sender of the transfer. + string fromListId = 1; + // The list ID for the recipient of the transfer. + string toListId = 2; + // The list ID for the user who initiated the transfer. + string initiatedByListId = 3; + // The allowed range of transfer times for approval. + repeated UintRange transferTimes = 4; + // The allowed range of token IDs for approval. + repeated UintRange tokenIds = 5; + // The allowed range of ownership times for approval. + repeated UintRange ownershipTimes = 6; + + // The URI associated with this approval, optionally providing metadata about the approval. + string uri = 7; + + // Arbitrary custom data associated with this approval. + string customData = 8; + + // The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming). + string approvalId = 9; + + // The criteria that must be met for this approval to be considered. + ApprovalCriteria approvalCriteria = 10; + + // Version of the approval. Maintained internally. + string version = 11 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// UserOutgoingApproval defines the rules for the approval of an outgoing transfer from a user. +message UserOutgoingApproval { + // The list ID for the recipient of the transfer. + string toListId = 1; + + // The list ID for the user who initiated the transfer. + string initiatedByListId = 2; + + // The allowed range of transfer times for approval. + repeated UintRange transferTimes = 3; + + // The allowed range of token IDs for approval. + repeated UintRange tokenIds = 4; + + // The allowed range of ownership times for approval. + repeated UintRange ownershipTimes = 5; + + // The URI associated with this approval, optionally providing metadata about the approval. + string uri = 6; + + // Arbitrary custom data associated with this approval. + string customData = 7; + + // The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming). + string approvalId = 8; + + // The criteria that must be met for this approval to be considered. + OutgoingApprovalCriteria approvalCriteria = 9; + + // Version of the approval. Maintained internally. + string version = 10 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// UserIncomingApproval defines the rules for the approval of an incoming transfer to a user. +message UserIncomingApproval { + // The list ID for the sender of the transfer. + string fromListId = 1; + + // The list ID for the user who initiated the transfer. + string initiatedByListId = 2; + + // The allowed range of transfer times for approval. + repeated UintRange transferTimes = 3; + + // The allowed range of token IDs for approval. + repeated UintRange tokenIds = 4; + + // The allowed range of ownership times for approval. + repeated UintRange ownershipTimes = 5; + + // The URI associated with this approval, optionally providing metadata about the approval. + string uri = 6; + + // Arbitrary custom data associated with this approval. + string customData = 7; + + // The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming). + string approvalId = 8; + + // The criteria that must be met for this approval to be considered. + IncomingApprovalCriteria approvalCriteria = 9; + + // Version of the approval. Maintained internally. + string version = 10 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// ApprovalIdentifierDetails defines the details to identify a specific approval. +message ApprovalIdentifierDetails { + // The ID of the approval. + string approvalId = 1; + // The level of the approval. Can be "collection", "incoming", or "outgoing". + string approvalLevel = 2; + // The address of the approver. Leave blank "" if approvalLevel == "collection". + string approverAddress = 3; + // The version of the approval. + string version = 4 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + diff --git a/proto/tokenization/v29/balances.proto b/proto/tokenization/v29/balances.proto new file mode 100644 index 00000000..2959b26e --- /dev/null +++ b/proto/tokenization/v29/balances.proto @@ -0,0 +1,55 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/params.proto"; +// this line is used by starport scaffolding # genesis/proto/import + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +/* + The UintRange is a range of IDs from some start to some end (inclusive). + uintRanges are one of the core types used. + + They are used for everything from token IDs to time ranges to min/max balance amounts. + + See the BitBadges documentation for more information. +*/ +message UintRange { + // The starting value of the range (inclusive). + string start = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The ending value of the range (inclusive). + string end = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + + +/* + Balance represents the balance of a token for a specific user. + The user amounts xAmount of a token specified for the time ranges specified. + + Example: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021. + + If times or tokenIDs have len > 1, then the user owns all token IDs specified for all time ranges specified. +*/ +message Balance { + // The amount of the token owned by the user. + string amount = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The time ranges during which the user owns the token. + repeated UintRange ownershipTimes = 2; + + // The token IDs for which the user owns the token. + repeated UintRange tokenIds = 3; +} + +// PrecalculationOptions defines the options for precalculating the balances. +message PrecalculationOptions { + // The timestamp to override with when calculating the balances. + string overrideTimestamp = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The IDs to override for the transfer. Only applicable if using this option in precalculation. + repeated UintRange tokenIdsOverride = 2; + // When > 0 and allowAmountScaling is true on the approval, all precalculated balance amounts + // are multiplied by this value. Must be <= maxScalingMultiplier. 0 means no scaling (returns 1x base). + string scalingMultiplier = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} \ No newline at end of file diff --git a/proto/tokenization/v29/challenges.proto b/proto/tokenization/v29/challenges.proto new file mode 100644 index 00000000..28b2ef83 --- /dev/null +++ b/proto/tokenization/v29/challenges.proto @@ -0,0 +1,204 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +/* + Challenges define a rule for the approval in the form of a Merkle challenge. + + A Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof, + then the challenge is met. All challenges must be met with valid solutions for the transfer to be approved. + + IMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials. + + IMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge. + If you update the challenge ID, then the used leaves tracker will reset and start a new tally. + We recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior. +*/ +message MerkleChallenge { + // The root hash of the Merkle tree to which the Merkle path must lead for verification. + string root = 1; + + // The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks. + string expectedProofLength = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses. + bool useCreatorAddressAsLeaf = 3; + + // The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks. + string maxUsesPerLeaf = 4 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The URI associated with this Merkle challenge, optionally providing metadata about the challenge. + string uri = 5; + + // Arbitrary custom data associated with this Merkle challenge. + string customData = 6; + + // The ID of this Merkle challenge for tracking the number of uses per leaf. + string challengeTrackerId = 7; + + // Ethereum address that must sign the leaf. Used to protect against man-in-the-middle attacks. + // Signature scheme: sign(leaf + "-" + creatorAddress), verified using elliptic curve signature verification. + string leafSigner = 8; +} + +/* + ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge. + + An ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce. + The signature scheme is ETHSign(nonce + "-" + initiatorAddress + "-" + collectionId + "-" + approverAddress + "-" + approvalLevel + "-" + approvalId + "-" + challengeId) and each signature can only be used once. + All challenges must be met with valid solutions for the transfer to be approved. + + IMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once. + If you update the challenge ID, then the used signatures tracker will reset and start a new tally. + We recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior. +*/ +message ETHSignatureChallenge { + // The Ethereum address that must sign the nonce for verification. + string signer = 1; + + // The ID of this ETH signature challenge for tracking the number of uses per signature. + string challengeTrackerId = 2; + + // The URI associated with this ETH signature challenge, optionally providing metadata about the challenge. + string uri = 3; + + // Arbitrary custom data associated with this ETH signature challenge. + string customData = 4; +} + +// MerklePathItem represents an item in a Merkle path. +message MerklePathItem { + // The hash of the sibling node (aunt) in the Merkle path. + string aunt = 1; + // Indicates whether the aunt node is on the right side of the path. + bool onRight = 2; +} + +// MerkleProof represents a Merkle proof, consistent with Tendermint/Crypto Merkle tree. +message MerkleProof { + // The hash of the leaf node for which the proof is generated. + string leaf = 1; + // List of Merkle path items (aunts) that make up the proof. + repeated MerklePathItem aunts = 2; + // The signature of the leaf node tying the address to the leaf node. + string leafSignature = 3; +} + +// ETHSignatureProof represents an Ethereum signature proof for a challenge. +message ETHSignatureProof { + // The nonce that was signed. The signature scheme is ETHSign(nonce + "-" + initiatorAddress + "-" + collectionId + "-" + approverAddress + "-" + approvalLevel + "-" + approvalId + "-" + challengeId). + string nonce = 1; + // The Ethereum signature of the nonce. + string signature = 2; +} + +/* + VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge. + Requires a weighted quorum threshold to be met through votes from specified voters. + All challenges must be met with valid solutions for the transfer to be approved. + + IMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage + of total possible weight (all voters), not just voted weight. If you update the proposal ID, then the + vote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge + to prevent overlap and unexpected behavior. +*/ +message VotingChallenge { + // The ID of this voting challenge for tracking votes (scoped like challengeTrackerId). + // Format: collectionId-approverAddress-approvalLevel-approvalId-challengeId + string proposalId = 1; + + // The quorum threshold as a percentage (0-100) of total possible weight that must vote "yes". + // Example: 50 means 50% of total voter weight must vote yes for approval. + string quorumThreshold = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // List of voters with their weights. Each voter can cast a weighted vote. + repeated Voter voters = 3; + + // The URI associated with this voting challenge. + string uri = 4; + + // Arbitrary custom data associated with this voting challenge. + string customData = 5; + + // If true, all votes for this challenge are cleared after a successful transfer execution. + // This makes the challenge reusable (e.g., for vault withdrawals that need fresh approval each time). + bool resetAfterExecution = 6; + + // Mandatory delay in milliseconds after quorum is reached before the transfer can execute. + // If set, the transfer will fail until: now >= quorumReachedTimestamp + delayAfterQuorum. + // During the delay, signers can remove their votes to cancel (quorum drops = delay resets). + string delayAfterQuorum = 7 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// Voter defines a voter with their address and weight. +message Voter { + // The address of the voter. + string address = 1; + + // The weight of this voter's vote. + string weight = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// VoteProof represents a vote cast for a voting challenge. +message VoteProof { + // The proposal ID this vote is for. + string proposalId = 1; + + // The address of the voter casting the vote. + string voter = 2; + + // The percentage weight (0-100) allocated to "yes" vote. + // The remaining percentage (100 - yesWeight) is allocated to "no" vote. + // Example: yesWeight=70 means 70% yes, 30% no. + string yesWeight = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // Timestamp (unix ms) when this vote was cast. Set automatically by the chain. + string votedAt = 4 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// VotingChallengeTracker tracks the quorum state for a voting challenge. +// Stored per (collectionId, approverAddress, approvalLevel, approvalId, proposalId). +message VotingChallengeTracker { + // Timestamp (unix ms) when quorum was first reached. Cleared when quorum drops or after reset. + string quorumReachedTimestamp = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +/* + EVMQueryChallenge defines a rule for approval via read-only EVM contract query. + + The challenge executes a staticcall to the specified contract with the given calldata. + The result is compared against the expected result (if provided) or checked for non-zero return. + + IMPORTANT: This is read-only and cannot modify state. The query is executed with a gas limit + to prevent DoS attacks. All results are deterministic since EVM state is consistent within a block. +*/ +message EVMQueryChallenge { + // The EVM contract address to query (0x format or bb1 format) + string contractAddress = 1; + + // ABI-encoded function selector + arguments (hex string without 0x prefix) + // Example: "70a08231000000000000000000000000{address}" for balanceOf(address) + // Can use placeholders: $initiator, $sender, $recipient (replaced at runtime) + string calldata = 2; + + // Expected return value (hex string without 0x prefix). If empty, any non-error result passes. + // For boolean checks, use "0000...0001" for true. + string expectedResult = 3; + + // Comparison operator: "eq" (equals), "ne" (not equals), "gt" (greater than), "gte", "lt", "lte" + // Only "eq" and "ne" work for non-numeric types. Default is "eq". + string comparisonOperator = 4; + + // Gas limit for the query (default 100000, max 500000) + string gasLimit = 5 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The URI associated with this challenge (metadata) + string uri = 6; + + // Arbitrary custom data + string customData = 7; +} + diff --git a/proto/tokenization/v29/collections.proto b/proto/tokenization/v29/collections.proto new file mode 100644 index 00000000..2e28d9a7 --- /dev/null +++ b/proto/tokenization/v29/collections.proto @@ -0,0 +1,198 @@ +syntax = "proto3"; +package tokenization.v29; + +import "google/protobuf/any.proto"; +import "tokenization/v29/transfers.proto"; +import "tokenization/v29/balances.proto"; +import "tokenization/v29/permissions.proto"; +import "tokenization/v29/metadata.proto"; +import "tokenization/v29/approvals.proto"; +import "tokenization/v29/user_balance_store.proto"; +import "tokenization/v29/challenges.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +/* + A TokenCollection is the top-level object for a collection of tokens. + It defines everything about the collection, such as the manager, metadata, etc. + + All collections are identified by a collectionId assigned by the blockchain, which is a uint64 that increments (i.e. the first collection has ID 1). + + All collections can have a manager who is responsible for managing the collection and can be granted certain admin + permissions, such as the ability to mint new tokens. + + Collections may have different balance types: standard vs. off-chain - indexed vs. inherited.vs off-chain - non-indexed vs non-public. + + See documentation for more details. +*/ +message TokenCollection { + // The unique identifier for this collection. This is assigned by the blockchain. First collection has ID 1. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The metadata for the collection itself. + CollectionMetadata collectionMetadata = 2; + + // The metadata for each token in the collection. + repeated TokenMetadata tokenMetadata = 3; + + // An arbitrary field that can store any data. + string customData = 4; + + // The address of the manager of this collection. + string manager = 5; + + // Permissions that define what the manager of the collection can do or not do. + CollectionPermissions collectionPermissions = 6; + + // Transferability of the collection for collections with standard balances, subject to changes over time. + // Overrides user approvals for a transfer if specified. + // Transfer must satisfy both user and collection-level approvals. + // Only applicable to on-chain balances. + repeated CollectionApproval collectionApprovals = 7; + + // Standards that define how to interpret the fields of the collection. + repeated string standards = 8; + + // Whether the collection is archived or not. + // When archived, it becomes read-only, and no transactions can be processed until it is unarchived. + bool isArchived = 9; + + // The default store of a balance / approvals for a user, upon genesis. + UserBalanceStore defaultBalances = 10; + + // The user or entity who created the collection. + string createdBy = 11; + + // The valid token IDs for this collection. + repeated UintRange validTokenIds = 12; + + //The generated address of the collection. Also used to escrow Mint balances. + string mintEscrowAddress = 13; + + // The IBC wrapper (sdk.coin) paths for the collection. + repeated CosmosCoinWrapperPath cosmosCoinWrapperPaths = 14; + + // Collection-level invariants that cannot be broken. + // These are set upon genesis and cannot be modified. + CollectionInvariants invariants = 15; + + // The alias (non-wrapping) paths for the collection. + repeated AliasPath aliasPaths = 16; +} + +// Conversion defines a bidirectional conversion between a cosmos coin (with denom) and token balances. +message Conversion { + // Side A: The cosmos coin side of the conversion (amount + denom). + ConversionSideAWithDenom sideA = 1; + // Side B: The token balances side of the conversion. + repeated Balance sideB = 2; +} + +// ConversionSideAWithDenom represents the cosmos coin side of a conversion with denomination. +message ConversionSideAWithDenom { + // The amount of the cosmos coin (0 decimals). + string amount = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The denomination of the cosmos coin. + string denom = 2; +} + +// ConversionWithoutDenom defines a bidirectional conversion between a cosmos coin amount (without denom) and token balances. +// The denom is stored at the base level (e.g., in AliasPath or CosmosCoinWrapperPath). +message ConversionWithoutDenom { + // Side A: The cosmos coin amount side of the conversion (amount only, denom stored separately). + ConversionSideA sideA = 1; + // Side B: The token balances side of the conversion. + repeated Balance sideB = 2; +} + +// ConversionSideA represents the cosmos coin amount side of a conversion without denomination. +message ConversionSideA { + // The amount of the cosmos coin (0 decimals). + string amount = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +message CosmosCoinWrapperPath { + // The BitBadges address associated with this wrapper path. Used for routing and identifying the wrapper. + string address = 1; + // The denomination (denom) to be used for the wrapped coin or the alias denom. + string denom = 2; + // The conversion between cosmos coin and token balances. + ConversionWithoutDenom conversion = 3; + // The symbol for the wrapped coin (e.g., "BADGE", "NFT"). Used for display purposes. Note that this may not be the default. + string symbol = 4; + // Denomination units for the wrapped coin. Defines how the coin can be displayed with different + // decimal places and symbols (e.g., base unit, display unit). You can specify which is the default display unit (base level or one of these). + repeated DenomUnit denomUnits = 5; + // If true, allows this wrapper path to be used with any valid token ID in the collection via an {id} placeholder. + bool allowOverrideWithAnyValidToken = 6; + // The metadata for this wrapper path. + PathMetadata metadata = 7; +} + +message AliasPath { + // The denomination (denom) to be used for the alias. + string denom = 1; + // The conversion between cosmos coin and token balances. + ConversionWithoutDenom conversion = 2; + // The symbol for the alias (e.g., "BADGE", "NFT"). Used for display purposes. Note that this may not be the default. + string symbol = 3; + // Denomination units for the alias. Defines how the coin can be displayed with different decimal places and symbols. + repeated DenomUnit denomUnits = 4; + // The metadata for this alias path. + PathMetadata metadata = 5; +} + +message CosmosCoinBackedPath { + // The address associated with this backed path. Used for routing and escrowing IBC tokens. + string address = 1; + // The conversion between IBC cosmos coin and token balances. + Conversion conversion = 2; +} + +message DenomUnit { + // The number of decimal places for this unit. Defines the precision of the unit. + string decimals = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The symbol for this unit (e.g., "BADGE", "nBADGE"). Used for display purposes. + string symbol = 2; + // If true, this is the default display unit. Only one unit should be marked as the default display unit. + // This unit will be used by default when displaying the coin amount. If none are marked default, we use the base level. + bool isDefaultDisplay = 3; + // The metadata for this denomination unit. + PathMetadata metadata = 4; +} + +// CollectionInvariants defines the invariants that apply to a collection. +message CollectionInvariants { + // If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }]. + // This prevents time-based restrictions on token ownership. + bool noCustomOwnershipTimes = 1; + + // Maximum supply per token ID. Checked against Total address balances after transfers complete. + // A value of 0 means no limit (unlimited). + string maxSupplyPerId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The IBC backed (sdk.coin) path for the collection. Only one path is allowed. + CosmosCoinBackedPath cosmosCoinBackedPath = 3; + + // If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true. + // This prevents forceful transfers that bypass user-level approvals. + // This only applies to transfers where the from address does not equal "Mint". + bool noForcefulPostMintTransfers = 4; + + // If true, disallows pool creation with this collection's assets. + // When true, any attempt to create a pool with tokenization assets from this collection will fail. + bool disablePoolCreation = 5; + + // EVM query invariants that must pass after all transfers complete. + // These are checked once per message after all balance updates, with access to ALL recipient addresses. + // Placeholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient + repeated EVMQueryChallenge evmQueryChallenges = 6; +} + +// CollectionStats tracks aggregated statistics for a collection. +message CollectionStats { + string holderCount = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Tracks circulating supply as Balance[] for proper range handling + repeated Balance balances = 2; +} diff --git a/proto/tokenization/v29/dynamic_stores.proto b/proto/tokenization/v29/dynamic_stores.proto new file mode 100644 index 00000000..b9e6904c --- /dev/null +++ b/proto/tokenization/v29/dynamic_stores.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +/* + A DynamicStore is a flexible storage object that can store arbitrary data. + It is identified by a unique ID assigned by the blockchain, which is a uint64 that increments. + Dynamic stores are created by users and can only be updated or deleted by their creator. + They provide a way to store custom data on-chain with proper access control. +*/ +message DynamicStore { + // The unique identifier for this dynamic store. This is assigned by the blockchain. + string storeId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The address of the creator of this dynamic store. + string createdBy = 2; + // The default value for uninitialized addresses (true/false). + bool defaultValue = 3; + // Global kill switch state (defaults to true on creation, can be toggled via UpdateDynamicStore). + // When false, all approvals using this store via DynamicStoreChallenge will fail immediately. + bool globalEnabled = 4; + // URI for additional metadata or resources associated with this dynamic store. + string uri = 5; + // Custom data field for storing arbitrary data associated with this dynamic store. + string customData = 6; +} + +/* + A DynamicStoreValue stores a boolean value for a specific address in a dynamic store. + This allows the creator to set true/false values per address that can be checked during approval. +*/ +message DynamicStoreValue { + // The unique identifier for this dynamic store. + string storeId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The address for which this value is stored. + string address = 2; + // The boolean value (true/false). + bool value = 3; +} \ No newline at end of file diff --git a/proto/tokenization/v29/genesis.proto b/proto/tokenization/v29/genesis.proto new file mode 100644 index 00000000..af968c12 --- /dev/null +++ b/proto/tokenization/v29/genesis.proto @@ -0,0 +1,47 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/params.proto"; +import "tokenization/v29/collections.proto"; +import "tokenization/v29/balances.proto"; +import "tokenization/v29/transfers.proto"; +import "tokenization/v29/address_lists.proto"; +import "tokenization/v29/dynamic_stores.proto"; +import "tokenization/v29/user_balance_store.proto"; +import "tokenization/v29/approval_tracking.proto"; +import "tokenization/v29/challenges.proto"; +// this line is used by starport scaffolding # genesis/proto/import + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// GenesisState defines the tokens module's genesis state. +message GenesisState { + Params params = 1 [(gogoproto.nullable) = false]; + string port_id = 2; + repeated TokenCollection collections = 3; + string nextCollectionId = 4 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated UserBalanceStore balances = 5; + repeated string balanceStoreKeys = 6; + repeated string challengeTrackers = 7 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated string challengeTrackerStoreKeys = 8; + repeated AddressList addressLists = 9; + repeated ApprovalTracker approvalTrackers = 10; + repeated string approvalTrackerStoreKeys = 11; + repeated string approvalTrackerVersions = 12 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated string approvalTrackerVersionsStoreKeys = 13; + repeated DynamicStore dynamicStores = 14; + string nextDynamicStoreId = 15 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated DynamicStoreValue dynamicStoreValues = 16; + repeated string ethSignatureTrackers = 17 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated string ethSignatureTrackerStoreKeys = 18; + repeated VoteProof votingTrackers = 19; + repeated string votingTrackerStoreKeys = 20; + repeated CollectionStats collectionStats = 21; + repeated string collectionStatsIds = 22 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated VotingChallengeTracker votingChallengeTrackers = 23; + repeated string votingChallengeTrackerStoreKeys = 24; + string nextAddressListCounter = 25 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated string reservedProtocolAddresses = 26; + // this line is used by starport scaffolding # genesis/proto/state +} diff --git a/proto/tokenization/v29/icq.proto b/proto/tokenization/v29/icq.proto new file mode 100644 index 00000000..23879a5f --- /dev/null +++ b/proto/tokenization/v29/icq.proto @@ -0,0 +1,95 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/balances.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// OwnershipQueryPacket is sent from a querying chain to BitBadges to verify token ownership. +// The querying chain provides the address and token criteria, and BitBadges responds with +// ownership status and optional cryptographic proof. +message OwnershipQueryPacket { + // Unique identifier for correlating request and response + string query_id = 1; + + // Address to check ownership for (bech32 or EVM hex format) + string address = 2; + + // Collection ID to query (uint as string for cross-chain compatibility) + string collection_id = 3; + + // Token ID to check ownership for (uint as string) + string token_id = 4; + + // Ownership time to check (uint as string, typically current time in milliseconds) + string ownership_time = 5; +} + +// OwnershipQueryResponsePacket is sent from BitBadges back to the querying chain +// with the ownership verification result. +message OwnershipQueryResponsePacket { + // Correlation ID from the original request + string query_id = 1; + + // True if the address owns any of the specified tokens (total_amount > 0) + bool owns_tokens = 2; + + // Total amount owned for the specified token IDs and ownership times + string total_amount = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // Block height at which the response was generated + uint64 proof_height = 4; + + // Error message if the query failed (empty on success) + string error = 5; +} + +// BulkOwnershipQueryPacket allows querying multiple addresses/collections in a single IBC packet. +// This is more efficient than sending multiple individual queries. +message BulkOwnershipQueryPacket { + // Unique identifier for the bulk query + string query_id = 1; + + // Individual queries to process (max 100 recommended) + repeated OwnershipQueryPacket queries = 2; +} + +// BulkOwnershipQueryResponsePacket contains responses for all queries in a bulk request. +message BulkOwnershipQueryResponsePacket { + // Correlation ID from the original bulk request + string query_id = 1; + + // Responses in the same order as the original queries + repeated OwnershipQueryResponsePacket responses = 2; +} + +// FullBalanceQueryPacket is sent from a querying chain to BitBadges to retrieve +// the complete balance store for a user (balances, approvals, permissions). +message FullBalanceQueryPacket { + // Unique identifier for correlating request and response + string query_id = 1; + + // Address to get balance for (bech32 or EVM hex format) + string address = 2; + + // Collection ID to query (uint as string for cross-chain compatibility) + string collection_id = 3; +} + +// FullBalanceQueryResponsePacket is sent from BitBadges back to the querying chain +// with the complete balance store (serialized as bytes for cross-chain compatibility). +message FullBalanceQueryResponsePacket { + // Correlation ID from the original request + string query_id = 1; + + // The serialized UserBalanceStore (protobuf bytes) + // Contains balances, incoming/outgoing approvals, auto-approve settings, and permissions + bytes balance_store = 2; + + // Block height at which the response was generated + uint64 proof_height = 3; + + // Error message if the query failed (empty on success) + string error = 4; +} diff --git a/proto/tokenization/v29/metadata.proto b/proto/tokenization/v29/metadata.proto new file mode 100644 index 00000000..aec640ca --- /dev/null +++ b/proto/tokenization/v29/metadata.proto @@ -0,0 +1,47 @@ +syntax = "proto3"; +package tokenization.v29; + +import "google/protobuf/any.proto"; +import "tokenization/v29/balances.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +/* + This message defines the metadata for specific token IDs. + The interpretation of this metadata should follow the collection standard. +*/ +message TokenMetadata { + // The URI (Uniform Resource Identifier) associated with the token metadata. + string uri = 1; + + // Custom data or additional information related to the token metadata. + string customData = 2; + + // The token IDs to which this metadata applies. + repeated UintRange tokenIds = 3; +} + +/* + This message defines the metadata for the collection. + The interpretation of this metadata should follow the collection standard. +*/ +message CollectionMetadata { + // The URI (Uniform Resource Identifier) associated with the collection metadata. + string uri = 1; + + // Custom data or additional information related to the collection metadata. + string customData = 2; +} + +/* + This message defines the metadata for paths (alias paths and cosmos coin wrapper paths). + The interpretation of this metadata should follow the collection standard. +*/ +message PathMetadata { + // The URI (Uniform Resource Identifier) associated with the path metadata. + string uri = 1; + + // Custom data or additional information related to the path metadata. + string customData = 2; +} diff --git a/proto/tokenization/v29/packet.proto b/proto/tokenization/v29/packet.proto new file mode 100644 index 00000000..08166ac7 --- /dev/null +++ b/proto/tokenization/v29/packet.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; +package tokenization.v29; + +import "tokenization/v29/icq.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// TokenizationPacketData defines the packet data for the tokenization module. +// It uses a oneof to support multiple packet types over the same IBC channel. +message TokenizationPacketData { + oneof packet { + NoData noData = 1; + + // ICQ (Interchain Query) packet types for cross-chain token ownership verification + // OwnershipQuery: Query for a single token ID and ownership time -> returns amount + OwnershipQueryPacket ownershipQuery = 2; + OwnershipQueryResponsePacket ownershipQueryResponse = 3; + BulkOwnershipQueryPacket bulkOwnershipQuery = 4; + BulkOwnershipQueryResponsePacket bulkOwnershipQueryResponse = 5; + + // FullBalanceQuery: Query for complete balance store -> returns full UserBalanceStore + FullBalanceQueryPacket fullBalanceQuery = 6; + FullBalanceQueryResponsePacket fullBalanceQueryResponse = 7; + } +} + +// NoData is a placeholder packet type (legacy scaffold). +message NoData { +} diff --git a/proto/tokenization/v29/params.proto b/proto/tokenization/v29/params.proto new file mode 100644 index 00000000..a70cb58e --- /dev/null +++ b/proto/tokenization/v29/params.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; +package tokenization.v29; + +import "amino/amino.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// Params defines the parameters for the module. +message Params { + option (amino.name) = "github.com/bitbadges/bitbadgeschain/x/tokenization/Params"; + option (gogoproto.equal) = true; + + // allowed_denoms defines the list of denoms that are allowed to be used in coin_transfers + repeated string allowed_denoms = 1; + + // affiliate_percentage defines the percentage of the transfer amount that goes to the affiliate + string affiliate_percentage = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} \ No newline at end of file diff --git a/proto/tokenization/v29/permissions.proto b/proto/tokenization/v29/permissions.proto new file mode 100644 index 00000000..0782ed6e --- /dev/null +++ b/proto/tokenization/v29/permissions.proto @@ -0,0 +1,241 @@ +syntax = "proto3"; +package tokenization.v29; + +import "google/protobuf/any.proto"; +import "tokenization/v29/balances.proto"; +import "tokenization/v29/address_lists.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + + +/* + CollectionPermissions defines the permissions for the collection (i.e., what the manager can and cannot do). + + There are three types of permissions for a collection: ActionPermission, TokenIdsActionPermission, and CollectionApprovalPermission. + + The permission type allows fine-grained access control for each action. + - ActionPermission: defines when the manager can perform an action or update a field. + - TokenIdsActionPermission: defines when the manager can perform an action for specific tokens + - CollectionApprovalPermission: defines when the manager can update the transferability of the collection and what transfers can be updated vs. locked. + + Note there are a few different times here which could get confusing: + - permanentlyPermitted/ForbiddenTimes - the times that a permission can be performed + - transferTimes - the times that a transfer occurs + - ownershipTimes - the times when a token is owned by a user + + The permitted/permanentlyForbiddenTimes are used to determine when a permission can be executed. + Once a time is set to be permitted or forbidden, it is PERMANENT and cannot be changed. + If a time is not set to be permitted or forbidden, it is considered NEUTRAL and can be updated but is ALLOWED by default. + + IMPORTANT: We take first-match only for the permissions. This means that if you forbid time T in array index 0 and permit time T in index 1, + we will only check the first permission (forbid time T) and not the second permission (permit time T). +*/ +message CollectionPermissions { + // Permissions related to deleting the collection. + repeated ActionPermission canDeleteCollection = 1; + + // Permissions related to archiving the collection. + repeated ActionPermission canArchiveCollection = 2; + + // Permissions related to updating standards for the collection. + repeated ActionPermission canUpdateStandards = 3; + + // Permissions related to updating custom data for the collection. + repeated ActionPermission canUpdateCustomData = 4; + + // Permissions related to updating the collection's manager. + repeated ActionPermission canUpdateManager = 5; + + // Permissions related to updating the metadata of the collection. + repeated ActionPermission canUpdateCollectionMetadata = 6; + + // Permissions related to creating more tokens for the collection. + repeated TokenIdsActionPermission canUpdateValidTokenIds = 7; + + // Permissions related to updating token metadata for specific tokens. + repeated TokenIdsActionPermission canUpdateTokenMetadata = 8; + + // Permissions related to updating collection approvals. + repeated CollectionApprovalPermission canUpdateCollectionApprovals = 9; + + // Permissions related to adding more alias paths to the collection. + repeated ActionPermission canAddMoreAliasPaths = 10; + + // Permissions related to adding more cosmos coin wrapper paths to the collection. + repeated ActionPermission canAddMoreCosmosCoinWrapperPaths = 11; +} + +/* + UserPermissions defines the permissions for the user about their approvals (i.e., what the user can and cannot do). + + See CollectionPermissions for more details on the different types of permissions. + + canUpdateOutgoingApprovals and canUpdateOutgoingApprovals follow the same as the canUpdateCollectionApprovals in CollectionPermissions, + but certain fields are removed because they are not relevant to the user. +*/ +message UserPermissions { + // Permissions related to updating the user's approved outgoing transfers. + repeated UserOutgoingApprovalPermission canUpdateOutgoingApprovals = 1; + + // Permissions related to updating the user's approved incoming transfers. + repeated UserIncomingApprovalPermission canUpdateIncomingApprovals = 2; + + // Permissions related to updating auto-approval settings for self-initiated outgoing transfers (whether they are allowed by default). + repeated ActionPermission canUpdateAutoApproveSelfInitiatedOutgoingTransfers = 3; + + // Permissions related to updating auto-approval settings for self-initiated incoming transfers (whether they are allowed by default). + repeated ActionPermission canUpdateAutoApproveSelfInitiatedIncomingTransfers = 4; + + // Permissions related to updating auto-approval settings for all incoming transfers (whether they are allowed by default). + repeated ActionPermission canUpdateAutoApproveAllIncomingTransfers = 5; +} + + +/* + CollectionApprovalPermission defines what collection approved transfers can be updated vs. are locked. + + Each transfer is broken down to a (from, to, initiatedBy, transferTime, tokenId) tuple. + For a transfer to match, we need to match ALL of the fields in the combination. + These are determined by the fromListId, toListId, initiatedByListId, transferTimes, tokenIds fields. + AddressLists are used for (from, to, initiatedBy) which are a permanent list of addresses identified by an ID (see AddressLists). + + permanentlyPermitted/ForbiddenTimes: when can the manager execute this permission? + + Ex: Let's say we are updating the transferability for the transfer tuple ("AllWithoutMint", "AllWithoutMint", "AllWithoutMint", 10, 1000). + We would check to find the FIRST CollectionApprovalPermission that matches this combination. + If we find a match, we would check the permitted/forbidden times to see if we can execute this permission (default is ALLOWED). + + Ex: So if you wanted to freeze the transferability to enforce that token ID 1 will always be transferable, you could set + the combination ("AllWithoutMint", "AllWithoutMint", "AllWithoutMint", "All Transfer Times", 1) to always be forbidden. +*/ +message CollectionApprovalPermission { + // Identifier for the sender list. + string fromListId = 1; + + // Identifier for the recipient list. + string toListId = 2; + + // Identifier for the initiator list (who is approved?). + string initiatedByListId = 3; + + // Specifies the times when the transfer can occur. + repeated UintRange transferTimes = 4; + + // Specifies the token IDs involved in the transfer. + repeated UintRange tokenIds = 5; + + // Specifies the ownership times for the tokens in the transfer. + repeated UintRange ownershipTimes = 6; + + // Identifier for the approvalId. You can use "All" or "!approvalId" for shorthand. + // If you use "All", this approval will match to all approvalIds. + // If you use "!approvalId", this approval will match to all approvalIds except for approvalId. + // If you use "approvalId", this approval will match to only the specified approvalId and fail on all others. + string approvalId = 7; + + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + repeated UintRange permanentlyPermittedTimes = 8; + + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + repeated UintRange permanentlyForbiddenTimes = 9; +} + + +/* + UserOutgoingApprovalPermission defines the permissions for updating the user's approved outgoing transfers. +*/ +message UserOutgoingApprovalPermission { + // Identifier for the recipient list. + string toListId = 1; + + // Identifier for the initiator list (who is approved?). + string initiatedByListId = 2; + + // Specifies the times when the transfer can occur. + repeated UintRange transferTimes = 3; + + // Specifies the token IDs involved in the transfer. + repeated UintRange tokenIds = 4; + + // Specifies the ownership times for the tokens in the transfer. + repeated UintRange ownershipTimes = 5; + + // Identifier for the approvalId. You can use "All" or "!approvalId" for shorthand. + // If you use "All", this approval will match to all approvalIds. + // If you use "!approvalId", this approval will match to all approvalIds except for approvalId. + // If you use "approvalId", this approval will match to only the specified approvalId and fail on all others. + string approvalId = 6; + + + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + repeated UintRange permanentlyPermittedTimes = 7; + + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + repeated UintRange permanentlyForbiddenTimes = 8; +} + +/* + UserIncomingApprovalPermission defines the permissions for updating the user's approved incoming transfers. + + See CollectionApprovalPermission for more details. This is equivalent without the toListId field because that is always the user. +*/ +message UserIncomingApprovalPermission { + // Identifier for the sender list. + string fromListId = 1; + + // Identifier for the initiator list (who is approved?). + string initiatedByListId = 2; + + // Specifies the times when the transfer can occur. + repeated UintRange transferTimes = 3; + + // Specifies the token IDs involved in the transfer. + repeated UintRange tokenIds = 4; + + // Specifies the ownership times for the tokens in the transfer. + repeated UintRange ownershipTimes = 5; + + // Identifier for the approvalId. You can use "All" or "!approvalId" for shorthand. + // If you use "All", this approval will match to all approvalIds. + // If you use "!approvalId", this approval will match to all approvalIds except for approvalId. + // If you use "approvalId", this approval will match to only the specified approvalId and fail on all others. + string approvalId = 6; + + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + repeated UintRange permanentlyPermittedTimes = 7; + + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + repeated UintRange permanentlyForbiddenTimes = 8; +} + +/* + TokenIdsActionPermission defines the permissions for performing an action for specific tokens. + Currently, this is only used for creating new tokens. + + Ex: If you want to lock the ability to create new tokens for tokenIds [1,2] at ownershipTimes 1/1/2020 - 1/1/2021, + you could set the combination (tokenIds: [1,2], ownershipTimes: [1/1/2020 - 1/1/2021]) to always be forbidden. +*/ +message TokenIdsActionPermission { + // Specifies the token IDs involved in the transfer. + repeated UintRange tokenIds = 1; + + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + repeated UintRange permanentlyPermittedTimes = 2; + + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + repeated UintRange permanentlyForbiddenTimes = 3; +} + +/* + ActionPermission defines the permissions for performing an action. + + This is simple and straightforward as the only thing we need to check is the permitted/forbidden times. +*/ +message ActionPermission { + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + repeated UintRange permanentlyPermittedTimes = 1; + + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + repeated UintRange permanentlyForbiddenTimes = 2; +} diff --git a/proto/tokenization/v29/predetermined_balances.proto b/proto/tokenization/v29/predetermined_balances.proto new file mode 100644 index 00000000..ecafb069 --- /dev/null +++ b/proto/tokenization/v29/predetermined_balances.proto @@ -0,0 +1,75 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/balances.proto"; +import "tokenization/v29/challenges.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set. +message ManualBalances { + repeated Balance balances = 1; +} + +// RecurringOwnershipTimes represents a list of recurring ownership times. +message RecurringOwnershipTimes { + // The original start time of the first interval. + string startTime = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The interval length in unix milliseconds. + string intervalLength = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Grace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period + string chargePeriodLength = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method. +message IncrementedBalances { + repeated Balance startBalances = 1; + // The amount by which to increment token IDs. + string incrementTokenIdsBy = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The amount by which to increment ownership times. Incompatible with approveStartingFromNowBy. + string incrementOwnershipTimesBy = 3 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy. + string durationFromTimestamp = 4 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // Whether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set). + bool allowOverrideTimestamp = 5; + // Recurring ownership times. + RecurringOwnershipTimes recurringOwnershipTimes = 6; + // Allow override of any valid ID + bool allowOverrideWithAnyValidToken = 7; + // When true, the actual transfer can be any evenly divisible integer multiple (>=1x) of startBalances. + // approvalCriteria.coinTransfers are scaled by the same multiplier. + // All other IncrementedBalances fields must be zero/false/nil when this is true. + bool allowAmountScaling = 8; + // Maximum allowed scaling multiplier. Must be > 0 when allowAmountScaling is true. + // The chain rejects transfers where the computed multiplier exceeds this cap. + // Ignored (set to "0") when allowAmountScaling is false. + string maxScalingMultiplier = 9 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order. +message PredeterminedOrderCalculationMethod { + // Use the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc. + bool useOverallNumTransfers = 1; + // Use the number of transfers per "to" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc. + bool usePerToAddressNumTransfers = 2; + // Use the number of transfers per "from" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc. + bool usePerFromAddressNumTransfers = 3; + // Use the number of transfers per "initiated by" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc. + bool usePerInitiatedByAddressNumTransfers = 4; + // Use the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc. + bool useMerkleChallengeLeafIndex = 5; + // If useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method. + string challengeTrackerId = 6; +} + +// PredeterminedBalances represents balances with predetermined order calculation. +message PredeterminedBalances { + // Manual balances that can be entered. If this is nil, then we use the incremented balances. + repeated ManualBalances manualBalances = 1; + // Balances that have a starting amount and increment. If this is nil, then we use the manual balances. + IncrementedBalances incrementedBalances = 2; + // The method to calculate the order of predetermined balances. + PredeterminedOrderCalculationMethod orderCalculationMethod = 3; +} + diff --git a/proto/tokenization/v29/timelines.proto b/proto/tokenization/v29/timelines.proto new file mode 100644 index 00000000..99bc2028 --- /dev/null +++ b/proto/tokenization/v29/timelines.proto @@ -0,0 +1,74 @@ +syntax = "proto3"; +package tokenization.v29; + +import "google/protobuf/any.proto"; +import "tokenization/v29/transfers.proto"; +import "tokenization/v29/balances.proto"; +import "tokenization/v29/permissions.proto"; +import "tokenization/v29/metadata.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// CollectionMetadataTimeline defines the metadata for a collection at different timeline times. +message CollectionMetadataTimeline { + // The collection metadata for a specific timeline element. + CollectionMetadata collectionMetadata = 1; + + // The timeline times when the collection metadata is valid. Can not overlap with other timeline elements in same array. + repeated UintRange timelineTimes = 2; +} + +// TokenMetadataTimeline defines the metadata for tokens at different timeline times. +message TokenMetadataTimeline { + // The token metadata for a specific timeline element. + repeated TokenMetadata tokenMetadata = 1; + + // The timeline times when the token metadata is valid. Can not overlap with other timeline elements in same array. + repeated UintRange timelineTimes = 2; +} + +// CustomDataTimeline defines custom data at different timeline times. +message CustomDataTimeline { + // The custom data for a specific timeline element. + string customData = 1; + + // The timeline times when the custom data is valid. Can not overlap with other timeline elements in same array. + repeated UintRange timelineTimes = 2; +} + +// ManagerTimeline defines the manager address at different timeline times. +message ManagerTimeline { + // The manager address for a specific timeline element. + string manager = 1; + + // The timeline times when the manager address is valid. Can not overlap with other timeline elements in same array. + repeated UintRange timelineTimes = 2; +} + +// IsArchivedTimeline defines whether a collection is archived at different timeline times. +message IsArchivedTimeline { + // Indicates whether the collection is archived for a specific timeline element. + bool isArchived = 1; + + // The timeline times when the archived status is valid. Can not overlap with other timeline elements in same array. + repeated UintRange timelineTimes = 2; +} + +// ContractAddressTimeline defines the contract address at different timeline times. +message ContractAddressTimeline { + // The contract address for a specific timeline element. + string contractAddress = 1; + + // The timeline times when the contract address is valid. Can not overlap with other timeline elements in same array. + repeated UintRange timelineTimes = 2; +} + +// StandardsTimeline defines the standards used for a collection at different timeline times. +message StandardsTimeline { + // The standards applied to the collection for a specific timeline element. + repeated string standards = 1; + + // The timeline times when the standards are valid. Can not overlap with other timeline elements in same array. + repeated UintRange timelineTimes = 2; +} diff --git a/proto/tokenization/v29/transfers.proto b/proto/tokenization/v29/transfers.proto new file mode 100644 index 00000000..5eb73b37 --- /dev/null +++ b/proto/tokenization/v29/transfers.proto @@ -0,0 +1,57 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/balances.proto"; +import "tokenization/v29/approvals.proto"; +import "tokenization/v29/challenges.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// Transfer defines the details of a transfer of tokens. +message Transfer { + // The address of the sender of the transfer. + string from = 1; + // The addresses of the recipients of the transfer. + repeated string toAddresses = 2; + // The balances to be transferred. + repeated Balance balances = 3; + // If defined, we will use the predeterminedBalances from the specified approval to calculate the balances at execution time. + // We will override the balances field with the precalculated balances. Only applicable for approvals with predeterminedBalances set. + PrecalculateBalancesFromApprovalDetails precalculateBalancesFromApproval = 4; + // The Merkle proofs / solutions for all Merkle challenges required for the transfer. + repeated MerkleProof merkleProofs = 5; + // The ETH signature proofs / solutions for all ETH signature challenges required for the transfer. + repeated ETHSignatureProof ethSignatureProofs = 6; + // The memo for the transfer. + string memo = 7; + // The prioritized approvals for the transfer. By default, we scan linearly through the approvals and use the first match. + // This field can be used to prioritize specific approvals and scan through them first. + repeated ApprovalIdentifierDetails prioritizedApprovals = 8; + // Whether to only check prioritized approvals for the transfer. + // If true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals). + // If false, we will check the prioritized approvals first and then scan through the rest of the approvals. + bool onlyCheckPrioritizedCollectionApprovals = 9; + // Whether to only check prioritized approvals for the transfer. + // If true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals). + // If false, we will check the prioritized approvals first and then scan through the rest of the approvals. + bool onlyCheckPrioritizedIncomingApprovals = 10; + // Whether to only check prioritized approvals for the transfer. + // If true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals). + // If false, we will check the prioritized approvals first and then scan through the rest of the approvals. + bool onlyCheckPrioritizedOutgoingApprovals = 11; +} + +// PrecalculateBalancesFromApprovalDetails defines the details for precalculating balances from an approval. +message PrecalculateBalancesFromApprovalDetails { + // The ID of the approval. + string approvalId = 1; + // The level of the approval. Can be "collection", "incoming", or "outgoing". + string approvalLevel = 2; + // The address of the approver. Leave blank "" if approvalLevel == "collection". + string approverAddress = 3; + // The version of the approval. + string version = 4 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The options for precalculating the balances. + PrecalculationOptions precalculationOptions = 5; +} diff --git a/proto/tokenization/v29/tx.proto b/proto/tokenization/v29/tx.proto new file mode 100644 index 00000000..46ba5214 --- /dev/null +++ b/proto/tokenization/v29/tx.proto @@ -0,0 +1,994 @@ +syntax = "proto3"; +package tokenization.v29; + +import "amino/amino.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "gogoproto/gogo.proto"; +import "tokenization/v29/params.proto"; + +import "tokenization/v29/transfers.proto"; +import "tokenization/v29/balances.proto"; +import "tokenization/v29/permissions.proto"; +import "tokenization/v29/metadata.proto"; +import "tokenization/v29/collections.proto"; +import "tokenization/v29/address_lists.proto"; +import "tokenization/v29/dynamic_stores.proto"; +import "tokenization/v29/approvals.proto"; +import "tokenization/v29/user_balance_store.proto"; +import "tokenization/v29/challenges.proto"; + +import "cosmos/base/v1beta1/coin.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +// Msg defines the Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // UpdateParams defines a (governance) operation for updating the module + // parameters. The authority defaults to the x/gov module account. + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + rpc UniversalUpdateCollection (MsgUniversalUpdateCollection) returns (MsgUniversalUpdateCollectionResponse); + rpc CreateAddressLists (MsgCreateAddressLists) returns (MsgCreateAddressListsResponse); + rpc TransferTokens(MsgTransferTokens) returns (MsgTransferTokensResponse); + rpc UpdateUserApprovals(MsgUpdateUserApprovals) returns (MsgUpdateUserApprovalsResponse); + rpc SetIncomingApproval(MsgSetIncomingApproval) returns (MsgSetIncomingApprovalResponse); + rpc DeleteIncomingApproval(MsgDeleteIncomingApproval) returns (MsgDeleteIncomingApprovalResponse); + rpc SetOutgoingApproval(MsgSetOutgoingApproval) returns (MsgSetOutgoingApprovalResponse); + rpc DeleteOutgoingApproval(MsgDeleteOutgoingApproval) returns (MsgDeleteOutgoingApprovalResponse); + rpc PurgeApprovals(MsgPurgeApprovals) returns (MsgPurgeApprovalsResponse); + rpc DeleteCollection(MsgDeleteCollection) returns (MsgDeleteCollectionResponse); + rpc UpdateCollection (MsgUpdateCollection) returns (MsgUpdateCollectionResponse); + rpc CreateCollection (MsgCreateCollection) returns (MsgCreateCollectionResponse); + rpc CreateDynamicStore (MsgCreateDynamicStore) returns (MsgCreateDynamicStoreResponse); + rpc UpdateDynamicStore (MsgUpdateDynamicStore) returns (MsgUpdateDynamicStoreResponse); + rpc DeleteDynamicStore (MsgDeleteDynamicStore) returns (MsgDeleteDynamicStoreResponse); + rpc SetDynamicStoreValue (MsgSetDynamicStoreValue) returns (MsgSetDynamicStoreValueResponse); + + // Helper message types for UniversalUpdateCollection subsets + rpc SetValidTokenIds(MsgSetValidTokenIds) returns (MsgSetValidTokenIdsResponse); + rpc SetManager(MsgSetManager) returns (MsgSetManagerResponse); + rpc SetCollectionMetadata(MsgSetCollectionMetadata) returns (MsgSetCollectionMetadataResponse); + rpc SetTokenMetadata(MsgSetTokenMetadata) returns (MsgSetTokenMetadataResponse); + rpc SetCustomData(MsgSetCustomData) returns (MsgSetCustomDataResponse); + rpc SetStandards(MsgSetStandards) returns (MsgSetStandardsResponse); + rpc SetCollectionApprovals(MsgSetCollectionApprovals) returns (MsgSetCollectionApprovalsResponse); + rpc SetIsArchived(MsgSetIsArchived) returns (MsgSetIsArchivedResponse); + rpc SetReservedProtocolAddress(MsgSetReservedProtocolAddress) returns (MsgSetReservedProtocolAddressResponse); + rpc CastVote(MsgCastVote) returns (MsgCastVoteResponse); +} + +//Used for WASM bindings and JSON parsing +message TokenizationCustomMsgType { + MsgCreateAddressLists createAddressListsMsg = 1; + MsgUniversalUpdateCollection universalUpdateCollectionMsg = 2; + MsgDeleteCollection deleteCollectionMsg = 3; + MsgTransferTokens transferTokensMsg = 4; + MsgUpdateUserApprovals updateUserApprovalsMsg = 5; + MsgUpdateCollection updateCollectionMsg = 6; + MsgCreateCollection createCollectionMsg = 7; + MsgCreateDynamicStore createDynamicStoreMsg = 8; + MsgUpdateDynamicStore updateDynamicStoreMsg = 9; + MsgDeleteDynamicStore deleteDynamicStoreMsg = 10; + MsgSetDynamicStoreValue setDynamicStoreValueMsg = 11; + MsgSetIncomingApproval setIncomingApprovalMsg = 14; + MsgDeleteIncomingApproval deleteIncomingApprovalMsg = 15; + MsgSetOutgoingApproval setOutgoingApprovalMsg = 16; + MsgDeleteOutgoingApproval deleteOutgoingApprovalMsg = 17; + MsgPurgeApprovals purgeApprovalsMsg = 18; + + // Helper message types for UniversalUpdateCollection subsets + MsgSetValidTokenIds setValidTokenIdsMsg = 19; + MsgSetManager setManagerMsg = 20; + MsgSetCollectionMetadata setCollectionMetadataMsg = 21; + MsgSetTokenMetadata setTokenMetadataMsg = 22; + MsgSetCustomData setCustomDataMsg = 23; + MsgSetStandards setStandardsMsg = 24; + MsgSetCollectionApprovals setCollectionApprovalsMsg = 25; + MsgSetIsArchived setIsArchivedMsg = 26; + MsgSetReservedProtocolAddress setReservedProtocolAddressMsg = 27; + MsgCastVote castVoteMsg = 28; +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "tokenization/v29/MsgUpdateParams"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // params defines the module parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +message MsgUpdateParamsResponse {} + +message CosmosCoinWrapperPathAddObject { + string denom = 1; + ConversionWithoutDenom conversion = 2; + string symbol = 3; + repeated DenomUnit denomUnits = 4; + bool allowOverrideWithAnyValidToken = 5; + // The metadata for this wrapper path. + PathMetadata metadata = 6; +} + +message AliasPathAddObject { + string denom = 1; + ConversionWithoutDenom conversion = 2; + string symbol = 3; + repeated DenomUnit denomUnits = 4; + // The metadata for this alias path. + PathMetadata metadata = 5; +} + +message CosmosCoinBackedPathAddObject { + Conversion conversion = 1; +} + +// InvariantsAddObject is used for adding invariants without specifying addresses. +// Addresses are generated by the keeper and stored in the collection. +message InvariantsAddObject { + // If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }]. + // This prevents time-based restrictions on token ownership. + bool noCustomOwnershipTimes = 1; + + // Maximum supply per token ID. Checked against Total address balances after transfers complete. + // A value of 0 means no limit (unlimited). + string maxSupplyPerId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The IBC backed (sdk.coin) path for the collection. Only one path is allowed. + // Address will be generated by the keeper. + CosmosCoinBackedPathAddObject cosmosCoinBackedPath = 3; + + // If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true. + // This prevents forceful transfers that bypass user-level approvals. + // This only applies to transfers where the from address does not equal "Mint". + bool noForcefulPostMintTransfers = 4; + + // If true, disallows pool creation with this collection's assets. + // When true, any attempt to create a pool with tokenization assets from this collection will fail. + bool disablePoolCreation = 5; + + // EVM query invariants that must pass after all transfers complete. + // These are checked once per message after all balance updates, with access to ALL recipient addresses. + // Placeholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient + repeated EVMQueryChallenge evmQueryChallenges = 6; +} + +// MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module. +// It is a universal interface that can be used for both creating and updating collections. +// We have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead. +message MsgUniversalUpdateCollection { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/UniversalUpdateCollection"; + + // Address of the creator. + string creator = 1; + + // ID of the collection (0 for new collection). + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + //The default balances for the user + UserBalanceStore defaultBalances = 3; + + // Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateValidTokenIds = 4; + + // New token IDs to add to this collection + repeated UintRange validTokenIds = 5; + + // Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateCollectionPermissions = 6; + + // New collection permissions to set. + CollectionPermissions collectionPermissions = 7; + + // Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateManager = 8; + + // New manager to set. + string manager = 9; + + // Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateCollectionMetadata = 10; + + // New collection metadata to set. + CollectionMetadata collectionMetadata = 11; + + // Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateTokenMetadata = 12; + + // New token metadata to set. + repeated TokenMetadata tokenMetadata = 13; + + + // Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateCustomData = 14; + + // New custom data to set. + string customData = 15; + + // Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateCollectionApprovals = 16; + + // New collection approvals to set. + repeated CollectionApproval collectionApprovals = 17; + + // Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateStandards = 18; + + // New standards to set. + repeated string standards = 19; + + // Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateIsArchived = 20; + + // New isArchived to set. + bool isArchived = 21; + + // Coins to be transferred to the mint escrow address. + repeated cosmos.base.v1beta1.Coin mintEscrowCoinsToTransfer = 22; + + // IBC wrapper paths to add. + repeated CosmosCoinWrapperPathAddObject cosmosCoinWrapperPathsToAdd = 23; + + // Collection-level invariants that cannot be broken. + // These are set upon genesis and cannot be modified. + // Addresses are generated by the keeper and stored in the collection. + InvariantsAddObject invariants = 24; + + // Alias (non-wrapping) paths to add. + repeated AliasPathAddObject aliasPathsToAdd = 25; +} + +// MsgUniversalUpdateCollectionResponse is the response to MsgUniversalUpdateCollection. +message MsgUniversalUpdateCollectionResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated ApprovalChange approvalChanges = 2; + repeated string reviewItems = 3; +} + +// MsgUpdateCollection is used to update a collection. +message MsgUpdateCollection { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/UpdateCollection"; + + // Address of the creator. + string creator = 1; + + // ID of the collection (0 for new collection). + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateValidTokenIds = 3; + + // New token IDs to add to this collection + repeated UintRange validTokenIds = 4; + + // Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateCollectionPermissions = 5; + + // New collection permissions to set. + CollectionPermissions collectionPermissions = 6; + + // Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateManager = 7; + + // New manager to set. + string manager = 8; + + // Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateCollectionMetadata = 9; + + // New collection metadata to set. + CollectionMetadata collectionMetadata = 10; + + // Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateTokenMetadata = 11; + + // New token metadata to set. + repeated TokenMetadata tokenMetadata = 12; + + + // Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateCustomData = 13; + + // New custom data to set. + string customData = 14; + + // Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateCollectionApprovals = 15; + + // New collection approvals to set. + repeated CollectionApproval collectionApprovals = 16; + + // Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateStandards = 17; + + // New standards to set. + repeated string standards = 18; + + // Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateIsArchived = 19; + + // New isArchived to set. + bool isArchived = 20; + + // Coins to be transferred to the mint escrow address. + repeated cosmos.base.v1beta1.Coin mintEscrowCoinsToTransfer = 21; + + // IBC wrapper paths to add. + repeated CosmosCoinWrapperPathAddObject cosmosCoinWrapperPathsToAdd = 22; + + // Collection-level invariants that cannot be broken. + // These are set upon genesis and cannot be modified. + // Addresses are generated by the keeper and stored in the collection. + InvariantsAddObject invariants = 23; + + // Alias (non-wrapping) paths to add. + repeated AliasPathAddObject aliasPathsToAdd = 24; +} + +// MsgUpdateCollectionResponse is the response to MsgUpdateCollection. +message MsgUpdateCollectionResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated ApprovalChange approvalChanges = 2; + repeated string reviewItems = 3; +} + +// MsgCreateCollection is used to create a new collection. +message MsgCreateCollection { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/CreateCollection"; + + // Address of the creator. + string creator = 1; + + //The default balances for the user + UserBalanceStore defaultBalances = 2; + + // New token IDs to add to this collection + repeated UintRange validTokenIds = 3; + + // Collection permissions. + CollectionPermissions collectionPermissions = 4; + + // Manager address. + string manager = 5; + + // Collection metadata. + CollectionMetadata collectionMetadata = 6; + + // Token metadata entries. + repeated TokenMetadata tokenMetadata = 7; + + // Custom data. + string customData = 8; + + // Collection approvals. + repeated CollectionApproval collectionApprovals = 9; + + // Standards entries. + repeated string standards = 10; + + // isArchived flag. + bool isArchived = 11; + + // Coins to be transferred to the mint escrow address. + repeated cosmos.base.v1beta1.Coin mintEscrowCoinsToTransfer = 12; + + // IBC wrapper paths to add. + repeated CosmosCoinWrapperPathAddObject cosmosCoinWrapperPathsToAdd = 13; + + // Collection-level invariants that cannot be broken. + // Addresses are generated by the keeper and stored in the collection. + InvariantsAddObject invariants = 14; + + // Alias (non-wrapping) paths to add. + repeated AliasPathAddObject aliasPathsToAdd = 15; +} + +// MsgCreateCollectionResponse is the response to MsgCreateCollection. +message MsgCreateCollectionResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated ApprovalChange approvalChanges = 2; + repeated string reviewItems = 3; +} + +// MsgCreateAddressLists is used to create address lists. +message MsgCreateAddressLists { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/CreateAddressLists"; + + // Address of the creator. + string creator = 1; + + // Address lists to create. The createdBy field will be automatically set to the creator address. + repeated AddressListInput addressLists = 2; +} + +// MsgCreateAddressListsResponse is the response to MsgCreateAddressLists. +message MsgCreateAddressListsResponse {} + +// MsgTransferTokens is used to transfer tokens. +message MsgTransferTokens { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/TransferTokens"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // Transfers to execute. + repeated Transfer transfers = 3; +} + +// MsgTransferTokensResponse is the response to MsgTransferTokens. +message MsgTransferTokensResponse { + repeated ApprovalUsed approvalsUsed = 1; + repeated CoinTransferProto coinTransfers = 2; + repeated Balance balancesTransferred = 3; + repeated string reviewItems = 4; +} + +// MsgDeleteCollection is used to delete a collection. +message MsgDeleteCollection { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/DeleteCollection"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// MsgDeleteCollectionResponse is the response to MsgDeleteCollection. +message MsgDeleteCollectionResponse {} + +// MsgUpdateUserApprovals is used to update user approvals. +message MsgUpdateUserApprovals { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/UpdateUserApprovals"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // Indicates if outgoing approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateOutgoingApprovals = 3; + + // New outgoing approvals to set. + repeated UserOutgoingApproval outgoingApprovals = 4; + + // Indicates if incoming approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateIncomingApprovals = 5; + + // New incoming approvals to set. + repeated UserIncomingApproval incomingApprovals = 6; + + // Indicates if auto-approve settings for self-initiated outgoing transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateAutoApproveSelfInitiatedOutgoingTransfers = 7; + + // Auto-approve setting for self-initiated outgoing transfers. + bool autoApproveSelfInitiatedOutgoingTransfers = 8; + + // Indicates if auto-approve settings for self-initiated incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateAutoApproveSelfInitiatedIncomingTransfers = 9; + + // Auto-approve setting for self-initiated incoming transfers. + bool autoApproveSelfInitiatedIncomingTransfers = 10; + + // Indicates if auto-approve settings for all incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateAutoApproveAllIncomingTransfers = 11; + + // Auto-approve setting for all incoming transfers. + bool autoApproveAllIncomingTransfers = 12; + + // Indicates if user permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value. + bool updateUserPermissions = 13; + + // New user permissions to set. + UserPermissions userPermissions = 14; +} + +// MsgUpdateUserApprovalsResponse is the response to MsgUpdateUserApprovals. +message MsgUpdateUserApprovalsResponse { + repeated ApprovalChange incomingChanges = 1; + repeated ApprovalChange outgoingChanges = 2; + repeated string reviewItems = 3; +} + +// MsgSetIncomingApproval is a helper message to set a single incoming approval. +message MsgSetIncomingApproval { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetIncomingApproval"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The incoming approval to set. + UserIncomingApproval approval = 3; +} + +// MsgSetIncomingApprovalResponse is the response to MsgSetIncomingApproval. +message MsgSetIncomingApprovalResponse { + string action = 1; + string version = 2; + repeated string reviewItems = 3; +} + +// MsgDeleteIncomingApproval is a helper message to delete a single incoming approval. +message MsgDeleteIncomingApproval { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/DeleteIncomingApproval"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The ID of the approval to delete. + string approvalId = 3; +} + +// MsgDeleteIncomingApprovalResponse is the response to MsgDeleteIncomingApproval. +message MsgDeleteIncomingApprovalResponse { + bool found = 1; + string version = 2; + repeated string reviewItems = 3; +} + +// MsgSetOutgoingApproval is a helper message to set a single outgoing approval. +message MsgSetOutgoingApproval { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetOutgoingApproval"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The outgoing approval to set. + UserOutgoingApproval approval = 3; +} + +// MsgSetOutgoingApprovalResponse is the response to MsgSetOutgoingApproval. +message MsgSetOutgoingApprovalResponse { + string action = 1; + string version = 2; + repeated string reviewItems = 3; +} + +// MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval. +message MsgDeleteOutgoingApproval { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/DeleteOutgoingApproval"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The ID of the approval to delete. + string approvalId = 3; +} + +// MsgDeleteOutgoingApprovalResponse is the response to MsgDeleteOutgoingApproval. +message MsgDeleteOutgoingApprovalResponse { + bool found = 1; + string version = 2; + repeated string reviewItems = 3; +} + +// MsgPurgeApprovals is a helper message to purge expired approvals. +message MsgPurgeApprovals { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/PurgeApprovals"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // Whether to purge expired approvals (approvals with no future valid transfer times). + bool purgeExpired = 3; + + // Address of the user whose approvals to purge. If empty, defaults to creator. + string approverAddress = 4; + + // Whether to purge counterparty approvals (approvals where the creator is the only initiator). + bool purgeCounterpartyApprovals = 5; + + // Specific approvals to purge. If empty, purges all applicable approvals based on other flags. + repeated ApprovalIdentifierDetails approvalsToPurge = 6; +} + +// MsgPurgeApprovalsResponse is the response to MsgPurgeApprovals. +message MsgPurgeApprovalsResponse { + // Number of approvals purged. + string numPurged = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated string purgedApprovalIds = 2; + repeated string reviewItems = 3; +} + +// MsgCreateDynamicStore is used to create a new dynamic store. +message MsgCreateDynamicStore { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/CreateDynamicStore"; + + // Address of the creator. + string creator = 1; + // The default value for uninitialized addresses (true/false). + bool defaultValue = 2; + // URI for additional metadata or resources associated with this dynamic store. + string uri = 3; + // Custom data field for storing arbitrary data associated with this dynamic store. + string customData = 4; +} + +// MsgCreateDynamicStoreResponse is the response to MsgCreateDynamicStore. +message MsgCreateDynamicStoreResponse { + // ID of the dynamic store. + string storeId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated string reviewItems = 2; +} + +// MsgUpdateDynamicStore is used to update an existing dynamic store. +message MsgUpdateDynamicStore { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/UpdateDynamicStore"; + + // Address of the creator. + string creator = 1; + // ID of the dynamic store to update. + string storeId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + // The new default value for uninitialized addresses (true/false). + bool defaultValue = 3; + // The global kill switch state (true = enabled, false = disabled/halted). + // Callers should query the current value first if they want to keep it unchanged. + bool globalEnabled = 4; + // URI for additional metadata or resources associated with this dynamic store. + string uri = 5; + // Custom data field for storing arbitrary data associated with this dynamic store. + string customData = 6; +} + +// MsgUpdateDynamicStoreResponse is the response to MsgUpdateDynamicStore. +message MsgUpdateDynamicStoreResponse {} + +// MsgDeleteDynamicStore is used to delete a dynamic store. +message MsgDeleteDynamicStore { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/DeleteDynamicStore"; + + // Address of the creator. + string creator = 1; + + // ID of the dynamic store to delete. + string storeId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// MsgDeleteDynamicStoreResponse is the response to MsgDeleteDynamicStore. +message MsgDeleteDynamicStoreResponse {} + +// MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store. +message MsgSetDynamicStoreValue { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetDynamicStoreValue"; + + // Address of the creator. + string creator = 1; + + // ID of the dynamic store. + string storeId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The address for which to set the value. + string address = 3; + + // The boolean value to set (true/false). + bool value = 4; +} + +// MsgSetDynamicStoreValueResponse is the response to MsgSetDynamicStoreValue. +message MsgSetDynamicStoreValueResponse { + string previousValue = 1; + repeated string reviewItems = 2; +} + +// Helper message types for UniversalUpdateCollection subsets +// These are convenience messages that set specific subsets of the UniversalUpdateCollection message + +// MsgSetValidTokenIds sets the validTokenIds and canUpdateValidTokenIds permission +message MsgSetValidTokenIds { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetValidTokenIds"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // New token IDs to add to this collection + repeated UintRange validTokenIds = 3; + + // Permission to update valid token IDs + repeated TokenIdsActionPermission canUpdateValidTokenIds = 4; +} + +// MsgSetValidTokenIdsResponse is the response to MsgSetValidTokenIds. +message MsgSetValidTokenIdsResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// MsgSetManager sets the manager and canUpdateManager permission +message MsgSetManager { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetManager"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // New manager to set. + string manager = 3; + + // Permission to update manager + repeated ActionPermission canUpdateManager = 4; +} + +// MsgSetManagerResponse is the response to MsgSetManager. +message MsgSetManagerResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// MsgSetCollectionMetadata sets the collection metadata and canUpdateCollectionMetadata permission +message MsgSetCollectionMetadata { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetCollectionMetadata"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // New collection metadata to set. + CollectionMetadata collectionMetadata = 3; + + // Permission to update collection metadata + repeated ActionPermission canUpdateCollectionMetadata = 4; +} + +// MsgSetCollectionMetadataResponse is the response to MsgSetCollectionMetadata. +message MsgSetCollectionMetadataResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// MsgSetTokenMetadata sets the token metadata and canUpdateTokenMetadata permission +message MsgSetTokenMetadata { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetTokenMetadata"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // New token metadata to set. + repeated TokenMetadata tokenMetadata = 3; + + // Permission to update token metadata + repeated TokenIdsActionPermission canUpdateTokenMetadata = 4; +} + +// MsgSetTokenMetadataResponse is the response to MsgSetTokenMetadata. +message MsgSetTokenMetadataResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// MsgSetCustomData sets the custom data and canUpdateCustomData permission +message MsgSetCustomData { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetCustomData"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // New custom data to set. + string customData = 3; + + // Permission to update custom data + repeated ActionPermission canUpdateCustomData = 4; +} + +// MsgSetCustomDataResponse is the response to MsgSetCustomData. +message MsgSetCustomDataResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// MsgSetStandards sets the standards and canUpdateStandards permission +message MsgSetStandards { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetStandards"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // New standards to set. + repeated string standards = 3; + + // Permission to update standards + repeated ActionPermission canUpdateStandards = 4; +} + +// MsgSetStandardsResponse is the response to MsgSetStandards. +message MsgSetStandardsResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission +message MsgSetCollectionApprovals { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetCollectionApprovals"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // New collection approvals to set. + repeated CollectionApproval collectionApprovals = 3; + + // Permission to update collection approvals + repeated CollectionApprovalPermission canUpdateCollectionApprovals = 4; +} + +// MsgSetCollectionApprovalsResponse is the response to MsgSetCollectionApprovals. +message MsgSetCollectionApprovalsResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + repeated ApprovalChange approvalChanges = 2; + repeated string reviewItems = 3; +} + +// MsgSetIsArchived sets the isArchived and canArchiveCollection permission +message MsgSetIsArchived { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/SetIsArchived"; + + // Address of the creator. + string creator = 1; + + // ID of the collection. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // New isArchived to set. + bool isArchived = 3; + + // Permission to archive collection + repeated ActionPermission canArchiveCollection = 4; +} + +// MsgSetIsArchivedResponse is the response to MsgSetIsArchived. +message MsgSetIsArchivedResponse { + // ID of the collection. + string collectionId = 1 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +// MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only). +message MsgSetReservedProtocolAddress { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "tokenization/v29/SetReservedProtocolAddress"; + + // authority is the address that controls the module (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // Address to set or unset as reserved protocol address. + string address = 2; + + // Whether the address should be a reserved protocol address (true) or not (false). + bool isReservedProtocol = 3; +} + +// MsgSetReservedProtocolAddressResponse is the response to MsgSetReservedProtocolAddress. +message MsgSetReservedProtocolAddressResponse {} + +// MsgCastVote allows a voter to cast or update their vote for a voting challenge. +message MsgCastVote { + option (cosmos.msg.v1.signer) = "creator"; + option (amino.name) = "tokenization/v29/CastVote"; + + // The address of the voter casting the vote. + string creator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + + // The collection ID for the voting challenge. + string collectionId = 2 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; + + // The approval level ("collection", "incoming", or "outgoing"). + string approvalLevel = 3; + + // The approver address (empty string for collection-level approvals). + string approverAddress = 4; + + // The approval ID. + string approvalId = 5; + + // The proposal ID (challenge ID) from the VotingChallenge. + string proposalId = 6; + + // The percentage weight (0-100) allocated to "yes" vote. + // The remaining percentage (100 - yesWeight) is allocated to "no" vote. + // Example: yesWeight=70 means 70% yes, 30% no. + string yesWeight = 7 [(gogoproto.customtype) = "Uint", (gogoproto.nullable) = false]; +} + +message MsgCastVoteResponse {} + +// Shared response types + +// ApprovalUsed represents an approval that was consumed during a transfer. +message ApprovalUsed { + string approvalId = 1; + string approvalLevel = 2; + string approverAddress = 3; + string version = 4; +} + +// CoinTransferProto represents a coin transfer that occurred during a transaction. +message CoinTransferProto { + string from = 1; + string to = 2; + string amount = 3; + string denom = 4; + bool isProtocolFee = 5; +} + +// ApprovalChange represents a change to an approval (created, edited, or deleted). +message ApprovalChange { + string approvalId = 1; + string approvalLevel = 2; + string action = 3; + string version = 4; +} diff --git a/proto/tokenization/v29/user_balance_store.proto b/proto/tokenization/v29/user_balance_store.proto new file mode 100644 index 00000000..449cd2ab --- /dev/null +++ b/proto/tokenization/v29/user_balance_store.proto @@ -0,0 +1,56 @@ +syntax = "proto3"; +package tokenization.v29; + +import "gogoproto/gogo.proto"; +import "tokenization/v29/balances.proto"; +import "tokenization/v29/permissions.proto"; +import "tokenization/v29/approvals.proto"; + +option go_package = "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29"; + +/* + UserBalanceStore is the store for the user balances for a collection. + + It consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers, + as well as the permissions for updating the approved incoming/outgoing transfers. + + Upon initialization, all fields (minus the balances) are set to the defaults specified by the collection. + + The outgoing transfers can be used to allow / disallow transfers which are sent from this user. + If a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user) + and autoApproveSelfInitiatedOutgoingTransfers is set to true. + + The incoming transfers can be used to allow / disallow transfers which are sent to this user. + If a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user) + and autoApproveSelfInitiatedIncomingTransfers is set to true. + + Note that the user approved transfers are only checked if the collection approved transfers do not specify to override + the user approved transfers. + + The permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals. +*/ +message UserBalanceStore { + // The list of balances associated with this user. + repeated Balance balances = 1; + + // The list of approved outgoing transfers for this user. + repeated UserOutgoingApproval outgoingApprovals = 2; + + // The list of approved incoming transfers for this user. + repeated UserIncomingApproval incomingApprovals = 3; + + // Whether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy). + bool autoApproveSelfInitiatedOutgoingTransfers = 4; + + // Whether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy). + bool autoApproveSelfInitiatedIncomingTransfers = 5; + + // Whether to auto-approve all incoming transfers by default. + // This is just shorthand for adding an accept everything incoming approval + // with no restrictions. + bool autoApproveAllIncomingTransfers = 6; + + // The permissions for this user's actions and transfers. + UserPermissions userPermissions = 7; +} + diff --git a/testutil/keeper/anchor.go b/testutil/keeper/anchor.go deleted file mode 100644 index ae501cf8..00000000 --- a/testutil/keeper/anchor.go +++ /dev/null @@ -1,67 +0,0 @@ -package keeper - -import ( - "testing" - - "cosmossdk.io/log" - "cosmossdk.io/store" - "cosmossdk.io/store/metrics" - storetypes "cosmossdk.io/store/types" - cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" - dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/runtime" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - ibckeeper "github.com/cosmos/ibc-go/v10/modules/core/keeper" - "github.com/stretchr/testify/require" - - "github.com/bitbadges/bitbadgeschain/x/anchor/keeper" - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -func AnchorKeeper(t testing.TB) (keeper.Keeper, sdk.Context) { - storeKey := storetypes.NewKVStoreKey(types.StoreKey) - memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) - - db := dbm.NewMemDB() - stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - stateStore.MountStoreWithDB(memStoreKey, storetypes.StoreTypeMemory, nil) - require.NoError(t, stateStore.LoadLatestVersion()) - - registry := codectypes.NewInterfaceRegistry() - appCodec := codec.NewProtoCodec(registry) - authority := authtypes.NewModuleAddress(govtypes.ModuleName) - - // IBC v10: capabilities removed, portKeeper doesn't need scopedKeeper - // Create a minimal IBCKeeper for testing - PortKeeper is created internally - ibcK := ibckeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(storeKey), - NewNoopParamSubspace(), // ParamSubspace - no-op for testing - NewNoopUpgradeKeeper(), // UpgradeKeeper - no-op for testing - authority.String(), - ) - - k := keeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(storeKey), - log.NewNopLogger(), - authority.String(), - func() *ibckeeper.Keeper { - return ibcK - }, - ) - - ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, log.NewNopLogger()) - - // Initialize params - if err := k.SetParams(ctx, types.DefaultParams()); err != nil { - panic(err) - } - - return k, ctx -} diff --git a/testutil/keeper/maps.go b/testutil/keeper/maps.go deleted file mode 100644 index 0d332037..00000000 --- a/testutil/keeper/maps.go +++ /dev/null @@ -1,68 +0,0 @@ -package keeper - -import ( - "testing" - - "cosmossdk.io/log" - "cosmossdk.io/store" - "cosmossdk.io/store/metrics" - storetypes "cosmossdk.io/store/types" - cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" - dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/runtime" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - ibckeeper "github.com/cosmos/ibc-go/v10/modules/core/keeper" - "github.com/stretchr/testify/require" - - "github.com/bitbadges/bitbadgeschain/x/maps/keeper" - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -func MapsKeeper(t testing.TB) (keeper.Keeper, sdk.Context) { - storeKey := storetypes.NewKVStoreKey(types.StoreKey) - memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) - - db := dbm.NewMemDB() - stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) - stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) - stateStore.MountStoreWithDB(memStoreKey, storetypes.StoreTypeMemory, nil) - require.NoError(t, stateStore.LoadLatestVersion()) - - registry := codectypes.NewInterfaceRegistry() - appCodec := codec.NewProtoCodec(registry) - - // IBC v10: capabilities removed, portKeeper doesn't need scopedKeeper - // Create a minimal IBCKeeper for testing - PortKeeper is created internally - authority := authtypes.NewModuleAddress(govtypes.ModuleName) - ibcK := ibckeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(storeKey), - NewNoopParamSubspace(), // ParamSubspace - no-op for testing - NewNoopUpgradeKeeper(), // UpgradeKeeper - no-op for testing - authority.String(), // authority - required, use gov module address - ) - - k := keeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(storeKey), - log.NewNopLogger(), - "", - func() *ibckeeper.Keeper { - return ibcK - }, - nil, // tokenizationKeeper not needed for maps keeper tests - ) - - ctx := sdk.NewContext(stateStore, cmtproto.Header{}, false, log.NewNopLogger()) - - // Initialize params - if err := k.SetParams(ctx, types.DefaultParams()); err != nil { - panic(err) - } - - return k, ctx -} diff --git a/x/anchor/client/cli/query.go b/x/anchor/client/cli/query.go deleted file mode 100644 index e4674623..00000000 --- a/x/anchor/client/cli/query.go +++ /dev/null @@ -1,32 +0,0 @@ -package cli - -import ( - "fmt" - // "strings" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - // "github.com/cosmos/cosmos-sdk/client/flags" - // sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -// GetQueryCmd returns the cli query commands for this module -func GetQueryCmd() *cobra.Command { - // Group anchor queries under a subcommand - cmd := &cobra.Command{ - Use: types.ModuleName, - Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName), - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand(CmdQueryParams()) - cmd.AddCommand(CmdQueryData()) - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/anchor/client/cli/query_data.go b/x/anchor/client/cli/query_data.go deleted file mode 100644 index f7e451b5..00000000 --- a/x/anchor/client/cli/query_data.go +++ /dev/null @@ -1,42 +0,0 @@ -package cli - -import ( - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - sdkmath "cosmossdk.io/math" -) - -func CmdQueryData() *cobra.Command { - cmd := &cobra.Command{ - Use: "getAnchorData [location-id]", - Short: "get anchor data at a location", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - locationId := sdkmath.NewUintFromString(args[0]) - - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.GetValueAtLocation(cmd.Context(), &types.QueryGetValueAtLocationRequest{ - LocationId: locationId.String(), - }) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/anchor/client/cli/query_params.go b/x/anchor/client/cli/query_params.go deleted file mode 100644 index d28713d5..00000000 --- a/x/anchor/client/cli/query_params.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -func CmdQueryParams() *cobra.Command { - cmd := &cobra.Command{ - Use: "params", - Short: "shows the parameters of the module", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.Params(cmd.Context(), &types.QueryParamsRequest{}) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/anchor/client/cli/tx.go b/x/anchor/client/cli/tx.go deleted file mode 100644 index 352be1ef..00000000 --- a/x/anchor/client/cli/tx.go +++ /dev/null @@ -1,32 +0,0 @@ -package cli - -import ( - "fmt" - "time" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -var DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds()) - -const listSeparator = "," - -// GetTxCmd returns the transaction commands for this module. -func GetTxCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: types.ModuleName, - Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName), - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - // this line is used by starport scaffolding # 1 - cmd.AddCommand(CmdAddCustomData()) - - return cmd -} diff --git a/x/anchor/client/cli/tx_add_custom_data.go b/x/anchor/client/cli/tx_add_custom_data.go deleted file mode 100644 index aa64727d..00000000 --- a/x/anchor/client/cli/tx_add_custom_data.go +++ /dev/null @@ -1,43 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" -) - -var _ = strconv.Itoa(0) - -func CmdAddCustomData() *cobra.Command { - cmd := &cobra.Command{ - Use: "add-custom-data [data]", - Short: "Broadcast message addCustomData", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argData := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgAddCustomData( - clientCtx.GetFromAddress().String(), - argData, - ) - if err := msg.ValidateBasic(); err != nil { - return err - } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/anchor/keeper/keeper.go b/x/anchor/keeper/keeper.go deleted file mode 100644 index 920cb552..00000000 --- a/x/anchor/keeper/keeper.go +++ /dev/null @@ -1,99 +0,0 @@ -package keeper - -import ( - "fmt" - - "cosmossdk.io/core/store" - "cosmossdk.io/log" - "cosmossdk.io/store/prefix" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/runtime" - sdk "github.com/cosmos/cosmos-sdk/types" - ibckeeper "github.com/cosmos/ibc-go/v10/modules/core/keeper" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -type ( - Keeper struct { - cdc codec.BinaryCodec - storeService store.KVStoreService - logger log.Logger - - // the address capable of executing a MsgUpdateParams message. Typically, this - // should be the x/gov module account. - authority string - - ibcKeeperFn func() *ibckeeper.Keeper - } -) - -func NewKeeper( - cdc codec.BinaryCodec, - storeService store.KVStoreService, - logger log.Logger, - authority string, - ibcKeeperFn func() *ibckeeper.Keeper, -) Keeper { - if _, err := sdk.AccAddressFromBech32(authority); err != nil { - panic(fmt.Sprintf("invalid authority address: %s", authority)) - } - - return Keeper{ - cdc: cdc, - storeService: storeService, - authority: authority, - logger: logger, - ibcKeeperFn: ibcKeeperFn, - } -} - -// GetAuthority returns the module's authority. -func (k Keeper) GetAuthority() string { - return k.authority -} - -// Logger returns a module-specific logger. -func (k Keeper) Logger() log.Logger { - return k.logger.With("module", fmt.Sprintf("x/%s", types.ModuleName)) -} - -// ---------------------------------------------------------------------------- -// IBC Keeper Logic -// ---------------------------------------------------------------------------- - -// ChanCloseInit defines a wrapper function for the channel Keeper's function. -// IBC v10: capabilities removed, no capability parameter needed -func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error { - return k.ibcKeeperFn().ChannelKeeper.ChanCloseInit(ctx, portID, channelID) -} - -// ShouldBound checks if the IBC app module can be bound to the desired port -// IBC v10: ports are managed automatically, this always returns true -func (k Keeper) ShouldBound(ctx sdk.Context, portID string) bool { - return true -} - -// BindPort defines a wrapper function for the port Keeper's function in -// order to expose it to module's InitGenesis function -// IBC v10: ports are managed automatically, no binding needed -func (k Keeper) BindPort(ctx sdk.Context, portID string) error { - // In IBC v10, ports are managed automatically - no action needed - return nil -} - -// GetPort returns the portID for the IBC app module. Used in ExportGenesis -func (k Keeper) GetPort(ctx sdk.Context) string { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - return string(store.Get(types.PortKey)) -} - -// SetPort sets the portID for the IBC app module. Used in InitGenesis -func (k Keeper) SetPort(ctx sdk.Context, portID string) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - store.Set(types.PortKey, []byte(portID)) -} - -// IBC v10: Capability-related methods removed as capabilities are no longer used diff --git a/x/anchor/keeper/keys.go b/x/anchor/keeper/keys.go deleted file mode 100644 index 8b8b0e7c..00000000 --- a/x/anchor/keeper/keys.go +++ /dev/null @@ -1,15 +0,0 @@ -package keeper - -import ( - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -var ( - NextLocationIdKey = []byte{0x0A} - - IDLength = 8 - - BalanceKeyDelimiter = "-" -) - -const StoreKey = types.ModuleName diff --git a/x/anchor/keeper/msg_server.go b/x/anchor/keeper/msg_server.go deleted file mode 100644 index 06154610..00000000 --- a/x/anchor/keeper/msg_server.go +++ /dev/null @@ -1,17 +0,0 @@ -package keeper - -import ( - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -type msgServer struct { - Keeper -} - -// NewMsgServerImpl returns an implementation of the MsgServer interface -// for the provided Keeper. -func NewMsgServerImpl(keeper Keeper) types.MsgServer { - return &msgServer{Keeper: keeper} -} - -var _ types.MsgServer = msgServer{} diff --git a/x/anchor/keeper/msg_server_add_custom_data.go b/x/anchor/keeper/msg_server_add_custom_data.go deleted file mode 100644 index af1fc8ac..00000000 --- a/x/anchor/keeper/msg_server_add_custom_data.go +++ /dev/null @@ -1,25 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) AddCustomData(goCtx context.Context, msg *types.MsgAddCustomData) (*types.MsgAddCustomDataResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - nextLocationId, err := k.GetNextAnchorId(ctx) - if err != nil { - return nil, err - } - - k.SetAnchorLocation(ctx, nextLocationId, msg.Data, msg.Creator) - - return &types.MsgAddCustomDataResponse{ - LocationId: sdkmath.NewUint(nextLocationId.Uint64()), - }, nil -} diff --git a/x/anchor/keeper/msg_server_test.go b/x/anchor/keeper/msg_server_test.go deleted file mode 100644 index f8e79eb8..00000000 --- a/x/anchor/keeper/msg_server_test.go +++ /dev/null @@ -1,25 +0,0 @@ -package keeper_test - -import ( - "context" - "testing" - - "github.com/stretchr/testify/require" - - "github.com/bitbadges/bitbadgeschain/x/anchor/keeper" - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - keepertest "github.com/bitbadges/bitbadgeschain/testutil/keeper" -) - -func setupMsgServer(t testing.TB) (keeper.Keeper, types.MsgServer, context.Context) { - k, ctx := keepertest.AnchorKeeper(t) - return k, keeper.NewMsgServerImpl(k), ctx -} - -func TestMsgServer(t *testing.T) { - k, ms, ctx := setupMsgServer(t) - require.NotNil(t, ms) - require.NotNil(t, ctx) - require.NotEmpty(t, k) -} diff --git a/x/anchor/keeper/msg_update_params.go b/x/anchor/keeper/msg_update_params.go deleted file mode 100644 index 0974c7ea..00000000 --- a/x/anchor/keeper/msg_update_params.go +++ /dev/null @@ -1,23 +0,0 @@ -package keeper - -import ( - "context" - - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -func (k msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { - if k.GetAuthority() != req.Authority { - return nil, errorsmod.Wrapf(types.ErrInvalidSigner, "invalid authority; expected %s, got %s", k.GetAuthority(), req.Authority) - } - - ctx := sdk.UnwrapSDKContext(goCtx) - if err := k.SetParams(ctx, req.Params); err != nil { - return nil, err - } - - return &types.MsgUpdateParamsResponse{}, nil -} diff --git a/x/anchor/keeper/msg_update_params_test.go b/x/anchor/keeper/msg_update_params_test.go deleted file mode 100644 index 942f5119..00000000 --- a/x/anchor/keeper/msg_update_params_test.go +++ /dev/null @@ -1,64 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -func TestMsgUpdateParams(t *testing.T) { - k, ms, ctx := setupMsgServer(t) - params := types.DefaultParams() - require.NoError(t, k.SetParams(ctx, params)) - wctx := sdk.UnwrapSDKContext(ctx) - - // default params - testCases := []struct { - name string - input *types.MsgUpdateParams - expErr bool - expErrMsg string - }{ - { - name: "invalid authority", - input: &types.MsgUpdateParams{ - Authority: "invalid", - Params: params, - }, - expErr: true, - expErrMsg: "invalid authority", - }, - { - name: "send enabled param", - input: &types.MsgUpdateParams{ - Authority: k.GetAuthority(), - Params: types.Params{}, - }, - expErr: false, - }, - { - name: "all good", - input: &types.MsgUpdateParams{ - Authority: k.GetAuthority(), - Params: params, - }, - expErr: false, - }, - } - - for _, tc := range testCases { - t.Run(tc.name, func(t *testing.T) { - _, err := ms.UpdateParams(wctx, tc.input) - - if tc.expErr { - require.Error(t, err) - require.Contains(t, err.Error(), tc.expErrMsg) - } else { - require.NoError(t, err) - } - }) - } -} diff --git a/x/anchor/keeper/params.go b/x/anchor/keeper/params.go deleted file mode 100644 index d8ab8ede..00000000 --- a/x/anchor/keeper/params.go +++ /dev/null @@ -1,33 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/runtime" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -// GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx context.Context) (params types.Params) { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - bz := store.Get(types.ParamsKey) - if bz == nil { - return params - } - - k.cdc.MustUnmarshal(bz, ¶ms) - return params -} - -// SetParams set the params -func (k Keeper) SetParams(ctx context.Context, params types.Params) error { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - bz, err := k.cdc.Marshal(¶ms) - if err != nil { - return err - } - store.Set(types.ParamsKey, bz) - - return nil -} diff --git a/x/anchor/keeper/params_test.go b/x/anchor/keeper/params_test.go deleted file mode 100644 index a7c174a9..00000000 --- a/x/anchor/keeper/params_test.go +++ /dev/null @@ -1,19 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - keepertest "github.com/bitbadges/bitbadgeschain/testutil/keeper" -) - -func TestGetParams(t *testing.T) { - k, ctx := keepertest.AnchorKeeper(t) - params := types.DefaultParams() - - require.NoError(t, k.SetParams(ctx, params)) - require.EqualValues(t, params, k.GetParams(ctx)) -} diff --git a/x/anchor/keeper/query.go b/x/anchor/keeper/query.go deleted file mode 100644 index c784a69c..00000000 --- a/x/anchor/keeper/query.go +++ /dev/null @@ -1,7 +0,0 @@ -package keeper - -import ( - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -var _ types.QueryServer = Keeper{} diff --git a/x/anchor/keeper/query_location.go b/x/anchor/keeper/query_location.go deleted file mode 100644 index 30d8b37f..00000000 --- a/x/anchor/keeper/query_location.go +++ /dev/null @@ -1,24 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - sdk "github.com/cosmos/cosmos-sdk/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - sdkmath "cosmossdk.io/math" -) - -func (k Keeper) GetValueAtLocation(goCtx context.Context, req *types.QueryGetValueAtLocationRequest) (*types.QueryGetValueAtLocationResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(goCtx) - - locationId := sdkmath.NewUintFromString(req.LocationId) - val := k.GetAnchorLocation(ctx, locationId) - return &types.QueryGetValueAtLocationResponse{AnchorData: val}, nil -} diff --git a/x/anchor/keeper/query_params.go b/x/anchor/keeper/query_params.go deleted file mode 100644 index d411cf6b..00000000 --- a/x/anchor/keeper/query_params.go +++ /dev/null @@ -1,20 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(goCtx) - - return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil -} diff --git a/x/anchor/keeper/query_params_test.go b/x/anchor/keeper/query_params_test.go deleted file mode 100644 index ec15bb28..00000000 --- a/x/anchor/keeper/query_params_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - keepertest "github.com/bitbadges/bitbadgeschain/testutil/keeper" -) - -func TestParamsQuery(t *testing.T) { - keeper, ctx := keepertest.AnchorKeeper(t) - params := types.DefaultParams() - require.NoError(t, keeper.SetParams(ctx, params)) - - response, err := keeper.Params(ctx, &types.QueryParamsRequest{}) - require.NoError(t, err) - require.Equal(t, &types.QueryParamsResponse{Params: params}, response) -} diff --git a/x/anchor/keeper/store.go b/x/anchor/keeper/store.go deleted file mode 100644 index d75cc1a6..00000000 --- a/x/anchor/keeper/store.go +++ /dev/null @@ -1,72 +0,0 @@ -package keeper - -import ( - "strconv" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - "github.com/cosmos/cosmos-sdk/runtime" - sdk "github.com/cosmos/cosmos-sdk/types" - - sdkmath "cosmossdk.io/math" -) - -/** ****************************** NEXT ANCHOR ID ****************************** **/ -// Gets the next anchor ID. -func (k Keeper) GetNextAnchorId(ctx sdk.Context) (sdkmath.Uint, error) { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - nextId := store.Get(NextLocationIdKey) - - nextID := types.NewUintFromString(string(nextId)) - if nextID.IsZero() { - return sdkmath.NewUint(1), nil - } - - return nextID, nil -} - -// * ****************************** ANCHORS ****************************** **/ -// Set anchor location by ID -func (k Keeper) SetAnchorLocation(ctx sdk.Context, idx sdkmath.Uint, value string, creator string) error { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - - blockTime := ctx.BlockTime().UnixMilli() - anchor := types.AnchorData{ - Creator: creator, - Data: value, - Timestamp: sdkmath.NewUint(uint64(blockTime)), - } - - marshaled_info, err := k.cdc.Marshal(&anchor) - if err != nil { - return err - } - - locationKey := []byte{} - locationKey = append(locationKey, NextLocationIdKey[0]) - locationKey = append(locationKey, strconv.FormatUint(uint64(idx.Uint64()), 10)...) - - store.Set(locationKey, marshaled_info) - return nil -} - -func (k Keeper) GetAnchorLocation(ctx sdk.Context, idx sdkmath.Uint) types.AnchorData { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - - locationKey := []byte{} - locationKey = append(locationKey, NextLocationIdKey[0]) - locationKey = append(locationKey, strconv.FormatUint(uint64(idx.Uint64()), 10)...) - - found := store.Has(locationKey) - - if !found { - return types.AnchorData{} - } - - val := store.Get(locationKey) - - var anchor types.AnchorData - k.cdc.MustUnmarshal(val, &anchor) - - return anchor -} diff --git a/x/anchor/module/autocli.go b/x/anchor/module/autocli.go deleted file mode 100644 index 3bf95260..00000000 --- a/x/anchor/module/autocli.go +++ /dev/null @@ -1,41 +0,0 @@ -package anchor - -// import ( -// autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" - -// modulev1 "github.com/bitbadges/bitbadgeschain/api/anchor" -// ) - -// // AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. -// func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { -// return &autocliv1.ModuleOptions{ -// Query: &autocliv1.ServiceCommandDescriptor{ -// Service: modulev1.Query_ServiceDesc.ServiceName, -// RpcCommandOptions: []*autocliv1.RpcCommandOptions{ -// { -// RpcMethod: "Params", -// Use: "params", -// Short: "Shows the parameters of the module", -// }, -// // this line is used by ignite scaffolding # autocli/query -// }, -// }, -// Tx: &autocliv1.ServiceCommandDescriptor{ -// Service: modulev1.Msg_ServiceDesc.ServiceName, -// EnhanceCustomCommand: true, // only required if you want to use the custom command -// RpcCommandOptions: []*autocliv1.RpcCommandOptions{ -// { -// RpcMethod: "UpdateParams", -// Skip: true, // skipped because authority gated -// }, -// { -// RpcMethod: "AddCustomData", -// Use: "add-custom-data [data]", -// Short: "Send a addCustomData tx", -// PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "data"}}, -// }, -// // this line is used by ignite scaffolding # autocli/tx -// }, -// }, -// } -// } diff --git a/x/anchor/module/genesis.go b/x/anchor/module/genesis.go deleted file mode 100644 index 102042e7..00000000 --- a/x/anchor/module/genesis.go +++ /dev/null @@ -1,60 +0,0 @@ -package anchor - -import ( - sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/bitbadges/bitbadgeschain/x/anchor/keeper" - "github.com/bitbadges/bitbadgeschain/x/anchor/types" -) - -// InitGenesis initializes the module's state from a provided genesis state. -func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { - // this line is used by starport scaffolding # genesis/module/init - k.SetPort(ctx, genState.PortId) - // Only try to bind to port if it is not already bound, since we may already own - // port capability from capability InitGenesis - if k.ShouldBound(ctx, genState.PortId) { - // module binds to the port on InitChain - // and claims the returned capability - err := k.BindPort(ctx, genState.PortId) - if err != nil { - panic("could not claim port capability: " + err.Error()) - } - } - if err := k.SetParams(ctx, genState.Params); err != nil { - panic(err) - } - - genState.NextLocationId = sdkmath.NewUint(uint64(len(genState.AnchorData) + 1)) - - for i, anchor := range genState.AnchorData { - k.SetAnchorLocation(ctx, sdkmath.NewUint(uint64(i+1)), anchor.Data, anchor.Creator) - } -} - -// ExportGenesis returns the module's exported genesis. -func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { - genesis := types.DefaultGenesis() - genesis.Params = k.GetParams(ctx) - - genesis.PortId = k.GetPort(ctx) - // this line is used by starport scaffolding # genesis/module/export - - nextAnchorId, err := k.GetNextAnchorId(ctx) - if err != nil { - panic(err) - } - - if nextAnchorId.IsZero() { - genesis.NextLocationId = sdkmath.NewUint(1) - } else { - genesis.NextLocationId = nextAnchorId - } - - if genesis.NextLocationId.IsZero() { - genesis.NextLocationId = sdkmath.NewUint(1) - } - - return genesis -} diff --git a/x/anchor/module/genesis_test.go b/x/anchor/module/genesis_test.go deleted file mode 100644 index 44871a54..00000000 --- a/x/anchor/module/genesis_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package anchor_test - -import ( - "testing" - - "github.com/bitbadges/bitbadgeschain/testutil/nullify" - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - keepertest "github.com/bitbadges/bitbadgeschain/testutil/keeper" - anchor "github.com/bitbadges/bitbadgeschain/x/anchor/module" - - "github.com/stretchr/testify/require" -) - -func TestGenesis(t *testing.T) { - genesisState := types.GenesisState{ - Params: types.DefaultParams(), - PortId: types.PortID, - // this line is used by starport scaffolding # genesis/test/state - } - - k, ctx := keepertest.AnchorKeeper(t) - anchor.InitGenesis(ctx, k, genesisState) - got := anchor.ExportGenesis(ctx, k) - require.NotNil(t, got) - - nullify.Fill(&genesisState) - nullify.Fill(got) - - require.Equal(t, genesisState.PortId, got.PortId) - - // this line is used by starport scaffolding # genesis/test/assert -} diff --git a/x/anchor/module/module.go b/x/anchor/module/module.go deleted file mode 100644 index a9b84500..00000000 --- a/x/anchor/module/module.go +++ /dev/null @@ -1,233 +0,0 @@ -package anchor - -import ( - "context" - "encoding/json" - "fmt" - - "cosmossdk.io/core/appmodule" - "cosmossdk.io/core/store" - "cosmossdk.io/depinject" - "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - porttypes "github.com/cosmos/ibc-go/v10/modules/core/05-port/types" - ibckeeper "github.com/cosmos/ibc-go/v10/modules/core/keeper" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - // this line is used by starport scaffolding # 1 - - "github.com/bitbadges/bitbadgeschain/x/anchor/client/cli" - "github.com/bitbadges/bitbadgeschain/x/anchor/keeper" - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - modulev1 "github.com/bitbadges/bitbadgeschain/api/anchor/module" -) - -var ( - _ module.AppModuleBasic = (*AppModule)(nil) - _ module.AppModuleSimulation = (*AppModule)(nil) - _ module.HasGenesis = (*AppModule)(nil) - _ module.HasInvariants = (*AppModule)(nil) - _ module.HasConsensusVersion = (*AppModule)(nil) - - _ appmodule.AppModule = (*AppModule)(nil) - _ appmodule.HasBeginBlocker = (*AppModule)(nil) - _ appmodule.HasEndBlocker = (*AppModule)(nil) - _ porttypes.IBCModule = (*IBCModule)(nil) -) - -// ---------------------------------------------------------------------------- -// AppModuleBasic -// ---------------------------------------------------------------------------- - -// AppModuleBasic implements the AppModuleBasic interface that defines the -// independent methods a Cosmos SDK module needs to implement. -type AppModuleBasic struct { - cdc codec.BinaryCodec -} - -func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic { - return AppModuleBasic{cdc: cdc} -} - -// Name returns the name of the module as a string. -func (AppModuleBasic) Name() string { - return types.ModuleName -} - -// RegisterLegacyAminoCodec registers the amino codec for the module, which is used -// to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore. -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {} - -// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message. -func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { - types.RegisterInterfaces(reg) -} - -// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage. -// The default GenesisState need to be defined by the module developer and is primarily used for testing. -func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { - return cdc.MustMarshalJSON(types.DefaultGenesis()) -} - -// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { - var genState types.GenesisState - if err := cdc.UnmarshalJSON(bz, &genState); err != nil { - return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) - } - return genState.Validate() -} - -// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. -func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { - if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil { - panic(err) - } -} - -// GetTxCmd returns the root Tx command for the module. -// These commands enrich the AutoCLI tx commands. -func (a AppModuleBasic) GetTxCmd() *cobra.Command { - return cli.GetTxCmd() -} - -func (a AppModuleBasic) GetQueryCmd() *cobra.Command { - return cli.GetQueryCmd() -} - -// ---------------------------------------------------------------------------- -// AppModule -// ---------------------------------------------------------------------------- - -// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement -type AppModule struct { - AppModuleBasic - - keeper keeper.Keeper - accountKeeper types.AccountKeeper - bankKeeper types.BankKeeper -} - -func NewAppModule( - cdc codec.Codec, - keeper keeper.Keeper, - accountKeeper types.AccountKeeper, - bankKeeper types.BankKeeper, -) AppModule { - return AppModule{ - AppModuleBasic: NewAppModuleBasic(cdc), - keeper: keeper, - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, - } -} - -// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries -func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) - types.RegisterQueryServer(cfg.QueryServer(), am.keeper) -} - -// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) -func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} - -// InitGenesis performs the module's genesis initialization. It returns no validator updates. -func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) { - var genState types.GenesisState - // Initialize global index to index in genesis state - cdc.MustUnmarshalJSON(gs, &genState) - - InitGenesis(ctx, am.keeper, genState) -} - -// ExportGenesis returns the module's exported genesis state as raw JSON bytes. -func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { - genState := ExportGenesis(ctx, am.keeper) - return cdc.MustMarshalJSON(genState) -} - -// ConsensusVersion is a sequence number for state-breaking change of the module. -// It should be incremented on each consensus-breaking change introduced by the module. -// To avoid wrong/empty versions, the initial version should be set to 1. -func (AppModule) ConsensusVersion() uint64 { return 1 } - -// BeginBlock contains the logic that is automatically triggered at the beginning of each block. -// The begin block implementation is optional. -func (am AppModule) BeginBlock(_ context.Context) error { - return nil -} - -// EndBlock contains the logic that is automatically triggered at the end of each block. -// The end block implementation is optional. -func (am AppModule) EndBlock(_ context.Context) error { - return nil -} - -// IsOnePerModuleType implements the depinject.OnePerModuleType interface. -func (am AppModule) IsOnePerModuleType() {} - -// IsAppModule implements the appmodule.AppModule interface. -func (am AppModule) IsAppModule() {} - -// ---------------------------------------------------------------------------- -// App Wiring Setup -// ---------------------------------------------------------------------------- - -func init() { - appmodule.Register( - &modulev1.Module{}, - appmodule.Provide(ProvideModule), - ) -} - -type ModuleInputs struct { - depinject.In - - StoreService store.KVStoreService - Cdc codec.Codec - Config *modulev1.Module - Logger log.Logger - - AccountKeeper types.AccountKeeper - BankKeeper types.BankKeeper - - IBCKeeperFn func() *ibckeeper.Keeper `optional:"true"` -} - -type ModuleOutputs struct { - depinject.Out - - AnchorKeeper keeper.Keeper - Module appmodule.AppModule -} - -func ProvideModule(in ModuleInputs) ModuleOutputs { - // default to governance authority if not provided - authority := authtypes.NewModuleAddress(govtypes.ModuleName) - if in.Config.Authority != "" { - authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority) - } - k := keeper.NewKeeper( - in.Cdc, - in.StoreService, - in.Logger, - authority.String(), - in.IBCKeeperFn, - ) - m := NewAppModule( - in.Cdc, - k, - in.AccountKeeper, - in.BankKeeper, - ) - - return ModuleOutputs{AnchorKeeper: k, Module: m} -} diff --git a/x/anchor/module/module_ibc.go b/x/anchor/module/module_ibc.go deleted file mode 100644 index 98cf71df..00000000 --- a/x/anchor/module/module_ibc.go +++ /dev/null @@ -1,235 +0,0 @@ -package anchor - -import ( - "fmt" - - "github.com/bitbadges/bitbadgeschain/x/anchor/keeper" - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - channeltypes "github.com/cosmos/ibc-go/v10/modules/core/04-channel/types" - porttypes "github.com/cosmos/ibc-go/v10/modules/core/05-port/types" - ibcexported "github.com/cosmos/ibc-go/v10/modules/core/exported" -) - -// IBCModule implements the ICS26 interface for interchain accounts host chains -type IBCModule struct { - keeper keeper.Keeper -} - -// NewIBCModule creates a new IBCModule given the associated keeper -func NewIBCModule(k keeper.Keeper) IBCModule { - return IBCModule{ - keeper: k, - } -} - -// OnChanOpenInit implements the IBCModule interface -// IBC v10: capabilities removed -func (im IBCModule) OnChanOpenInit( - ctx sdk.Context, - order channeltypes.Order, - connectionHops []string, - portID string, - channelID string, - counterparty channeltypes.Counterparty, - version string, -) (string, error) { - - // Require portID is the portID module is bound to - boundPort := im.keeper.GetPort(ctx) - if boundPort != portID { - return "", errorsmod.Wrapf(porttypes.ErrInvalidPort, "invalid port: %s, expected %s", portID, boundPort) - } - - if version != types.Version { - return "", errorsmod.Wrapf(types.ErrInvalidVersion, "got %s, expected %s", version, types.Version) - } - - // IBC v10: capabilities removed - no need to claim capability - - return version, nil -} - -// OnChanOpenTry implements the IBCModule interface -// IBC v10: capabilities removed -func (im IBCModule) OnChanOpenTry( - ctx sdk.Context, - order channeltypes.Order, - connectionHops []string, - portID, - channelID string, - counterparty channeltypes.Counterparty, - counterpartyVersion string, -) (string, error) { - - // Require portID is the portID module is bound to - boundPort := im.keeper.GetPort(ctx) - if boundPort != portID { - return "", errorsmod.Wrapf(porttypes.ErrInvalidPort, "invalid port: %s, expected %s", portID, boundPort) - } - - if counterpartyVersion != types.Version { - return "", errorsmod.Wrapf(types.ErrInvalidVersion, "invalid counterparty version: got: %s, expected %s", counterpartyVersion, types.Version) - } - - // IBC v10: capabilities removed - no need to claim or authenticate capability - - return types.Version, nil -} - -// OnChanOpenAck implements the IBCModule interface -func (im IBCModule) OnChanOpenAck( - ctx sdk.Context, - portID, - channelID string, - _, - counterpartyVersion string, -) error { - if counterpartyVersion != types.Version { - return errorsmod.Wrapf(types.ErrInvalidVersion, "invalid counterparty version: %s, expected %s", counterpartyVersion, types.Version) - } - return nil -} - -// OnChanOpenConfirm implements the IBCModule interface -func (im IBCModule) OnChanOpenConfirm( - ctx sdk.Context, - portID, - channelID string, -) error { - return nil -} - -// OnChanCloseInit implements the IBCModule interface -func (im IBCModule) OnChanCloseInit( - ctx sdk.Context, - portID, - channelID string, -) error { - // Disallow user-initiated channel closing for channels - return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "user cannot close channel") -} - -// OnChanCloseConfirm implements the IBCModule interface -func (im IBCModule) OnChanCloseConfirm( - ctx sdk.Context, - portID, - channelID string, -) error { - return nil -} - -// OnRecvPacket implements the IBCModule interface -// IBC v10: channelID parameter added -func (im IBCModule) OnRecvPacket( - ctx sdk.Context, - channelID string, - modulePacket channeltypes.Packet, - relayer sdk.AccAddress, -) ibcexported.Acknowledgement { - var ack channeltypes.Acknowledgement - - // this line is used by starport scaffolding # oracle/packet/module/recv - - var modulePacketData types.AnchorPacketData - if err := modulePacketData.Unmarshal(modulePacket.GetData()); err != nil { - return channeltypes.NewErrorAcknowledgement(errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet data: %s", err.Error())) - } - - // Dispatch packet - switch packet := modulePacketData.Packet.(type) { - // this line is used by starport scaffolding # ibc/packet/module/recv - default: - err := fmt.Errorf("unrecognized %s packet type: %T", types.ModuleName, packet) - return channeltypes.NewErrorAcknowledgement(err) - } - - // NOTE: acknowledgement will be written synchronously during IBC handler execution. - return ack -} - -// OnAcknowledgementPacket implements the IBCModule interface -// IBC v10: channelID parameter added -func (im IBCModule) OnAcknowledgementPacket( - ctx sdk.Context, - channelID string, - modulePacket channeltypes.Packet, - acknowledgement []byte, - relayer sdk.AccAddress, -) error { - var ack channeltypes.Acknowledgement - if err := types.ModuleCdc.UnmarshalJSON(acknowledgement, &ack); err != nil { - return errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet acknowledgement: %v", err) - } - - // this line is used by starport scaffolding # oracle/packet/module/ack - - var modulePacketData types.AnchorPacketData - if err := modulePacketData.Unmarshal(modulePacket.GetData()); err != nil { - return errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet data: %s", err.Error()) - } - - var eventType string - - // Dispatch packet - switch packet := modulePacketData.Packet.(type) { - // this line is used by starport scaffolding # ibc/packet/module/ack - default: - errMsg := fmt.Sprintf("unrecognized %s packet type: %T", types.ModuleName, packet) - return errorsmod.Wrap(sdkerrors.ErrUnknownRequest, errMsg) - } - - ctx.EventManager().EmitEvent( - sdk.NewEvent( - eventType, - sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName), - sdk.NewAttribute(types.AttributeKeyAck, fmt.Sprintf("%v", ack)), - ), - ) - - switch resp := ack.Response.(type) { - case *channeltypes.Acknowledgement_Result: - ctx.EventManager().EmitEvent( - sdk.NewEvent( - eventType, - sdk.NewAttribute(types.AttributeKeyAckSuccess, string(resp.Result)), - ), - ) - case *channeltypes.Acknowledgement_Error: - ctx.EventManager().EmitEvent( - sdk.NewEvent( - eventType, - sdk.NewAttribute(types.AttributeKeyAckError, resp.Error), - ), - ) - } - - return nil -} - -// OnTimeoutPacket implements the IBCModule interface -// IBC v10: channelID parameter added -func (im IBCModule) OnTimeoutPacket( - ctx sdk.Context, - channelID string, - modulePacket channeltypes.Packet, - relayer sdk.AccAddress, -) error { - var modulePacketData types.AnchorPacketData - if err := modulePacketData.Unmarshal(modulePacket.GetData()); err != nil { - return errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet data: %s", err.Error()) - } - - // Dispatch packet - switch packet := modulePacketData.Packet.(type) { - // this line is used by starport scaffolding # ibc/packet/module/timeout - default: - errMsg := fmt.Sprintf("unrecognized %s packet type: %T", types.ModuleName, packet) - return errorsmod.Wrap(sdkerrors.ErrUnknownRequest, errMsg) - } - - return nil -} diff --git a/x/anchor/module/simulation.go b/x/anchor/module/simulation.go deleted file mode 100644 index 3d8bb206..00000000 --- a/x/anchor/module/simulation.go +++ /dev/null @@ -1,91 +0,0 @@ -package anchor - -import ( - "math/rand" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" - - "github.com/bitbadges/bitbadgeschain/testutil/sample" - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - anchorsimulation "github.com/bitbadges/bitbadgeschain/x/anchor/simulation" -) - -// avoid unused import issue -var ( - _ = anchorsimulation.FindAccount - _ = rand.Rand{} - _ = sample.AccAddress - _ = sdk.AccAddress{} - _ = simulation.MsgEntryKind -) - -const ( - opWeightMsgAddCustomData = "op_weight_msg_add_custom_data" - // TODO: Determine the simulation weight value - defaultWeightMsgAddCustomData int = 100 - // this line is used by starport scaffolding # simapp/module/const -) - -// GenerateGenesisState creates a randomized GenState of the module. -func (AppModule) GenerateGenesisState(simState *module.SimulationState) { - accs := make([]string, len(simState.Accounts)) - for i, acc := range simState.Accounts { - accs[i] = acc.Address.String() - } - anchorGenesis := types.GenesisState{ - Params: types.DefaultParams(), - PortId: types.PortID, - // this line is used by starport scaffolding # simapp/module/genesisState - } - simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&anchorGenesis) -} - -// RegisterStoreDecoder registers a decoder. -func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {} - -// WeightedOperations returns the all the gov module operations with their respective weights. -func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { - operations := make([]simtypes.WeightedOperation, 0) - - var weightMsgAddCustomData int - simState.AppParams.GetOrGenerate(opWeightMsgAddCustomData, &weightMsgAddCustomData, nil, - func(_ *rand.Rand) { - weightMsgAddCustomData = defaultWeightMsgAddCustomData - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgAddCustomData, - anchorsimulation.SimulateMsgAddCustomData(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - // this line is used by starport scaffolding # simapp/module/operation - - return operations -} - -// ProposalMsgs returns msgs used for governance proposals for simulations. -func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { - return []simtypes.WeightedProposalMsg{ - simulation.NewWeightedProposalMsg( - opWeightMsgAddCustomData, - defaultWeightMsgAddCustomData, - func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { - anchorsimulation.SimulateMsgAddCustomData(am.accountKeeper, am.bankKeeper, am.keeper) - return nil - }, - ), - simulation.NewWeightedProposalMsg( - opWeightMsgAddCustomData, - defaultWeightMsgAddCustomData, - func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { - anchorsimulation.SimulateMsgAddCustomData(am.accountKeeper, am.bankKeeper, am.keeper) - return nil - }, - ), - // this line is used by starport scaffolding # simapp/module/OpMsg - } -} diff --git a/x/anchor/simulation/add_custom_data.go b/x/anchor/simulation/add_custom_data.go deleted file mode 100644 index c7b4e331..00000000 --- a/x/anchor/simulation/add_custom_data.go +++ /dev/null @@ -1,30 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/bitbadges/bitbadgeschain/x/anchor/keeper" - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" -) - -func SimulateMsgAddCustomData( - ak types.AccountKeeper, - bk types.BankKeeper, - k keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgAddCustomData{ - Creator: simAccount.Address.String(), - } - - // TODO: Handling the AddCustomData simulation - - return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "AddCustomData simulation not implemented"), nil, nil - } -} diff --git a/x/anchor/simulation/helpers.go b/x/anchor/simulation/helpers.go deleted file mode 100644 index 92c437c0..00000000 --- a/x/anchor/simulation/helpers.go +++ /dev/null @@ -1,15 +0,0 @@ -package simulation - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" -) - -// FindAccount find a specific address from an account list -func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) { - creator, err := sdk.AccAddressFromBech32(address) - if err != nil { - panic(err) - } - return simtypes.FindAccount(accs, creator) -} diff --git a/x/anchor/types/codec.go b/x/anchor/types/codec.go deleted file mode 100644 index 416e39ac..00000000 --- a/x/anchor/types/codec.go +++ /dev/null @@ -1,38 +0,0 @@ -package types - -import ( - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" - // this line is used by starport scaffolding # 1 -) - -func RegisterCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgAddCustomData{}, "anchor/AddCustomData", nil) - // this line is used by starport scaffolding # 2 -} - -func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgAddCustomData{}, - ) - // this line is used by starport scaffolding # 3 - - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgUpdateParams{}, - ) - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) -} - -// NOTE: This is required for the GetSignBytes function -func init() { - RegisterCodec(Amino) - Amino.Seal() -} - -var ( - Amino = codec.NewLegacyAmino() - ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) - AminoCdc = codec.NewAminoCodec(Amino) -) diff --git a/x/anchor/types/errors.go b/x/anchor/types/errors.go deleted file mode 100644 index ea468c61..00000000 --- a/x/anchor/types/errors.go +++ /dev/null @@ -1,18 +0,0 @@ -package types - -// DONTCOVER - -import ( - sdkerrors "cosmossdk.io/errors" -) - -// x/anchor module sentinel errors -var ( - ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") - ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error") - ErrInvalidPacketTimeout = sdkerrors.Register(ModuleName, 1500, "invalid packet timeout") - ErrInvalidVersion = sdkerrors.Register(ModuleName, 1501, "invalid version") - ErrInvalidAddress = sdkerrors.Register(ModuleName, 1503, "invalid address") - ErrInvalidRequest = sdkerrors.Register(ModuleName, 1504, "invalid request") - ErrUnknownRequest = sdkerrors.Register(ModuleName, 1505, "unknown request") -) diff --git a/x/anchor/types/events_ibc.go b/x/anchor/types/events_ibc.go deleted file mode 100644 index 07c66a43..00000000 --- a/x/anchor/types/events_ibc.go +++ /dev/null @@ -1,11 +0,0 @@ -package types - -// IBC events -const ( - EventTypeTimeout = "timeout" - // this line is used by starport scaffolding # ibc/packet/event - - AttributeKeyAckSuccess = "success" - AttributeKeyAck = "acknowledgement" - AttributeKeyAckError = "error" -) diff --git a/x/anchor/types/expected_ibc_keeper.go b/x/anchor/types/expected_ibc_keeper.go deleted file mode 100644 index 0ead5705..00000000 --- a/x/anchor/types/expected_ibc_keeper.go +++ /dev/null @@ -1,32 +0,0 @@ -package types - -import ( - "context" - - clienttypes "github.com/cosmos/ibc-go/v10/modules/core/02-client/types" - channeltypes "github.com/cosmos/ibc-go/v10/modules/core/04-channel/types" -) - -// ChannelKeeper defines the expected IBC channel keeper. -// IBC v10: capabilities removed -type ChannelKeeper interface { - GetChannel(ctx context.Context, portID, channelID string) (channeltypes.Channel, bool) - GetNextSequenceSend(ctx context.Context, portID, channelID string) (uint64, bool) - SendPacket( - ctx context.Context, - sourcePort string, - sourceChannel string, - timeoutHeight clienttypes.Height, - timeoutTimestamp uint64, - data []byte, - ) (uint64, error) - ChanCloseInit(ctx context.Context, portID, channelID string) error -} - -// PortKeeper defines the expected IBC port keeper. -// IBC v10: ports are managed automatically, no binding needed -type PortKeeper interface { - // Ports are managed automatically in IBC v10 -} - -// ScopedKeeper removed in IBC v10 - capabilities no longer used diff --git a/x/anchor/types/expected_keepers.go b/x/anchor/types/expected_keepers.go deleted file mode 100644 index 4a50d01a..00000000 --- a/x/anchor/types/expected_keepers.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// AccountKeeper defines the expected interface for the Account module. -type AccountKeeper interface { - GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation - // Methods imported from account should be defined here -} - -// BankKeeper defines the expected interface for the Bank module. -type BankKeeper interface { - SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins - // Methods imported from bank should be defined here -} - -// ParamSubspace defines the expected Subspace interface for parameters. -type ParamSubspace interface { - Get(context.Context, []byte, interface{}) - Set(context.Context, []byte, interface{}) -} diff --git a/x/anchor/types/genesis.go b/x/anchor/types/genesis.go deleted file mode 100644 index e8ec088a..00000000 --- a/x/anchor/types/genesis.go +++ /dev/null @@ -1,29 +0,0 @@ -package types - -import ( - host "github.com/cosmos/ibc-go/v10/modules/core/24-host" - // this line is used by starport scaffolding # genesis/types/import -) - -// DefaultIndex is the default global index -const DefaultIndex uint64 = 1 - -// DefaultGenesis returns the default genesis state -func DefaultGenesis() *GenesisState { - return &GenesisState{ - PortId: PortID, - // this line is used by starport scaffolding # genesis/types/default - Params: DefaultParams(), - } -} - -// Validate performs basic genesis state validation returning an error upon any -// failure. -func (gs GenesisState) Validate() error { - if err := host.PortIdentifierValidator(gs.PortId); err != nil { - return err - } - // this line is used by starport scaffolding # genesis/types/validate - - return gs.Params.Validate() -} diff --git a/x/anchor/types/genesis.pb.go b/x/anchor/types/genesis.pb.go deleted file mode 100644 index a47c268a..00000000 --- a/x/anchor/types/genesis.pb.go +++ /dev/null @@ -1,489 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: anchor/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// GenesisState defines the anchor module's genesis state. -type GenesisState struct { - // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - NextLocationId Uint `protobuf:"bytes,3,opt,name=nextLocationId,proto3,customtype=Uint" json:"nextLocationId"` - AnchorData []AnchorData `protobuf:"bytes,4,rep,name=anchorData,proto3" json:"anchorData"` -} - -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_31727a81a5c6c498, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetPortId() string { - if m != nil { - return m.PortId - } - return "" -} - -func (m *GenesisState) GetAnchorData() []AnchorData { - if m != nil { - return m.AnchorData - } - return nil -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "anchor.GenesisState") -} - -func init() { proto.RegisterFile("anchor/genesis.proto", fileDescriptor_31727a81a5c6c498) } - -var fileDescriptor_31727a81a5c6c498 = []byte{ - // 302 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0xcc, 0x4b, 0xce, - 0xc8, 0x2f, 0xd2, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x62, 0x83, 0x88, 0x4a, 0x09, 0x26, 0xe6, 0x66, 0xe6, 0xe5, 0xeb, 0x83, 0x49, 0x88, 0x94, - 0x94, 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x98, 0xa9, 0x0f, 0x62, 0x41, 0x45, 0x85, 0xa1, 0xc6, 0x14, - 0x24, 0x16, 0x25, 0xe6, 0x42, 0x4d, 0x91, 0xe2, 0x87, 0x0a, 0x96, 0x54, 0x40, 0x04, 0x94, 0x4e, - 0x31, 0x72, 0xf1, 0xb8, 0x43, 0x2c, 0x0a, 0x2e, 0x49, 0x2c, 0x49, 0x15, 0x32, 0xe4, 0x62, 0x83, - 0xe8, 0x90, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0xe2, 0xd3, 0x83, 0x68, 0xd1, 0x0b, 0x00, 0x8b, - 0x3a, 0x71, 0x9e, 0xb8, 0x27, 0xcf, 0xb0, 0xe2, 0xf9, 0x06, 0x2d, 0xc6, 0x20, 0xa8, 0x42, 0x21, - 0x71, 0x2e, 0xf6, 0x82, 0xfc, 0xa2, 0x92, 0xf8, 0xcc, 0x14, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, - 0x20, 0x36, 0x10, 0xd7, 0x33, 0x45, 0xc8, 0x84, 0x8b, 0x2f, 0x2f, 0xb5, 0xa2, 0xc4, 0x27, 0x3f, - 0x39, 0xb1, 0x24, 0x33, 0x3f, 0xcf, 0x33, 0x45, 0x82, 0x19, 0x24, 0xef, 0xc4, 0x03, 0x32, 0xe3, - 0xd6, 0x3d, 0x79, 0x96, 0xd0, 0xcc, 0xbc, 0x92, 0x20, 0x34, 0x35, 0x42, 0x16, 0x5c, 0x5c, 0x10, - 0x2b, 0x5d, 0x12, 0x4b, 0x12, 0x25, 0x58, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0x84, 0x60, 0xae, 0x70, - 0x84, 0xcb, 0x38, 0xb1, 0x80, 0x4c, 0x09, 0x42, 0x52, 0xeb, 0xe4, 0x73, 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, 0x46, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, - 0xb9, 0xfa, 0x49, 0x99, 0x25, 0x49, 0x89, 0x29, 0xe9, 0xa9, 0xc5, 0x08, 0x56, 0x72, 0x46, 0x62, - 0x66, 0x9e, 0x7e, 0x85, 0x3e, 0x2c, 0x74, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x21, 0x64, - 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x11, 0x04, 0x9f, 0xcd, 0x90, 0x01, 0x00, 0x00, -} - -func (m *GenesisState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AnchorData) > 0 { - for iNdEx := len(m.AnchorData) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AnchorData[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - { - size := m.NextLocationId.Size() - i -= size - if _, err := m.NextLocationId.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.PortId) > 0 { - i -= len(m.PortId) - copy(dAtA[i:], m.PortId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) - i-- - dAtA[i] = 0x12 - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.PortId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - l = m.NextLocationId.Size() - n += 1 + l + sovGenesis(uint64(l)) - if len(m.AnchorData) > 0 { - for _, e := range m.AnchorData { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextLocationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.NextLocationId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnchorData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AnchorData = append(m.AnchorData, AnchorData{}) - if err := m.AnchorData[len(m.AnchorData)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/anchor/types/genesis_test.go b/x/anchor/types/genesis_test.go deleted file mode 100644 index 817596b0..00000000 --- a/x/anchor/types/genesis_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package types_test - -import ( - "testing" - - "github.com/bitbadges/bitbadgeschain/x/anchor/types" - - "github.com/stretchr/testify/require" -) - -func TestGenesisState_Validate(t *testing.T) { - tests := []struct { - desc string - genState *types.GenesisState - valid bool - }{ - { - desc: "default is valid", - genState: types.DefaultGenesis(), - valid: true, - }, - { - desc: "valid genesis state", - genState: &types.GenesisState{ - PortId: types.PortID, - // this line is used by starport scaffolding # types/genesis/validField - }, - valid: true, - }, - // this line is used by starport scaffolding # types/genesis/testcase - } - for _, tc := range tests { - t.Run(tc.desc, func(t *testing.T) { - err := tc.genState.Validate() - if tc.valid { - require.NoError(t, err) - } else { - require.Error(t, err) - } - }) - } -} diff --git a/x/anchor/types/keys.go b/x/anchor/types/keys.go deleted file mode 100644 index e880a1f3..00000000 --- a/x/anchor/types/keys.go +++ /dev/null @@ -1,34 +0,0 @@ -package types - -const ( - // ModuleName defines the module name - ModuleName = "anchor" - - // StoreKey defines the primary module store key - StoreKey = ModuleName - - // RouterKey defines the module's message routing key - RouterKey = ModuleName - - // MemStoreKey defines the in-memory store key - MemStoreKey = "mem_anchor" - - // Version defines the current version the IBC module supports - Version = "anchor-1" - - // PortID is the default port id that module binds to - PortID = "anchor" -) - -var ( - ParamsKey = []byte("p_anchor") -) - -var ( - // PortKey defines the key to store the port ID in store - PortKey = KeyPrefix("anchor-port-") -) - -func KeyPrefix(p string) []byte { - return []byte(p) -} diff --git a/x/anchor/types/math.go b/x/anchor/types/math.go deleted file mode 100644 index 8bede080..00000000 --- a/x/anchor/types/math.go +++ /dev/null @@ -1,43 +0,0 @@ -package types - -import ( - sdkmath "cosmossdk.io/math" -) - -//Needed for custom gogoproto types - -type ( - Int = sdkmath.Int - Uint = sdkmath.Uint -) - -var ( - NewInt = sdkmath.NewInt - ZeroInt = sdkmath.ZeroInt - NewUint = sdkmath.NewUint - NewUintFromString = func(s string) Uint { - if s == "" { - return sdkmath.NewUint(0) - } - - val := sdkmath.NewUintFromString(s) - return val - } -) - -type ( - Dec = sdkmath.LegacyDec -) - -var ( - NewDecWithPrec = sdkmath.LegacyNewDecWithPrec - NewDecFromInt = sdkmath.LegacyNewDecFromInt - NewDecFromStr = sdkmath.LegacyNewDecFromStr - MustNewDecFromStr = sdkmath.LegacyMustNewDecFromStr -) - -// var _ CustomProtobufType = (*Dec)(nil) - -// func (dp DecProto) String() string { -// return dp.Dec.String() -// } diff --git a/x/anchor/types/message_add_custom_data.go b/x/anchor/types/message_add_custom_data.go deleted file mode 100644 index 85c6ae50..00000000 --- a/x/anchor/types/message_add_custom_data.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var _ sdk.Msg = &MsgAddCustomData{} - -const TypeMsgAddCustomData = "add_custom_data" - -func NewMsgAddCustomData(creator string, data string) *MsgAddCustomData { - return &MsgAddCustomData{ - Creator: creator, - Data: data, - } -} - -func (msg *MsgAddCustomData) GetSigners() []sdk.AccAddress { - creator, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - panic(err) - } - return []sdk.AccAddress{creator} -} - -func (msg *MsgAddCustomData) Route() string { - return RouterKey -} - -func (msg *MsgAddCustomData) Type() string { - return TypeMsgAddCustomData -} - -func (msg *MsgAddCustomData) GetSignBytes() []byte { - bz := AminoCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgAddCustomData) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.Data) == 0 { - return sdkerrors.Wrap(ErrInvalidRequest, "data cannot be empty") - } - - return nil -} diff --git a/x/anchor/types/message_add_custom_data_test.go b/x/anchor/types/message_add_custom_data_test.go deleted file mode 100644 index 72b84de2..00000000 --- a/x/anchor/types/message_add_custom_data_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package types - -import ( - "testing" - - "github.com/bitbadges/bitbadgeschain/testutil/sample" - - "github.com/stretchr/testify/require" -) - -func TestMsgAddCustomData_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgAddCustomData - err error - }{ - { - name: "invalid address", - msg: MsgAddCustomData{ - Creator: "invalid_address", - }, - err: ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgAddCustomData{ - Creator: sample.AccAddress(), - Data: "test", - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/anchor/types/msg_update_params.go b/x/anchor/types/msg_update_params.go deleted file mode 100644 index e36d023d..00000000 --- a/x/anchor/types/msg_update_params.go +++ /dev/null @@ -1,21 +0,0 @@ -package types - -import ( - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -var _ sdk.Msg = &MsgUpdateParams{} - -// ValidateBasic does a sanity check on the provided data. -func (m *MsgUpdateParams) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil { - return errorsmod.Wrap(err, "invalid authority address") - } - - if err := m.Params.Validate(); err != nil { - return err - } - - return nil -} diff --git a/x/anchor/types/packet.pb.go b/x/anchor/types/packet.pb.go deleted file mode 100644 index c1cc4223..00000000 --- a/x/anchor/types/packet.pb.go +++ /dev/null @@ -1,499 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: anchor/packet.proto - -package types - -import ( - fmt "fmt" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type AnchorPacketData struct { - // Types that are valid to be assigned to Packet: - // *AnchorPacketData_NoData - Packet isAnchorPacketData_Packet `protobuf_oneof:"packet"` -} - -func (m *AnchorPacketData) Reset() { *m = AnchorPacketData{} } -func (m *AnchorPacketData) String() string { return proto.CompactTextString(m) } -func (*AnchorPacketData) ProtoMessage() {} -func (*AnchorPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_5250e3784c91b692, []int{0} -} -func (m *AnchorPacketData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AnchorPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AnchorPacketData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AnchorPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_AnchorPacketData.Merge(m, src) -} -func (m *AnchorPacketData) XXX_Size() int { - return m.Size() -} -func (m *AnchorPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_AnchorPacketData.DiscardUnknown(m) -} - -var xxx_messageInfo_AnchorPacketData proto.InternalMessageInfo - -type isAnchorPacketData_Packet interface { - isAnchorPacketData_Packet() - MarshalTo([]byte) (int, error) - Size() int -} - -type AnchorPacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"` -} - -func (*AnchorPacketData_NoData) isAnchorPacketData_Packet() {} - -func (m *AnchorPacketData) GetPacket() isAnchorPacketData_Packet { - if m != nil { - return m.Packet - } - return nil -} - -func (m *AnchorPacketData) GetNoData() *NoData { - if x, ok := m.GetPacket().(*AnchorPacketData_NoData); ok { - return x.NoData - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*AnchorPacketData) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*AnchorPacketData_NoData)(nil), - } -} - -type NoData struct { -} - -func (m *NoData) Reset() { *m = NoData{} } -func (m *NoData) String() string { return proto.CompactTextString(m) } -func (*NoData) ProtoMessage() {} -func (*NoData) Descriptor() ([]byte, []int) { - return fileDescriptor_5250e3784c91b692, []int{1} -} -func (m *NoData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NoData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *NoData) XXX_Merge(src proto.Message) { - xxx_messageInfo_NoData.Merge(m, src) -} -func (m *NoData) XXX_Size() int { - return m.Size() -} -func (m *NoData) XXX_DiscardUnknown() { - xxx_messageInfo_NoData.DiscardUnknown(m) -} - -var xxx_messageInfo_NoData proto.InternalMessageInfo - -func init() { - proto.RegisterType((*AnchorPacketData)(nil), "anchor.AnchorPacketData") - proto.RegisterType((*NoData)(nil), "anchor.NoData") -} - -func init() { proto.RegisterFile("anchor/packet.proto", fileDescriptor_5250e3784c91b692) } - -var fileDescriptor_5250e3784c91b692 = []byte{ - // 174 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xcc, 0x4b, 0xce, - 0xc8, 0x2f, 0xd2, 0x2f, 0x48, 0x4c, 0xce, 0x4e, 0x2d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x62, 0x83, 0x08, 0x2a, 0xb9, 0x71, 0x09, 0x38, 0x82, 0x59, 0x01, 0x60, 0x59, 0x97, 0xc4, 0x92, - 0x44, 0x21, 0x0d, 0x2e, 0xb6, 0xbc, 0x7c, 0x10, 0x4b, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x88, - 0x4f, 0x0f, 0xa2, 0x58, 0xcf, 0x0f, 0x2c, 0xea, 0xc1, 0x10, 0x04, 0x95, 0x77, 0xe2, 0xe0, 0x62, - 0x83, 0x98, 0xaa, 0xc4, 0xc1, 0xc5, 0x06, 0x91, 0x75, 0xf2, 0x39, 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, 0xa3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, - 0xfd, 0xa4, 0xcc, 0x92, 0xa4, 0xc4, 0x94, 0xf4, 0xd4, 0x62, 0x04, 0x2b, 0x39, 0x23, 0x31, 0x33, - 0x4f, 0xbf, 0x42, 0x1f, 0xea, 0xdc, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x73, 0x8d, - 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xce, 0x46, 0xae, 0x99, 0xc5, 0x00, 0x00, 0x00, -} - -func (m *AnchorPacketData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AnchorPacketData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AnchorPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Packet != nil { - { - size := m.Packet.Size() - i -= size - if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *AnchorPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AnchorPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.NoData != nil { - { - size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPacket(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *NoData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintPacket(dAtA []byte, offset int, v uint64) int { - offset -= sovPacket(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AnchorPacketData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Packet != nil { - n += m.Packet.Size() - } - return n -} - -func (m *AnchorPacketData_NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NoData != nil { - l = m.NoData.Size() - n += 1 + l + sovPacket(uint64(l)) - } - return n -} -func (m *NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovPacket(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPacket(x uint64) (n int) { - return sovPacket(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *AnchorPacketData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AnchorPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AnchorPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPacket - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPacket - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &NoData{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Packet = &AnchorPacketData_NoData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NoData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NoData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPacket(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPacket - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPacket - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPacket - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthPacket - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPacket - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPacket - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/anchor/types/params.go b/x/anchor/types/params.go deleted file mode 100644 index 4f3215e3..00000000 --- a/x/anchor/types/params.go +++ /dev/null @@ -1,32 +0,0 @@ -package types - -import ( - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" -) - -var _ paramtypes.ParamSet = (*Params)(nil) - -// ParamKeyTable the param key table for launch module -func ParamKeyTable() paramtypes.KeyTable { - return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) -} - -// NewParams creates a new Params instance -func NewParams() Params { - return Params{} -} - -// DefaultParams returns a default set of parameters -func DefaultParams() Params { - return NewParams() -} - -// ParamSetPairs get the params.ParamSet -func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { - return paramtypes.ParamSetPairs{} -} - -// Validate validates the set of params -func (p Params) Validate() error { - return nil -} diff --git a/x/anchor/types/query.pb.go b/x/anchor/types/query.pb.go deleted file mode 100644 index 7abe6cb3..00000000 --- a/x/anchor/types/query.pb.go +++ /dev/null @@ -1,925 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: anchor/query.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -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_12335149ac259335, []int{0} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -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_12335149ac259335, []int{1} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -type QueryGetValueAtLocationRequest struct { - LocationId string `protobuf:"bytes,1,opt,name=locationId,proto3" json:"locationId,omitempty"` -} - -func (m *QueryGetValueAtLocationRequest) Reset() { *m = QueryGetValueAtLocationRequest{} } -func (m *QueryGetValueAtLocationRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetValueAtLocationRequest) ProtoMessage() {} -func (*QueryGetValueAtLocationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_12335149ac259335, []int{2} -} -func (m *QueryGetValueAtLocationRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetValueAtLocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetValueAtLocationRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetValueAtLocationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetValueAtLocationRequest.Merge(m, src) -} -func (m *QueryGetValueAtLocationRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetValueAtLocationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetValueAtLocationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetValueAtLocationRequest proto.InternalMessageInfo - -func (m *QueryGetValueAtLocationRequest) GetLocationId() string { - if m != nil { - return m.LocationId - } - return "" -} - -type QueryGetValueAtLocationResponse struct { - AnchorData AnchorData `protobuf:"bytes,1,opt,name=anchorData,proto3" json:"anchorData"` -} - -func (m *QueryGetValueAtLocationResponse) Reset() { *m = QueryGetValueAtLocationResponse{} } -func (m *QueryGetValueAtLocationResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetValueAtLocationResponse) ProtoMessage() {} -func (*QueryGetValueAtLocationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_12335149ac259335, []int{3} -} -func (m *QueryGetValueAtLocationResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetValueAtLocationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetValueAtLocationResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetValueAtLocationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetValueAtLocationResponse.Merge(m, src) -} -func (m *QueryGetValueAtLocationResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetValueAtLocationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetValueAtLocationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetValueAtLocationResponse proto.InternalMessageInfo - -func (m *QueryGetValueAtLocationResponse) GetAnchorData() AnchorData { - if m != nil { - return m.AnchorData - } - return AnchorData{} -} - -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "anchor.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "anchor.QueryParamsResponse") - proto.RegisterType((*QueryGetValueAtLocationRequest)(nil), "anchor.QueryGetValueAtLocationRequest") - proto.RegisterType((*QueryGetValueAtLocationResponse)(nil), "anchor.QueryGetValueAtLocationResponse") -} - -func init() { proto.RegisterFile("anchor/query.proto", fileDescriptor_12335149ac259335) } - -var fileDescriptor_12335149ac259335 = []byte{ - // 427 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x8a, 0xd3, 0x40, - 0x1c, 0xc7, 0x93, 0xa2, 0x81, 0x8e, 0xa0, 0x38, 0xed, 0x41, 0xa2, 0x4e, 0x25, 0xe0, 0x1f, 0x0a, - 0x66, 0x68, 0x45, 0xf0, 0x68, 0x8b, 0xa0, 0x42, 0x0f, 0x9a, 0x83, 0x07, 0x3d, 0x4d, 0xd2, 0x21, - 0x09, 0x34, 0x33, 0x69, 0x66, 0x22, 0x2d, 0xe2, 0xc5, 0x27, 0x28, 0x78, 0xf5, 0x01, 0x3c, 0xee, - 0x63, 0xf4, 0x58, 0xd8, 0xcb, 0x9e, 0x96, 0xa5, 0x5d, 0xd8, 0xd7, 0x58, 0x3a, 0x33, 0xd9, 0xb6, - 0xdb, 0x2d, 0x7b, 0x29, 0xc3, 0xf7, 0xf7, 0xed, 0x67, 0x3e, 0xf3, 0x6b, 0x01, 0x24, 0x2c, 0x4a, - 0x78, 0x81, 0xc7, 0x25, 0x2d, 0xa6, 0x7e, 0x5e, 0x70, 0xc9, 0xa1, 0xa3, 0x33, 0xf7, 0x21, 0xc9, - 0x52, 0xc6, 0xb1, 0xfa, 0xd4, 0x23, 0xb7, 0x19, 0xf3, 0x98, 0xab, 0x23, 0x5e, 0x9f, 0x4c, 0xfa, - 0x24, 0xe6, 0x3c, 0x1e, 0x51, 0x4c, 0xf2, 0x14, 0x13, 0xc6, 0xb8, 0x24, 0x32, 0xe5, 0x4c, 0x98, - 0x69, 0x3b, 0xe2, 0x22, 0xe3, 0x02, 0x87, 0x44, 0x50, 0x7d, 0x0f, 0xfe, 0xd9, 0x09, 0xa9, 0x24, - 0x1d, 0x9c, 0x93, 0x38, 0x65, 0xaa, 0x6c, 0xba, 0x0d, 0xa3, 0x93, 0x93, 0x82, 0x64, 0x15, 0xe0, - 0x81, 0x09, 0xe5, 0x44, 0x07, 0x5e, 0x13, 0xc0, 0xaf, 0x6b, 0xce, 0x17, 0xd5, 0x0a, 0xe8, 0xb8, - 0xa4, 0x42, 0x7a, 0x9f, 0x40, 0x63, 0x27, 0x15, 0x39, 0x67, 0x82, 0xc2, 0x0e, 0x70, 0x34, 0xed, - 0x91, 0xfd, 0xcc, 0x7e, 0x75, 0xaf, 0x7b, 0xdf, 0xd7, 0x38, 0x5f, 0xf7, 0xfa, 0xf5, 0xf9, 0x69, - 0xcb, 0xfa, 0x7f, 0x71, 0xd4, 0xb6, 0x03, 0x53, 0xf4, 0xde, 0x03, 0xa4, 0x48, 0x1f, 0xa9, 0xfc, - 0x46, 0x46, 0x25, 0xed, 0xc9, 0x01, 0x8f, 0x94, 0xa6, 0xb9, 0x0b, 0x22, 0x00, 0x46, 0x26, 0xfa, - 0x3c, 0x54, 0xe0, 0x7a, 0xb0, 0x95, 0x78, 0x3f, 0x40, 0xeb, 0x20, 0xc1, 0x78, 0xbd, 0x03, 0x40, - 0x8b, 0x7c, 0x20, 0x92, 0x18, 0x37, 0x58, 0xb9, 0xf5, 0xae, 0x26, 0xfd, 0x3b, 0x6b, 0xbf, 0x60, - 0xab, 0xdb, 0x9d, 0xd5, 0xc0, 0x5d, 0x45, 0x87, 0x09, 0x70, 0xf4, 0x2b, 0xa0, 0x5b, 0x7d, 0x73, - 0x7f, 0x31, 0xee, 0xe3, 0x1b, 0x67, 0x5a, 0xc3, 0x7b, 0xfe, 0xe7, 0xf8, 0xfc, 0x6f, 0xad, 0x05, - 0x9f, 0xe2, 0x30, 0x95, 0x21, 0x19, 0xc6, 0x54, 0x44, 0x09, 0x49, 0x19, 0xde, 0xf9, 0x25, 0xe0, - 0x3f, 0x1b, 0xc0, 0xfd, 0xc7, 0xc0, 0x17, 0x3b, 0xe8, 0x83, 0xfb, 0x72, 0x5f, 0xde, 0xda, 0x33, - 0x3a, 0x6f, 0x95, 0x0e, 0x86, 0xaf, 0x0f, 0xe8, 0x54, 0x3b, 0x16, 0xf8, 0xd7, 0x66, 0xdd, 0xbf, - 0xfb, 0x83, 0xf9, 0x12, 0xd9, 0x8b, 0x25, 0xb2, 0xcf, 0x96, 0xc8, 0x9e, 0xad, 0x90, 0xb5, 0x58, - 0x21, 0xeb, 0x64, 0x85, 0xac, 0xef, 0xdd, 0x38, 0x95, 0x49, 0x19, 0xfa, 0x11, 0xcf, 0x36, 0xc8, - 0xeb, 0xf0, 0x49, 0x85, 0x97, 0xd3, 0x9c, 0x8a, 0xd0, 0x51, 0x7f, 0xb3, 0x37, 0x97, 0x01, 0x00, - 0x00, 0xff, 0xff, 0xad, 0x50, 0x4f, 0x92, 0x1d, 0x03, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - GetValueAtLocation(ctx context.Context, in *QueryGetValueAtLocationRequest, opts ...grpc.CallOption) (*QueryGetValueAtLocationResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/anchor.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetValueAtLocation(ctx context.Context, in *QueryGetValueAtLocationRequest, opts ...grpc.CallOption) (*QueryGetValueAtLocationResponse, error) { - out := new(QueryGetValueAtLocationResponse) - err := c.cc.Invoke(ctx, "/anchor.Query/GetValueAtLocation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - GetValueAtLocation(context.Context, *QueryGetValueAtLocationRequest) (*QueryGetValueAtLocationResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServer) GetValueAtLocation(ctx context.Context, req *QueryGetValueAtLocationRequest) (*QueryGetValueAtLocationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetValueAtLocation not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anchor.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetValueAtLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetValueAtLocationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetValueAtLocation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anchor.Query/GetValueAtLocation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetValueAtLocation(ctx, req.(*QueryGetValueAtLocationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var Query_serviceDesc = _Query_serviceDesc -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "anchor.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "GetValueAtLocation", - Handler: _Query_GetValueAtLocation_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "anchor/query.proto", -} - -func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetValueAtLocationRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetValueAtLocationRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetValueAtLocationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.LocationId) > 0 { - i -= len(m.LocationId) - copy(dAtA[i:], m.LocationId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.LocationId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetValueAtLocationResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetValueAtLocationResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetValueAtLocationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.AnchorData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetValueAtLocationRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.LocationId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetValueAtLocationResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.AnchorData.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetValueAtLocationRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetValueAtLocationRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetValueAtLocationRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LocationId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetValueAtLocationResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetValueAtLocationResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetValueAtLocationResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnchorData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.AnchorData.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/anchor/types/query.pb.gw.go b/x/anchor/types/query.pb.gw.go deleted file mode 100644 index b6734d69..00000000 --- a/x/anchor/types/query.pb.gw.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: anchor/query.proto - -/* -Package types is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package types - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParamsRequest - var metadata runtime.ServerMetadata - - msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParamsRequest - var metadata runtime.ServerMetadata - - msg, err := server.Params(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_GetValueAtLocation_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetValueAtLocationRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["locationId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "locationId") - } - - protoReq.LocationId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "locationId", err) - } - - msg, err := client.GetValueAtLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetValueAtLocation_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetValueAtLocationRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["locationId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "locationId") - } - - protoReq.LocationId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "locationId", err) - } - - msg, err := server.GetValueAtLocation(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". -// UnaryRPC :call QueryServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. -func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetValueAtLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetValueAtLocation_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetValueAtLocation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterQueryHandler(ctx, mux, conn) -} - -// RegisterQueryHandler registers the http handlers for service Query to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) -} - -// RegisterQueryHandlerClient registers the http handlers for service Query -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "QueryClient" to call the correct interceptors. -func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetValueAtLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetValueAtLocation_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetValueAtLocation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"bitbadgeschain", "anchor", "params"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetValueAtLocation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"bitbadgeschain", "anchor", "locations", "locationId"}, "", runtime.AssumeColonVerbOpt(false))) -) - -var ( - forward_Query_Params_0 = runtime.ForwardResponseMessage - - forward_Query_GetValueAtLocation_0 = runtime.ForwardResponseMessage -) diff --git a/x/anchor/types/tx.pb.go b/x/anchor/types/tx.pb.go deleted file mode 100644 index e93b64c1..00000000 --- a/x/anchor/types/tx.pb.go +++ /dev/null @@ -1,1479 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: anchor/tx.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - _ "github.com/cosmos/cosmos-sdk/types/msgservice" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// MsgUpdateParams is the Msg/UpdateParams request type. -type MsgUpdateParams struct { - // authority is the address that controls the module (defaults to x/gov unless overwritten). - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // NOTE: All parameters must be supplied. - Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` -} - -func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } -func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateParams) ProtoMessage() {} -func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_a7d389c13da5902f, []int{0} -} -func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateParams.Merge(m, src) -} -func (m *MsgUpdateParams) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateParams) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo - -func (m *MsgUpdateParams) GetAuthority() string { - if m != nil { - return m.Authority - } - return "" -} - -func (m *MsgUpdateParams) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -type MsgUpdateParamsResponse struct { -} - -func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } -func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateParamsResponse) ProtoMessage() {} -func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a7d389c13da5902f, []int{1} -} -func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) -} -func (m *MsgUpdateParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo - -type AnchorCustomMsgType struct { - AddCustomDataMsg *MsgAddCustomData `protobuf:"bytes,1,opt,name=addCustomDataMsg,proto3" json:"addCustomDataMsg,omitempty"` -} - -func (m *AnchorCustomMsgType) Reset() { *m = AnchorCustomMsgType{} } -func (m *AnchorCustomMsgType) String() string { return proto.CompactTextString(m) } -func (*AnchorCustomMsgType) ProtoMessage() {} -func (*AnchorCustomMsgType) Descriptor() ([]byte, []int) { - return fileDescriptor_a7d389c13da5902f, []int{2} -} -func (m *AnchorCustomMsgType) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AnchorCustomMsgType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AnchorCustomMsgType.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AnchorCustomMsgType) XXX_Merge(src proto.Message) { - xxx_messageInfo_AnchorCustomMsgType.Merge(m, src) -} -func (m *AnchorCustomMsgType) XXX_Size() int { - return m.Size() -} -func (m *AnchorCustomMsgType) XXX_DiscardUnknown() { - xxx_messageInfo_AnchorCustomMsgType.DiscardUnknown(m) -} - -var xxx_messageInfo_AnchorCustomMsgType proto.InternalMessageInfo - -func (m *AnchorCustomMsgType) GetAddCustomDataMsg() *MsgAddCustomData { - if m != nil { - return m.AddCustomDataMsg - } - return nil -} - -type MsgAddCustomData struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` -} - -func (m *MsgAddCustomData) Reset() { *m = MsgAddCustomData{} } -func (m *MsgAddCustomData) String() string { return proto.CompactTextString(m) } -func (*MsgAddCustomData) ProtoMessage() {} -func (*MsgAddCustomData) Descriptor() ([]byte, []int) { - return fileDescriptor_a7d389c13da5902f, []int{3} -} -func (m *MsgAddCustomData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAddCustomData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAddCustomData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgAddCustomData) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddCustomData.Merge(m, src) -} -func (m *MsgAddCustomData) XXX_Size() int { - return m.Size() -} -func (m *MsgAddCustomData) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddCustomData.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgAddCustomData proto.InternalMessageInfo - -func (m *MsgAddCustomData) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgAddCustomData) GetData() string { - if m != nil { - return m.Data - } - return "" -} - -type MsgAddCustomDataResponse struct { - // ID of the anchor location. - LocationId Uint `protobuf:"bytes,1,opt,name=locationId,proto3,customtype=Uint" json:"locationId"` -} - -func (m *MsgAddCustomDataResponse) Reset() { *m = MsgAddCustomDataResponse{} } -func (m *MsgAddCustomDataResponse) String() string { return proto.CompactTextString(m) } -func (*MsgAddCustomDataResponse) ProtoMessage() {} -func (*MsgAddCustomDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a7d389c13da5902f, []int{4} -} -func (m *MsgAddCustomDataResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAddCustomDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAddCustomDataResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgAddCustomDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAddCustomDataResponse.Merge(m, src) -} -func (m *MsgAddCustomDataResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgAddCustomDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAddCustomDataResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgAddCustomDataResponse proto.InternalMessageInfo - -type AnchorData struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Timestamp Uint `protobuf:"bytes,3,opt,name=timestamp,proto3,customtype=Uint" json:"timestamp"` -} - -func (m *AnchorData) Reset() { *m = AnchorData{} } -func (m *AnchorData) String() string { return proto.CompactTextString(m) } -func (*AnchorData) ProtoMessage() {} -func (*AnchorData) Descriptor() ([]byte, []int) { - return fileDescriptor_a7d389c13da5902f, []int{5} -} -func (m *AnchorData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AnchorData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AnchorData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AnchorData) XXX_Merge(src proto.Message) { - xxx_messageInfo_AnchorData.Merge(m, src) -} -func (m *AnchorData) XXX_Size() int { - return m.Size() -} -func (m *AnchorData) XXX_DiscardUnknown() { - xxx_messageInfo_AnchorData.DiscardUnknown(m) -} - -var xxx_messageInfo_AnchorData proto.InternalMessageInfo - -func (m *AnchorData) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *AnchorData) GetData() string { - if m != nil { - return m.Data - } - return "" -} - -func init() { - proto.RegisterType((*MsgUpdateParams)(nil), "anchor.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "anchor.MsgUpdateParamsResponse") - proto.RegisterType((*AnchorCustomMsgType)(nil), "anchor.AnchorCustomMsgType") - proto.RegisterType((*MsgAddCustomData)(nil), "anchor.MsgAddCustomData") - proto.RegisterType((*MsgAddCustomDataResponse)(nil), "anchor.MsgAddCustomDataResponse") - proto.RegisterType((*AnchorData)(nil), "anchor.AnchorData") -} - -func init() { proto.RegisterFile("anchor/tx.proto", fileDescriptor_a7d389c13da5902f) } - -var fileDescriptor_a7d389c13da5902f = []byte{ - // 513 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x3f, 0x6f, 0xd3, 0x40, - 0x14, 0xcf, 0xd1, 0x12, 0x94, 0xd7, 0x42, 0xcb, 0x35, 0x52, 0x5c, 0x0f, 0x4e, 0x64, 0x09, 0xa9, - 0x8a, 0x20, 0x56, 0x83, 0xc4, 0x50, 0xb1, 0x24, 0x74, 0x28, 0x02, 0x0b, 0x64, 0xe8, 0x02, 0x03, - 0xba, 0xd8, 0xc7, 0xe5, 0x24, 0xec, 0xb3, 0x7c, 0x17, 0xd4, 0x6c, 0x88, 0x91, 0x89, 0xef, 0xc0, - 0xc2, 0x98, 0x81, 0x0f, 0xd1, 0x05, 0xa9, 0x62, 0x42, 0x0c, 0x15, 0x4a, 0x86, 0x7c, 0x0d, 0x64, - 0xdf, 0x85, 0xa4, 0x69, 0x33, 0x74, 0x49, 0xde, 0x7b, 0xbf, 0xdf, 0xbd, 0x3f, 0xbf, 0xf7, 0x0c, - 0x5b, 0x24, 0x09, 0xfb, 0x22, 0xf3, 0xd4, 0x49, 0x2b, 0xcd, 0x84, 0x12, 0xb8, 0xac, 0x03, 0xf6, - 0x5d, 0x12, 0xf3, 0x44, 0x78, 0xc5, 0xaf, 0x86, 0xec, 0x5a, 0x28, 0x64, 0x2c, 0xa4, 0x17, 0x4b, - 0xe6, 0x7d, 0xdc, 0xcf, 0xff, 0x0c, 0xb0, 0xab, 0x81, 0x77, 0x85, 0xe7, 0x69, 0xc7, 0x40, 0x55, - 0x26, 0x98, 0xd0, 0xf1, 0xdc, 0x32, 0xd1, 0x1d, 0x53, 0x35, 0x25, 0x19, 0x89, 0x0d, 0xd5, 0xfd, - 0x89, 0x60, 0xcb, 0x97, 0xec, 0x38, 0x8d, 0x88, 0xa2, 0x2f, 0x0b, 0x04, 0x3f, 0x82, 0x0a, 0x19, - 0xa8, 0xbe, 0xc8, 0xb8, 0x1a, 0x5a, 0xa8, 0x81, 0xf6, 0x2a, 0x5d, 0xeb, 0xd7, 0x8f, 0x07, 0x55, - 0x53, 0xa3, 0x13, 0x45, 0x19, 0x95, 0xf2, 0x95, 0xca, 0x78, 0xc2, 0x82, 0x39, 0x15, 0xef, 0x43, - 0x59, 0xe7, 0xb6, 0x6e, 0x34, 0xd0, 0xde, 0x46, 0xfb, 0x4e, 0x4b, 0x57, 0x6c, 0xe9, 0xbc, 0xdd, - 0xca, 0xe9, 0x79, 0xbd, 0xf4, 0x7d, 0x3a, 0x6a, 0xa2, 0xc0, 0x10, 0x0f, 0x5e, 0x7c, 0x9e, 0x8e, - 0x9a, 0xf3, 0x14, 0x5f, 0xa6, 0xa3, 0xe6, 0x63, 0xc6, 0x55, 0x7f, 0xd0, 0x6b, 0x85, 0x22, 0xf6, - 0x7a, 0x5c, 0xf5, 0x48, 0xc4, 0xa8, 0x9c, 0x5b, 0x61, 0x9f, 0xf0, 0xc4, 0x3b, 0xf1, 0xcc, 0x30, - 0x4b, 0xbd, 0xbb, 0xbb, 0x50, 0x5b, 0x0a, 0x05, 0x54, 0xa6, 0x22, 0x91, 0xd4, 0x7d, 0x0b, 0x3b, - 0x9d, 0xe2, 0xd1, 0x93, 0x81, 0x54, 0x22, 0xf6, 0x25, 0x7b, 0x3d, 0x4c, 0x29, 0x3e, 0x84, 0x6d, - 0x12, 0x45, 0x3a, 0x76, 0x48, 0x14, 0xf1, 0x25, 0x2b, 0x86, 0xde, 0x68, 0x5b, 0xb3, 0xfe, 0x7d, - 0xc9, 0x3a, 0x8b, 0x94, 0xe0, 0xd2, 0x0b, 0x97, 0xc1, 0xf6, 0x32, 0x0b, 0x5b, 0x70, 0x2b, 0xcc, - 0x28, 0x51, 0x22, 0xd3, 0x2a, 0x06, 0x33, 0x17, 0x63, 0x58, 0x8f, 0x88, 0x22, 0x85, 0x4e, 0x95, - 0xa0, 0xb0, 0x0f, 0xee, 0xe5, 0x52, 0xcc, 0x18, 0xb9, 0x10, 0x55, 0x33, 0xe2, 0x85, 0xa4, 0xee, - 0x11, 0x58, 0x97, 0xda, 0x31, 0x13, 0xe2, 0xfb, 0x00, 0x1f, 0x44, 0x48, 0x14, 0x17, 0xc9, 0xd3, - 0xc8, 0x6c, 0x6e, 0x33, 0x17, 0xfd, 0xcf, 0x79, 0x7d, 0xfd, 0x98, 0x27, 0x2a, 0x58, 0xc0, 0xdd, - 0xf7, 0x00, 0x5a, 0x8f, 0xeb, 0x37, 0x8b, 0x9b, 0x50, 0x51, 0x3c, 0xa6, 0x52, 0x91, 0x38, 0xb5, - 0xd6, 0xae, 0x28, 0x34, 0x87, 0xdb, 0xdf, 0x10, 0xac, 0xf9, 0x92, 0xe1, 0x23, 0xd8, 0xbc, 0x70, - 0x66, 0xb5, 0x05, 0x79, 0x17, 0x01, 0xbb, 0xbe, 0x02, 0xf8, 0x3f, 0xe7, 0x33, 0xb8, 0xbd, 0xa4, - 0xf4, 0xaa, 0x4d, 0xd9, 0x8d, 0x95, 0x3b, 0x34, 0xc9, 0xec, 0x9b, 0x9f, 0xf2, 0x8b, 0xec, 0x3e, - 0x3f, 0x1d, 0x3b, 0xe8, 0x6c, 0xec, 0xa0, 0xbf, 0x63, 0x07, 0x7d, 0x9d, 0x38, 0xa5, 0xb3, 0x89, - 0x53, 0xfa, 0x3d, 0x71, 0x4a, 0x6f, 0xda, 0xd7, 0x3a, 0x48, 0x35, 0x4c, 0xa9, 0xec, 0x95, 0x8b, - 0xaf, 0xeb, 0xe1, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x86, 0x52, 0xd5, 0x47, 0xea, 0x03, 0x00, - 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgClient interface { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - AddCustomData(ctx context.Context, in *MsgAddCustomData, opts ...grpc.CallOption) (*MsgAddCustomDataResponse, error) -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { - out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/anchor.Msg/UpdateParams", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) AddCustomData(ctx context.Context, in *MsgAddCustomData, opts ...grpc.CallOption) (*MsgAddCustomDataResponse, error) { - out := new(MsgAddCustomDataResponse) - err := c.cc.Invoke(ctx, "/anchor.Msg/AddCustomData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { - // UpdateParams defines a (governance) operation for updating the module - // parameters. The authority defaults to the x/gov module account. - UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - AddCustomData(context.Context, *MsgAddCustomData) (*MsgAddCustomDataResponse, error) -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") -} -func (*UnimplementedMsgServer) AddCustomData(ctx context.Context, req *MsgAddCustomData) (*MsgAddCustomDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddCustomData not implemented") -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anchor.Msg/UpdateParams", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_AddCustomData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAddCustomData) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).AddCustomData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anchor.Msg/AddCustomData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AddCustomData(ctx, req.(*MsgAddCustomData)) - } - return interceptor(ctx, in, info, handler) -} - -var Msg_serviceDesc = _Msg_serviceDesc -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "anchor.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateParams", - Handler: _Msg_UpdateParams_Handler, - }, - { - MethodName: "AddCustomData", - Handler: _Msg_AddCustomData_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "anchor/tx.proto", -} - -func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *AnchorCustomMsgType) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AnchorCustomMsgType) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AnchorCustomMsgType) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AddCustomDataMsg != nil { - { - size, err := m.AddCustomDataMsg.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgAddCustomData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgAddCustomData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAddCustomData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintTx(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgAddCustomDataResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgAddCustomDataResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAddCustomDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.LocationId.Size() - i -= size - if _, err := m.LocationId.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *AnchorData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AnchorData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AnchorData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.Timestamp.Size() - i -= size - if _, err := m.Timestamp.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Data) > 0 { - i -= len(m.Data) - copy(dAtA[i:], m.Data) - i = encodeVarintTx(dAtA, i, uint64(len(m.Data))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintTx(dAtA []byte, offset int, v uint64) int { - offset -= sovTx(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MsgUpdateParams) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Params.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *MsgUpdateParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *AnchorCustomMsgType) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AddCustomDataMsg != nil { - l = m.AddCustomDataMsg.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgAddCustomData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgAddCustomDataResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.LocationId.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *AnchorData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Timestamp.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func sovTx(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTx(x uint64) (n int) { - return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AnchorCustomMsgType) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AnchorCustomMsgType: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AnchorCustomMsgType: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddCustomDataMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AddCustomDataMsg == nil { - m.AddCustomDataMsg = &MsgAddCustomData{} - } - if err := m.AddCustomDataMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgAddCustomData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgAddCustomData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddCustomData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgAddCustomDataResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgAddCustomDataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAddCustomDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.LocationId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AnchorData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AnchorData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AnchorData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTx(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTx - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTx - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTx - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthTx - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTx - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTx - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/anchor/types/types.go b/x/anchor/types/types.go deleted file mode 100644 index ab1254f4..00000000 --- a/x/anchor/types/types.go +++ /dev/null @@ -1 +0,0 @@ -package types diff --git a/x/ibc-rate-limit/hooks/hooks.go b/x/ibc-rate-limit/hooks/hooks.go index 8d633782..bc2769b8 100644 --- a/x/ibc-rate-limit/hooks/hooks.go +++ b/x/ibc-rate-limit/hooks/hooks.go @@ -16,8 +16,12 @@ import ( ) var ( - _ ibchooks.OnRecvPacketBeforeHooks = &RateLimitHooks{} - _ ibchooks.SendPacketBeforeHooks = &RateLimitHooks{} + _ ibchooks.OnRecvPacketBeforeHooks = &RateLimitHooks{} + _ ibchooks.SendPacketBeforeHooks = &RateLimitHooks{} + _ ibchooks.OnRecvPacketOverrideHooks = &RateLimitOverrideHooks{} + _ ibchooks.SendPacketOverrideHooks = &RateLimitOverrideHooks{} + _ ibchooks.OnAcknowledgementPacketOverrideHooks = &RateLimitOverrideHooks{} + _ ibchooks.OnTimeoutPacketOverrideHooks = &RateLimitOverrideHooks{} ) type RateLimitHooks struct { @@ -204,6 +208,87 @@ func (h *RateLimitOverrideHooks) SendPacketOverride(i ibchooks.ICS4Middleware, c return seq, err } +// OnAcknowledgementPacketOverride refunds outbound quota when the counterparty +// returns an error acknowledgement. A failed ACK means the sent tokens are +// refunded to the sender by the transfer module, so the quota we consumed on +// SendPacket must also be refunded or it is permanently burned. Successful +// ACKs are a no-op — the tracking applied at send time is correct. +func (h *RateLimitOverrideHooks) OnAcknowledgementPacketOverride(im ibchooks.IBCMiddleware, ctx sdk.Context, channelID string, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error { + // Only refund on error acknowledgements. + var ack channeltypes.Acknowledgement + if err := transfertypes.ModuleCdc.UnmarshalJSON(acknowledgement, &ack); err != nil { + // Malformed ack — let the inner module handle it; do not refund. + return im.App.OnAcknowledgementPacket(ctx, channelID, packet, acknowledgement, relayer) + } + if ack.Success() { + return im.App.OnAcknowledgementPacket(ctx, channelID, packet, acknowledgement, relayer) + } + + h.refundSendTracking(ctx, packet) + return im.App.OnAcknowledgementPacket(ctx, channelID, packet, acknowledgement, relayer) +} + +// OnTimeoutPacketOverride refunds outbound quota on packet timeout. A timeout +// means the packet was never received on the counterparty, so the transfer +// module refunds the coins and we must refund the quota we consumed. +func (h *RateLimitOverrideHooks) OnTimeoutPacketOverride(im ibchooks.IBCMiddleware, ctx sdk.Context, channelID string, packet channeltypes.Packet, relayer sdk.AccAddress) error { + h.refundSendTracking(ctx, packet) + return im.App.OnTimeoutPacket(ctx, channelID, packet, relayer) +} + +// refundSendTracking undoes the tracking performed by updateTrackingAfterTransfer +// for a failed outbound transfer. The outflow was recorded as amount.Neg() on +// the netFlow, so the inverse is to add amount.Abs() back. +func (h *RateLimitOverrideHooks) refundSendTracking(ctx sdk.Context, packet channeltypes.Packet) { + var packetData transfertypes.FungibleTokenPacketData + if err := json.Unmarshal(packet.GetData(), &packetData); err != nil { + return + } + amount, ok := sdkmath.NewIntFromString(packetData.Amount) + if !ok { + return + } + sourceChannel := packet.GetSourceChannel() + denom := extractDenomFromPacketOnSend(packet.GetSourcePort(), sourceChannel, packetData.Denom) + senderAddr := packetData.Sender + + params := h.keeper.GetParams(ctx) + config := params.FindMatchingConfig(sourceChannel, denom) + if config == nil { + return + } + + // Reverse supply shift tracking. Outflow added amount.Neg(); undo by adding amount. + for _, limit := range config.SupplyShiftLimits { + if limit.MaxAmount.IsZero() { + continue + } + flow, _ := h.keeper.GetChannelFlowWithTimeframe(ctx, sourceChannel, denom, limit.TimeframeType, limit.TimeframeDuration) + flow.NetFlow = flow.NetFlow.Add(amount) + h.keeper.SetChannelFlowWithTimeframe(ctx, sourceChannel, denom, limit.TimeframeType, limit.TimeframeDuration, flow) + } + + // Reverse per-address tracking. TotalAmount is tracked as Abs(), so subtract Abs(). + if senderAddr != "" { + for _, limit := range config.AddressLimits { + data, _ := h.keeper.GetAddressTransferData(ctx, senderAddr, sourceChannel, denom, limit.TimeframeType, limit.TimeframeDuration) + if data.TransferCount > 0 { + data.TransferCount-- + } + absAmt := amount.Abs() + if data.TotalAmount.GTE(absAmt) { + data.TotalAmount = data.TotalAmount.Sub(absAmt) + } else { + data.TotalAmount = sdkmath.ZeroInt() + } + h.keeper.SetAddressTransferData(ctx, senderAddr, sourceChannel, denom, limit.TimeframeType, limit.TimeframeDuration, data) + } + } + // Unique-sender tracking is not reversed: we cannot know whether this sender + // had other in-window transfers, and the cost of an over-count is a slightly + // tighter limit, not a quota drain. +} + // updateTrackingAfterTransfer updates all tracking after a successful transfer func (h *RateLimitOverrideHooks) updateTrackingAfterTransfer(ctx sdk.Context, channelID, denom string, amount sdkmath.Int, isInflow bool, senderAddr string) { params := h.keeper.GetParams(ctx) diff --git a/x/ibc-rate-limit/hooks/refund_test.go b/x/ibc-rate-limit/hooks/refund_test.go new file mode 100644 index 00000000..2ff5f65c --- /dev/null +++ b/x/ibc-rate-limit/hooks/refund_test.go @@ -0,0 +1,294 @@ +package hooks + +import ( + "context" + "encoding/json" + "testing" + + "cosmossdk.io/log" + "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + storetypes "cosmossdk.io/store/types" + sdkmath "cosmossdk.io/math" + cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + transfertypes "github.com/cosmos/ibc-go/v10/modules/apps/transfer/types" + clienttypes "github.com/cosmos/ibc-go/v10/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v10/modules/core/04-channel/types" + ibcexported "github.com/cosmos/ibc-go/v10/modules/core/exported" + "github.com/stretchr/testify/require" + + ibchooks "github.com/bitbadges/bitbadgeschain/x/ibc-hooks" + "github.com/bitbadges/bitbadgeschain/x/ibc-rate-limit/keeper" + ratelimittypes "github.com/bitbadges/bitbadgeschain/x/ibc-rate-limit/types" +) + +// --- test scaffolding ------------------------------------------------------ + +const ( + testChannelID = "channel-0" + testSourcePort = "transfer" + testDenom = "uatom" + testSender = "cosmos1sender000000000000000000000000000000" +) + +// mockBank satisfies ratelimittypes.BankKeeper with no-op behavior. +type mockBank struct{} + +func (mockBank) GetSupply(ctx context.Context, denom string) sdk.Coin { + return sdk.Coin{Denom: denom, Amount: sdkmath.ZeroInt()} +} +func (mockBank) GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins { + return sdk.Coins{} +} +func (mockBank) MintCoins(ctx sdk.Context, moduleName string, coins sdk.Coins) error { + return nil +} + +func newTestKeeper(t *testing.T) (keeper.Keeper, sdk.Context) { + t.Helper() + + storeKey := storetypes.NewKVStoreKey(ratelimittypes.StoreKey) + db := dbm.NewMemDB() + stateStore := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) + stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db) + require.NoError(t, stateStore.LoadLatestVersion()) + + interfaceRegistry := codectypes.NewInterfaceRegistry() + cdc := codec.NewProtoCodec(interfaceRegistry) + authority := "cosmos1w6t0l7z0yerj49ehnqwqaayxqpe3u7e23edgma" + + k := keeper.NewKeeper(cdc, storeKey, mockBank{}, authority) + ctx := sdk.NewContext(stateStore, cmtproto.Header{Height: 1}, false, log.NewNopLogger()) + + params := ratelimittypes.DefaultParams() + params.RateLimits = []ratelimittypes.RateLimitConfig{{ + ChannelId: testChannelID, + Denom: testDenom, + SupplyShiftLimits: []ratelimittypes.TimeframeLimit{{ + MaxAmount: sdkmath.NewInt(1_000_000), + TimeframeType: ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, + TimeframeDuration: 1000, + }}, + AddressLimits: []ratelimittypes.AddressLimit{{ + MaxTransfers: 10, + MaxAmount: sdkmath.NewInt(1_000_000), + TimeframeType: ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, + TimeframeDuration: 1000, + }}, + }} + k.SetParams(ctx, params) + return k, ctx +} + +func newTestHooks(t *testing.T) (*RateLimitOverrideHooks, keeper.Keeper, sdk.Context) { + t.Helper() + k, ctx := newTestKeeper(t) + return NewRateLimitOverrideHooks(k), k, ctx +} + +func buildICS20Packet(t *testing.T, amount string) channeltypes.Packet { + t.Helper() + data := transfertypes.FungibleTokenPacketData{ + Denom: testDenom, + Amount: amount, + Sender: testSender, + Receiver: "cosmos1receiver00000000000000000000000000", + } + bz, err := json.Marshal(data) + require.NoError(t, err) + return channeltypes.Packet{ + Sequence: 1, + SourcePort: testSourcePort, + SourceChannel: testChannelID, + DestinationPort: "transfer", + DestinationChannel: "channel-99", + Data: bz, + TimeoutHeight: clienttypes.Height{RevisionNumber: 0, RevisionHeight: 1000}, + TimeoutTimestamp: 0, + } +} + +// seedOutboundTracking simulates the state that updateTrackingAfterTransfer +// would have written after a successful SendPacket: supply-shift NetFlow +// decreased by `amount` and per-address TransferCount/TotalAmount incremented. +func seedOutboundTracking(t *testing.T, k keeper.Keeper, ctx sdk.Context, amount sdkmath.Int) { + t.Helper() + k.SetChannelFlowWithTimeframe(ctx, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000, + ratelimittypes.ChannelFlow{NetFlow: amount.Neg()}) + k.SetAddressTransferData(ctx, testSender, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000, + ratelimittypes.AddressTransferData{ + TransferCount: 1, + TotalAmount: amount, + }) +} + +// --- noop IBC module ------------------------------------------------------- + +// noopIBCModule implements porttypes.IBCModule with no-op behavior. +// Used to satisfy the IBCMiddleware.App interface in override-hook tests. +type noopIBCModule struct{} + +func (noopIBCModule) OnChanOpenInit(sdk.Context, channeltypes.Order, []string, string, string, channeltypes.Counterparty, string) (string, error) { + return "", nil +} +func (noopIBCModule) OnChanOpenTry(sdk.Context, channeltypes.Order, []string, string, string, channeltypes.Counterparty, string) (string, error) { + return "", nil +} +func (noopIBCModule) OnChanOpenAck(sdk.Context, string, string, string, string) error { return nil } +func (noopIBCModule) OnChanOpenConfirm(sdk.Context, string, string) error { return nil } +func (noopIBCModule) OnChanCloseInit(sdk.Context, string, string) error { return nil } +func (noopIBCModule) OnChanCloseConfirm(sdk.Context, string, string) error { return nil } +func (noopIBCModule) OnRecvPacket(sdk.Context, string, channeltypes.Packet, sdk.AccAddress) ibcexported.Acknowledgement { + return nil +} +func (noopIBCModule) OnAcknowledgementPacket(sdk.Context, string, channeltypes.Packet, []byte, sdk.AccAddress) error { + return nil +} +func (noopIBCModule) OnTimeoutPacket(sdk.Context, string, channeltypes.Packet, sdk.AccAddress) error { + return nil +} + +func newTestMiddleware() ibchooks.IBCMiddleware { + return ibchooks.IBCMiddleware{ + App: noopIBCModule{}, + ICS4Middleware: &ibchooks.ICS4Middleware{}, + } +} + +// --- tests ----------------------------------------------------------------- + +func TestRefundSendTracking_ReversesSupplyShiftAndAddress(t *testing.T) { + h, k, ctx := newTestHooks(t) + amount := sdkmath.NewInt(500) + seedOutboundTracking(t, k, ctx, amount) + + h.refundSendTracking(ctx, buildICS20Packet(t, "500")) + + flow, _ := k.GetChannelFlowWithTimeframe(ctx, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.True(t, flow.NetFlow.IsZero(), "supply-shift NetFlow must be zero after refund, got %s", flow.NetFlow.String()) + + data, _ := k.GetAddressTransferData(ctx, testSender, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.Equal(t, int64(0), data.TransferCount) + require.True(t, data.TotalAmount.IsZero(), "address TotalAmount must be zero after refund, got %s", data.TotalAmount.String()) +} + +func TestRefundSendTracking_NoConfigIsNoop(t *testing.T) { + h, k, ctx := newTestHooks(t) + + // Use a channel/denom with no configured limits — the hook must early-return + // without panicking or touching unrelated state. + data := transfertypes.FungibleTokenPacketData{ + Denom: "uunknown", + Amount: "100", + Sender: testSender, + Receiver: "cosmos1receiver00000000000000000000000000", + } + bz, err := json.Marshal(data) + require.NoError(t, err) + packet := channeltypes.Packet{ + Sequence: 1, + SourcePort: testSourcePort, + SourceChannel: "channel-99", + Data: bz, + } + + require.NotPanics(t, func() { + h.refundSendTracking(ctx, packet) + }) + + // State for the real channel must be untouched. + flow, found := k.GetChannelFlowWithTimeframe(ctx, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.False(t, found, "unrelated flow must not be created, got %v", flow) +} + +func TestRefundSendTracking_TotalAmountDoesNotUnderflow(t *testing.T) { + h, k, ctx := newTestHooks(t) + + // Seed with a smaller TotalAmount than the refund amount. The refund path + // must clamp to zero instead of producing a negative TotalAmount (which + // would never happen in practice, but we defend against it). + k.SetAddressTransferData(ctx, testSender, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000, + ratelimittypes.AddressTransferData{ + TransferCount: 0, + TotalAmount: sdkmath.NewInt(100), + }) + + h.refundSendTracking(ctx, buildICS20Packet(t, "500")) + + data, _ := k.GetAddressTransferData(ctx, testSender, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.True(t, data.TotalAmount.IsZero(), "TotalAmount must clamp to zero, got %s", data.TotalAmount.String()) + require.Equal(t, int64(0), data.TransferCount, "TransferCount must not go below zero") +} + +func TestOnAcknowledgementPacketOverride_SuccessAckDoesNotRefund(t *testing.T) { + h, k, ctx := newTestHooks(t) + amount := sdkmath.NewInt(500) + seedOutboundTracking(t, k, ctx, amount) + + // Build a success ack and send it through the override. + successAck := channeltypes.NewResultAcknowledgement([]byte{0x01}) + ackBz := transfertypes.ModuleCdc.MustMarshalJSON(&successAck) + + err := h.OnAcknowledgementPacketOverride(newTestMiddleware(), ctx, testChannelID, buildICS20Packet(t, "500"), ackBz, sdk.AccAddress{}) + require.NoError(t, err) + + // Tracking must still reflect the outbound transfer — nothing refunded. + flow, _ := k.GetChannelFlowWithTimeframe(ctx, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.True(t, flow.NetFlow.Equal(amount.Neg()), "success ack must not refund supply-shift, got %s", flow.NetFlow.String()) + + data, _ := k.GetAddressTransferData(ctx, testSender, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.Equal(t, int64(1), data.TransferCount) + require.True(t, data.TotalAmount.Equal(amount)) +} + +func TestOnAcknowledgementPacketOverride_ErrorAckRefunds(t *testing.T) { + h, k, ctx := newTestHooks(t) + amount := sdkmath.NewInt(500) + seedOutboundTracking(t, k, ctx, amount) + + errorAck := channeltypes.NewErrorAcknowledgement(transfertypes.ErrReceiveDisabled) + ackBz := transfertypes.ModuleCdc.MustMarshalJSON(&errorAck) + + err := h.OnAcknowledgementPacketOverride(newTestMiddleware(), ctx, testChannelID, buildICS20Packet(t, "500"), ackBz, sdk.AccAddress{}) + require.NoError(t, err) + + flow, _ := k.GetChannelFlowWithTimeframe(ctx, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.True(t, flow.NetFlow.IsZero(), "error ack must refund supply-shift to zero, got %s", flow.NetFlow.String()) + + data, _ := k.GetAddressTransferData(ctx, testSender, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.Equal(t, int64(0), data.TransferCount) + require.True(t, data.TotalAmount.IsZero()) +} + +func TestOnTimeoutPacketOverride_Refunds(t *testing.T) { + h, k, ctx := newTestHooks(t) + amount := sdkmath.NewInt(500) + seedOutboundTracking(t, k, ctx, amount) + + err := h.OnTimeoutPacketOverride(newTestMiddleware(), ctx, testChannelID, buildICS20Packet(t, "500"), sdk.AccAddress{}) + require.NoError(t, err) + + flow, _ := k.GetChannelFlowWithTimeframe(ctx, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.True(t, flow.NetFlow.IsZero(), "timeout must refund supply-shift to zero, got %s", flow.NetFlow.String()) + + data, _ := k.GetAddressTransferData(ctx, testSender, testChannelID, testDenom, + ratelimittypes.TimeframeType_TIMEFRAME_TYPE_BLOCK, 1000) + require.Equal(t, int64(0), data.TransferCount) + require.True(t, data.TotalAmount.IsZero()) +} diff --git a/x/maps/client/cli/query.go b/x/maps/client/cli/query.go deleted file mode 100644 index 95d95f9b..00000000 --- a/x/maps/client/cli/query.go +++ /dev/null @@ -1,33 +0,0 @@ -package cli - -import ( - "fmt" - // "strings" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - // "github.com/cosmos/cosmos-sdk/client/flags" - // sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -// GetQueryCmd returns the cli query commands for this module -func GetQueryCmd() *cobra.Command { - // Group maps queries under a subcommand - cmd := &cobra.Command{ - Use: types.ModuleName, - Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName), - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand(CmdQueryParams()) - cmd.AddCommand(CmdQueryMap()) - cmd.AddCommand(CmdQueryMapValue()) - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/maps/client/cli/query_params.go b/x/maps/client/cli/query_params.go deleted file mode 100644 index 55739ae2..00000000 --- a/x/maps/client/cli/query_params.go +++ /dev/null @@ -1,90 +0,0 @@ -package cli - -import ( - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -func CmdQueryParams() *cobra.Command { - cmd := &cobra.Command{ - Use: "params", - Short: "shows the parameters of the module", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.Params(cmd.Context(), &types.QueryParamsRequest{}) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdQueryMap() *cobra.Command { - cmd := &cobra.Command{ - Use: "map [id]", - Short: "Query a map by id", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.Map(cmd.Context(), &types.QueryGetMapRequest{MapId: args[0]}) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdQueryMapValue() *cobra.Command { - cmd := &cobra.Command{ - Use: "value [mapId] [key]", - Short: "Query a value by mapId and key", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx, err := client.GetClientQueryContext(cmd) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.MapValue(cmd.Context(), &types.QueryGetMapValueRequest{MapId: args[0], Key: args[1]}) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/maps/client/cli/tx.go b/x/maps/client/cli/tx.go deleted file mode 100644 index a4d924b6..00000000 --- a/x/maps/client/cli/tx.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "fmt" - "time" - - "github.com/spf13/cobra" - - "github.com/cosmos/cosmos-sdk/client" - // "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -var ( - DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds()) -) - -const ( - flagPacketTimeoutTimestamp = "packet-timeout-timestamp" - listSeparator = "," -) - -// GetTxCmd returns the transaction commands for this module -func GetTxCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: types.ModuleName, - Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName), - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand(CmdCreateMap()) - cmd.AddCommand(CmdSetValue()) - cmd.AddCommand(CmdDeleteMap()) - cmd.AddCommand(CmdUpdateMap()) - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/maps/client/cli/tx_create_map.go b/x/maps/client/cli/tx_create_map.go deleted file mode 100644 index cc086274..00000000 --- a/x/maps/client/cli/tx_create_map.go +++ /dev/null @@ -1,151 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/gogo/protobuf/jsonpb" - "github.com/spf13/cobra" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - "github.com/cosmos/cosmos-sdk/client" -) - -var _ = strconv.Itoa(0) - -func CmdCreateMap() *cobra.Command { - cmd := &cobra.Command{ - Use: "create-map [tx-json]", - Short: "Broadcast message createMap", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - txJSON := args[0] - - var txData types.MsgCreateMap - if err := jsonpb.UnmarshalString(txJSON, &txData); err != nil { - return err - } - - if err := txData.ValidateBasic(); err != nil { - return err - } - - txData.Creator = clientCtx.GetFromAddress().String() - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &txData) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} - -func CmdSetValue() *cobra.Command { - cmd := &cobra.Command{ - Use: "set-value [tx-json]", - Short: "Broadcast message setValue", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - txJSON := args[0] - - var txData types.MsgSetValue - if err := jsonpb.UnmarshalString(txJSON, &txData); err != nil { - return err - } - - if err := txData.ValidateBasic(); err != nil { - return err - } - - txData.Creator = clientCtx.GetFromAddress().String() - if txData.Options == nil { - txData.Options = &types.SetOptions{} - } - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &txData) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} - -func CmdUpdateMap() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-map [tx-json]", - Short: "Broadcast message updateMap", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - txJSON := args[0] - - var txData types.MsgUpdateMap - if err := jsonpb.UnmarshalString(txJSON, &txData); err != nil { - return err - } - - if err := txData.ValidateBasic(); err != nil { - return err - } - - txData.Creator = clientCtx.GetFromAddress().String() - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &txData) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} - -func CmdDeleteMap() *cobra.Command { - cmd := &cobra.Command{ - Use: "delete-map [tx-json]", - Short: "Broadcast message deleteMap", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - txJSON := args[0] - - var txData types.MsgDeleteMap - if err := jsonpb.UnmarshalString(txJSON, &txData); err != nil { - return err - } - - if err := txData.ValidateBasic(); err != nil { - return err - } - - txData.Creator = clientCtx.GetFromAddress().String() - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &txData) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/maps/keeper/errors.go b/x/maps/keeper/errors.go deleted file mode 100644 index 002b8162..00000000 --- a/x/maps/keeper/errors.go +++ /dev/null @@ -1,21 +0,0 @@ -package keeper - -import ( - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - sdkerrors "cosmossdk.io/errors" -) - -var ( - ErrMapExists = sdkerrors.Register(types.ModuleName, 1, "map already exists") - ErrMapDoesNotExist = sdkerrors.Register(types.ModuleName, 2, "map does not exist") - ErrNotMapCreator = sdkerrors.Register(types.ModuleName, 3, "not map creator") - ErrMapIsFrozen = sdkerrors.Register(types.ModuleName, 4, "map is frozen") - ErrMapNotEditable = sdkerrors.Register(types.ModuleName, 5, "map is not editable at the moment") - ErrValueAlreadySet = sdkerrors.Register(types.ModuleName, 6, "value already set") - ErrCannotUpdateMapValues = sdkerrors.Register(types.ModuleName, 7, "cannot update map values") - ErrCannotUpdateMapValue = sdkerrors.Register(types.ModuleName, 8, "cannot update map value") - ErrDuplicateValue = sdkerrors.Register(types.ModuleName, 9, "duplicate value") - ErrInvalidMapId = sdkerrors.Register(types.ModuleName, 10, "invalid map id") - ErrInvalidValue = sdkerrors.Register(types.ModuleName, 11, "invalid value") -) diff --git a/x/maps/keeper/grpc_query_get_map.go b/x/maps/keeper/grpc_query_get_map.go deleted file mode 100644 index d3ed10b1..00000000 --- a/x/maps/keeper/grpc_query_get_map.go +++ /dev/null @@ -1,29 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - sdk "github.com/cosmos/cosmos-sdk/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -// Queries a balance for the given address and tokenId and returns its contents. -func (k Keeper) Map(goCtx context.Context, req *types.QueryGetMapRequest) (*types.QueryGetMapResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - ctx := sdk.UnwrapSDKContext(goCtx) - - fetchedMap, found := k.GetMapFromStore(ctx, req.MapId) - if !found { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - return &types.QueryGetMapResponse{ - Map: fetchedMap, - }, nil -} diff --git a/x/maps/keeper/grpc_query_get_map_value.go b/x/maps/keeper/grpc_query_get_map_value.go deleted file mode 100644 index 2d0bcdfe..00000000 --- a/x/maps/keeper/grpc_query_get_map_value.go +++ /dev/null @@ -1,34 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - sdk "github.com/cosmos/cosmos-sdk/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -// Queries a balance for the given address and tokenId and returns its contents. -func (k Keeper) MapValue(goCtx context.Context, req *types.QueryGetMapValueRequest) (*types.QueryGetMapValueResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - ctx := sdk.UnwrapSDKContext(goCtx) - val := k.GetMapValueFromStore(ctx, req.MapId, req.Key) - - if val.Value == "" { - currMap, found := k.GetMapFromStore(ctx, req.MapId) - if !found { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - val.Value = currMap.DefaultValue - } - - return &types.QueryGetMapValueResponse{ - Value: &val, - }, nil -} diff --git a/x/maps/keeper/integration_helpers_test.go b/x/maps/keeper/integration_helpers_test.go deleted file mode 100644 index daf3cb53..00000000 --- a/x/maps/keeper/integration_helpers_test.go +++ /dev/null @@ -1,49 +0,0 @@ -package keeper_test - -import ( - "context" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -/* Query helpers */ - -func GetMap(suite *TestSuite, ctx context.Context, id string) (*types.Map, error) { - res, err := suite.app.MapsKeeper.Map(ctx, &types.QueryGetMapRequest{MapId: id}) - if err != nil { - return &types.Map{}, err - } - - return res.Map, nil -} - -func GetMapValue(suite *TestSuite, ctx context.Context, id string, key string) (*types.ValueStore, error) { - res, err := suite.app.MapsKeeper.MapValue(ctx, &types.QueryGetMapValueRequest{MapId: id, Key: key}) - if err != nil { - return &types.ValueStore{}, err - } - - return res.Value, nil -} - -// /* Msg helpers */ - -func CreateMap(suite *TestSuite, ctx context.Context, msg *types.MsgCreateMap) error { - _, err := suite.msgServer.CreateMap(ctx, msg) - return err -} - -func SetValue(suite *TestSuite, ctx context.Context, msg *types.MsgSetValue) error { - _, err := suite.msgServer.SetValue(ctx, msg) - return err -} - -func DeleteMap(suite *TestSuite, ctx context.Context, msg *types.MsgDeleteMap) error { - _, err := suite.msgServer.DeleteMap(ctx, msg) - return err -} - -func UpdateMap(suite *TestSuite, ctx context.Context, msg *types.MsgUpdateMap) error { - _, err := suite.msgServer.UpdateMap(ctx, msg) - return err -} diff --git a/x/maps/keeper/integration_test.go b/x/maps/keeper/integration_test.go deleted file mode 100644 index f953fcb2..00000000 --- a/x/maps/keeper/integration_test.go +++ /dev/null @@ -1,80 +0,0 @@ -package keeper_test - -import ( - "testing" - "time" - - "github.com/stretchr/testify/suite" - - "github.com/bitbadges/bitbadgeschain/x/maps/keeper" - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - - bitbadgesapp "github.com/bitbadges/bitbadgeschain/app" -) - -const ( - //Note these are alphanumerically sorted (needed for approvals test) - alice = "bb1e0w5t53nrq7p66fye6c8p0ynyhf6y24lke5430" - bob = "bb1jmjfq0tplp9tmx4v9uemw72y4d2wa5nrjmmk3q" - charlie = "bb1xyxs3skf3f4jfqeuv89yyaqvjc6lffav9altme" -) - -// var DefaultConsensusParams = &abci.ConsensusParams{ -// Block: &abci.BlockParams{ -// MaxBytes: 200000, -// MaxGas: 2000000, -// }, -// Evidence: &tmproto.EvidenceParams{ -// MaxAgeNumBlocks: 302400, -// MaxAgeDuration: 504 * time.Hour, // 3 weeks is the max duration -// MaxBytes: 10000, -// }, -// Validator: &tmproto.ValidatorParams{ -// PubKeyTypes: []string{ -// tmtypes.ABCIPubKeyTypeEd25519, -// }, -// }, -// } - -type TestSuite struct { - suite.Suite - - app *bitbadgesapp.App - ctx sdk.Context - queryClient types.QueryClient - msgServer types.MsgServer -} - -// Bunch of weird config stuff to setup the app. Inherited most from Cosmos SDK tutorials and existing Cosmos SDK modules. -func (suite *TestSuite) SetupTest() { - app := bitbadgesapp.Setup( - false, - ) - - ctx := app.BaseApp.NewContext(false) - - queryHelper := baseapp.NewQueryServerTestHelper(ctx, app.AppCodec().InterfaceRegistry()) - queryClient := types.NewQueryClient(queryHelper) - - suite.app = app - suite.ctx = ctx - suite.msgServer = keeper.NewMsgServerImpl(app.MapsKeeper) - suite.queryClient = queryClient - - bob_acc := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, sdk.MustAccAddressFromBech32(bob)) - alice_acc := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, sdk.MustAccAddressFromBech32(alice)) - charlie_acc := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, sdk.MustAccAddressFromBech32(charlie)) - - suite.app.AccountKeeper.SetAccount(suite.ctx, bob_acc) - suite.app.AccountKeeper.SetAccount(suite.ctx, alice_acc) - suite.app.AccountKeeper.SetAccount(suite.ctx, charlie_acc) - - suite.ctx = suite.ctx.WithBlockTime(time.Now()) -} - -func TestMapsKeeperTestSuite(t *testing.T) { - suite.Run(t, new(TestSuite)) -} diff --git a/x/maps/keeper/keeper.go b/x/maps/keeper/keeper.go deleted file mode 100644 index b59b5f45..00000000 --- a/x/maps/keeper/keeper.go +++ /dev/null @@ -1,102 +0,0 @@ -package keeper - -import ( - "fmt" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - tokenizationkeeper "github.com/bitbadges/bitbadgeschain/x/tokenization/keeper" - - "cosmossdk.io/core/store" - "cosmossdk.io/log" - "cosmossdk.io/store/prefix" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/runtime" - sdk "github.com/cosmos/cosmos-sdk/types" - ibckeeper "github.com/cosmos/ibc-go/v10/modules/core/keeper" -) - -type ( - Keeper struct { - cdc codec.BinaryCodec - storeService store.KVStoreService - logger log.Logger - - // the address capable of executing a MsgUpdateParams message. Typically, this - // should be the x/gov module account. - authority string - - ibcKeeperFn func() *ibckeeper.Keeper - - tokenizationKeeper *tokenizationkeeper.Keeper - } -) - -func NewKeeper( - cdc codec.BinaryCodec, - storeService store.KVStoreService, - logger log.Logger, - authority string, - ibcKeeperFn func() *ibckeeper.Keeper, - tokenizationKeeper *tokenizationkeeper.Keeper, - -) Keeper { - return Keeper{ - cdc: cdc, - storeService: storeService, - authority: authority, - logger: logger, - ibcKeeperFn: ibcKeeperFn, - tokenizationKeeper: tokenizationKeeper, - } -} - -// GetAuthority returns the module's authority. -func (k Keeper) GetAuthority() string { - return k.authority -} - -// Logger returns a module-specific logger. -func (k Keeper) Logger() log.Logger { - return k.logger.With("module", fmt.Sprintf("x/%s", types.ModuleName)) -} - -// ---------------------------------------------------------------------------- -// IBC Keeper Logic -// ---------------------------------------------------------------------------- - -// ChanCloseInit defines a wrapper function for the channel Keeper's function. -// IBC v10: capabilities removed, no capability parameter needed -func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error { - return k.ibcKeeperFn().ChannelKeeper.ChanCloseInit(ctx, portID, channelID) -} - -// ShouldBound checks if the IBC app module can be bound to the desired port -// IBC v10: ports are managed automatically, this always returns true -func (k Keeper) ShouldBound(ctx sdk.Context, portID string) bool { - return true -} - -// BindPort defines a wrapper function for the port Keeper's function in -// order to expose it to module's InitGenesis function -// IBC v10: ports are managed automatically, no binding needed -func (k Keeper) BindPort(ctx sdk.Context, portID string) error { - // In IBC v10, ports are managed automatically - no action needed - return nil -} - -// GetPort returns the portID for the IBC app module. Used in ExportGenesis -func (k Keeper) GetPort(ctx sdk.Context) string { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - return string(store.Get(types.PortKey)) -} - -// SetPort sets the portID for the IBC app module. Used in InitGenesis -func (k Keeper) SetPort(ctx sdk.Context, portID string) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - store.Set(types.PortKey, []byte(portID)) -} - -// IBC v10: Capability-related methods removed as capabilities are no longer used diff --git a/x/maps/keeper/keys.go b/x/maps/keeper/keys.go deleted file mode 100644 index 8a03ec02..00000000 --- a/x/maps/keeper/keys.go +++ /dev/null @@ -1,56 +0,0 @@ -package keeper - -import ( - "github.com/bitbadges/bitbadgeschain/x/tokenization/types" -) - -var ( - MapKey = []byte{0x01} - MapValueKey = []byte{0x02} - - MapValueDuplicatesKey = []byte{0x03} - - Delimiter = []byte{0xDD} - Placeholder = []byte{0xFF} - - BalanceKeyDelimiter = "-" -) - -// StoreKey is the store key string for nft -const StoreKey = types.ModuleName - -// mapStoreKey returns the byte representation of the protocol key ([]byte{0x01} + protocolId) -func mapStoreKey(mapId string) []byte { - key := make([]byte, len(MapKey)+len(mapId)) - copy(key, MapKey) - copy(key[len(MapKey):], []byte(mapId)) - return key -} - -func ConstructMapValueKey(mapId string, key string) string { - protocol_name_str := mapId - address_str := key - return protocol_name_str + BalanceKeyDelimiter + address_str -} - -func mapValueStoreKey(constructedKey string) []byte { - key := make([]byte, len(MapValueKey)+len(constructedKey)) - copy(key, MapValueKey) - copy(key[len(MapValueKey):], []byte(constructedKey)) - return key -} - -// Note be careful when getting details from a key because there could be a "-" (BalanceKeyDelimiter) in other fields. - -func ConstructMapValueDuplicatesKey(mapId string, value string) string { - protocol_name_str := mapId - address_str := value - return protocol_name_str + BalanceKeyDelimiter + address_str -} - -func mapValueDuplicatesStoreKey(constructedKey string) []byte { - key := make([]byte, len(MapValueDuplicatesKey)+len(constructedKey)) - copy(key, MapValueDuplicatesKey) - copy(key[len(MapValueDuplicatesKey):], []byte(constructedKey)) - return key -} diff --git a/x/maps/keeper/msg_server.go b/x/maps/keeper/msg_server.go deleted file mode 100644 index f701b267..00000000 --- a/x/maps/keeper/msg_server.go +++ /dev/null @@ -1,17 +0,0 @@ -package keeper - -import ( - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -type msgServer struct { - Keeper -} - -// NewMsgServerImpl returns an implementation of the MsgServer interface -// for the provided Keeper. -func NewMsgServerImpl(keeper Keeper) types.MsgServer { - return &msgServer{Keeper: keeper} -} - -var _ types.MsgServer = msgServer{} diff --git a/x/maps/keeper/msg_server_create_map.go b/x/maps/keeper/msg_server_create_map.go deleted file mode 100644 index afa62b73..00000000 --- a/x/maps/keeper/msg_server_create_map.go +++ /dev/null @@ -1,84 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - sdkerrors "cosmossdk.io/errors" - sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - - tokentypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" -) - -func (k msgServer) CreateMap(goCtx context.Context, msg *types.MsgCreateMap) (*types.MsgCreateMapResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - _ = ctx - - //Map IDs cannot have a "-" in them (reserved for future use cases) - for _, char := range msg.MapId { - if char == '-' { - return nil, sdkerrors.Wrap(ErrInvalidMapId, "Map ID cannot contain '-'") - } - } - - //Maps w/ ID as a valid address are reserved for that address - _, err := sdk.AccAddressFromBech32(msg.MapId) - if err == nil { - if msg.MapId != msg.Creator { - return nil, sdkerrors.Wrap(ErrInvalidMapId, "Map ID cannot be a valid address that is not your own") - } - } - - //Numeric map IDs are reserved for specific collections - collId, err := sdkmath.ParseUint(msg.MapId) - if err == nil { - currCollectionRes, err := k.tokenizationKeeper.GetCollection(ctx, &tokentypes.QueryGetCollectionRequest{ - CollectionId: collId.String(), - }) - if err != nil { - return nil, sdkerrors.Wrap(ErrInvalidMapId, "Map ID must be a valid collection ID. Could not find collection in store") - } - - //Check if user is manager of collection in x/tokenization - currManager := tokentypes.GetCurrentManager(ctx, currCollectionRes.Collection) - if currManager != msg.Creator { - return nil, sdkerrors.Wrap(ErrInvalidMapId, "Numeric map IDs are reserved for specific collections. To create a map for this collection, you must be the manager of the collection") - } - } - - mapToAdd := types.Map{ - Creator: msg.Creator, - MapId: msg.MapId, - UpdateCriteria: msg.UpdateCriteria, - ValueOptions: msg.ValueOptions, - DefaultValue: msg.DefaultValue, - Manager: msg.Manager, - Metadata: msg.Metadata, - Permissions: msg.Permissions, - InheritManagerFrom: msg.InheritManagerFrom, - } - if msg.Permissions == nil { - mapToAdd.Permissions = &types.MapPermissions{} - } - if msg.ValueOptions == nil { - mapToAdd.ValueOptions = &types.ValueOptions{} - } - if msg.UpdateCriteria == nil { - mapToAdd.UpdateCriteria = &types.MapUpdateCriteria{} - } - - //Check if protocol already exists - if k.StoreHasMapID(ctx, msg.MapId) { - return nil, sdkerrors.Wrap(ErrMapExists, "Protocol already exists") - } - - //Add protocol to store - err = k.SetMapInStore(ctx, &mapToAdd) - if err != nil { - return nil, sdkerrors.Wrap(err, "Failed to add protocol to store") - } - - return &types.MsgCreateMapResponse{}, nil -} diff --git a/x/maps/keeper/msg_server_delete_map.go b/x/maps/keeper/msg_server_delete_map.go deleted file mode 100644 index 0843e4b8..00000000 --- a/x/maps/keeper/msg_server_delete_map.go +++ /dev/null @@ -1,47 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - - tokentypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" -) - -func (k msgServer) DeleteMap(goCtx context.Context, msg *types.MsgDeleteMap) (*types.MsgDeleteMapResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - _ = ctx - - currMap, found := k.GetMapFromStore(ctx, msg.MapId) - if !found { - return nil, sdkerrors.Wrap(ErrMapDoesNotExist, "Failed to get map from store") - } - - collection := &tokentypes.TokenCollection{} - if !currMap.InheritManagerFrom.IsNil() && !currMap.InheritManagerFrom.IsZero() { - collectionRes, err := k.tokenizationKeeper.GetCollection(ctx, &tokentypes.QueryGetCollectionRequest{CollectionId: currMap.InheritManagerFrom.String()}) - if err != nil { - return nil, sdkerrors.Wrap(ErrInvalidMapId, "Could not find collection in store") - } - - collection = collectionRes.Collection - } - - currManager := types.GetCurrentManagerForMap(ctx, currMap, collection) - if currManager != msg.Creator { - return nil, sdkerrors.Wrapf(ErrNotMapCreator, "current manager is %s but got %s", currManager, msg.Creator) - } - - //Check deleted permission is valid for current time - err := k.tokenizationKeeper.CheckIfActionPermissionPermits(ctx, types.CastActionPermissions(currMap.Permissions.CanDeleteMap), "can delete map") - if err != nil { - return nil, err - } - - k.DeleteMapFromStore(ctx, msg.MapId) - - return &types.MsgDeleteMapResponse{}, nil -} diff --git a/x/maps/keeper/msg_server_set_value.go b/x/maps/keeper/msg_server_set_value.go deleted file mode 100644 index fbb3ef3d..00000000 --- a/x/maps/keeper/msg_server_set_value.go +++ /dev/null @@ -1,158 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - sdkerrors "cosmossdk.io/errors" - sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - - tokentypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" -) - -func (k msgServer) SetValue(goCtx context.Context, msg *types.MsgSetValue) (*types.MsgSetValueResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - mapId := msg.MapId - key := msg.Key - value := msg.Value - - //Check the overwrite options - if msg.Options.UseMostRecentCollectionId { - nextCollectionId := k.tokenizationKeeper.GetNextCollectionId(ctx) - value = nextCollectionId.Sub(sdkmath.NewUint(1)).BigInt().String() - } - - currMap, found := k.GetMapFromStore(ctx, mapId) - if !found { - return nil, sdkerrors.Wrap(ErrMapDoesNotExist, "Failed to get map from store") - } - - if value != "" { - if currMap.ValueOptions.ExpectUint { - newUint := sdkmath.NewUintFromString(value) - if newUint.IsNil() { - return nil, sdkerrors.Wrap(ErrInvalidValue, "Value must be a valid uint") - } - } - - if currMap.ValueOptions.ExpectBoolean { - if value != "true" && value != "false" { - return nil, sdkerrors.Wrap(ErrInvalidValue, "Value must be a valid boolean") - } - } - - if currMap.ValueOptions.ExpectAddress { - _, err := sdk.AccAddressFromBech32(value) - if err != nil { - return nil, sdkerrors.Wrap(ErrInvalidValue, "Value must be a valid address") - } - } - - if currMap.ValueOptions.ExpectUri { - err := tokentypes.ValidateURI(value) - if err != nil { - return nil, sdkerrors.Wrap(ErrInvalidValue, "Value must be a valid URI") - } - } - } - - currVal := k.GetMapValueFromStore(ctx, mapId, key) - if currVal.Value == value { - return nil, sdkerrors.Wrap(ErrValueAlreadySet, "Value cannot be the same as the current value") - } - - collection := &tokentypes.TokenCollection{} - if !currMap.InheritManagerFrom.IsNil() && !currMap.InheritManagerFrom.IsZero() { - collectionRes, err := k.tokenizationKeeper.GetCollection(ctx, &tokentypes.QueryGetCollectionRequest{CollectionId: currMap.InheritManagerFrom.String()}) - if err != nil { - return nil, sdkerrors.Wrap(ErrInvalidMapId, "Could not find collection in store") - } - - collection = collectionRes.Collection - } - - currManager := types.GetCurrentManagerForMap(ctx, currMap, collection) - - canUpdate := false - if currMap.UpdateCriteria.ManagerOnly && currManager == msg.Creator { - canUpdate = true - } - - if !currMap.UpdateCriteria.CollectionId.IsNil() && currMap.UpdateCriteria.CollectionId.GT(sdkmath.NewUint(0)) { - tokenId := sdkmath.NewUintFromString(key) - balancesRes, err := k.tokenizationKeeper.GetBalance(ctx, &tokentypes.QueryGetBalanceRequest{ - CollectionId: currMap.UpdateCriteria.CollectionId.String(), - Address: msg.Creator, - }) - if err != nil { - return nil, sdkerrors.Wrap(err, "Failed to get balance") - } - - currTime := sdkmath.NewUint(uint64(ctx.BlockTime().UnixMilli())) - bals, err := tokentypes.GetBalancesForIds(ctx, []*tokentypes.UintRange{ - {Start: tokenId, End: tokenId}, - }, []*tokentypes.UintRange{ - {Start: currTime, End: currTime}, - }, balancesRes.Balance.Balances) - if err != nil { - return nil, sdkerrors.Wrap(err, "Failed to get balances for ids") - } - - for _, bal := range bals { - if bal.Amount.GTE(sdkmath.NewUint(1)) { - canUpdate = true - break - } - } - } - - if currMap.UpdateCriteria.CreatorOnly && key == msg.Creator { - canUpdate = true - } - - if currMap.UpdateCriteria.FirstComeFirstServe { - - if currVal.Value == "" { - canUpdate = true - } - - if currVal.Value != "" && currVal.LastSetBy == msg.Creator { - canUpdate = true - } - } - - if currMap.ValueOptions.PermanentOnceSet { - if currVal.Value != "" { - return nil, sdkerrors.Wrap(ErrValueAlreadySet, "Value already set and cannot be updated") - } - } - - if currMap.ValueOptions.NoDuplicates { - if k.GetMapDuplicateValueFromStore(ctx, mapId, value) { - return nil, sdkerrors.Wrap(ErrDuplicateValue, "Duplicate values not allowed") - } - - if currVal.Value != "" { - k.DeleteMapDuplicateValueFromStore(ctx, mapId, currVal.Value) - } - - err := k.SetMapDuplicateValueInStore(ctx, mapId, value) - if err != nil { - return nil, sdkerrors.Wrap(err, "Failed to set duplicate tracker in store") - } - } - - if !canUpdate { - return nil, sdkerrors.Wrap(ErrCannotUpdateMapValue, "Cannot update map value") - } - - err := k.SetMapValueInStore(ctx, mapId, key, value, msg.Creator) - if err != nil { - return nil, sdkerrors.Wrap(err, "Failed to update map value in store") - } - - return &types.MsgSetValueResponse{}, nil -} diff --git a/x/maps/keeper/msg_server_test.go b/x/maps/keeper/msg_server_test.go deleted file mode 100644 index bc7e6eae..00000000 --- a/x/maps/keeper/msg_server_test.go +++ /dev/null @@ -1,25 +0,0 @@ -package keeper_test - -import ( - "context" - "testing" - - "github.com/bitbadges/bitbadgeschain/x/maps/keeper" - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - keepertest "github.com/bitbadges/bitbadgeschain/testutil/keeper" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" -) - -func setupMsgServer(t testing.TB) (types.MsgServer, context.Context) { - k, ctx := keepertest.MapsKeeper(t) - return keeper.NewMsgServerImpl(k), sdk.WrapSDKContext(ctx) -} - -func TestMsgServer(t *testing.T) { - ms, ctx := setupMsgServer(t) - require.NotNil(t, ms) - require.NotNil(t, ctx) -} diff --git a/x/maps/keeper/msg_server_update_map.go b/x/maps/keeper/msg_server_update_map.go deleted file mode 100644 index 1dd33282..00000000 --- a/x/maps/keeper/msg_server_update_map.go +++ /dev/null @@ -1,87 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - - tokentypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" -) - -func (k msgServer) UpdateMap(goCtx context.Context, msg *types.MsgUpdateMap) (*types.MsgUpdateMapResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - _ = ctx - - currMap, found := k.GetMapFromStore(ctx, msg.MapId) - if !found { - return nil, sdkerrors.Wrap(ErrMapDoesNotExist, "Failed to get map from store") - } - - collection := &tokentypes.TokenCollection{} - if !currMap.InheritManagerFrom.IsNil() && !currMap.InheritManagerFrom.IsZero() { - collectionRes, err := k.tokenizationKeeper.GetCollection(ctx, &tokentypes.QueryGetCollectionRequest{CollectionId: currMap.InheritManagerFrom.String()}) - if err != nil { - return nil, sdkerrors.Wrap(ErrInvalidMapId, "Could not find collection in store") - } - - collection = collectionRes.Collection - } - - currManager := types.GetCurrentManagerForMap(ctx, currMap, collection) - if currManager != msg.Creator { - return nil, sdkerrors.Wrapf(ErrNotMapCreator, "current manager is %s but got %s", currManager, msg.Creator) - } - - if msg.UpdateManager { - oldManager := currMap.Manager - newManager := msg.Manager - if err := k.tokenizationKeeper.ValidateManagerUpdate(ctx, oldManager, newManager, types.CastActionPermissions(currMap.Permissions.CanUpdateManager)); err != nil { - return nil, err - } - currMap.Manager = msg.Manager - } - - if msg.UpdateMetadata { - oldMetadata := types.CastMapMetadataToCollectionMetadata(currMap.Metadata) - newMetadata := types.CastMapMetadataToCollectionMetadata(msg.Metadata) - if err := k.tokenizationKeeper.ValidateCollectionMetadataUpdate(ctx, oldMetadata, newMetadata, types.CastActionPermissions(currMap.Permissions.CanUpdateMetadata)); err != nil { - return nil, err - } - currMap.Metadata = msg.Metadata - } - - if msg.UpdatePermissions { - if err := types.ValidatePermissions(msg.Permissions, true); err != nil { - return nil, err - } - - if err := types.ValidatePermissions(currMap.Permissions, true); err != nil { - return nil, err - } - - if err := k.tokenizationKeeper.ValidateActionPermissionUpdate(ctx, types.CastActionPermissions(currMap.Permissions.CanDeleteMap), types.CastActionPermissions(msg.Permissions.CanDeleteMap)); err != nil { - return nil, err - } - - if err := k.tokenizationKeeper.ValidateActionPermissionUpdate(ctx, types.CastActionPermissions(currMap.Permissions.CanUpdateManager), types.CastActionPermissions(msg.Permissions.CanUpdateManager)); err != nil { - return nil, err - } - - if err := k.tokenizationKeeper.ValidateActionPermissionUpdate(ctx, types.CastActionPermissions(currMap.Permissions.CanUpdateMetadata), types.CastActionPermissions(msg.Permissions.CanUpdateMetadata)); err != nil { - return nil, err - } - - currMap.Permissions = msg.Permissions - } - - //Add protocol to store - err := k.SetMapInStore(ctx, currMap) - if err != nil { - return nil, sdkerrors.Wrap(err, "Failed to add protocol to store") - } - - return &types.MsgUpdateMapResponse{}, nil -} diff --git a/x/maps/keeper/msg_update_params.go b/x/maps/keeper/msg_update_params.go deleted file mode 100644 index 92f5d166..00000000 --- a/x/maps/keeper/msg_update_params.go +++ /dev/null @@ -1,23 +0,0 @@ -package keeper - -import ( - "context" - - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -func (k msgServer) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { - if k.GetAuthority() != req.Authority { - return nil, errorsmod.Wrapf(types.ErrInvalidSigner, "invalid authority; expected %s, got %s", k.GetAuthority(), req.Authority) - } - - ctx := sdk.UnwrapSDKContext(goCtx) - if err := k.SetParams(ctx, req.Params); err != nil { - return nil, err - } - - return &types.MsgUpdateParamsResponse{}, nil -} diff --git a/x/maps/keeper/msgs_test.go b/x/maps/keeper/msgs_test.go deleted file mode 100644 index a9abe598..00000000 --- a/x/maps/keeper/msgs_test.go +++ /dev/null @@ -1,552 +0,0 @@ -package keeper_test - -import ( - "math" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - - tokenizationkeeper "github.com/bitbadges/bitbadgeschain/x/tokenization/keeper" - tokenizationtypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" -) - -func GetDefaultCreateMsg() *types.MsgCreateMap { - return &types.MsgCreateMap{ - Creator: bob, - MapId: "test", - UpdateCriteria: &types.MapUpdateCriteria{ - ManagerOnly: true, - CollectionId: sdkmath.NewUintFromString("0"), - CreatorOnly: false, - FirstComeFirstServe: false, - }, - ValueOptions: &types.ValueOptions{ - PermanentOnceSet: false, - NoDuplicates: false, - }, - DefaultValue: "", - Manager: bob, - Metadata: &types.Metadata{ - Uri: "test", - CustomData: "", - }, - Permissions: &types.MapPermissions{ - CanUpdateMetadata: []*types.ActionPermission{ - { - PermanentlyPermittedTimes: []*types.UintRange{}, - PermanentlyForbiddenTimes: []*types.UintRange{}, - }, - }, - CanUpdateManager: []*types.ActionPermission{ - { - PermanentlyPermittedTimes: []*types.UintRange{}, - PermanentlyForbiddenTimes: []*types.UintRange{}, - }, - }, - CanDeleteMap: []*types.ActionPermission{ - { - PermanentlyPermittedTimes: []*types.UintRange{}, - PermanentlyForbiddenTimes: []*types.UintRange{}, - }, - }, - }, - } -} - -func (suite *TestSuite) TestMaps() { - wctx := sdk.WrapSDKContext(suite.ctx) - - err := CreateMap(suite, wctx, GetDefaultCreateMsg()) - suite.Require().Nil(err, "Error creating map: %s") - - currMap, err := GetMap(suite, wctx, "test") - suite.Require().Nil(err, "Error getting map: %s") - suite.Require().NotNil(currMap, "Error getting map: %s") - suite.Require().Equal("test", currMap.MapId, "Error getting map: %s") - - suite.Require().Equal(bob, currMap.Manager, "Error getting map: %s") - - updateMapMsg := &types.MsgUpdateMap{ - Creator: bob, - MapId: "test", - UpdateManager: true, - Manager: alice, - UpdateMetadata: false, - Metadata: nil, - UpdatePermissions: false, - Permissions: nil, - } - - updateMapMsg.Creator = alice - err = UpdateMap(suite, wctx, updateMapMsg) - suite.Require().Error(err, "Error updating map: %s") - updateMapMsg.Creator = bob - - err = UpdateMap(suite, wctx, updateMapMsg) - suite.Require().Nil(err, "Error updating map: %s") - updateMapMsg.Creator = alice - - err = DeleteMap(suite, wctx, &types.MsgDeleteMap{ - Creator: bob, - MapId: "test", - }) - suite.Require().Error(err, "Error deleting map: %s") - - err = DeleteMap(suite, wctx, &types.MsgDeleteMap{ - Creator: alice, - MapId: "test", - }) - suite.Require().Nil(err, "Error deleting map: %s") -} - -func (suite *TestSuite) TestPermissions() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.Permissions.CanUpdateManager = []*types.ActionPermission{ - { - PermanentlyPermittedTimes: []*types.UintRange{}, - PermanentlyForbiddenTimes: []*types.UintRange{{ - Start: sdkmath.NewUint(1), - End: sdkmath.NewUint(math.MaxUint64), - }}, - }, - } - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") - - updateMapMsg := &types.MsgUpdateMap{ - Creator: bob, - MapId: "test", - UpdateManager: true, - Manager: alice, - } - - err = UpdateMap(suite, wctx, updateMapMsg) - suite.Require().Error(err, "Error updating map: %s") -} - -func (suite *TestSuite) TestDeleteIsDisallowed() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.Permissions.CanDeleteMap = []*types.ActionPermission{ - { - PermanentlyPermittedTimes: []*types.UintRange{}, - PermanentlyForbiddenTimes: []*types.UintRange{{ - Start: sdkmath.NewUint(1), - End: sdkmath.NewUint(math.MaxUint64), - }}, - }, - } - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") - - err = DeleteMap(suite, wctx, &types.MsgDeleteMap{ - Creator: bob, - MapId: "test", - }) - suite.Require().Error(err, "Error deleting map: %s") -} - -func (suite *TestSuite) TestManagerOnly() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.ManagerOnly = true - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Error(err, "Error setting value: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: bob, - MapId: "test", - Key: alice, - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Nil(err, "Error setting value: %s") - - valStore, err := GetMapValue(suite, wctx, "test", alice) - if err != nil { - suite.Require().Error(err, "Error getting value: %s") - } - - suite.Require().Equal("test", valStore.Value, "Error getting value: %s") - suite.Require().Equal(valStore.LastSetBy, bob, "Error getting value: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "", - Options: &types.SetOptions{}, - }) - suite.Require().Error(err, "Error setting value: %s") -} - -func (suite *TestSuite) TestFirstComeFirstServe() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.FirstComeFirstServe = true - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Nil(err, "Error setting value: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: bob, - MapId: "test", - Key: alice, - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Error(err, "Error setting value: %s") - - valStore, err := GetMapValue(suite, wctx, "test", alice) - if err != nil { - suite.Require().Error(err, "Error getting value: %s") - } - - suite.Require().Equal("test", valStore.Value, "Error getting value: %s") - suite.Require().Equal(valStore.LastSetBy, alice, "Error getting value: %s") - - //unset value - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "", - Options: &types.SetOptions{}, - }) - suite.Require().Nil(err, "Error setting value: %s") - - valStore, err = GetMapValue(suite, wctx, "test", alice) - if err != nil { - suite.Require().Error(err, "Error getting value: %s") - } - - suite.Require().Equal("", valStore.Value, "Error getting value: %s") -} - -func (suite *TestSuite) TestNoDuplicates() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.CreatorOnly = true - createMsg.UpdateCriteria.ManagerOnly = false - createMsg.ValueOptions.NoDuplicates = true - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Nil(err, "Error setting value: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: bob, - MapId: "test", - Key: bob, - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Error(err, "Error setting value: %s") - - valStore, err := GetMapValue(suite, wctx, "test", alice) - if err != nil { - suite.Require().Error(err, "Error getting value: %s") - } - - suite.Require().Equal("test", valStore.Value, "Error getting value: %s") - suite.Require().Equal(valStore.LastSetBy, alice, "Error getting value: %s") - - //unset value - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "", - Options: &types.SetOptions{}, - }) - suite.Require().Nil(err, "Error setting value: %s") - - valStore, err = GetMapValue(suite, wctx, "test", alice) - if err != nil { - suite.Require().Error(err, "Error getting value: %s") - } - - suite.Require().Equal("", valStore.Value, "Error getting value: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: bob, - MapId: "test", - Key: bob, - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Nil(err, "Error setting value: %s") -} - -func (suite *TestSuite) TestPermanentOnceSet() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.ValueOptions.PermanentOnceSet = true - createMsg.UpdateCriteria.CreatorOnly = true - createMsg.UpdateCriteria.ManagerOnly = false - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Nil(err, "Error setting value: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Error(err, "Error setting value: %s") - - //Cant unset either - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "", - Options: &types.SetOptions{}, - }) - suite.Require().Error(err, "Error setting value: %s") -} - -func (suite *TestSuite) TestUseMostRecentCollectionId() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.CollectionId = sdkmath.NewUintFromString("0") - createMsg.UpdateCriteria.CreatorOnly = true - createMsg.UpdateCriteria.ManagerOnly = false - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "test", - Key: alice, - Value: "test", - Options: &types.SetOptions{ - UseMostRecentCollectionId: true, - }, - }) - suite.Require().Nil(err, "Error setting value: %s") - - valStore, err := GetMapValue(suite, wctx, "test", alice) - if err != nil { - suite.Require().Error(err, "Error getting value: %s") - } - - suite.Require().Equal("0", valStore.Value, "Error getting value: %s") -} - -func (suite *TestSuite) TestReservedAddressMaps() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.CollectionId = sdkmath.NewUintFromString("0") - createMsg.UpdateCriteria.CreatorOnly = true - createMsg.UpdateCriteria.ManagerOnly = false - createMsg.MapId = alice - createMsg.Creator = alice - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") -} - -func (suite *TestSuite) TestReservedAddressMapsNotOwnAddress() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.CollectionId = sdkmath.NewUintFromString("0") - createMsg.UpdateCriteria.CreatorOnly = true - createMsg.UpdateCriteria.ManagerOnly = false - createMsg.MapId = alice - createMsg.Creator = bob - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Error(err, "Error creating map: %s") -} - -func (suite *TestSuite) TestCollectionIdReservedMaps() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.CreatorOnly = true - createMsg.UpdateCriteria.ManagerOnly = false - createMsg.MapId = "1234" - createMsg.Creator = alice - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Error(err, "Error creating map: %s") -} - -func (suite *TestSuite) TestCollectionIdReservedMapsWithManager() { - suite.app.TokenizationKeeper.SetCollectionInStore(suite.ctx, &tokenizationtypes.TokenCollection{ - CollectionId: sdkmath.NewUint(1), - Manager: alice, - }, true) - - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.CreatorOnly = true - createMsg.UpdateCriteria.ManagerOnly = false - createMsg.MapId = "1" - createMsg.Creator = alice - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") -} - -func (suite *TestSuite) TestCollectionIdReservedMapsWithManagerNotManager() { - suite.app.TokenizationKeeper.SetCollectionInStore(suite.ctx, &tokenizationtypes.TokenCollection{ - CollectionId: sdkmath.NewUint(1), - Manager: alice, - }, true) - - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.CreatorOnly = true - createMsg.UpdateCriteria.ManagerOnly = false - createMsg.MapId = "1" - createMsg.Creator = bob - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Error(err, "Error creating map: %s") -} - -func (suite *TestSuite) TestCollectionIdCriteria() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.CollectionId = sdkmath.NewUintFromString("1") - createMsg.UpdateCriteria.CreatorOnly = true - createMsg.UpdateCriteria.ManagerOnly = false - createMsg.MapId = "1" - createMsg.Creator = alice - - suite.app.TokenizationKeeper.SetCollectionInStore(suite.ctx, &tokenizationtypes.TokenCollection{ - CollectionId: sdkmath.NewUint(1), - Manager: alice, - }, true) - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") - - suite.app.TokenizationKeeper.SetUserBalanceInStore(suite.ctx, tokenizationkeeper.ConstructBalanceKey(alice, sdkmath.NewUint(1)), &tokenizationtypes.UserBalanceStore{ - Balances: []*tokenizationtypes.Balance{ - { - TokenIds: []*tokenizationtypes.UintRange{ - { - Start: sdkmath.NewUint(1), - End: sdkmath.NewUint(1), - }, - }, - Amount: sdkmath.NewUint(1), - OwnershipTimes: []*tokenizationtypes.UintRange{ - { - Start: sdkmath.NewUint(1), - End: sdkmath.NewUint(math.MaxUint64), - }, - }, - }, - }, - }, true) - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "1", - Key: "1", - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Nil(err, "Error setting value: %s") - - valStore, err := GetMapValue(suite, wctx, "1", "1") - if err != nil { - suite.Require().Error(err, "Error getting value: %s") - } - - suite.Require().Equal("test", valStore.Value, "Error getting value: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "1", - Key: "2", - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Error(err, "Error setting value: %s") -} - -func (suite *TestSuite) TestInheritManagerFromCollection() { - wctx := sdk.WrapSDKContext(suite.ctx) - createMsg := GetDefaultCreateMsg() - createMsg.UpdateCriteria.ManagerOnly = false - createMsg.UpdateCriteria.CreatorOnly = false - createMsg.UpdateCriteria.FirstComeFirstServe = true - createMsg.MapId = "testing" - createMsg.Creator = alice - createMsg.Manager = "" - createMsg.InheritManagerFrom = sdkmath.NewUint(1) - - err := CreateMap(suite, wctx, createMsg) - suite.Require().Nil(err, "Error creating map: %s") - - suite.app.TokenizationKeeper.SetCollectionInStore(suite.ctx, &tokenizationtypes.TokenCollection{ - CollectionId: sdkmath.NewUint(1), - Manager: alice, - }, true) - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: alice, - MapId: "testing", - Key: "test", - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Nil(err, "Error setting value: %s") - - err = SetValue(suite, wctx, &types.MsgSetValue{ - Creator: bob, - MapId: "testing", - Key: "test", - Value: "test", - Options: &types.SetOptions{}, - }) - suite.Require().Error(err, "Error setting value: %s") -} diff --git a/x/maps/keeper/params.go b/x/maps/keeper/params.go deleted file mode 100644 index bef61e7c..00000000 --- a/x/maps/keeper/params.go +++ /dev/null @@ -1,33 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/runtime" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -// GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx context.Context) (params types.Params) { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - bz := store.Get(types.ParamsKey) - if bz == nil { - return params - } - - k.cdc.MustUnmarshal(bz, ¶ms) - return params -} - -// SetParams set the params -func (k Keeper) SetParams(ctx context.Context, params types.Params) error { - store := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - bz, err := k.cdc.Marshal(¶ms) - if err != nil { - return err - } - store.Set(types.ParamsKey, bz) - - return nil -} diff --git a/x/maps/keeper/params_test.go b/x/maps/keeper/params_test.go deleted file mode 100644 index 58a67853..00000000 --- a/x/maps/keeper/params_test.go +++ /dev/null @@ -1,19 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - keepertest "github.com/bitbadges/bitbadgeschain/testutil/keeper" -) - -func TestGetParams(t *testing.T) { - k, ctx := keepertest.MapsKeeper(t) - params := types.DefaultParams() - - require.NoError(t, k.SetParams(ctx, params)) - require.EqualValues(t, params, k.GetParams(ctx)) -} diff --git a/x/maps/keeper/query.go b/x/maps/keeper/query.go deleted file mode 100644 index ec5e8652..00000000 --- a/x/maps/keeper/query.go +++ /dev/null @@ -1,7 +0,0 @@ -package keeper - -import ( - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -var _ types.QueryServer = Keeper{} diff --git a/x/maps/keeper/query_params.go b/x/maps/keeper/query_params.go deleted file mode 100644 index 5e89b6ce..00000000 --- a/x/maps/keeper/query_params.go +++ /dev/null @@ -1,20 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(goCtx) - - return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil -} diff --git a/x/maps/keeper/query_params_test.go b/x/maps/keeper/query_params_test.go deleted file mode 100644 index 166eec8c..00000000 --- a/x/maps/keeper/query_params_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - keepertest "github.com/bitbadges/bitbadgeschain/testutil/keeper" -) - -func TestParamsQuery(t *testing.T) { - keeper, ctx := keepertest.MapsKeeper(t) - params := types.DefaultParams() - require.NoError(t, keeper.SetParams(ctx, params)) - - response, err := keeper.Params(ctx, &types.QueryParamsRequest{}) - require.NoError(t, err) - require.Equal(t, &types.QueryParamsResponse{Params: params}, response) -} diff --git a/x/maps/keeper/store.go b/x/maps/keeper/store.go deleted file mode 100644 index 4e81eb0f..00000000 --- a/x/maps/keeper/store.go +++ /dev/null @@ -1,167 +0,0 @@ -package keeper - -import ( - "strings" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - sdkerrors "cosmossdk.io/errors" - "github.com/cosmos/cosmos-sdk/runtime" - sdk "github.com/cosmos/cosmos-sdk/types" - - "cosmossdk.io/store/prefix" - storetypes "cosmossdk.io/store/types" -) - -func (k Keeper) SetMapInStore(ctx sdk.Context, protocol *types.Map) error { - marshaled_token, err := k.cdc.Marshal(protocol) - if err != nil { - return sdkerrors.Wrap(err, "Marshal types.Map failed") - } - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - store.Set(mapStoreKey(protocol.MapId), marshaled_token) - return nil -} - -// Gets a map from the store according to the mapId. -func (k Keeper) GetMapFromStore(ctx sdk.Context, mapId string) (*types.Map, bool) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - marshaled_protocol := store.Get(mapStoreKey(mapId)) - - var protocol types.Map - if len(marshaled_protocol) == 0 { - return &protocol, false - } - k.cdc.MustUnmarshal(marshaled_protocol, &protocol) - return &protocol, true -} - -// GetMapsFromStore defines a method for returning all maps information by key. -func (k Keeper) GetMapsFromStore(ctx sdk.Context) (protocols []*types.Map) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - iterator := storetypes.KVStorePrefixIterator(store, MapKey) - defer iterator.Close() - for ; iterator.Valid(); iterator.Next() { - var protocol types.Map - k.cdc.MustUnmarshal(iterator.Value(), &protocol) - protocols = append(protocols, &protocol) - } - return -} - -// StoreHasMapID determines whether the specified mapId exists -func (k Keeper) StoreHasMapID(ctx sdk.Context, mapId string) bool { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - return store.Has(mapStoreKey(mapId)) -} - -// DeleteMapFromStore deletes a map from the store. -func (k Keeper) DeleteMapFromStore(ctx sdk.Context, mapId string) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - store.Delete(mapStoreKey(mapId)) -} - -func (k Keeper) SetMapValueInStore(ctx sdk.Context, mapId string, key string, value string, address string) error { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - - valueStore := &types.ValueStore{ - Key: key, - Value: value, - LastSetBy: address, - } - - marshaled_protocol, err := k.cdc.Marshal(valueStore) - if err != nil { - return sdkerrors.Wrap(err, "Marshal types.ValueStore failed") - } - - store.Set(mapValueStoreKey(ConstructMapValueKey(mapId, key)), marshaled_protocol) - return nil -} - -// Gets a map value from the store according to the mapId. -func (k Keeper) GetMapValueFromStore(ctx sdk.Context, mapId string, value string) types.ValueStore { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - - var valueStore types.ValueStore - marshaled_protocol := store.Get(mapValueStoreKey(ConstructMapValueKey(mapId, value))) - if len(marshaled_protocol) == 0 { - return valueStore - } - - k.cdc.MustUnmarshal(marshaled_protocol, &valueStore) - return valueStore -} - -// DeleteMapFromStore deletes a map value from the store. -func (k Keeper) DeleteMapValueFromStore(ctx sdk.Context, mapId string, value string) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - store.Delete(mapValueStoreKey(ConstructMapValueKey(mapId, value))) -} - -func (k Keeper) GetMapKeysAndValuesFromStore(ctx sdk.Context) (mapIds []string, keys []string, values []*types.ValueStore) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - iterator := storetypes.KVStorePrefixIterator(store, MapValueKey) - defer iterator.Close() - for ; iterator.Valid(); iterator.Next() { - var valueStore types.ValueStore - k.cdc.MustUnmarshal(iterator.Value(), &valueStore) - values = append(values, &valueStore) - - mapId, key := GetDetailsFromKey(string(iterator.Key()[1:])) - mapIds = append(mapIds, mapId) - keys = append(keys, key) - } - return -} - -func GetDetailsFromKey(id string) (string, string) { - result := strings.Split(id, BalanceKeyDelimiter) - key := result[1] - mapId := result[0] - - return mapId, key -} - -func (k Keeper) SetMapDuplicateValueInStore(ctx sdk.Context, mapId string, value string) error { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - - store.Set(mapValueDuplicatesStoreKey(ConstructMapValueDuplicatesKey(mapId, value)), []byte("true")) - return nil -} - -func (k Keeper) GetMapDuplicateValueFromStore(ctx sdk.Context, mapId string, value string) bool { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - - return store.Has(mapValueDuplicatesStoreKey(ConstructMapValueDuplicatesKey(mapId, value))) -} - -func (k Keeper) DeleteMapDuplicateValueFromStore(ctx sdk.Context, mapId string, value string) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - store.Delete(mapValueDuplicatesStoreKey(ConstructMapValueDuplicatesKey(mapId, value))) -} - -func (k Keeper) GetMapDuplicateKeysAndValuesFromStore(ctx sdk.Context) (mapIds []string, values []string) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, []byte{}) - iterator := storetypes.KVStorePrefixIterator(store, MapValueDuplicatesKey) - defer iterator.Close() - for ; iterator.Valid(); iterator.Next() { - mapId, value := GetDetailsFromKey(string(iterator.Key()[1:])) - mapIds = append(mapIds, mapId) - values = append(values, value) - } - return -} diff --git a/x/maps/module/autocli.go b/x/maps/module/autocli.go deleted file mode 100644 index 92dc4f2b..00000000 --- a/x/maps/module/autocli.go +++ /dev/null @@ -1,35 +0,0 @@ -package maps - -// import ( -// autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" - -// modulev1 "github.com/bitbadges/bitbadgeschain/api/maps" -// ) - -// // AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. -// func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { -// return &autocliv1.ModuleOptions{ -// Query: &autocliv1.ServiceCommandDescriptor{ -// Service: modulev1.Query_ServiceDesc.ServiceName, -// RpcCommandOptions: []*autocliv1.RpcCommandOptions{ -// { -// RpcMethod: "Params", -// Use: "params", -// Short: "Shows the parameters of the module", -// }, -// // this line is used by ignite scaffolding # autocli/query -// }, -// }, -// Tx: &autocliv1.ServiceCommandDescriptor{ -// Service: modulev1.Msg_ServiceDesc.ServiceName, -// EnhanceCustomCommand: true, // only required if you want to use the custom command -// RpcCommandOptions: []*autocliv1.RpcCommandOptions{ -// { -// RpcMethod: "UpdateParams", -// Skip: true, // skipped because authority gated -// }, -// // this line is used by ignite scaffolding # autocli/tx -// }, -// }, -// } -// } diff --git a/x/maps/module/genesis.go b/x/maps/module/genesis.go deleted file mode 100644 index 50333dec..00000000 --- a/x/maps/module/genesis.go +++ /dev/null @@ -1,76 +0,0 @@ -package maps - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/bitbadges/bitbadgeschain/x/maps/keeper" - "github.com/bitbadges/bitbadgeschain/x/maps/types" -) - -// InitGenesis initializes the module's state from a provided genesis state. -func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { - // this line is used by starport scaffolding # genesis/module/init - k.SetPort(ctx, genState.PortId) - // Only try to bind to port if it is not already bound, since we may already own - // port capability from capability InitGenesis - if k.ShouldBound(ctx, genState.PortId) { - // module binds to the port on InitChain - // and claims the returned capability - err := k.BindPort(ctx, genState.PortId) - if err != nil { - panic("could not claim port capability: " + err.Error()) - } - } - if err := k.SetParams(ctx, genState.Params); err != nil { - panic(err) - } - - for _, mapToStore := range genState.Maps { - if err := k.SetMapInStore(ctx, mapToStore); err != nil { - panic(err) - } - } - - for idx, fullKey := range genState.FullKeys { - mapId, key := keeper.GetDetailsFromKey(fullKey) - if err := k.SetMapValueInStore(ctx, mapId, key, genState.Values[idx].Value, genState.Values[idx].LastSetBy); err != nil { - panic(err) - } - } - - for _, mapId := range genState.DuplicatesFullKeys { - mapId, value := keeper.GetDetailsFromKey(mapId) - if err := k.SetMapDuplicateValueInStore(ctx, mapId, value); err != nil { - panic(err) - } - } -} - -// ExportGenesis returns the module's exported genesis. -func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { - genesis := types.DefaultGenesis() - genesis.Params = k.GetParams(ctx) - - genesis.PortId = k.GetPort(ctx) - - genesis.Maps = k.GetMapsFromStore(ctx) - - mapIds, keys, values := k.GetMapKeysAndValuesFromStore(ctx) - - genesis.FullKeys = []string{} - for idx, mapId := range mapIds { - genesis.FullKeys = append(genesis.FullKeys, keeper.ConstructMapValueKey(mapId, keys[idx])) - } - - genesis.Values = values - - mapIds, duplicateValues := k.GetMapDuplicateKeysAndValuesFromStore(ctx) - - genesis.DuplicatesFullKeys = []string{} - for idx, mapId := range mapIds { - genesis.DuplicatesFullKeys = append(genesis.DuplicatesFullKeys, keeper.ConstructMapValueDuplicatesKey(mapId, duplicateValues[idx])) - } - // this line is used by starport scaffolding # genesis/module/export - - return genesis -} diff --git a/x/maps/module/genesis_test.go b/x/maps/module/genesis_test.go deleted file mode 100644 index 18bd8796..00000000 --- a/x/maps/module/genesis_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package maps_test - -import ( - "testing" - - "github.com/bitbadges/bitbadgeschain/testutil/nullify" - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - keepertest "github.com/bitbadges/bitbadgeschain/testutil/keeper" - maps "github.com/bitbadges/bitbadgeschain/x/maps/module" - - "github.com/stretchr/testify/require" -) - -func TestGenesis(t *testing.T) { - genesisState := types.GenesisState{ - Params: types.DefaultParams(), - PortId: types.PortID, - // this line is used by starport scaffolding # genesis/test/state - } - - k, ctx := keepertest.MapsKeeper(t) - maps.InitGenesis(ctx, k, genesisState) - got := maps.ExportGenesis(ctx, k) - require.NotNil(t, got) - - nullify.Fill(&genesisState) - nullify.Fill(got) - - require.Equal(t, genesisState.PortId, got.PortId) - - // this line is used by starport scaffolding # genesis/test/assert -} diff --git a/x/maps/module/module.go b/x/maps/module/module.go deleted file mode 100644 index 671178f6..00000000 --- a/x/maps/module/module.go +++ /dev/null @@ -1,236 +0,0 @@ -package maps - -import ( - "context" - "encoding/json" - "fmt" - - "cosmossdk.io/core/appmodule" - "cosmossdk.io/core/store" - "cosmossdk.io/depinject" - "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - porttypes "github.com/cosmos/ibc-go/v10/modules/core/05-port/types" - ibckeeper "github.com/cosmos/ibc-go/v10/modules/core/keeper" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - // this line is used by starport scaffolding # 1 - - "github.com/bitbadges/bitbadgeschain/x/maps/client/cli" - "github.com/bitbadges/bitbadgeschain/x/maps/keeper" - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - modulev1 "github.com/bitbadges/bitbadgeschain/api/maps/module" - tokenizationkeeper "github.com/bitbadges/bitbadgeschain/x/tokenization/keeper" -) - -var ( - _ module.AppModuleBasic = (*AppModule)(nil) - _ module.AppModuleSimulation = (*AppModule)(nil) - _ module.HasGenesis = (*AppModule)(nil) - _ module.HasInvariants = (*AppModule)(nil) - _ module.HasConsensusVersion = (*AppModule)(nil) - - _ appmodule.AppModule = (*AppModule)(nil) - _ appmodule.HasBeginBlocker = (*AppModule)(nil) - _ appmodule.HasEndBlocker = (*AppModule)(nil) - _ porttypes.IBCModule = (*IBCModule)(nil) -) - -// ---------------------------------------------------------------------------- -// AppModuleBasic -// ---------------------------------------------------------------------------- - -// AppModuleBasic implements the AppModuleBasic interface that defines the -// independent methods a Cosmos SDK module needs to implement. -type AppModuleBasic struct { - cdc codec.BinaryCodec -} - -func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic { - return AppModuleBasic{cdc: cdc} -} - -// Name returns the name of the module as a string. -func (AppModuleBasic) Name() string { - return types.ModuleName -} - -// RegisterLegacyAminoCodec registers the amino codec for the module, which is used -// to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore. -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {} - -// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message. -func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { - types.RegisterInterfaces(reg) -} - -// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage. -// The default GenesisState need to be defined by the module developer and is primarily used for testing. -func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { - return cdc.MustMarshalJSON(types.DefaultGenesis()) -} - -// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form. -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { - var genState types.GenesisState - if err := cdc.UnmarshalJSON(bz, &genState); err != nil { - return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) - } - return genState.Validate() -} - -// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. -func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { - if err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)); err != nil { - panic(err) - } -} - -// GetTxCmd returns the root Tx command for the module. -// These commands enrich the AutoCLI tx commands. -func (a AppModuleBasic) GetTxCmd() *cobra.Command { - return cli.GetTxCmd() -} - -func (a AppModuleBasic) GetQueryCmd() *cobra.Command { - return cli.GetQueryCmd() -} - -// ---------------------------------------------------------------------------- -// AppModule -// ---------------------------------------------------------------------------- - -// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement -type AppModule struct { - AppModuleBasic - - keeper keeper.Keeper - accountKeeper types.AccountKeeper - bankKeeper types.BankKeeper -} - -func NewAppModule( - cdc codec.Codec, - keeper keeper.Keeper, - accountKeeper types.AccountKeeper, - bankKeeper types.BankKeeper, -) AppModule { - return AppModule{ - AppModuleBasic: NewAppModuleBasic(cdc), - keeper: keeper, - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, - } -} - -// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries -func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) - types.RegisterQueryServer(cfg.QueryServer(), am.keeper) -} - -// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) -func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} - -// InitGenesis performs the module's genesis initialization. It returns no validator updates. -func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) { - var genState types.GenesisState - // Initialize global index to index in genesis state - cdc.MustUnmarshalJSON(gs, &genState) - - InitGenesis(ctx, am.keeper, genState) -} - -// ExportGenesis returns the module's exported genesis state as raw JSON bytes. -func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { - genState := ExportGenesis(ctx, am.keeper) - return cdc.MustMarshalJSON(genState) -} - -// ConsensusVersion is a sequence number for state-breaking change of the module. -// It should be incremented on each consensus-breaking change introduced by the module. -// To avoid wrong/empty versions, the initial version should be set to 1. -func (AppModule) ConsensusVersion() uint64 { return 1 } - -// BeginBlock contains the logic that is automatically triggered at the beginning of each block. -// The begin block implementation is optional. -func (am AppModule) BeginBlock(_ context.Context) error { - return nil -} - -// EndBlock contains the logic that is automatically triggered at the end of each block. -// The end block implementation is optional. -func (am AppModule) EndBlock(_ context.Context) error { - return nil -} - -// IsOnePerModuleType implements the depinject.OnePerModuleType interface. -func (am AppModule) IsOnePerModuleType() {} - -// IsAppModule implements the appmodule.AppModule interface. -func (am AppModule) IsAppModule() {} - -// ---------------------------------------------------------------------------- -// App Wiring Setup -// ---------------------------------------------------------------------------- - -func init() { - appmodule.Register( - &modulev1.Module{}, - appmodule.Provide(ProvideModule), - ) -} - -type ModuleInputs struct { - depinject.In - - StoreService store.KVStoreService - Cdc codec.Codec - Config *modulev1.Module - Logger log.Logger - - AccountKeeper types.AccountKeeper - BankKeeper types.BankKeeper - TokenizationKeeper *tokenizationkeeper.Keeper - - IBCKeeperFn func() *ibckeeper.Keeper `optional:"true"` -} - -type ModuleOutputs struct { - depinject.Out - - MapsKeeper keeper.Keeper - Module appmodule.AppModule -} - -func ProvideModule(in ModuleInputs) ModuleOutputs { - // default to governance authority if not provided - authority := authtypes.NewModuleAddress(govtypes.ModuleName) - if in.Config.Authority != "" { - authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority) - } - k := keeper.NewKeeper( - in.Cdc, - in.StoreService, - in.Logger, - authority.String(), - in.IBCKeeperFn, - in.TokenizationKeeper, - ) - m := NewAppModule( - in.Cdc, - k, - in.AccountKeeper, - in.BankKeeper, - ) - - return ModuleOutputs{MapsKeeper: k, Module: m} -} diff --git a/x/maps/module/module_ibc.go b/x/maps/module/module_ibc.go deleted file mode 100644 index 1c16b5b3..00000000 --- a/x/maps/module/module_ibc.go +++ /dev/null @@ -1,235 +0,0 @@ -package maps - -import ( - "fmt" - - "github.com/bitbadges/bitbadgeschain/x/maps/keeper" - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - errorsmod "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - channeltypes "github.com/cosmos/ibc-go/v10/modules/core/04-channel/types" - porttypes "github.com/cosmos/ibc-go/v10/modules/core/05-port/types" - ibcexported "github.com/cosmos/ibc-go/v10/modules/core/exported" -) - -// IBCModule implements the ICS26 interface for interchain accounts host chains -type IBCModule struct { - keeper keeper.Keeper -} - -// NewIBCModule creates a new IBCModule given the associated keeper -func NewIBCModule(k keeper.Keeper) IBCModule { - return IBCModule{ - keeper: k, - } -} - -// OnChanOpenInit implements the IBCModule interface -// IBC v10: capabilities removed -func (im IBCModule) OnChanOpenInit( - ctx sdk.Context, - order channeltypes.Order, - connectionHops []string, - portID string, - channelID string, - counterparty channeltypes.Counterparty, - version string, -) (string, error) { - - // Require portID is the portID module is bound to - boundPort := im.keeper.GetPort(ctx) - if boundPort != portID { - return "", errorsmod.Wrapf(porttypes.ErrInvalidPort, "invalid port: %s, expected %s", portID, boundPort) - } - - if version != types.Version { - return "", errorsmod.Wrapf(types.ErrInvalidVersion, "got %s, expected %s", version, types.Version) - } - - // IBC v10: capabilities removed - no need to claim capability - - return version, nil -} - -// OnChanOpenTry implements the IBCModule interface -// IBC v10: capabilities removed -func (im IBCModule) OnChanOpenTry( - ctx sdk.Context, - order channeltypes.Order, - connectionHops []string, - portID, - channelID string, - counterparty channeltypes.Counterparty, - counterpartyVersion string, -) (string, error) { - - // Require portID is the portID module is bound to - boundPort := im.keeper.GetPort(ctx) - if boundPort != portID { - return "", errorsmod.Wrapf(porttypes.ErrInvalidPort, "invalid port: %s, expected %s", portID, boundPort) - } - - if counterpartyVersion != types.Version { - return "", errorsmod.Wrapf(types.ErrInvalidVersion, "invalid counterparty version: got: %s, expected %s", counterpartyVersion, types.Version) - } - - // IBC v10: capabilities removed - no need to claim or authenticate capability - - return types.Version, nil -} - -// OnChanOpenAck implements the IBCModule interface -func (im IBCModule) OnChanOpenAck( - ctx sdk.Context, - portID, - channelID string, - _, - counterpartyVersion string, -) error { - if counterpartyVersion != types.Version { - return errorsmod.Wrapf(types.ErrInvalidVersion, "invalid counterparty version: %s, expected %s", counterpartyVersion, types.Version) - } - return nil -} - -// OnChanOpenConfirm implements the IBCModule interface -func (im IBCModule) OnChanOpenConfirm( - ctx sdk.Context, - portID, - channelID string, -) error { - return nil -} - -// OnChanCloseInit implements the IBCModule interface -func (im IBCModule) OnChanCloseInit( - ctx sdk.Context, - portID, - channelID string, -) error { - // Disallow user-initiated channel closing for channels - return errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "user cannot close channel") -} - -// OnChanCloseConfirm implements the IBCModule interface -func (im IBCModule) OnChanCloseConfirm( - ctx sdk.Context, - portID, - channelID string, -) error { - return nil -} - -// OnRecvPacket implements the IBCModule interface -// IBC v10: channelID parameter added -func (im IBCModule) OnRecvPacket( - ctx sdk.Context, - channelID string, - modulePacket channeltypes.Packet, - relayer sdk.AccAddress, -) ibcexported.Acknowledgement { - var ack channeltypes.Acknowledgement - - // this line is used by starport scaffolding # oracle/packet/module/recv - - var modulePacketData types.MapsPacketData - if err := modulePacketData.Unmarshal(modulePacket.GetData()); err != nil { - return channeltypes.NewErrorAcknowledgement(errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet data: %s", err.Error())) - } - - // Dispatch packet - switch packet := modulePacketData.Packet.(type) { - // this line is used by starport scaffolding # ibc/packet/module/recv - default: - err := fmt.Errorf("unrecognized %s packet type: %T", types.ModuleName, packet) - return channeltypes.NewErrorAcknowledgement(err) - } - - // NOTE: acknowledgement will be written synchronously during IBC handler execution. - return ack -} - -// OnAcknowledgementPacket implements the IBCModule interface -// IBC v10: channelID parameter added -func (im IBCModule) OnAcknowledgementPacket( - ctx sdk.Context, - channelID string, - modulePacket channeltypes.Packet, - acknowledgement []byte, - relayer sdk.AccAddress, -) error { - var ack channeltypes.Acknowledgement - if err := types.ModuleCdc.UnmarshalJSON(acknowledgement, &ack); err != nil { - return errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet acknowledgement: %v", err) - } - - // this line is used by starport scaffolding # oracle/packet/module/ack - - var modulePacketData types.MapsPacketData - if err := modulePacketData.Unmarshal(modulePacket.GetData()); err != nil { - return errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet data: %s", err.Error()) - } - - var eventType string - - // Dispatch packet - switch packet := modulePacketData.Packet.(type) { - // this line is used by starport scaffolding # ibc/packet/module/ack - default: - errMsg := fmt.Sprintf("unrecognized %s packet type: %T", types.ModuleName, packet) - return errorsmod.Wrap(sdkerrors.ErrUnknownRequest, errMsg) - } - - ctx.EventManager().EmitEvent( - sdk.NewEvent( - eventType, - sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName), - sdk.NewAttribute(types.AttributeKeyAck, fmt.Sprintf("%v", ack)), - ), - ) - - switch resp := ack.Response.(type) { - case *channeltypes.Acknowledgement_Result: - ctx.EventManager().EmitEvent( - sdk.NewEvent( - eventType, - sdk.NewAttribute(types.AttributeKeyAckSuccess, string(resp.Result)), - ), - ) - case *channeltypes.Acknowledgement_Error: - ctx.EventManager().EmitEvent( - sdk.NewEvent( - eventType, - sdk.NewAttribute(types.AttributeKeyAckError, resp.Error), - ), - ) - } - - return nil -} - -// OnTimeoutPacket implements the IBCModule interface -// IBC v10: channelID parameter added -func (im IBCModule) OnTimeoutPacket( - ctx sdk.Context, - channelID string, - modulePacket channeltypes.Packet, - relayer sdk.AccAddress, -) error { - var modulePacketData types.MapsPacketData - if err := modulePacketData.Unmarshal(modulePacket.GetData()); err != nil { - return errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet data: %s", err.Error()) - } - - // Dispatch packet - switch packet := modulePacketData.Packet.(type) { - // this line is used by starport scaffolding # ibc/packet/module/timeout - default: - errMsg := fmt.Sprintf("unrecognized %s packet type: %T", types.ModuleName, packet) - return errorsmod.Wrap(sdkerrors.ErrUnknownRequest, errMsg) - } - - return nil -} diff --git a/x/maps/module/simulation.go b/x/maps/module/simulation.go deleted file mode 100644 index dca1b18f..00000000 --- a/x/maps/module/simulation.go +++ /dev/null @@ -1,61 +0,0 @@ -package maps - -import ( - "math/rand" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" - - "github.com/bitbadges/bitbadgeschain/testutil/sample" - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - mapssimulation "github.com/bitbadges/bitbadgeschain/x/maps/simulation" -) - -// avoid unused import issue -var ( - _ = mapssimulation.FindAccount - _ = rand.Rand{} - _ = sample.AccAddress - _ = sdk.AccAddress{} - _ = simulation.MsgEntryKind -) - -const ( -// this line is used by starport scaffolding # simapp/module/const -) - -// GenerateGenesisState creates a randomized GenState of the module. -func (AppModule) GenerateGenesisState(simState *module.SimulationState) { - accs := make([]string, len(simState.Accounts)) - for i, acc := range simState.Accounts { - accs[i] = acc.Address.String() - } - mapsGenesis := types.GenesisState{ - Params: types.DefaultParams(), - PortId: types.PortID, - // this line is used by starport scaffolding # simapp/module/genesisState - } - simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&mapsGenesis) -} - -// RegisterStoreDecoder registers a decoder. -func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {} - -// WeightedOperations returns the all the gov module operations with their respective weights. -func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { - operations := make([]simtypes.WeightedOperation, 0) - - // this line is used by starport scaffolding # simapp/module/operation - - return operations -} - -// ProposalMsgs returns msgs used for governance proposals for simulations. -func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { - return []simtypes.WeightedProposalMsg{ - // this line is used by starport scaffolding # simapp/module/OpMsg - } -} diff --git a/x/maps/simulation/helpers.go b/x/maps/simulation/helpers.go deleted file mode 100644 index 92c437c0..00000000 --- a/x/maps/simulation/helpers.go +++ /dev/null @@ -1,15 +0,0 @@ -package simulation - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" -) - -// FindAccount find a specific address from an account list -func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) { - creator, err := sdk.AccAddressFromBech32(address) - if err != nil { - panic(err) - } - return simtypes.FindAccount(accs, creator) -} diff --git a/x/maps/types/balances.pb.go b/x/maps/types/balances.pb.go deleted file mode 100644 index 3a20314c..00000000 --- a/x/maps/types/balances.pb.go +++ /dev/null @@ -1,369 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/balances.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// The UintRange is a range of IDs from some start to some end (inclusive). -// -// uintRanges are one of the core types used in the BitBadgesChain module. -// They are used for everything from token IDs to time ranges to min/max balance amounts. -// -// See the BitBadges documentation for more information. -type UintRange struct { - // The starting value of the range (inclusive). - Start Uint `protobuf:"bytes,1,opt,name=start,proto3,customtype=Uint" json:"start"` - // The ending value of the range (inclusive). - End Uint `protobuf:"bytes,2,opt,name=end,proto3,customtype=Uint" json:"end"` -} - -func (m *UintRange) Reset() { *m = UintRange{} } -func (m *UintRange) String() string { return proto.CompactTextString(m) } -func (*UintRange) ProtoMessage() {} -func (*UintRange) Descriptor() ([]byte, []int) { - return fileDescriptor_f712f54dd13b7176, []int{0} -} -func (m *UintRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UintRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UintRange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UintRange) XXX_Merge(src proto.Message) { - xxx_messageInfo_UintRange.Merge(m, src) -} -func (m *UintRange) XXX_Size() int { - return m.Size() -} -func (m *UintRange) XXX_DiscardUnknown() { - xxx_messageInfo_UintRange.DiscardUnknown(m) -} - -var xxx_messageInfo_UintRange proto.InternalMessageInfo - -func init() { - proto.RegisterType((*UintRange)(nil), "maps.UintRange") -} - -func init() { proto.RegisterFile("maps/balances.proto", fileDescriptor_f712f54dd13b7176) } - -var fileDescriptor_f712f54dd13b7176 = []byte{ - // 200 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xce, 0x4d, 0x2c, 0x28, - 0xd6, 0x4f, 0x4a, 0xcc, 0x49, 0xcc, 0x4b, 0x4e, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x62, 0x01, 0x09, 0x4a, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x05, 0xf4, 0x41, 0x2c, 0x88, 0x9c, - 0x94, 0x20, 0x58, 0x43, 0x41, 0x62, 0x51, 0x62, 0x2e, 0x54, 0xb9, 0x92, 0x3f, 0x17, 0x67, 0x68, - 0x66, 0x5e, 0x49, 0x50, 0x62, 0x5e, 0x7a, 0xaa, 0x90, 0x12, 0x17, 0x6b, 0x71, 0x49, 0x62, 0x51, - 0x89, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xa7, 0x13, 0xcf, 0x89, 0x7b, 0xf2, 0x0c, 0xb7, 0xee, 0xc9, - 0xb3, 0x80, 0x55, 0x40, 0xa4, 0x84, 0xe4, 0xb8, 0x98, 0x53, 0xf3, 0x52, 0x24, 0x98, 0xb0, 0xa8, - 0x00, 0x49, 0x38, 0x79, 0x9d, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, - 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x41, - 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x52, 0x66, 0x49, 0x52, 0x62, - 0x4a, 0x7a, 0x6a, 0x31, 0x82, 0x95, 0x9c, 0x91, 0x98, 0x99, 0xa7, 0x5f, 0xa1, 0x0f, 0x76, 0x63, - 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0x8d, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x9f, 0x38, 0x7a, 0xb8, 0xe9, 0x00, 0x00, 0x00, -} - -func (m *UintRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UintRange) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UintRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.End.Size() - i -= size - if _, err := m.End.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintBalances(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size := m.Start.Size() - i -= size - if _, err := m.Start.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintBalances(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintBalances(dAtA []byte, offset int, v uint64) int { - offset -= sovBalances(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *UintRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Start.Size() - n += 1 + l + sovBalances(uint64(l)) - l = m.End.Size() - n += 1 + l + sovBalances(uint64(l)) - return n -} - -func sovBalances(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBalances(x uint64) (n int) { - return sovBalances(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *UintRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBalances - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UintRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UintRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBalances - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBalances - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBalances - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Start.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBalances - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBalances - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBalances - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.End.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBalances(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBalances - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBalances(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBalances - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBalances - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBalances - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBalances - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBalances - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBalances - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthBalances = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBalances = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBalances = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/maps/types/casts.go b/x/maps/types/casts.go deleted file mode 100644 index 5949d937..00000000 --- a/x/maps/types/casts.go +++ /dev/null @@ -1,56 +0,0 @@ -package types - -import ( - tokentypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func CastUintRanges(ranges []*UintRange) []*tokentypes.UintRange { - castedRanges := make([]*tokentypes.UintRange, len(ranges)) - for i, rangeVal := range ranges { - castedRanges[i] = &tokentypes.UintRange{ - Start: rangeVal.Start, - End: rangeVal.End, - } - } - return castedRanges -} - -func GetCurrentManagerForMap(ctx sdk.Context, currMap *Map, collection *tokentypes.TokenCollection) string { - if !currMap.InheritManagerFrom.IsNil() && !currMap.InheritManagerFrom.IsZero() { - if collection == nil { - panic("Token collection must be provided if map is inheriting manager from a collection") - } - - return tokentypes.GetCurrentManager(ctx, collection) - } else { - return currMap.Manager - } -} - -func CastActionPermission(perm *ActionPermission) *tokentypes.ActionPermission { - return &tokentypes.ActionPermission{ - PermanentlyPermittedTimes: CastUintRanges(perm.PermanentlyPermittedTimes), - PermanentlyForbiddenTimes: CastUintRanges(perm.PermanentlyForbiddenTimes), - } -} - -func CastActionPermissions(perms []*ActionPermission) []*tokentypes.ActionPermission { - casted := make([]*tokentypes.ActionPermission, len(perms)) - for i, perm := range perms { - casted[i] = CastActionPermission(perm) - } - return casted -} - -// Helper functions to convert maps metadata to badges CollectionMetadata -func CastMapMetadataToCollectionMetadata(metadata *Metadata) *tokentypes.CollectionMetadata { - if metadata == nil { - return nil - } - return &tokentypes.CollectionMetadata{ - Uri: metadata.Uri, - CustomData: metadata.CustomData, - } -} diff --git a/x/maps/types/codec.go b/x/maps/types/codec.go deleted file mode 100644 index 483fc916..00000000 --- a/x/maps/types/codec.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -import ( - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" -) - -func RegisterCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgCreateMap{}, "maps/CreateMap", nil) - cdc.RegisterConcrete(&MsgUpdateMap{}, "maps/UpdateMap", nil) - cdc.RegisterConcrete(&MsgDeleteMap{}, "maps/DeleteMap", nil) - cdc.RegisterConcrete(&MsgSetValue{}, "maps/SetValue", nil) - // this line is used by starport scaffolding # 2 -} - -func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgCreateMap{}, - ) - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgUpdateMap{}, - ) - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgDeleteMap{}, - ) - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgSetValue{}, - ) - - // this line is used by starport scaffolding # 3 - - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) - - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) -} - -// NOTE: This is required for the GetSignBytes function -func init() { - RegisterCodec(Amino) - Amino.Seal() -} - -var ( - Amino = codec.NewLegacyAmino() - ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) - // AminoCdc is a amino codec created to support amino JSON compatible msgs. - AminoCdc = codec.NewAminoCodec(Amino) -) diff --git a/x/maps/types/errors.go b/x/maps/types/errors.go deleted file mode 100644 index 55eac160..00000000 --- a/x/maps/types/errors.go +++ /dev/null @@ -1,19 +0,0 @@ -package types - -// DONTCOVER - -import ( - sdkerrors "cosmossdk.io/errors" -) - -// x/maps module sentinel errors -var ( - ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") - ErrInvalidPacketTimeout = sdkerrors.Register(ModuleName, 1500, "invalid packet timeout") - ErrInvalidVersion = sdkerrors.Register(ModuleName, 1501, "invalid version") - ErrPermissionsIsNil = sdkerrors.Register(ModuleName, 1502, "permissions is nil") - ErrInvalidAddress = sdkerrors.Register(ModuleName, 1503, "invalid address") - ErrInvalidRequest = sdkerrors.Register(ModuleName, 1504, "invalid request") - ErrUnknownRequest = sdkerrors.Register(ModuleName, 1505, "unknown request") - ErrInvalidSigner = sdkerrors.Register(ModuleName, 1506, "invalid signer") -) diff --git a/x/maps/types/events_ibc.go b/x/maps/types/events_ibc.go deleted file mode 100644 index 07c66a43..00000000 --- a/x/maps/types/events_ibc.go +++ /dev/null @@ -1,11 +0,0 @@ -package types - -// IBC events -const ( - EventTypeTimeout = "timeout" - // this line is used by starport scaffolding # ibc/packet/event - - AttributeKeyAckSuccess = "success" - AttributeKeyAck = "acknowledgement" - AttributeKeyAckError = "error" -) diff --git a/x/maps/types/expected_ibc_keeper.go b/x/maps/types/expected_ibc_keeper.go deleted file mode 100644 index 34873e70..00000000 --- a/x/maps/types/expected_ibc_keeper.go +++ /dev/null @@ -1,37 +0,0 @@ -package types - -import ( - "context" - - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - clienttypes "github.com/cosmos/ibc-go/v10/modules/core/02-client/types" - channeltypes "github.com/cosmos/ibc-go/v10/modules/core/04-channel/types" -) - -// ChannelKeeper defines the expected IBC channel keeper. -type ChannelKeeper interface { - GetChannel(ctx context.Context, portID, channelID string) (channeltypes.Channel, bool) - GetNextSequenceSend(ctx context.Context, portID, channelID string) (uint64, bool) - SendPacket( - ctx context.Context, - channelCap *capabilitytypes.Capability, - sourcePort string, - sourceChannel string, - timeoutHeight clienttypes.Height, - timeoutTimestamp uint64, - data []byte, - ) (uint64, error) - ChanCloseInit(ctx context.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error -} - -// PortKeeper defines the expected IBC port keeper. -type PortKeeper interface { - BindPort(ctx context.Context, portID string) *capabilitytypes.Capability -} - -// ScopedKeeper defines the expected IBC scoped keeper. -type ScopedKeeper interface { - GetCapability(ctx context.Context, name string) (*capabilitytypes.Capability, bool) - AuthenticateCapability(ctx context.Context, cap *capabilitytypes.Capability, name string) bool - ClaimCapability(ctx context.Context, cap *capabilitytypes.Capability, name string) error -} diff --git a/x/maps/types/expected_keepers.go b/x/maps/types/expected_keepers.go deleted file mode 100644 index d90c3ee8..00000000 --- a/x/maps/types/expected_keepers.go +++ /dev/null @@ -1,31 +0,0 @@ -package types - -import ( - "context" - - sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// AccountKeeper defines the expected interface for the Account module. -type AccountKeeper interface { - GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation - // Methods imported from account should be defined here -} - -// BankKeeper defines the expected interface for the Bank module. -type BankKeeper interface { - SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins - // Methods imported from bank should be defined here -} - -// ParamSubspace defines the expected Subspace interface for parameters. -type ParamSubspace interface { - Get(context.Context, []byte, interface{}) - Set(context.Context, []byte, interface{}) -} - -type TokenizationKeeper interface { - // Methods imported from badges should be defined here - GetNextCollectionId(ctx sdk.Context) sdkmath.Uint -} diff --git a/x/maps/types/genesis.go b/x/maps/types/genesis.go deleted file mode 100644 index e8ec088a..00000000 --- a/x/maps/types/genesis.go +++ /dev/null @@ -1,29 +0,0 @@ -package types - -import ( - host "github.com/cosmos/ibc-go/v10/modules/core/24-host" - // this line is used by starport scaffolding # genesis/types/import -) - -// DefaultIndex is the default global index -const DefaultIndex uint64 = 1 - -// DefaultGenesis returns the default genesis state -func DefaultGenesis() *GenesisState { - return &GenesisState{ - PortId: PortID, - // this line is used by starport scaffolding # genesis/types/default - Params: DefaultParams(), - } -} - -// Validate performs basic genesis state validation returning an error upon any -// failure. -func (gs GenesisState) Validate() error { - if err := host.PortIdentifierValidator(gs.PortId); err != nil { - return err - } - // this line is used by starport scaffolding # genesis/types/validate - - return gs.Params.Validate() -} diff --git a/x/maps/types/genesis.pb.go b/x/maps/types/genesis.pb.go deleted file mode 100644 index 92625744..00000000 --- a/x/maps/types/genesis.pb.go +++ /dev/null @@ -1,613 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// GenesisState defines the maps module's genesis state. -type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - Maps []*Map `protobuf:"bytes,3,rep,name=maps,proto3" json:"maps,omitempty"` - FullKeys []string `protobuf:"bytes,4,rep,name=full_keys,json=fullKeys,proto3" json:"full_keys,omitempty"` - Values []*ValueStore `protobuf:"bytes,5,rep,name=values,proto3" json:"values,omitempty"` - DuplicatesFullKeys []string `protobuf:"bytes,6,rep,name=duplicates_full_keys,json=duplicatesFullKeys,proto3" json:"duplicates_full_keys,omitempty"` -} - -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_a965bd191a7e837c, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetPortId() string { - if m != nil { - return m.PortId - } - return "" -} - -func (m *GenesisState) GetMaps() []*Map { - if m != nil { - return m.Maps - } - return nil -} - -func (m *GenesisState) GetFullKeys() []string { - if m != nil { - return m.FullKeys - } - return nil -} - -func (m *GenesisState) GetValues() []*ValueStore { - if m != nil { - return m.Values - } - return nil -} - -func (m *GenesisState) GetDuplicatesFullKeys() []string { - if m != nil { - return m.DuplicatesFullKeys - } - return nil -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "maps.GenesisState") -} - -func init() { proto.RegisterFile("maps/genesis.proto", fileDescriptor_a965bd191a7e837c) } - -var fileDescriptor_a965bd191a7e837c = []byte{ - // 310 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x90, 0x4d, 0x4b, 0xc3, 0x30, - 0x18, 0xc7, 0x1b, 0x37, 0xab, 0xcd, 0x26, 0x68, 0x18, 0x58, 0x26, 0xc6, 0xe2, 0xa9, 0x78, 0x68, - 0xc7, 0xfc, 0x06, 0x3b, 0x28, 0x2a, 0x82, 0x74, 0xe0, 0xc1, 0xcb, 0x48, 0xd7, 0xd8, 0x05, 0xbb, - 0x25, 0x34, 0xa9, 0x6c, 0xdf, 0xc2, 0x8f, 0xb5, 0xe3, 0x8e, 0x9e, 0x44, 0xd6, 0xa3, 0x5f, 0x42, - 0x92, 0x14, 0x7a, 0x7b, 0x9e, 0xdf, 0xff, 0x85, 0x87, 0x07, 0xa2, 0x25, 0x11, 0x32, 0xce, 0xe9, - 0x8a, 0x4a, 0x26, 0x23, 0x51, 0x72, 0xc5, 0x51, 0x57, 0xb3, 0xe1, 0x20, 0xe7, 0x39, 0x37, 0x20, - 0xd6, 0x93, 0xd5, 0x86, 0x67, 0xc6, 0x2f, 0x48, 0x49, 0x96, 0x8d, 0x7d, 0x78, 0x62, 0x90, 0x5a, - 0xdb, 0xf5, 0xfa, 0x0f, 0xc0, 0xfe, 0xbd, 0xed, 0x9b, 0x2a, 0xa2, 0x28, 0xba, 0x81, 0xae, 0xf5, - 0xfb, 0x20, 0x00, 0x61, 0x6f, 0xdc, 0x8f, 0x74, 0x20, 0x7a, 0x31, 0x6c, 0xd2, 0xdd, 0xfe, 0x5c, - 0x39, 0x49, 0xe3, 0x40, 0xe7, 0xf0, 0x48, 0xf0, 0x52, 0xcd, 0x58, 0xe6, 0x1f, 0x04, 0x20, 0xf4, - 0x12, 0x57, 0xaf, 0x0f, 0x19, 0xba, 0x84, 0xe6, 0x2a, 0xbf, 0x13, 0x74, 0xc2, 0xde, 0xd8, 0xb3, - 0x15, 0xcf, 0x44, 0x24, 0x06, 0xa3, 0x0b, 0xe8, 0xbd, 0x57, 0x45, 0x31, 0xfb, 0xa0, 0x1b, 0xe9, - 0x77, 0x83, 0x4e, 0xe8, 0x25, 0xc7, 0x1a, 0x3c, 0xd1, 0x8d, 0x44, 0x21, 0x74, 0x3f, 0x49, 0x51, - 0x51, 0xe9, 0x1f, 0x9a, 0xf4, 0xa9, 0x4d, 0xbf, 0x6a, 0x36, 0x55, 0xbc, 0xa4, 0x49, 0xa3, 0xa3, - 0x11, 0x1c, 0x64, 0x95, 0x28, 0xd8, 0x9c, 0x28, 0x2a, 0x67, 0x6d, 0xa3, 0x6b, 0x1a, 0x51, 0xab, - 0xdd, 0x35, 0xdd, 0x93, 0xc7, 0xed, 0x1e, 0x83, 0xdd, 0x1e, 0x83, 0xdf, 0x3d, 0x06, 0x5f, 0x35, - 0x76, 0x76, 0x35, 0x76, 0xbe, 0x6b, 0xec, 0xbc, 0x8d, 0x72, 0xa6, 0x16, 0x55, 0x1a, 0xcd, 0xf9, - 0x32, 0x4e, 0x99, 0x4a, 0x49, 0x96, 0x53, 0xd9, 0x4e, 0xf3, 0x05, 0x61, 0xab, 0x78, 0x1d, 0xdb, - 0xe7, 0x6d, 0x04, 0x95, 0xa9, 0x6b, 0x1e, 0x78, 0xfb, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x2c, - 0xb8, 0x10, 0x94, 0x01, 0x00, 0x00, -} - -func (m *GenesisState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DuplicatesFullKeys) > 0 { - for iNdEx := len(m.DuplicatesFullKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DuplicatesFullKeys[iNdEx]) - copy(dAtA[i:], m.DuplicatesFullKeys[iNdEx]) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.DuplicatesFullKeys[iNdEx]))) - i-- - dAtA[i] = 0x32 - } - } - if len(m.Values) > 0 { - for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Values[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if len(m.FullKeys) > 0 { - for iNdEx := len(m.FullKeys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.FullKeys[iNdEx]) - copy(dAtA[i:], m.FullKeys[iNdEx]) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.FullKeys[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Maps) > 0 { - for iNdEx := len(m.Maps) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Maps[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.PortId) > 0 { - i -= len(m.PortId) - copy(dAtA[i:], m.PortId) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) - i-- - dAtA[i] = 0x12 - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - l = len(m.PortId) - if l > 0 { - n += 1 + l + sovGenesis(uint64(l)) - } - if len(m.Maps) > 0 { - for _, e := range m.Maps { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if len(m.FullKeys) > 0 { - for _, s := range m.FullKeys { - l = len(s) - n += 1 + l + sovGenesis(uint64(l)) - } - } - if len(m.Values) > 0 { - for _, e := range m.Values { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if len(m.DuplicatesFullKeys) > 0 { - for _, s := range m.DuplicatesFullKeys { - l = len(s) - n += 1 + l + sovGenesis(uint64(l)) - } - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PortId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Maps", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Maps = append(m.Maps, &Map{}) - if err := m.Maps[len(m.Maps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FullKeys", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FullKeys = append(m.FullKeys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Values = append(m.Values, &ValueStore{}) - if err := m.Values[len(m.Values)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DuplicatesFullKeys", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DuplicatesFullKeys = append(m.DuplicatesFullKeys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/maps/types/genesis_test.go b/x/maps/types/genesis_test.go deleted file mode 100644 index e35f4304..00000000 --- a/x/maps/types/genesis_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package types_test - -import ( - "testing" - - "github.com/bitbadges/bitbadgeschain/x/maps/types" - - "github.com/stretchr/testify/require" -) - -func TestGenesisState_Validate(t *testing.T) { - tests := []struct { - desc string - genState *types.GenesisState - valid bool - }{ - { - desc: "default is valid", - genState: types.DefaultGenesis(), - valid: true, - }, - { - desc: "valid genesis state", - genState: &types.GenesisState{ - PortId: types.PortID, - // this line is used by starport scaffolding # types/genesis/validField - }, - valid: true, - }, - // this line is used by starport scaffolding # types/genesis/testcase - } - for _, tc := range tests { - t.Run(tc.desc, func(t *testing.T) { - err := tc.genState.Validate() - if tc.valid { - require.NoError(t, err) - } else { - require.Error(t, err) - } - }) - } -} diff --git a/x/maps/types/keys.go b/x/maps/types/keys.go deleted file mode 100644 index a9033b92..00000000 --- a/x/maps/types/keys.go +++ /dev/null @@ -1,34 +0,0 @@ -package types - -const ( - // ModuleName defines the module name - ModuleName = "maps" - - // StoreKey defines the primary module store key - StoreKey = ModuleName - - // MemStoreKey defines the in-memory store key - MemStoreKey = "mem_maps" - - // RouterKey defines the module's message routing key - RouterKey = ModuleName - - // Version defines the current version the IBC module supports - Version = "maps-1" - - // PortID is the default port id that module binds to - PortID = "maps" -) - -var ( - ParamsKey = []byte("p_maps") -) - -var ( - // PortKey defines the key to store the port ID in store - PortKey = KeyPrefix("maps-port-") -) - -func KeyPrefix(p string) []byte { - return []byte(p) -} diff --git a/x/maps/types/message_create_map.go b/x/maps/types/message_create_map.go deleted file mode 100644 index a171ffbf..00000000 --- a/x/maps/types/message_create_map.go +++ /dev/null @@ -1,98 +0,0 @@ -package types - -import ( - tokenizationtypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" - - sdkerrors "cosmossdk.io/errors" - sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -const TypeMsgCreateMap = "create_map" - -var _ sdk.Msg = &MsgCreateMap{} - -func NewMsgCreateMap(creator string, mapId string, updateCriteria *MapUpdateCriteria, valueOptions *ValueOptions, defaultValue string, manager string, metadata *Metadata, permissions *MapPermissions, inheritManagerFrom sdkmath.Uint) *MsgCreateMap { - return &MsgCreateMap{ - Creator: creator, - MapId: mapId, - UpdateCriteria: updateCriteria, - ValueOptions: valueOptions, - DefaultValue: defaultValue, - Manager: manager, - Metadata: metadata, - Permissions: permissions, - InheritManagerFrom: inheritManagerFrom, - } -} - -func (msg *MsgCreateMap) Route() string { - return RouterKey -} - -func (msg *MsgCreateMap) Type() string { - return TypeMsgCreateMap -} - -func (msg *MsgCreateMap) GetSigners() []sdk.AccAddress { - creator, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - panic(err) - } - return []sdk.AccAddress{creator} -} - -func (msg *MsgCreateMap) GetSignBytes() []byte { - bz := Amino.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgCreateMap) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.MapId) == 0 { - return sdkerrors.Wrap(ErrInvalidRequest, "map ID cannot be empty") - } - - err = tokenizationtypes.ValidateManager(msg.Manager) - if err != nil { - return sdkerrors.Wrap(ErrInvalidRequest, "manager timeline cannot be invalid") - } - - err = tokenizationtypes.ValidateCollectionMetadata(CastMapMetadataToCollectionMetadata(msg.Metadata)) - if err != nil { - return sdkerrors.Wrap(ErrInvalidRequest, "metadata timeline cannot be invalid") - } - - //Validate update criteria - if msg.UpdateCriteria == nil { - return sdkerrors.Wrap(ErrInvalidRequest, "update criteria cannot be nil") - } - - numDefined := 0 - if msg.UpdateCriteria.ManagerOnly { - numDefined++ - } - if !msg.UpdateCriteria.CollectionId.IsNil() && !msg.UpdateCriteria.CollectionId.IsZero() { - numDefined++ - } - if msg.UpdateCriteria.CreatorOnly { - numDefined++ - } - if msg.UpdateCriteria.FirstComeFirstServe { - numDefined++ - } - - if numDefined != 1 { - return sdkerrors.Wrap(ErrInvalidRequest, "update criteria must have exactly one field defined") - } - - if ValidatePermissions(msg.Permissions, false) != nil { - return sdkerrors.Wrap(ErrInvalidRequest, "permissions are invalid") - } - - return nil -} diff --git a/x/maps/types/message_create_map_test.go b/x/maps/types/message_create_map_test.go deleted file mode 100644 index b73e7966..00000000 --- a/x/maps/types/message_create_map_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package types - -import ( - "testing" - - "github.com/stretchr/testify/require" -) - -func TestMsgCreateMap_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgCreateMap - err error - }{ - { - name: "invalid address", - msg: MsgCreateMap{ - Creator: "invalid_address", - }, - err: ErrInvalidAddress, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/maps/types/message_delete_map.go b/x/maps/types/message_delete_map.go deleted file mode 100644 index 911e8a58..00000000 --- a/x/maps/types/message_delete_map.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -const TypeMsgDeleteMap = "delete_map" - -var _ sdk.Msg = &MsgDeleteMap{} - -func NewMsgDeleteMap(creator string, mapId string) *MsgDeleteMap { - return &MsgDeleteMap{ - Creator: creator, - MapId: mapId, - } -} - -func (msg *MsgDeleteMap) Route() string { - return RouterKey -} - -func (msg *MsgDeleteMap) Type() string { - return TypeMsgDeleteMap -} - -func (msg *MsgDeleteMap) GetSigners() []sdk.AccAddress { - creator, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - panic(err) - } - return []sdk.AccAddress{creator} -} - -func (msg *MsgDeleteMap) GetSignBytes() []byte { - bz := Amino.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgDeleteMap) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.MapId) == 0 { - return sdkerrors.Wrap(ErrInvalidRequest, "map ID cannot be empty") - } - - return nil -} diff --git a/x/maps/types/message_set_value.go b/x/maps/types/message_set_value.go deleted file mode 100644 index b3c8de13..00000000 --- a/x/maps/types/message_set_value.go +++ /dev/null @@ -1,58 +0,0 @@ -package types - -import ( - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -const TypeMsgSetValue = "set_value" - -var _ sdk.Msg = &MsgSetValue{} - -func NewMsgSetValue(creator string, mapId string, key string, value string, options *SetOptions) *MsgSetValue { - return &MsgSetValue{ - Creator: creator, - MapId: mapId, - Key: key, - Value: value, - Options: options, - } -} - -func (msg *MsgSetValue) Route() string { - return RouterKey -} - -func (msg *MsgSetValue) Type() string { - return TypeMsgSetValue -} - -func (msg *MsgSetValue) GetSigners() []sdk.AccAddress { - creator, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - panic(err) - } - return []sdk.AccAddress{creator} -} - -func (msg *MsgSetValue) GetSignBytes() []byte { - bz := Amino.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgSetValue) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.MapId) == 0 { - return sdkerrors.Wrap(ErrInvalidRequest, "map ID cannot be empty") - } - - if len(msg.Key) == 0 { - return sdkerrors.Wrap(ErrInvalidRequest, "key cannot be empty") - } - - return nil -} diff --git a/x/maps/types/message_update_map.go b/x/maps/types/message_update_map.go deleted file mode 100644 index 4c5747e0..00000000 --- a/x/maps/types/message_update_map.go +++ /dev/null @@ -1,73 +0,0 @@ -package types - -import ( - tokenizationtypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -const TypeMsgUpdateMap = "update_map" - -var _ sdk.Msg = &MsgUpdateMap{} - -func NewMsgUpdateMap(creator string, mapId string, updateManager bool, manager string, updateMetadata bool, metadata *Metadata, updatePermissions bool, permissions *MapPermissions) *MsgUpdateMap { - return &MsgUpdateMap{ - Creator: creator, - MapId: mapId, - UpdateManager: updateManager, - Manager: manager, - UpdateMetadata: updateMetadata, - Metadata: metadata, - UpdatePermissions: updatePermissions, - Permissions: permissions, - } -} - -func (msg *MsgUpdateMap) Route() string { - return RouterKey -} - -func (msg *MsgUpdateMap) Type() string { - return TypeMsgUpdateMap -} - -func (msg *MsgUpdateMap) GetSigners() []sdk.AccAddress { - creator, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - panic(err) - } - return []sdk.AccAddress{creator} -} - -func (msg *MsgUpdateMap) GetSignBytes() []byte { - bz := Amino.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateMap) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.Creator) - if err != nil { - return sdkerrors.Wrapf(ErrInvalidAddress, "invalid creator address (%s)", err) - } - - if len(msg.MapId) == 0 { - return sdkerrors.Wrap(ErrInvalidRequest, "map ID cannot be empty") - } - - err = tokenizationtypes.ValidateManager(msg.Manager) - if err != nil { - return sdkerrors.Wrap(ErrInvalidRequest, "manager timeline cannot be invalid") - } - - err = tokenizationtypes.ValidateCollectionMetadata(CastMapMetadataToCollectionMetadata(msg.Metadata)) - if err != nil { - return sdkerrors.Wrap(ErrInvalidRequest, "metadata timeline cannot be invalid") - } - - if ValidatePermissions(msg.Permissions, false) != nil { - return sdkerrors.Wrap(ErrInvalidRequest, "permissions are invalid") - } - - return nil -} diff --git a/x/maps/types/metadata.pb.go b/x/maps/types/metadata.pb.go deleted file mode 100644 index fac3485e..00000000 --- a/x/maps/types/metadata.pb.go +++ /dev/null @@ -1,374 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/metadata.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/codec/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// This message defines the metadata for the map. -// The interpretation of this metadata should follow the map standard. -type Metadata struct { - // The URI (Uniform Resource Identifier) associated with the map metadata. - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - // Custom data or additional information related to the map metadata. - CustomData string `protobuf:"bytes,2,opt,name=customData,proto3" json:"customData,omitempty"` -} - -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_dbe4c4cf0959526c, []int{0} -} -func (m *Metadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Metadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metadata.Merge(m, src) -} -func (m *Metadata) XXX_Size() int { - return m.Size() -} -func (m *Metadata) XXX_DiscardUnknown() { - xxx_messageInfo_Metadata.DiscardUnknown(m) -} - -var xxx_messageInfo_Metadata proto.InternalMessageInfo - -func (m *Metadata) GetUri() string { - if m != nil { - return m.Uri - } - return "" -} - -func (m *Metadata) GetCustomData() string { - if m != nil { - return m.CustomData - } - return "" -} - -func init() { - proto.RegisterType((*Metadata)(nil), "maps.Metadata") -} - -func init() { proto.RegisterFile("maps/metadata.proto", fileDescriptor_dbe4c4cf0959526c) } - -var fileDescriptor_dbe4c4cf0959526c = []byte{ - // 208 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xce, 0x4d, 0x2c, 0x28, - 0xd6, 0xcf, 0x4d, 0x2d, 0x49, 0x4c, 0x49, 0x2c, 0x49, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x62, 0x01, 0x09, 0x4a, 0x49, 0xa6, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4, 0xea, 0x83, 0xc5, 0x92, 0x4a, - 0xd3, 0xf4, 0x13, 0xf3, 0x2a, 0x21, 0x0a, 0xa4, 0x20, 0xba, 0x92, 0x12, 0x73, 0x12, 0xf3, 0x92, - 0x53, 0x8b, 0xa1, 0x82, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0xa6, 0x3e, 0x88, 0x05, 0x11, 0x55, - 0xb2, 0xe1, 0xe2, 0xf0, 0x85, 0x9a, 0x2e, 0x24, 0xc0, 0xc5, 0x5c, 0x5a, 0x94, 0x29, 0xc1, 0xa8, - 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0x62, 0x0a, 0xc9, 0x71, 0x71, 0x25, 0x97, 0x16, 0x97, 0xe4, 0xe7, - 0xba, 0x24, 0x96, 0x24, 0x4a, 0x30, 0x81, 0x25, 0x90, 0x44, 0x9c, 0xbc, 0x4e, 0x3c, 0x92, 0x63, - 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, - 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x20, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, - 0x3f, 0x57, 0x3f, 0x29, 0xb3, 0x24, 0x29, 0x31, 0x25, 0x3d, 0xb5, 0x18, 0xc1, 0x4a, 0xce, 0x48, - 0xcc, 0xcc, 0xd3, 0xaf, 0xd0, 0x07, 0x3b, 0xb4, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, - 0x20, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xd4, 0x43, 0xae, 0xf3, 0x00, 0x00, 0x00, -} - -func (m *Metadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Metadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CustomData) > 0 { - i -= len(m.CustomData) - copy(dAtA[i:], m.CustomData) - i = encodeVarintMetadata(dAtA, i, uint64(len(m.CustomData))) - i-- - dAtA[i] = 0x12 - } - if len(m.Uri) > 0 { - i -= len(m.Uri) - copy(dAtA[i:], m.Uri) - i = encodeVarintMetadata(dAtA, i, uint64(len(m.Uri))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintMetadata(dAtA []byte, offset int, v uint64) int { - offset -= sovMetadata(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Metadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Uri) - if l > 0 { - n += 1 + l + sovMetadata(uint64(l)) - } - l = len(m.CustomData) - if l > 0 { - n += 1 + l + sovMetadata(uint64(l)) - } - return n -} - -func sovMetadata(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMetadata(x uint64) (n int) { - return sovMetadata(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Metadata) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetadata - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Metadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetadata - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMetadata - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetadata - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetadata - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMetadata - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMetadata - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CustomData = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMetadata(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMetadata - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMetadata(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMetadata - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMetadata - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMetadata - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthMetadata - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMetadata - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMetadata - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMetadata = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMetadata = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMetadata = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/maps/types/packet.pb.go b/x/maps/types/packet.pb.go deleted file mode 100644 index 306de3a5..00000000 --- a/x/maps/types/packet.pb.go +++ /dev/null @@ -1,499 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/packet.proto - -package types - -import ( - fmt "fmt" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type MapsPacketData struct { - // Types that are valid to be assigned to Packet: - // *MapsPacketData_NoData - Packet isMapsPacketData_Packet `protobuf_oneof:"packet"` -} - -func (m *MapsPacketData) Reset() { *m = MapsPacketData{} } -func (m *MapsPacketData) String() string { return proto.CompactTextString(m) } -func (*MapsPacketData) ProtoMessage() {} -func (*MapsPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_14d2398201f66e19, []int{0} -} -func (m *MapsPacketData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MapsPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MapsPacketData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MapsPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_MapsPacketData.Merge(m, src) -} -func (m *MapsPacketData) XXX_Size() int { - return m.Size() -} -func (m *MapsPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_MapsPacketData.DiscardUnknown(m) -} - -var xxx_messageInfo_MapsPacketData proto.InternalMessageInfo - -type isMapsPacketData_Packet interface { - isMapsPacketData_Packet() - MarshalTo([]byte) (int, error) - Size() int -} - -type MapsPacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"` -} - -func (*MapsPacketData_NoData) isMapsPacketData_Packet() {} - -func (m *MapsPacketData) GetPacket() isMapsPacketData_Packet { - if m != nil { - return m.Packet - } - return nil -} - -func (m *MapsPacketData) GetNoData() *NoData { - if x, ok := m.GetPacket().(*MapsPacketData_NoData); ok { - return x.NoData - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*MapsPacketData) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*MapsPacketData_NoData)(nil), - } -} - -type NoData struct { -} - -func (m *NoData) Reset() { *m = NoData{} } -func (m *NoData) String() string { return proto.CompactTextString(m) } -func (*NoData) ProtoMessage() {} -func (*NoData) Descriptor() ([]byte, []int) { - return fileDescriptor_14d2398201f66e19, []int{1} -} -func (m *NoData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NoData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *NoData) XXX_Merge(src proto.Message) { - xxx_messageInfo_NoData.Merge(m, src) -} -func (m *NoData) XXX_Size() int { - return m.Size() -} -func (m *NoData) XXX_DiscardUnknown() { - xxx_messageInfo_NoData.DiscardUnknown(m) -} - -var xxx_messageInfo_NoData proto.InternalMessageInfo - -func init() { - proto.RegisterType((*MapsPacketData)(nil), "maps.MapsPacketData") - proto.RegisterType((*NoData)(nil), "maps.NoData") -} - -func init() { proto.RegisterFile("maps/packet.proto", fileDescriptor_14d2398201f66e19) } - -var fileDescriptor_14d2398201f66e19 = []byte{ - // 173 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcc, 0x4d, 0x2c, 0x28, - 0xd6, 0x2f, 0x48, 0x4c, 0xce, 0x4e, 0x2d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, - 0x09, 0x29, 0x39, 0x71, 0xf1, 0xf9, 0x26, 0x16, 0x14, 0x07, 0x80, 0x65, 0x5c, 0x12, 0x4b, 0x12, - 0x85, 0xd4, 0xb8, 0xd8, 0xf2, 0xf2, 0x41, 0x2c, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x1e, - 0x3d, 0x90, 0x42, 0x3d, 0x3f, 0xb0, 0x98, 0x07, 0x43, 0x10, 0x54, 0xd6, 0x89, 0x83, 0x8b, 0x0d, - 0x62, 0x9e, 0x12, 0x07, 0x17, 0x1b, 0x44, 0xd6, 0xc9, 0xeb, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, - 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, - 0x8f, 0xe5, 0x18, 0xa2, 0x0c, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, - 0x93, 0x32, 0x4b, 0x92, 0x12, 0x53, 0xd2, 0x53, 0x8b, 0x11, 0xac, 0xe4, 0x8c, 0xc4, 0xcc, 0x3c, - 0xfd, 0x0a, 0x7d, 0xb0, 0x33, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xce, 0x34, 0x06, - 0x04, 0x00, 0x00, 0xff, 0xff, 0x6c, 0xb1, 0x39, 0x15, 0xbb, 0x00, 0x00, 0x00, -} - -func (m *MapsPacketData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MapsPacketData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MapsPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Packet != nil { - { - size := m.Packet.Size() - i -= size - if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *MapsPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MapsPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.NoData != nil { - { - size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPacket(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *NoData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintPacket(dAtA []byte, offset int, v uint64) int { - offset -= sovPacket(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MapsPacketData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Packet != nil { - n += m.Packet.Size() - } - return n -} - -func (m *MapsPacketData_NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NoData != nil { - l = m.NoData.Size() - n += 1 + l + sovPacket(uint64(l)) - } - return n -} -func (m *NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovPacket(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPacket(x uint64) (n int) { - return sovPacket(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MapsPacketData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MapsPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MapsPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPacket - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPacket - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &NoData{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Packet = &MapsPacketData_NoData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NoData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NoData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPacket(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPacket - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPacket - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPacket - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthPacket - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPacket - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPacket - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/maps/types/params.go b/x/maps/types/params.go deleted file mode 100644 index 4f3215e3..00000000 --- a/x/maps/types/params.go +++ /dev/null @@ -1,32 +0,0 @@ -package types - -import ( - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" -) - -var _ paramtypes.ParamSet = (*Params)(nil) - -// ParamKeyTable the param key table for launch module -func ParamKeyTable() paramtypes.KeyTable { - return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) -} - -// NewParams creates a new Params instance -func NewParams() Params { - return Params{} -} - -// DefaultParams returns a default set of parameters -func DefaultParams() Params { - return NewParams() -} - -// ParamSetPairs get the params.ParamSet -func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { - return paramtypes.ParamSetPairs{} -} - -// Validate validates the set of params -func (p Params) Validate() error { - return nil -} diff --git a/x/maps/types/params.pb.go b/x/maps/types/params.pb.go deleted file mode 100644 index f347a811..00000000 --- a/x/maps/types/params.pb.go +++ /dev/null @@ -1,288 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/params.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Params defines the parameters for the module. -type Params struct { -} - -func (m *Params) Reset() { *m = Params{} } -func (m *Params) String() string { return proto.CompactTextString(m) } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_873c1e419bf41ac5, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Params)(nil), "maps.Params") -} - -func init() { proto.RegisterFile("maps/params.proto", fileDescriptor_873c1e419bf41ac5) } - -var fileDescriptor_873c1e419bf41ac5 = []byte{ - // 165 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcc, 0x4d, 0x2c, 0x28, - 0xd6, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, - 0x09, 0x49, 0x09, 0x26, 0xe6, 0x66, 0xe6, 0xe5, 0xeb, 0x83, 0x49, 0x88, 0x84, 0x94, 0x48, 0x7a, - 0x7e, 0x7a, 0x3e, 0x98, 0xa9, 0x0f, 0x62, 0x41, 0x44, 0x95, 0x5c, 0xb8, 0xd8, 0x02, 0xc0, 0xda, - 0xad, 0xac, 0x5e, 0x2c, 0x90, 0x67, 0xec, 0x7a, 0xbe, 0x41, 0xcb, 0x30, 0x3d, 0xb3, 0x24, 0xa3, - 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x3f, 0x29, 0xb3, 0x24, 0x29, 0x31, 0x25, 0x3d, 0xb5, 0x18, - 0xc1, 0x4a, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0xaf, 0xd0, 0x07, 0x5b, 0x0d, 0xd1, 0xeb, 0xe4, 0x75, - 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, 0x06, 0x24, 0x18, 0x56, 0x52, 0x59, - 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0x98, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x81, 0xc3, 0x90, - 0x44, 0xdc, 0x00, 0x00, 0x00, -} - -func (this *Params) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*Params) - if !ok { - that2, ok := that.(Params) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - return true -} -func (m *Params) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/maps/types/permissions.pb.go b/x/maps/types/permissions.pb.go deleted file mode 100644 index bdb47856..00000000 --- a/x/maps/types/permissions.pb.go +++ /dev/null @@ -1,400 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/permissions.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/codec/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// ActionPermission defines the permissions for performing an action. -// -// This is simple and straightforward as the only thing we need to check is the permitted/forbidden times. -type ActionPermission struct { - // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. - PermanentlyPermittedTimes []*UintRange `protobuf:"bytes,1,rep,name=permanentlyPermittedTimes,proto3" json:"permanentlyPermittedTimes,omitempty"` - // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. - PermanentlyForbiddenTimes []*UintRange `protobuf:"bytes,2,rep,name=permanentlyForbiddenTimes,proto3" json:"permanentlyForbiddenTimes,omitempty"` -} - -func (m *ActionPermission) Reset() { *m = ActionPermission{} } -func (m *ActionPermission) String() string { return proto.CompactTextString(m) } -func (*ActionPermission) ProtoMessage() {} -func (*ActionPermission) Descriptor() ([]byte, []int) { - return fileDescriptor_3cc5e91f8d388fd8, []int{0} -} -func (m *ActionPermission) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActionPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActionPermission.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ActionPermission) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActionPermission.Merge(m, src) -} -func (m *ActionPermission) XXX_Size() int { - return m.Size() -} -func (m *ActionPermission) XXX_DiscardUnknown() { - xxx_messageInfo_ActionPermission.DiscardUnknown(m) -} - -var xxx_messageInfo_ActionPermission proto.InternalMessageInfo - -func (m *ActionPermission) GetPermanentlyPermittedTimes() []*UintRange { - if m != nil { - return m.PermanentlyPermittedTimes - } - return nil -} - -func (m *ActionPermission) GetPermanentlyForbiddenTimes() []*UintRange { - if m != nil { - return m.PermanentlyForbiddenTimes - } - return nil -} - -func init() { - proto.RegisterType((*ActionPermission)(nil), "maps.ActionPermission") -} - -func init() { proto.RegisterFile("maps/permissions.proto", fileDescriptor_3cc5e91f8d388fd8) } - -var fileDescriptor_3cc5e91f8d388fd8 = []byte{ - // 251 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcb, 0x4d, 0x2c, 0x28, - 0xd6, 0x2f, 0x48, 0x2d, 0xca, 0xcd, 0x2c, 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x62, 0x01, 0x89, 0x4b, 0x49, 0xa6, 0xe7, 0xe7, 0xa7, 0xe7, 0xa4, 0xea, 0x83, - 0xc5, 0x92, 0x4a, 0xd3, 0xf4, 0x13, 0xf3, 0x2a, 0x21, 0x0a, 0xa4, 0x84, 0xc1, 0x1a, 0x93, 0x12, - 0x73, 0x12, 0xf3, 0x92, 0x53, 0xa1, 0xba, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x4c, 0x7d, - 0x10, 0x0b, 0x22, 0xaa, 0xb4, 0x81, 0x91, 0x4b, 0xc0, 0x31, 0xb9, 0x24, 0x33, 0x3f, 0x2f, 0x00, - 0x6e, 0x8f, 0x90, 0x2f, 0x97, 0x24, 0xc8, 0xd6, 0xc4, 0xbc, 0xd4, 0xbc, 0x92, 0x9c, 0x4a, 0xb0, - 0x44, 0x49, 0x49, 0x6a, 0x4a, 0x48, 0x66, 0x6e, 0x6a, 0xb1, 0x04, 0xa3, 0x02, 0xb3, 0x06, 0xb7, - 0x11, 0xbf, 0x1e, 0xc8, 0x0e, 0xbd, 0xd0, 0xcc, 0xbc, 0x92, 0xa0, 0xc4, 0xbc, 0xf4, 0xd4, 0x20, - 0xdc, 0x3a, 0xd0, 0x8c, 0x73, 0xcb, 0x2f, 0x4a, 0xca, 0x4c, 0x49, 0x49, 0xcd, 0x83, 0x18, 0xc7, - 0x44, 0xd8, 0x38, 0x54, 0x1d, 0x4e, 0x5e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, - 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, - 0x10, 0x65, 0x90, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x9f, 0x94, 0x59, - 0x92, 0x94, 0x98, 0x92, 0x9e, 0x5a, 0x8c, 0x60, 0x25, 0x67, 0x24, 0x66, 0xe6, 0xe9, 0x57, 0xe8, - 0x83, 0x43, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x0a, 0xc6, 0x80, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xf6, 0x9a, 0xc0, 0x46, 0x6b, 0x01, 0x00, 0x00, -} - -func (m *ActionPermission) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActionPermission) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActionPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.PermanentlyForbiddenTimes) > 0 { - for iNdEx := len(m.PermanentlyForbiddenTimes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PermanentlyForbiddenTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPermissions(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.PermanentlyPermittedTimes) > 0 { - for iNdEx := len(m.PermanentlyPermittedTimes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PermanentlyPermittedTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPermissions(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintPermissions(dAtA []byte, offset int, v uint64) int { - offset -= sovPermissions(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ActionPermission) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PermanentlyPermittedTimes) > 0 { - for _, e := range m.PermanentlyPermittedTimes { - l = e.Size() - n += 1 + l + sovPermissions(uint64(l)) - } - } - if len(m.PermanentlyForbiddenTimes) > 0 { - for _, e := range m.PermanentlyForbiddenTimes { - l = e.Size() - n += 1 + l + sovPermissions(uint64(l)) - } - } - return n -} - -func sovPermissions(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPermissions(x uint64) (n int) { - return sovPermissions(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ActionPermission) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPermissions - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActionPermission: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActionPermission: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyPermittedTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPermissions - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPermissions - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPermissions - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PermanentlyPermittedTimes = append(m.PermanentlyPermittedTimes, &UintRange{}) - if err := m.PermanentlyPermittedTimes[len(m.PermanentlyPermittedTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyForbiddenTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPermissions - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPermissions - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPermissions - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PermanentlyForbiddenTimes = append(m.PermanentlyForbiddenTimes, &UintRange{}) - if err := m.PermanentlyForbiddenTimes[len(m.PermanentlyForbiddenTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPermissions(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPermissions - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPermissions(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPermissions - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPermissions - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPermissions - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthPermissions - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPermissions - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPermissions - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthPermissions = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPermissions = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPermissions = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/maps/types/query.pb.go b/x/maps/types/query.pb.go deleted file mode 100644 index edf95bb3..00000000 --- a/x/maps/types/query.pb.go +++ /dev/null @@ -1,1369 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/query.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -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_2281e0a7fcff1f3e, []int{0} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -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_2281e0a7fcff1f3e, []int{1} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -type QueryGetMapRequest struct { - MapId string `protobuf:"bytes,1,opt,name=mapId,proto3" json:"mapId,omitempty"` -} - -func (m *QueryGetMapRequest) Reset() { *m = QueryGetMapRequest{} } -func (m *QueryGetMapRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetMapRequest) ProtoMessage() {} -func (*QueryGetMapRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2281e0a7fcff1f3e, []int{2} -} -func (m *QueryGetMapRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMapRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMapRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMapRequest.Merge(m, src) -} -func (m *QueryGetMapRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMapRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMapRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMapRequest proto.InternalMessageInfo - -func (m *QueryGetMapRequest) GetMapId() string { - if m != nil { - return m.MapId - } - return "" -} - -type QueryGetMapResponse struct { - Map *Map `protobuf:"bytes,1,opt,name=map,proto3" json:"map,omitempty"` -} - -func (m *QueryGetMapResponse) Reset() { *m = QueryGetMapResponse{} } -func (m *QueryGetMapResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetMapResponse) ProtoMessage() {} -func (*QueryGetMapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2281e0a7fcff1f3e, []int{3} -} -func (m *QueryGetMapResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMapResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMapResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMapResponse.Merge(m, src) -} -func (m *QueryGetMapResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMapResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMapResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMapResponse proto.InternalMessageInfo - -func (m *QueryGetMapResponse) GetMap() *Map { - if m != nil { - return m.Map - } - return nil -} - -type QueryGetMapValueRequest struct { - MapId string `protobuf:"bytes,1,opt,name=mapId,proto3" json:"mapId,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` -} - -func (m *QueryGetMapValueRequest) Reset() { *m = QueryGetMapValueRequest{} } -func (m *QueryGetMapValueRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetMapValueRequest) ProtoMessage() {} -func (*QueryGetMapValueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2281e0a7fcff1f3e, []int{4} -} -func (m *QueryGetMapValueRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMapValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMapValueRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMapValueRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMapValueRequest.Merge(m, src) -} -func (m *QueryGetMapValueRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMapValueRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMapValueRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMapValueRequest proto.InternalMessageInfo - -func (m *QueryGetMapValueRequest) GetMapId() string { - if m != nil { - return m.MapId - } - return "" -} - -func (m *QueryGetMapValueRequest) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -type QueryGetMapValueResponse struct { - Value *ValueStore `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (m *QueryGetMapValueResponse) Reset() { *m = QueryGetMapValueResponse{} } -func (m *QueryGetMapValueResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetMapValueResponse) ProtoMessage() {} -func (*QueryGetMapValueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2281e0a7fcff1f3e, []int{5} -} -func (m *QueryGetMapValueResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMapValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMapValueResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMapValueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMapValueResponse.Merge(m, src) -} -func (m *QueryGetMapValueResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMapValueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMapValueResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMapValueResponse proto.InternalMessageInfo - -func (m *QueryGetMapValueResponse) GetValue() *ValueStore { - if m != nil { - return m.Value - } - return nil -} - -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "maps.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "maps.QueryParamsResponse") - proto.RegisterType((*QueryGetMapRequest)(nil), "maps.QueryGetMapRequest") - proto.RegisterType((*QueryGetMapResponse)(nil), "maps.QueryGetMapResponse") - proto.RegisterType((*QueryGetMapValueRequest)(nil), "maps.QueryGetMapValueRequest") - proto.RegisterType((*QueryGetMapValueResponse)(nil), "maps.QueryGetMapValueResponse") -} - -func init() { proto.RegisterFile("maps/query.proto", fileDescriptor_2281e0a7fcff1f3e) } - -var fileDescriptor_2281e0a7fcff1f3e = []byte{ - // 454 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xdd, 0x6a, 0xd4, 0x40, - 0x1c, 0xc5, 0x37, 0xbb, 0xdd, 0xc5, 0x8e, 0x0a, 0xeb, 0xb8, 0x60, 0x8c, 0x1a, 0x65, 0xc0, 0x5a, - 0x16, 0xcd, 0xd8, 0xd5, 0x17, 0xe8, 0xde, 0x88, 0x42, 0x41, 0x23, 0x78, 0xe1, 0xdd, 0x3f, 0xdb, - 0x21, 0x8d, 0xdd, 0x64, 0xa6, 0x99, 0x49, 0x69, 0x28, 0x45, 0xf0, 0x09, 0x04, 0x5f, 0xaa, 0x97, - 0x05, 0x6f, 0xbc, 0x12, 0xc9, 0xfa, 0x20, 0x32, 0x1f, 0x8b, 0x1b, 0xd6, 0xaa, 0x77, 0x33, 0xe7, - 0x9c, 0x39, 0x3f, 0x38, 0x09, 0x1a, 0xe6, 0x20, 0x24, 0x3d, 0xaa, 0x58, 0x59, 0x47, 0xa2, 0xe4, - 0x8a, 0xe3, 0x0d, 0xad, 0x04, 0xa3, 0x94, 0xa7, 0xdc, 0x08, 0x54, 0x9f, 0xac, 0x17, 0xdc, 0x4d, - 0x39, 0x4f, 0xe7, 0x8c, 0x82, 0xc8, 0x28, 0x14, 0x05, 0x57, 0xa0, 0x32, 0x5e, 0x48, 0xe7, 0x8e, - 0x67, 0x5c, 0xe6, 0x5c, 0xd2, 0x04, 0x24, 0xb3, 0x95, 0xf4, 0x78, 0x27, 0x61, 0x0a, 0x76, 0xa8, - 0x80, 0x34, 0x2b, 0x4c, 0xd8, 0x65, 0x6f, 0x18, 0xae, 0x80, 0x12, 0xf2, 0xe5, 0xf3, 0xeb, 0x46, - 0x52, 0x27, 0xf6, 0x4a, 0x46, 0x08, 0xbf, 0xd1, 0x1d, 0xaf, 0x4d, 0x26, 0x66, 0x47, 0x15, 0x93, - 0x8a, 0xec, 0xa2, 0x9b, 0x2d, 0x55, 0x0a, 0x5e, 0x48, 0x86, 0xc7, 0x68, 0x60, 0xbb, 0x7c, 0xef, - 0x81, 0xb7, 0x7d, 0x75, 0x72, 0x2d, 0xd2, 0x65, 0x91, 0x4d, 0x4d, 0x37, 0xce, 0xbf, 0xdf, 0xef, - 0xc4, 0x2e, 0x41, 0xc6, 0xae, 0xf8, 0x05, 0x53, 0x7b, 0x20, 0x5c, 0x31, 0x1e, 0xa1, 0x7e, 0x0e, - 0xe2, 0xe5, 0xbe, 0x29, 0xd8, 0x8c, 0xed, 0x85, 0x4c, 0x1c, 0x6e, 0x99, 0x75, 0xb8, 0x3b, 0xa8, - 0x97, 0x83, 0x70, 0xac, 0x4d, 0xcb, 0xd2, 0xbe, 0x56, 0xc9, 0x2e, 0xba, 0xb5, 0xf2, 0xe6, 0x1d, - 0xcc, 0x2b, 0xf6, 0x57, 0x08, 0x1e, 0xa2, 0xde, 0x21, 0xab, 0xfd, 0xae, 0xd1, 0xf4, 0x91, 0x4c, - 0x91, 0xbf, 0x5e, 0xe1, 0xd8, 0x5b, 0xa8, 0x7f, 0xac, 0x05, 0x47, 0x1f, 0x5a, 0xba, 0xc9, 0xbc, - 0x55, 0xbc, 0x64, 0xb1, 0xb5, 0x27, 0x4d, 0x17, 0xf5, 0x4d, 0x09, 0x9e, 0xa3, 0x81, 0x1d, 0x02, - 0xfb, 0x36, 0xbc, 0xbe, 0x6b, 0x70, 0xfb, 0x0f, 0x8e, 0x05, 0x92, 0x27, 0x9f, 0xbe, 0xfe, 0xfc, - 0xd2, 0x7d, 0x84, 0x1f, 0xd2, 0x24, 0x53, 0x09, 0xec, 0xa7, 0x4c, 0xfe, 0x3e, 0xcd, 0x0e, 0x20, - 0x2b, 0xe8, 0xca, 0xc7, 0xc4, 0x1f, 0x50, 0x6f, 0x0f, 0x44, 0x0b, 0xd5, 0x5a, 0xba, 0x85, 0x6a, - 0xef, 0x4a, 0x22, 0x83, 0xda, 0xc6, 0x5b, 0xff, 0x40, 0x9d, 0x9a, 0xe1, 0xce, 0xf0, 0x47, 0x74, - 0x65, 0xb9, 0x0f, 0xbe, 0xb7, 0x56, 0xbb, 0x3a, 0x7d, 0x10, 0x5e, 0x66, 0x3b, 0xf4, 0x73, 0x83, - 0x8e, 0xf0, 0xe3, 0xff, 0x43, 0xd3, 0xd3, 0x43, 0x56, 0x9f, 0x4d, 0x5f, 0x9d, 0x37, 0xa1, 0x77, - 0xd1, 0x84, 0xde, 0x8f, 0x26, 0xf4, 0x3e, 0x2f, 0xc2, 0xce, 0xc5, 0x22, 0xec, 0x7c, 0x5b, 0x84, - 0x9d, 0xf7, 0x4f, 0xd3, 0x4c, 0x1d, 0x54, 0x49, 0x34, 0xe3, 0xf9, 0xe5, 0x8d, 0x27, 0xb6, 0x53, - 0xd5, 0x82, 0xc9, 0x64, 0x60, 0xfe, 0xfb, 0x67, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x04, 0x2c, - 0x94, 0x6c, 0x93, 0x03, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - Map(ctx context.Context, in *QueryGetMapRequest, opts ...grpc.CallOption) (*QueryGetMapResponse, error) - MapValue(ctx context.Context, in *QueryGetMapValueRequest, opts ...grpc.CallOption) (*QueryGetMapValueResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/maps.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Map(ctx context.Context, in *QueryGetMapRequest, opts ...grpc.CallOption) (*QueryGetMapResponse, error) { - out := new(QueryGetMapResponse) - err := c.cc.Invoke(ctx, "/maps.Query/Map", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) MapValue(ctx context.Context, in *QueryGetMapValueRequest, opts ...grpc.CallOption) (*QueryGetMapValueResponse, error) { - out := new(QueryGetMapValueResponse) - err := c.cc.Invoke(ctx, "/maps.Query/MapValue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - Map(context.Context, *QueryGetMapRequest) (*QueryGetMapResponse, error) - MapValue(context.Context, *QueryGetMapValueRequest) (*QueryGetMapValueResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServer) Map(ctx context.Context, req *QueryGetMapRequest) (*QueryGetMapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Map not implemented") -} -func (*UnimplementedQueryServer) MapValue(ctx context.Context, req *QueryGetMapValueRequest) (*QueryGetMapValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MapValue not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/maps.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Map_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetMapRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Map(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/maps.Query/Map", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Map(ctx, req.(*QueryGetMapRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_MapValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetMapValueRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).MapValue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/maps.Query/MapValue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).MapValue(ctx, req.(*QueryGetMapValueRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var Query_serviceDesc = _Query_serviceDesc -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "maps.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "Map", - Handler: _Query_Map_Handler, - }, - { - MethodName: "MapValue", - Handler: _Query_MapValue_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "maps/query.proto", -} - -func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetMapRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMapRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MapId) > 0 { - i -= len(m.MapId) - copy(dAtA[i:], m.MapId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.MapId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetMapResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMapResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Map != nil { - { - size, err := m.Map.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetMapValueRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMapValueRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMapValueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x12 - } - if len(m.MapId) > 0 { - i -= len(m.MapId) - copy(dAtA[i:], m.MapId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.MapId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetMapValueResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMapValueResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMapValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Value != nil { - { - size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetMapRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MapId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetMapResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Map != nil { - l = m.Map.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetMapValueRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MapId) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetMapValueResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMapRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMapRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMapRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMapResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMapResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMapResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Map", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Map == nil { - m.Map = &Map{} - } - if err := m.Map.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMapValueRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMapValueRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMapValueRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMapValueResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMapValueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMapValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Value == nil { - m.Value = &ValueStore{} - } - if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/maps/types/query.pb.gw.go b/x/maps/types/query.pb.gw.go deleted file mode 100644 index c0cb33f3..00000000 --- a/x/maps/types/query.pb.gw.go +++ /dev/null @@ -1,377 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: maps/query.proto - -/* -Package types is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package types - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParamsRequest - var metadata runtime.ServerMetadata - - msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParamsRequest - var metadata runtime.ServerMetadata - - msg, err := server.Params(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_Map_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMapRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["mapId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "mapId") - } - - protoReq.MapId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "mapId", err) - } - - msg, err := client.Map(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Map_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMapRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["mapId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "mapId") - } - - protoReq.MapId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "mapId", err) - } - - msg, err := server.Map(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_MapValue_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMapValueRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["mapId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "mapId") - } - - protoReq.MapId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "mapId", err) - } - - val, ok = pathParams["key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") - } - - protoReq.Key, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) - } - - msg, err := client.MapValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_MapValue_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMapValueRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["mapId"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "mapId") - } - - protoReq.MapId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "mapId", err) - } - - val, ok = pathParams["key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") - } - - protoReq.Key, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) - } - - msg, err := server.MapValue(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". -// UnaryRPC :call QueryServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. -func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Map_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Map_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Map_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MapValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_MapValue_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MapValue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterQueryHandler(ctx, mux, conn) -} - -// RegisterQueryHandler registers the http handlers for service Query to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) -} - -// RegisterQueryHandlerClient registers the http handlers for service Query -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "QueryClient" to call the correct interceptors. -func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Map_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Map_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Map_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MapValue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_MapValue_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MapValue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"bitbadges", "bitbadgeschain", "maps", "params"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_Map_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"bitbadges", "bitbadgeschain", "maps", "mapId"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_MapValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"bitbadges", "bitbadgeschain", "maps", "mapId", "key"}, "", runtime.AssumeColonVerbOpt(false))) -) - -var ( - forward_Query_Params_0 = runtime.ForwardResponseMessage - - forward_Query_Map_0 = runtime.ForwardResponseMessage - - forward_Query_MapValue_0 = runtime.ForwardResponseMessage -) diff --git a/x/maps/types/timelines.pb.go b/x/maps/types/timelines.pb.go deleted file mode 100644 index 444705f3..00000000 --- a/x/maps/types/timelines.pb.go +++ /dev/null @@ -1,633 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/timelines.proto - -package types - -import ( - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/codec/types" - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// MapMetadataTimeline defines the metadata for a collection at different timeline times. -type MapMetadataTimeline struct { - // The collection metadata for a specific timeline element. - Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - // The timeline times when the collection metadata is valid. Can not overlap with other timeline elements in same array. - TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` -} - -func (m *MapMetadataTimeline) Reset() { *m = MapMetadataTimeline{} } -func (m *MapMetadataTimeline) String() string { return proto.CompactTextString(m) } -func (*MapMetadataTimeline) ProtoMessage() {} -func (*MapMetadataTimeline) Descriptor() ([]byte, []int) { - return fileDescriptor_31334a347a489fe7, []int{0} -} -func (m *MapMetadataTimeline) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MapMetadataTimeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MapMetadataTimeline.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MapMetadataTimeline) XXX_Merge(src proto.Message) { - xxx_messageInfo_MapMetadataTimeline.Merge(m, src) -} -func (m *MapMetadataTimeline) XXX_Size() int { - return m.Size() -} -func (m *MapMetadataTimeline) XXX_DiscardUnknown() { - xxx_messageInfo_MapMetadataTimeline.DiscardUnknown(m) -} - -var xxx_messageInfo_MapMetadataTimeline proto.InternalMessageInfo - -func (m *MapMetadataTimeline) GetMetadata() *Metadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *MapMetadataTimeline) GetTimelineTimes() []*UintRange { - if m != nil { - return m.TimelineTimes - } - return nil -} - -// ManagerTimeline defines the manager address at different timeline times. -type ManagerTimeline struct { - // The manager address for a specific timeline element. - Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` - // The timeline times when the manager address is valid. Can not overlap with other timeline elements in same array. - TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` -} - -func (m *ManagerTimeline) Reset() { *m = ManagerTimeline{} } -func (m *ManagerTimeline) String() string { return proto.CompactTextString(m) } -func (*ManagerTimeline) ProtoMessage() {} -func (*ManagerTimeline) Descriptor() ([]byte, []int) { - return fileDescriptor_31334a347a489fe7, []int{1} -} -func (m *ManagerTimeline) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ManagerTimeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ManagerTimeline.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ManagerTimeline) XXX_Merge(src proto.Message) { - xxx_messageInfo_ManagerTimeline.Merge(m, src) -} -func (m *ManagerTimeline) XXX_Size() int { - return m.Size() -} -func (m *ManagerTimeline) XXX_DiscardUnknown() { - xxx_messageInfo_ManagerTimeline.DiscardUnknown(m) -} - -var xxx_messageInfo_ManagerTimeline proto.InternalMessageInfo - -func (m *ManagerTimeline) GetManager() string { - if m != nil { - return m.Manager - } - return "" -} - -func (m *ManagerTimeline) GetTimelineTimes() []*UintRange { - if m != nil { - return m.TimelineTimes - } - return nil -} - -func init() { - proto.RegisterType((*MapMetadataTimeline)(nil), "maps.MapMetadataTimeline") - proto.RegisterType((*ManagerTimeline)(nil), "maps.ManagerTimeline") -} - -func init() { proto.RegisterFile("maps/timelines.proto", fileDescriptor_31334a347a489fe7) } - -var fileDescriptor_31334a347a489fe7 = []byte{ - // 282 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0x3f, 0x4e, 0xc3, 0x30, - 0x18, 0xc5, 0x13, 0x40, 0xfc, 0x71, 0x05, 0x95, 0xd2, 0x0a, 0x85, 0x0c, 0x56, 0xd5, 0xa9, 0x62, - 0x88, 0x51, 0x11, 0x17, 0x60, 0x44, 0xca, 0x12, 0xc1, 0xc2, 0xf6, 0x39, 0x35, 0xae, 0xa5, 0xd8, - 0x8e, 0x62, 0x57, 0x6a, 0x6f, 0xc1, 0xb1, 0x18, 0x3b, 0x32, 0xa2, 0xe4, 0x22, 0x28, 0x4e, 0x5c, - 0xd4, 0x95, 0xed, 0xf9, 0xe7, 0xf7, 0xfc, 0x6c, 0x7f, 0x68, 0x2a, 0xa1, 0x32, 0xc4, 0x0a, 0xc9, - 0x4a, 0xa1, 0x98, 0x49, 0xab, 0x5a, 0x5b, 0x1d, 0x9d, 0x75, 0x34, 0xb9, 0xe3, 0x5a, 0xf3, 0x92, - 0x11, 0xc7, 0xe8, 0xe6, 0x83, 0x80, 0xda, 0xf5, 0x86, 0x64, 0xe2, 0x62, 0x14, 0x4a, 0x50, 0x85, - 0x4f, 0x25, 0xb7, 0x0e, 0x56, 0xac, 0x96, 0xc2, 0x18, 0xa1, 0x95, 0x39, 0x32, 0x4b, 0x66, 0x61, - 0x05, 0x16, 0x06, 0x38, 0xe5, 0x9a, 0x6b, 0x27, 0x49, 0xa7, 0x7a, 0x3a, 0xdf, 0xa2, 0x49, 0x06, - 0x55, 0x36, 0x58, 0x5f, 0x87, 0x6b, 0x45, 0xf7, 0xe8, 0xd2, 0xc7, 0xe3, 0x70, 0x16, 0x2e, 0x46, - 0xcb, 0x9b, 0xb4, 0x3b, 0x34, 0xf5, 0xce, 0xfc, 0xb0, 0x1f, 0x3d, 0xa1, 0x6b, 0xff, 0x9c, 0x2e, - 0x6f, 0xe2, 0x93, 0xd9, 0xe9, 0x62, 0xb4, 0x1c, 0xf7, 0x81, 0x37, 0xa1, 0x6c, 0x0e, 0x8a, 0xb3, - 0xfc, 0xd8, 0x35, 0xa7, 0x68, 0x9c, 0x81, 0x02, 0xce, 0xea, 0x43, 0x6b, 0x8c, 0x2e, 0x64, 0x8f, - 0x5c, 0xe9, 0x55, 0xee, 0x97, 0xff, 0xec, 0x78, 0x7e, 0xf9, 0x6a, 0x70, 0xb8, 0x6f, 0x70, 0xf8, - 0xd3, 0xe0, 0xf0, 0xb3, 0xc5, 0xc1, 0xbe, 0xc5, 0xc1, 0x77, 0x8b, 0x83, 0xf7, 0x07, 0x2e, 0xec, - 0x7a, 0x43, 0xd3, 0x42, 0x4b, 0x42, 0x85, 0xa5, 0xb0, 0xe2, 0xcc, 0xfc, 0xa9, 0x62, 0x0d, 0x42, - 0x91, 0x2d, 0xe9, 0x87, 0xb5, 0xab, 0x98, 0xa1, 0xe7, 0xee, 0xc3, 0x1e, 0x7f, 0x03, 0x00, 0x00, - 0xff, 0xff, 0x4c, 0x53, 0x06, 0x4c, 0xc1, 0x01, 0x00, 0x00, -} - -func (m *MapMetadataTimeline) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MapMetadataTimeline) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MapMetadataTimeline) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TimelineTimes) > 0 { - for iNdEx := len(m.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TimelineTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTimelines(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTimelines(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ManagerTimeline) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ManagerTimeline) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ManagerTimeline) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TimelineTimes) > 0 { - for iNdEx := len(m.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.TimelineTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTimelines(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Manager) > 0 { - i -= len(m.Manager) - copy(dAtA[i:], m.Manager) - i = encodeVarintTimelines(dAtA, i, uint64(len(m.Manager))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintTimelines(dAtA []byte, offset int, v uint64) int { - offset -= sovTimelines(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MapMetadataTimeline) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovTimelines(uint64(l)) - } - if len(m.TimelineTimes) > 0 { - for _, e := range m.TimelineTimes { - l = e.Size() - n += 1 + l + sovTimelines(uint64(l)) - } - } - return n -} - -func (m *ManagerTimeline) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Manager) - if l > 0 { - n += 1 + l + sovTimelines(uint64(l)) - } - if len(m.TimelineTimes) > 0 { - for _, e := range m.TimelineTimes { - l = e.Size() - n += 1 + l + sovTimelines(uint64(l)) - } - } - return n -} - -func sovTimelines(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTimelines(x uint64) (n int) { - return sovTimelines(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MapMetadataTimeline) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTimelines - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MapMetadataTimeline: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MapMetadataTimeline: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTimelines - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTimelines - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTimelines - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTimelines - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTimelines - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTimelines - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimelineTimes = append(m.TimelineTimes, &UintRange{}) - if err := m.TimelineTimes[len(m.TimelineTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTimelines(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTimelines - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ManagerTimeline) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTimelines - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ManagerTimeline: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ManagerTimeline: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTimelines - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTimelines - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTimelines - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Manager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTimelines - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTimelines - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTimelines - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimelineTimes = append(m.TimelineTimes, &UintRange{}) - if err := m.TimelineTimes[len(m.TimelineTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTimelines(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTimelines - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTimelines(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTimelines - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTimelines - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTimelines - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthTimelines - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTimelines - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTimelines - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthTimelines = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTimelines = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTimelines = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/maps/types/tx.pb.go b/x/maps/types/tx.pb.go deleted file mode 100644 index 5a2a97e0..00000000 --- a/x/maps/types/tx.pb.go +++ /dev/null @@ -1,5362 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: maps/tx.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/cosmos-proto" - _ "github.com/cosmos/cosmos-sdk/types/msgservice" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" - grpc1 "github.com/cosmos/gogoproto/grpc" - proto "github.com/cosmos/gogoproto/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// MsgUpdateParams is the Msg/UpdateParams request type. -type MsgUpdateParams struct { - // authority is the address that controls the module (defaults to x/gov unless overwritten). - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // params defines the module parameters to update. - // - // NOTE: All parameters must be supplied. - Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` -} - -func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } -func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateParams) ProtoMessage() {} -func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{0} -} -func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateParams.Merge(m, src) -} -func (m *MsgUpdateParams) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateParams) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo - -func (m *MsgUpdateParams) GetAuthority() string { - if m != nil { - return m.Authority - } - return "" -} - -func (m *MsgUpdateParams) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. -type MsgUpdateParamsResponse struct { -} - -func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } -func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateParamsResponse) ProtoMessage() {} -func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{1} -} -func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) -} -func (m *MsgUpdateParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo - -type MapCustomMsgType struct { - SetValueMsg *MsgSetValue `protobuf:"bytes,1,opt,name=setValueMsg,proto3" json:"setValueMsg,omitempty"` - CreateMapMsg *MsgCreateMap `protobuf:"bytes,2,opt,name=createMapMsg,proto3" json:"createMapMsg,omitempty"` - UpdateMapMsg *MsgUpdateMap `protobuf:"bytes,3,opt,name=updateMapMsg,proto3" json:"updateMapMsg,omitempty"` - DeleteMapMsg *MsgDeleteMap `protobuf:"bytes,4,opt,name=deleteMapMsg,proto3" json:"deleteMapMsg,omitempty"` -} - -func (m *MapCustomMsgType) Reset() { *m = MapCustomMsgType{} } -func (m *MapCustomMsgType) String() string { return proto.CompactTextString(m) } -func (*MapCustomMsgType) ProtoMessage() {} -func (*MapCustomMsgType) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{2} -} -func (m *MapCustomMsgType) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MapCustomMsgType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MapCustomMsgType.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MapCustomMsgType) XXX_Merge(src proto.Message) { - xxx_messageInfo_MapCustomMsgType.Merge(m, src) -} -func (m *MapCustomMsgType) XXX_Size() int { - return m.Size() -} -func (m *MapCustomMsgType) XXX_DiscardUnknown() { - xxx_messageInfo_MapCustomMsgType.DiscardUnknown(m) -} - -var xxx_messageInfo_MapCustomMsgType proto.InternalMessageInfo - -func (m *MapCustomMsgType) GetSetValueMsg() *MsgSetValue { - if m != nil { - return m.SetValueMsg - } - return nil -} - -func (m *MapCustomMsgType) GetCreateMapMsg() *MsgCreateMap { - if m != nil { - return m.CreateMapMsg - } - return nil -} - -func (m *MapCustomMsgType) GetUpdateMapMsg() *MsgUpdateMap { - if m != nil { - return m.UpdateMapMsg - } - return nil -} - -func (m *MapCustomMsgType) GetDeleteMapMsg() *MsgDeleteMap { - if m != nil { - return m.DeleteMapMsg - } - return nil -} - -type ValueStore struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - LastSetBy string `protobuf:"bytes,3,opt,name=lastSetBy,proto3" json:"lastSetBy,omitempty"` -} - -func (m *ValueStore) Reset() { *m = ValueStore{} } -func (m *ValueStore) String() string { return proto.CompactTextString(m) } -func (*ValueStore) ProtoMessage() {} -func (*ValueStore) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{3} -} -func (m *ValueStore) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValueStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValueStore.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ValueStore) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValueStore.Merge(m, src) -} -func (m *ValueStore) XXX_Size() int { - return m.Size() -} -func (m *ValueStore) XXX_DiscardUnknown() { - xxx_messageInfo_ValueStore.DiscardUnknown(m) -} - -var xxx_messageInfo_ValueStore proto.InternalMessageInfo - -func (m *ValueStore) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *ValueStore) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -func (m *ValueStore) GetLastSetBy() string { - if m != nil { - return m.LastSetBy - } - return "" -} - -type MapUpdateCriteria struct { - // All ID slots are only updatable by manager - ManagerOnly bool `protobuf:"varint,1,opt,name=managerOnly,proto3" json:"managerOnly,omitempty"` - // ID slots are only updatable by token ID owner of this collection (>1 balance at current time) - CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` - // Keys are address based and can only be updated by that respective address - CreatorOnly bool `protobuf:"varint,3,opt,name=creatorOnly,proto3" json:"creatorOnly,omitempty"` - // Claim slots. Can unclaim by setting to blank. Uses lastSetBy. - FirstComeFirstServe bool `protobuf:"varint,4,opt,name=firstComeFirstServe,proto3" json:"firstComeFirstServe,omitempty"` -} - -func (m *MapUpdateCriteria) Reset() { *m = MapUpdateCriteria{} } -func (m *MapUpdateCriteria) String() string { return proto.CompactTextString(m) } -func (*MapUpdateCriteria) ProtoMessage() {} -func (*MapUpdateCriteria) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{4} -} -func (m *MapUpdateCriteria) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MapUpdateCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MapUpdateCriteria.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MapUpdateCriteria) XXX_Merge(src proto.Message) { - xxx_messageInfo_MapUpdateCriteria.Merge(m, src) -} -func (m *MapUpdateCriteria) XXX_Size() int { - return m.Size() -} -func (m *MapUpdateCriteria) XXX_DiscardUnknown() { - xxx_messageInfo_MapUpdateCriteria.DiscardUnknown(m) -} - -var xxx_messageInfo_MapUpdateCriteria proto.InternalMessageInfo - -func (m *MapUpdateCriteria) GetManagerOnly() bool { - if m != nil { - return m.ManagerOnly - } - return false -} - -func (m *MapUpdateCriteria) GetCreatorOnly() bool { - if m != nil { - return m.CreatorOnly - } - return false -} - -func (m *MapUpdateCriteria) GetFirstComeFirstServe() bool { - if m != nil { - return m.FirstComeFirstServe - } - return false -} - -type ValueOptions struct { - NoDuplicates bool `protobuf:"varint,1,opt,name=noDuplicates,proto3" json:"noDuplicates,omitempty"` - PermanentOnceSet bool `protobuf:"varint,2,opt,name=permanentOnceSet,proto3" json:"permanentOnceSet,omitempty"` - ExpectUint bool `protobuf:"varint,3,opt,name=expectUint,proto3" json:"expectUint,omitempty"` - ExpectBoolean bool `protobuf:"varint,4,opt,name=expectBoolean,proto3" json:"expectBoolean,omitempty"` - ExpectAddress bool `protobuf:"varint,5,opt,name=expectAddress,proto3" json:"expectAddress,omitempty"` - ExpectUri bool `protobuf:"varint,6,opt,name=expectUri,proto3" json:"expectUri,omitempty"` -} - -func (m *ValueOptions) Reset() { *m = ValueOptions{} } -func (m *ValueOptions) String() string { return proto.CompactTextString(m) } -func (*ValueOptions) ProtoMessage() {} -func (*ValueOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{5} -} -func (m *ValueOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValueOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValueOptions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ValueOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValueOptions.Merge(m, src) -} -func (m *ValueOptions) XXX_Size() int { - return m.Size() -} -func (m *ValueOptions) XXX_DiscardUnknown() { - xxx_messageInfo_ValueOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_ValueOptions proto.InternalMessageInfo - -func (m *ValueOptions) GetNoDuplicates() bool { - if m != nil { - return m.NoDuplicates - } - return false -} - -func (m *ValueOptions) GetPermanentOnceSet() bool { - if m != nil { - return m.PermanentOnceSet - } - return false -} - -func (m *ValueOptions) GetExpectUint() bool { - if m != nil { - return m.ExpectUint - } - return false -} - -func (m *ValueOptions) GetExpectBoolean() bool { - if m != nil { - return m.ExpectBoolean - } - return false -} - -func (m *ValueOptions) GetExpectAddress() bool { - if m != nil { - return m.ExpectAddress - } - return false -} - -func (m *ValueOptions) GetExpectUri() bool { - if m != nil { - return m.ExpectUri - } - return false -} - -type MapPermissions struct { - CanUpdateMetadata []*ActionPermission `protobuf:"bytes,1,rep,name=canUpdateMetadata,proto3" json:"canUpdateMetadata,omitempty"` - CanUpdateManager []*ActionPermission `protobuf:"bytes,2,rep,name=canUpdateManager,proto3" json:"canUpdateManager,omitempty"` - CanDeleteMap []*ActionPermission `protobuf:"bytes,3,rep,name=canDeleteMap,proto3" json:"canDeleteMap,omitempty"` -} - -func (m *MapPermissions) Reset() { *m = MapPermissions{} } -func (m *MapPermissions) String() string { return proto.CompactTextString(m) } -func (*MapPermissions) ProtoMessage() {} -func (*MapPermissions) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{6} -} -func (m *MapPermissions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MapPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MapPermissions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MapPermissions) XXX_Merge(src proto.Message) { - xxx_messageInfo_MapPermissions.Merge(m, src) -} -func (m *MapPermissions) XXX_Size() int { - return m.Size() -} -func (m *MapPermissions) XXX_DiscardUnknown() { - xxx_messageInfo_MapPermissions.DiscardUnknown(m) -} - -var xxx_messageInfo_MapPermissions proto.InternalMessageInfo - -func (m *MapPermissions) GetCanUpdateMetadata() []*ActionPermission { - if m != nil { - return m.CanUpdateMetadata - } - return nil -} - -func (m *MapPermissions) GetCanUpdateManager() []*ActionPermission { - if m != nil { - return m.CanUpdateManager - } - return nil -} - -func (m *MapPermissions) GetCanDeleteMap() []*ActionPermission { - if m != nil { - return m.CanDeleteMap - } - return nil -} - -type Map struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` - InheritManagerFrom Uint `protobuf:"bytes,3,opt,name=inheritManagerFrom,proto3,customtype=Uint" json:"inheritManagerFrom"` - Manager string `protobuf:"bytes,4,opt,name=manager,proto3" json:"manager,omitempty"` - // config options that will not change at all - UpdateCriteria *MapUpdateCriteria `protobuf:"bytes,5,opt,name=updateCriteria,proto3" json:"updateCriteria,omitempty"` - ValueOptions *ValueOptions `protobuf:"bytes,6,opt,name=valueOptions,proto3" json:"valueOptions,omitempty"` - DefaultValue string `protobuf:"bytes,7,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` - Metadata *Metadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"` - Permissions *MapPermissions `protobuf:"bytes,11,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (m *Map) Reset() { *m = Map{} } -func (m *Map) String() string { return proto.CompactTextString(m) } -func (*Map) ProtoMessage() {} -func (*Map) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{7} -} -func (m *Map) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Map) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Map.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Map) XXX_Merge(src proto.Message) { - xxx_messageInfo_Map.Merge(m, src) -} -func (m *Map) XXX_Size() int { - return m.Size() -} -func (m *Map) XXX_DiscardUnknown() { - xxx_messageInfo_Map.DiscardUnknown(m) -} - -var xxx_messageInfo_Map proto.InternalMessageInfo - -func (m *Map) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *Map) GetMapId() string { - if m != nil { - return m.MapId - } - return "" -} - -func (m *Map) GetManager() string { - if m != nil { - return m.Manager - } - return "" -} - -func (m *Map) GetUpdateCriteria() *MapUpdateCriteria { - if m != nil { - return m.UpdateCriteria - } - return nil -} - -func (m *Map) GetValueOptions() *ValueOptions { - if m != nil { - return m.ValueOptions - } - return nil -} - -func (m *Map) GetDefaultValue() string { - if m != nil { - return m.DefaultValue - } - return "" -} - -func (m *Map) GetMetadata() *Metadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *Map) GetPermissions() *MapPermissions { - if m != nil { - return m.Permissions - } - return nil -} - -type MsgCreateMap struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` - InheritManagerFrom Uint `protobuf:"bytes,3,opt,name=inheritManagerFrom,proto3,customtype=Uint" json:"inheritManagerFrom"` - Manager string `protobuf:"bytes,4,opt,name=manager,proto3" json:"manager,omitempty"` - // config options that will not change at all - UpdateCriteria *MapUpdateCriteria `protobuf:"bytes,5,opt,name=updateCriteria,proto3" json:"updateCriteria,omitempty"` - ValueOptions *ValueOptions `protobuf:"bytes,6,opt,name=valueOptions,proto3" json:"valueOptions,omitempty"` - DefaultValue string `protobuf:"bytes,7,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` - Metadata *Metadata `protobuf:"bytes,9,opt,name=metadata,proto3" json:"metadata,omitempty"` - Permissions *MapPermissions `protobuf:"bytes,10,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (m *MsgCreateMap) Reset() { *m = MsgCreateMap{} } -func (m *MsgCreateMap) String() string { return proto.CompactTextString(m) } -func (*MsgCreateMap) ProtoMessage() {} -func (*MsgCreateMap) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{8} -} -func (m *MsgCreateMap) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgCreateMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgCreateMap.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgCreateMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateMap.Merge(m, src) -} -func (m *MsgCreateMap) XXX_Size() int { - return m.Size() -} -func (m *MsgCreateMap) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateMap.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgCreateMap proto.InternalMessageInfo - -func (m *MsgCreateMap) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgCreateMap) GetMapId() string { - if m != nil { - return m.MapId - } - return "" -} - -func (m *MsgCreateMap) GetManager() string { - if m != nil { - return m.Manager - } - return "" -} - -func (m *MsgCreateMap) GetUpdateCriteria() *MapUpdateCriteria { - if m != nil { - return m.UpdateCriteria - } - return nil -} - -func (m *MsgCreateMap) GetValueOptions() *ValueOptions { - if m != nil { - return m.ValueOptions - } - return nil -} - -func (m *MsgCreateMap) GetDefaultValue() string { - if m != nil { - return m.DefaultValue - } - return "" -} - -func (m *MsgCreateMap) GetMetadata() *Metadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *MsgCreateMap) GetPermissions() *MapPermissions { - if m != nil { - return m.Permissions - } - return nil -} - -type MsgCreateMapResponse struct { -} - -func (m *MsgCreateMapResponse) Reset() { *m = MsgCreateMapResponse{} } -func (m *MsgCreateMapResponse) String() string { return proto.CompactTextString(m) } -func (*MsgCreateMapResponse) ProtoMessage() {} -func (*MsgCreateMapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{9} -} -func (m *MsgCreateMapResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgCreateMapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgCreateMapResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgCreateMapResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateMapResponse.Merge(m, src) -} -func (m *MsgCreateMapResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgCreateMapResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateMapResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgCreateMapResponse proto.InternalMessageInfo - -type MsgUpdateMap struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` - UpdateManager bool `protobuf:"varint,3,opt,name=updateManager,proto3" json:"updateManager,omitempty"` - Manager string `protobuf:"bytes,4,opt,name=manager,proto3" json:"manager,omitempty"` - UpdateMetadata bool `protobuf:"varint,7,opt,name=updateMetadata,proto3" json:"updateMetadata,omitempty"` - Metadata *Metadata `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"` - UpdatePermissions bool `protobuf:"varint,9,opt,name=updatePermissions,proto3" json:"updatePermissions,omitempty"` - Permissions *MapPermissions `protobuf:"bytes,10,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (m *MsgUpdateMap) Reset() { *m = MsgUpdateMap{} } -func (m *MsgUpdateMap) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateMap) ProtoMessage() {} -func (*MsgUpdateMap) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{10} -} -func (m *MsgUpdateMap) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateMap.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateMap.Merge(m, src) -} -func (m *MsgUpdateMap) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateMap) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateMap.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateMap proto.InternalMessageInfo - -func (m *MsgUpdateMap) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgUpdateMap) GetMapId() string { - if m != nil { - return m.MapId - } - return "" -} - -func (m *MsgUpdateMap) GetUpdateManager() bool { - if m != nil { - return m.UpdateManager - } - return false -} - -func (m *MsgUpdateMap) GetManager() string { - if m != nil { - return m.Manager - } - return "" -} - -func (m *MsgUpdateMap) GetUpdateMetadata() bool { - if m != nil { - return m.UpdateMetadata - } - return false -} - -func (m *MsgUpdateMap) GetMetadata() *Metadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *MsgUpdateMap) GetUpdatePermissions() bool { - if m != nil { - return m.UpdatePermissions - } - return false -} - -func (m *MsgUpdateMap) GetPermissions() *MapPermissions { - if m != nil { - return m.Permissions - } - return nil -} - -type MsgUpdateMapResponse struct { -} - -func (m *MsgUpdateMapResponse) Reset() { *m = MsgUpdateMapResponse{} } -func (m *MsgUpdateMapResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateMapResponse) ProtoMessage() {} -func (*MsgUpdateMapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{11} -} -func (m *MsgUpdateMapResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateMapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateMapResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateMapResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateMapResponse.Merge(m, src) -} -func (m *MsgUpdateMapResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateMapResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateMapResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateMapResponse proto.InternalMessageInfo - -type MsgDeleteMap struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` -} - -func (m *MsgDeleteMap) Reset() { *m = MsgDeleteMap{} } -func (m *MsgDeleteMap) String() string { return proto.CompactTextString(m) } -func (*MsgDeleteMap) ProtoMessage() {} -func (*MsgDeleteMap) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{12} -} -func (m *MsgDeleteMap) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgDeleteMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgDeleteMap.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgDeleteMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDeleteMap.Merge(m, src) -} -func (m *MsgDeleteMap) XXX_Size() int { - return m.Size() -} -func (m *MsgDeleteMap) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDeleteMap.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgDeleteMap proto.InternalMessageInfo - -func (m *MsgDeleteMap) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgDeleteMap) GetMapId() string { - if m != nil { - return m.MapId - } - return "" -} - -type MsgDeleteMapResponse struct { -} - -func (m *MsgDeleteMapResponse) Reset() { *m = MsgDeleteMapResponse{} } -func (m *MsgDeleteMapResponse) String() string { return proto.CompactTextString(m) } -func (*MsgDeleteMapResponse) ProtoMessage() {} -func (*MsgDeleteMapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{13} -} -func (m *MsgDeleteMapResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgDeleteMapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgDeleteMapResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgDeleteMapResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgDeleteMapResponse.Merge(m, src) -} -func (m *MsgDeleteMapResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgDeleteMapResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgDeleteMapResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgDeleteMapResponse proto.InternalMessageInfo - -type SetOptions struct { - UseMostRecentCollectionId bool `protobuf:"varint,1,opt,name=useMostRecentCollectionId,proto3" json:"useMostRecentCollectionId,omitempty"` -} - -func (m *SetOptions) Reset() { *m = SetOptions{} } -func (m *SetOptions) String() string { return proto.CompactTextString(m) } -func (*SetOptions) ProtoMessage() {} -func (*SetOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{14} -} -func (m *SetOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetOptions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SetOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetOptions.Merge(m, src) -} -func (m *SetOptions) XXX_Size() int { - return m.Size() -} -func (m *SetOptions) XXX_DiscardUnknown() { - xxx_messageInfo_SetOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_SetOptions proto.InternalMessageInfo - -func (m *SetOptions) GetUseMostRecentCollectionId() bool { - if m != nil { - return m.UseMostRecentCollectionId - } - return false -} - -type MsgSetValue struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - MapId string `protobuf:"bytes,2,opt,name=mapId,proto3" json:"mapId,omitempty"` - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` - Options *SetOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` -} - -func (m *MsgSetValue) Reset() { *m = MsgSetValue{} } -func (m *MsgSetValue) String() string { return proto.CompactTextString(m) } -func (*MsgSetValue) ProtoMessage() {} -func (*MsgSetValue) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{15} -} -func (m *MsgSetValue) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSetValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSetValue.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgSetValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetValue.Merge(m, src) -} -func (m *MsgSetValue) XXX_Size() int { - return m.Size() -} -func (m *MsgSetValue) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetValue.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSetValue proto.InternalMessageInfo - -func (m *MsgSetValue) GetCreator() string { - if m != nil { - return m.Creator - } - return "" -} - -func (m *MsgSetValue) GetMapId() string { - if m != nil { - return m.MapId - } - return "" -} - -func (m *MsgSetValue) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *MsgSetValue) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -func (m *MsgSetValue) GetOptions() *SetOptions { - if m != nil { - return m.Options - } - return nil -} - -type MsgSetValueResponse struct { -} - -func (m *MsgSetValueResponse) Reset() { *m = MsgSetValueResponse{} } -func (m *MsgSetValueResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSetValueResponse) ProtoMessage() {} -func (*MsgSetValueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4bd760995a662e3, []int{16} -} -func (m *MsgSetValueResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgSetValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgSetValueResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgSetValueResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSetValueResponse.Merge(m, src) -} -func (m *MsgSetValueResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgSetValueResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSetValueResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgSetValueResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*MsgUpdateParams)(nil), "maps.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "maps.MsgUpdateParamsResponse") - proto.RegisterType((*MapCustomMsgType)(nil), "maps.MapCustomMsgType") - proto.RegisterType((*ValueStore)(nil), "maps.ValueStore") - proto.RegisterType((*MapUpdateCriteria)(nil), "maps.MapUpdateCriteria") - proto.RegisterType((*ValueOptions)(nil), "maps.ValueOptions") - proto.RegisterType((*MapPermissions)(nil), "maps.MapPermissions") - proto.RegisterType((*Map)(nil), "maps.Map") - proto.RegisterType((*MsgCreateMap)(nil), "maps.MsgCreateMap") - proto.RegisterType((*MsgCreateMapResponse)(nil), "maps.MsgCreateMapResponse") - proto.RegisterType((*MsgUpdateMap)(nil), "maps.MsgUpdateMap") - proto.RegisterType((*MsgUpdateMapResponse)(nil), "maps.MsgUpdateMapResponse") - proto.RegisterType((*MsgDeleteMap)(nil), "maps.MsgDeleteMap") - proto.RegisterType((*MsgDeleteMapResponse)(nil), "maps.MsgDeleteMapResponse") - proto.RegisterType((*SetOptions)(nil), "maps.SetOptions") - proto.RegisterType((*MsgSetValue)(nil), "maps.MsgSetValue") - proto.RegisterType((*MsgSetValueResponse)(nil), "maps.MsgSetValueResponse") -} - -func init() { proto.RegisterFile("maps/tx.proto", fileDescriptor_d4bd760995a662e3) } - -var fileDescriptor_d4bd760995a662e3 = []byte{ - // 1172 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xbf, 0x6f, 0x23, 0xc5, - 0x17, 0xcf, 0xc6, 0xb9, 0x8b, 0xfd, 0xec, 0xe4, 0x1b, 0x4f, 0x7c, 0xc9, 0xc6, 0xfa, 0xe2, 0x44, - 0xab, 0x13, 0x44, 0x16, 0xc4, 0x21, 0x27, 0x45, 0x28, 0x9c, 0x84, 0xce, 0x89, 0x4e, 0xe2, 0x24, - 0x2b, 0xa7, 0x31, 0xa1, 0xa0, 0x39, 0x4d, 0xd6, 0x73, 0x9b, 0x15, 0xde, 0x9d, 0xd5, 0xce, 0x38, - 0x4a, 0x3a, 0x44, 0x49, 0x81, 0xf8, 0x1f, 0x68, 0x28, 0x83, 0x44, 0x81, 0x44, 0x49, 0x73, 0xe5, - 0x89, 0x02, 0x01, 0xc5, 0x09, 0x25, 0x45, 0xe8, 0xf8, 0x17, 0xd0, 0xfc, 0xd8, 0x5f, 0xb6, 0x2f, - 0x10, 0x89, 0x92, 0x26, 0xd9, 0xf9, 0xbc, 0xcf, 0x9b, 0x79, 0xf3, 0x7e, 0xcc, 0x7b, 0x86, 0x85, - 0x80, 0x44, 0xbc, 0x23, 0xce, 0xb6, 0xa2, 0x98, 0x09, 0x86, 0xe6, 0xe4, 0xb2, 0x59, 0x27, 0x81, - 0x1f, 0xb2, 0x8e, 0xfa, 0xab, 0x05, 0xcd, 0x55, 0x97, 0xf1, 0x80, 0xf1, 0x4e, 0xc0, 0xbd, 0xce, - 0xe9, 0xbb, 0xf2, 0x9f, 0x11, 0xac, 0x69, 0xc1, 0x33, 0xb5, 0xea, 0xe8, 0x85, 0x11, 0x35, 0x3c, - 0xe6, 0x31, 0x8d, 0xcb, 0x2f, 0x83, 0xae, 0xa8, 0x13, 0x23, 0x1a, 0x07, 0x3e, 0xe7, 0x3e, 0x0b, - 0x13, 0xf6, 0xb2, 0xc2, 0x8f, 0xc9, 0x90, 0x84, 0x2e, 0x4d, 0xc0, 0xba, 0x26, 0x93, 0x98, 0x04, - 0x45, 0x5e, 0x40, 0x05, 0x19, 0x10, 0x41, 0x34, 0xe8, 0x7c, 0x6d, 0xc1, 0xff, 0x7a, 0xdc, 0x3b, - 0x8a, 0x06, 0x44, 0xd0, 0xa7, 0x8a, 0x8e, 0x76, 0xa1, 0x42, 0x46, 0xe2, 0x84, 0xc5, 0xbe, 0x38, - 0xb7, 0xad, 0x0d, 0x6b, 0xb3, 0xd2, 0xb5, 0x7f, 0xfa, 0xee, 0x9d, 0x86, 0xb1, 0xf1, 0xd1, 0x60, - 0x10, 0x53, 0xce, 0xfb, 0x22, 0xf6, 0x43, 0x0f, 0x67, 0x54, 0xd4, 0x81, 0xbb, 0xfa, 0x40, 0x7b, - 0x76, 0xc3, 0xda, 0xac, 0xee, 0xd4, 0xb6, 0xe4, 0x89, 0x5b, 0x7a, 0xd7, 0x6e, 0xe5, 0xc5, 0xab, - 0xf5, 0x99, 0x6f, 0xae, 0x2f, 0xda, 0x16, 0x36, 0xb4, 0xbd, 0xb7, 0x3e, 0xbf, 0xbe, 0x68, 0x67, - 0x1b, 0x7c, 0x71, 0x7d, 0xd1, 0x6e, 0x28, 0x23, 0xc7, 0x2c, 0x72, 0xd6, 0x60, 0x75, 0x0c, 0xc2, - 0x94, 0x47, 0x2c, 0xe4, 0xd4, 0xf9, 0xd3, 0x82, 0xa5, 0x1e, 0x89, 0xf6, 0x47, 0x5c, 0xb0, 0xa0, - 0xc7, 0xbd, 0x8f, 0xce, 0x23, 0x8a, 0x1e, 0x40, 0x95, 0x53, 0xf1, 0x31, 0x19, 0x8e, 0x68, 0x8f, - 0x7b, 0xea, 0x0e, 0xd5, 0x9d, 0xba, 0x36, 0xa7, 0xc7, 0xbd, 0xbe, 0x91, 0xe1, 0x3c, 0x0b, 0xed, - 0x42, 0xcd, 0x8d, 0x29, 0x11, 0xb4, 0x47, 0x22, 0xa9, 0xa5, 0x2f, 0x81, 0x52, 0xad, 0xfd, 0x44, - 0x88, 0x0b, 0x3c, 0xa9, 0x37, 0x52, 0x96, 0x19, 0xbd, 0xd2, 0x98, 0xde, 0x51, 0x22, 0xc4, 0x05, - 0x9e, 0xd4, 0x1b, 0xd0, 0x21, 0x4d, 0xf5, 0xe6, 0xc6, 0xf4, 0x0e, 0x12, 0x21, 0x2e, 0xf0, 0x1c, - 0x0c, 0xa0, 0x6c, 0xee, 0x0b, 0x16, 0x53, 0xb4, 0x04, 0xa5, 0x4f, 0xa9, 0x09, 0x13, 0x96, 0x9f, - 0xa8, 0x01, 0x77, 0x4e, 0xa5, 0x5c, 0x5d, 0xa0, 0x82, 0xf5, 0x02, 0xfd, 0x1f, 0x2a, 0x43, 0xc2, - 0x45, 0x9f, 0x8a, 0xee, 0xb9, 0x32, 0xb1, 0x82, 0x33, 0xc0, 0xf9, 0xc1, 0x82, 0x7a, 0x8f, 0x44, - 0xda, 0xd4, 0xfd, 0xd8, 0x17, 0x34, 0xf6, 0x09, 0xda, 0x80, 0x6a, 0x40, 0x42, 0xe2, 0xd1, 0xf8, - 0x30, 0x1c, 0xea, 0x33, 0xca, 0x38, 0x0f, 0xa1, 0x6d, 0xa8, 0xb9, 0x6c, 0x38, 0xa4, 0xae, 0xf0, - 0x59, 0xf8, 0xe1, 0x40, 0x1f, 0xd9, 0xad, 0xc9, 0x50, 0xff, 0xf6, 0x6a, 0x7d, 0xee, 0xc8, 0x0f, - 0x05, 0x2e, 0x30, 0xe4, 0x9e, 0xca, 0x7b, 0x4c, 0xef, 0x59, 0xd2, 0x7b, 0xe6, 0x20, 0xb4, 0x0d, - 0xcb, 0xcf, 0xfd, 0x98, 0x8b, 0x7d, 0x16, 0xd0, 0xc7, 0xf2, 0xa3, 0x4f, 0xe3, 0x53, 0xaa, 0xdc, - 0x53, 0xc6, 0xd3, 0x44, 0xce, 0x1f, 0x16, 0xd4, 0x94, 0x4b, 0x0e, 0x23, 0x79, 0x0a, 0x47, 0x0e, - 0xd4, 0x42, 0x76, 0x30, 0x8a, 0x86, 0xbe, 0x4b, 0x04, 0xe5, 0xc6, 0xf2, 0x02, 0x86, 0xda, 0xb0, - 0x24, 0x6b, 0x89, 0x84, 0x34, 0x14, 0x87, 0xa1, 0x4b, 0xfb, 0x54, 0x28, 0xf3, 0xcb, 0x78, 0x02, - 0x47, 0x2d, 0x00, 0x7a, 0x16, 0x51, 0x57, 0xc8, 0x0b, 0x19, 0x9b, 0x73, 0x08, 0xba, 0x0f, 0x0b, - 0x7a, 0xd5, 0x65, 0x6c, 0x48, 0x49, 0x68, 0x8c, 0x2d, 0x82, 0x19, 0xcb, 0x54, 0x90, 0x7d, 0x27, - 0xcf, 0x32, 0xa0, 0x0c, 0x94, 0xd9, 0x39, 0xf6, 0xed, 0xbb, 0x8a, 0x91, 0x01, 0xce, 0xcf, 0x16, - 0x2c, 0xf6, 0x48, 0xf4, 0x34, 0x7b, 0x05, 0xd0, 0x01, 0xd4, 0x5d, 0x12, 0x9a, 0x2c, 0x33, 0xd5, - 0x6d, 0x5b, 0x1b, 0xa5, 0xcd, 0xea, 0xce, 0x8a, 0x4e, 0xa6, 0x47, 0xca, 0xf9, 0x99, 0x0e, 0x9e, - 0x54, 0x40, 0x5d, 0x58, 0xca, 0x40, 0x1d, 0x61, 0x7b, 0xf6, 0xc6, 0x4d, 0x26, 0xf8, 0x68, 0x0f, - 0x6a, 0x2e, 0x09, 0xd3, 0xbc, 0xb5, 0x4b, 0x37, 0xea, 0x17, 0xb8, 0xce, 0x97, 0x25, 0x28, 0xf5, - 0x48, 0x84, 0x6c, 0x98, 0x37, 0xc9, 0x60, 0x72, 0x3a, 0x59, 0xca, 0xbc, 0x0e, 0x48, 0x94, 0x24, - 0x19, 0xd6, 0x0b, 0xf4, 0x10, 0x90, 0x1f, 0x9e, 0xd0, 0xd8, 0x17, 0xc6, 0x8a, 0xc7, 0x31, 0x0b, - 0x74, 0x82, 0x8f, 0xe5, 0xe1, 0x14, 0x9e, 0x3c, 0xcd, 0xa4, 0xb3, 0x0a, 0x59, 0x05, 0x27, 0x4b, - 0xf4, 0x01, 0x2c, 0x8e, 0x0a, 0xd5, 0xa0, 0xa2, 0x55, 0xdd, 0x59, 0x35, 0xf5, 0x39, 0x5e, 0x2c, - 0x78, 0x8c, 0x2e, 0xcb, 0xfb, 0x34, 0x97, 0x93, 0x2a, 0x94, 0x69, 0x79, 0xe7, 0xb3, 0x15, 0x17, - 0x78, 0x32, 0x77, 0x07, 0xf4, 0x39, 0x19, 0x0d, 0xf5, 0xcb, 0x64, 0xcf, 0x2b, 0xbb, 0x0a, 0x18, - 0x6a, 0x43, 0x39, 0x79, 0xc7, 0x6d, 0x50, 0xfb, 0x2e, 0x1a, 0xb3, 0x0c, 0x8a, 0x53, 0x39, 0xda, - 0x85, 0x6a, 0xae, 0x67, 0xd8, 0x55, 0x45, 0x6f, 0xa4, 0xb7, 0xc8, 0x65, 0x12, 0xce, 0x13, 0x9d, - 0xef, 0x4b, 0x50, 0xcb, 0xbf, 0x7a, 0xff, 0x45, 0xe6, 0xb6, 0x91, 0xa9, 0xdc, 0x2e, 0x32, 0xf0, - 0x0f, 0x23, 0xb3, 0xb7, 0x2e, 0xdb, 0x66, 0xe2, 0x7c, 0xd9, 0x34, 0x17, 0x55, 0xd3, 0x4c, 0x23, - 0xe5, 0xac, 0x40, 0xa3, 0xd0, 0xaf, 0x92, 0x5e, 0xf9, 0xeb, 0xac, 0x0a, 0x69, 0xda, 0x90, 0x6e, - 0x1d, 0xd2, 0xfb, 0xb0, 0x30, 0x2a, 0xbc, 0x10, 0xfa, 0x29, 0x2c, 0x82, 0x37, 0x84, 0xee, 0xcd, - 0x24, 0x74, 0xe9, 0x3b, 0x35, 0xaf, 0x36, 0x18, 0x43, 0x0b, 0x5e, 0x2c, 0xff, 0x8d, 0x17, 0xdf, - 0x86, 0xba, 0xd6, 0xce, 0xf9, 0x4b, 0xb9, 0xbe, 0x8c, 0x27, 0x05, 0xff, 0xb6, 0xcf, 0x53, 0x57, - 0x1a, 0x9f, 0x67, 0xbd, 0x3e, 0xf1, 0xf9, 0x33, 0xe5, 0xf2, 0xf4, 0x9d, 0xbb, 0xad, 0xcb, 0x5f, - 0x77, 0x70, 0xf6, 0x70, 0xea, 0x83, 0xb3, 0x61, 0x21, 0x39, 0xf8, 0x09, 0x40, 0x9f, 0x8a, 0x24, - 0x77, 0x1f, 0xc2, 0xda, 0x88, 0xd3, 0x1e, 0xe3, 0x02, 0x53, 0x97, 0x86, 0x62, 0x3f, 0xdf, 0xb5, - 0x75, 0x7b, 0x7c, 0x3d, 0xc1, 0xf9, 0xd6, 0x82, 0x6a, 0x6e, 0x6e, 0xba, 0x75, 0xde, 0x98, 0x21, - 0xa5, 0x34, 0x65, 0x48, 0x99, 0xcb, 0x0f, 0x29, 0x6d, 0x98, 0x67, 0xa6, 0x28, 0x75, 0x4d, 0x2f, - 0xe9, 0xc8, 0x64, 0x17, 0xc1, 0x09, 0x61, 0xaf, 0x35, 0xee, 0x18, 0x3d, 0x91, 0x27, 0x36, 0x3a, - 0xf7, 0x60, 0x39, 0x3f, 0xea, 0x19, 0xb7, 0xec, 0xfc, 0x38, 0x0b, 0x25, 0x39, 0x7d, 0x1d, 0x40, - 0xad, 0x30, 0xf4, 0xde, 0x1b, 0x9b, 0xd7, 0x34, 0xdc, 0x7c, 0x63, 0x2a, 0x9c, 0xec, 0x86, 0xde, - 0x87, 0x4a, 0xf6, 0x40, 0x4e, 0x19, 0x15, 0x9b, 0xcd, 0x29, 0xe3, 0x63, 0x4e, 0x39, 0x2b, 0xc5, - 0x29, 0xf3, 0x62, 0x4e, 0x79, 0x22, 0xaf, 0xa4, 0x72, 0x96, 0x54, 0x53, 0x86, 0xc6, 0x9c, 0xf2, - 0x44, 0x6e, 0xa0, 0xf7, 0xa0, 0x9c, 0xc6, 0x72, 0x72, 0x2c, 0x6e, 0xae, 0x4d, 0x4e, 0xca, 0x46, - 0xb3, 0x79, 0xe7, 0x33, 0x39, 0xc1, 0x77, 0x9f, 0xbc, 0xb8, 0x6c, 0x59, 0x2f, 0x2f, 0x5b, 0xd6, - 0xef, 0x97, 0x2d, 0xeb, 0xab, 0xab, 0xd6, 0xcc, 0xcb, 0xab, 0xd6, 0xcc, 0x2f, 0x57, 0xad, 0x99, - 0x4f, 0xb6, 0x3d, 0x5f, 0x9c, 0x8c, 0x8e, 0xb7, 0x5c, 0x16, 0x74, 0x8e, 0x7d, 0x71, 0x4c, 0x06, - 0x1e, 0xe5, 0xd9, 0x97, 0x7b, 0x42, 0xfc, 0xb0, 0x73, 0xd6, 0xd1, 0xbf, 0x9e, 0xce, 0x23, 0xca, - 0x8f, 0xef, 0xaa, 0x5f, 0x22, 0x0f, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x68, 0x0c, 0x7c, - 0x52, 0x0d, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgClient interface { - UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - CreateMap(ctx context.Context, in *MsgCreateMap, opts ...grpc.CallOption) (*MsgCreateMapResponse, error) - UpdateMap(ctx context.Context, in *MsgUpdateMap, opts ...grpc.CallOption) (*MsgUpdateMapResponse, error) - DeleteMap(ctx context.Context, in *MsgDeleteMap, opts ...grpc.CallOption) (*MsgDeleteMapResponse, error) - SetValue(ctx context.Context, in *MsgSetValue, opts ...grpc.CallOption) (*MsgSetValueResponse, error) -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { - out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/maps.Msg/UpdateParams", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) CreateMap(ctx context.Context, in *MsgCreateMap, opts ...grpc.CallOption) (*MsgCreateMapResponse, error) { - out := new(MsgCreateMapResponse) - err := c.cc.Invoke(ctx, "/maps.Msg/CreateMap", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateMap(ctx context.Context, in *MsgUpdateMap, opts ...grpc.CallOption) (*MsgUpdateMapResponse, error) { - out := new(MsgUpdateMapResponse) - err := c.cc.Invoke(ctx, "/maps.Msg/UpdateMap", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) DeleteMap(ctx context.Context, in *MsgDeleteMap, opts ...grpc.CallOption) (*MsgDeleteMapResponse, error) { - out := new(MsgDeleteMapResponse) - err := c.cc.Invoke(ctx, "/maps.Msg/DeleteMap", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) SetValue(ctx context.Context, in *MsgSetValue, opts ...grpc.CallOption) (*MsgSetValueResponse, error) { - out := new(MsgSetValueResponse) - err := c.cc.Invoke(ctx, "/maps.Msg/SetValue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { - UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - CreateMap(context.Context, *MsgCreateMap) (*MsgCreateMapResponse, error) - UpdateMap(context.Context, *MsgUpdateMap) (*MsgUpdateMapResponse, error) - DeleteMap(context.Context, *MsgDeleteMap) (*MsgDeleteMapResponse, error) - SetValue(context.Context, *MsgSetValue) (*MsgSetValueResponse, error) -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") -} -func (*UnimplementedMsgServer) CreateMap(ctx context.Context, req *MsgCreateMap) (*MsgCreateMapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateMap not implemented") -} -func (*UnimplementedMsgServer) UpdateMap(ctx context.Context, req *MsgUpdateMap) (*MsgUpdateMapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateMap not implemented") -} -func (*UnimplementedMsgServer) DeleteMap(ctx context.Context, req *MsgDeleteMap) (*MsgDeleteMapResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteMap not implemented") -} -func (*UnimplementedMsgServer) SetValue(ctx context.Context, req *MsgSetValue) (*MsgSetValueResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetValue not implemented") -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/maps.Msg/UpdateParams", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_CreateMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateMap) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).CreateMap(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/maps.Msg/CreateMap", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateMap(ctx, req.(*MsgCreateMap)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateMap) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateMap(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/maps.Msg/UpdateMap", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateMap(ctx, req.(*MsgUpdateMap)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_DeleteMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDeleteMap) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).DeleteMap(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/maps.Msg/DeleteMap", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).DeleteMap(ctx, req.(*MsgDeleteMap)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_SetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSetValue) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).SetValue(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/maps.Msg/SetValue", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SetValue(ctx, req.(*MsgSetValue)) - } - return interceptor(ctx, in, info, handler) -} - -var Msg_serviceDesc = _Msg_serviceDesc -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "maps.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateParams", - Handler: _Msg_UpdateParams_Handler, - }, - { - MethodName: "CreateMap", - Handler: _Msg_CreateMap_Handler, - }, - { - MethodName: "UpdateMap", - Handler: _Msg_UpdateMap_Handler, - }, - { - MethodName: "DeleteMap", - Handler: _Msg_DeleteMap_Handler, - }, - { - MethodName: "SetValue", - Handler: _Msg_SetValue_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "maps/tx.proto", -} - -func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MapCustomMsgType) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MapCustomMsgType) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MapCustomMsgType) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DeleteMapMsg != nil { - { - size, err := m.DeleteMapMsg.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.UpdateMapMsg != nil { - { - size, err := m.UpdateMapMsg.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.CreateMapMsg != nil { - { - size, err := m.CreateMapMsg.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.SetValueMsg != nil { - { - size, err := m.SetValueMsg.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ValueStore) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValueStore) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValueStore) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.LastSetBy) > 0 { - i -= len(m.LastSetBy) - copy(dAtA[i:], m.LastSetBy) - i = encodeVarintTx(dAtA, i, uint64(len(m.LastSetBy))) - i-- - dAtA[i] = 0x1a - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintTx(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintTx(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MapUpdateCriteria) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MapUpdateCriteria) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MapUpdateCriteria) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FirstComeFirstServe { - i-- - if m.FirstComeFirstServe { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.CreatorOnly { - i-- - if m.CreatorOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - { - size := m.CollectionId.Size() - i -= size - if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if m.ManagerOnly { - i-- - if m.ManagerOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ValueOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValueOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValueOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ExpectUri { - i-- - if m.ExpectUri { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.ExpectAddress { - i-- - if m.ExpectAddress { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.ExpectBoolean { - i-- - if m.ExpectBoolean { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.ExpectUint { - i-- - if m.ExpectUint { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.PermanentOnceSet { - i-- - if m.PermanentOnceSet { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.NoDuplicates { - i-- - if m.NoDuplicates { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MapPermissions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MapPermissions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MapPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CanDeleteMap) > 0 { - for iNdEx := len(m.CanDeleteMap) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CanDeleteMap[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.CanUpdateManager) > 0 { - for iNdEx := len(m.CanUpdateManager) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CanUpdateManager[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.CanUpdateMetadata) > 0 { - for iNdEx := len(m.CanUpdateMetadata) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.CanUpdateMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Map) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Map) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Map) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Permissions != nil { - { - size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if len(m.DefaultValue) > 0 { - i -= len(m.DefaultValue) - copy(dAtA[i:], m.DefaultValue) - i = encodeVarintTx(dAtA, i, uint64(len(m.DefaultValue))) - i-- - dAtA[i] = 0x3a - } - if m.ValueOptions != nil { - { - size, err := m.ValueOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.UpdateCriteria != nil { - { - size, err := m.UpdateCriteria.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.Manager) > 0 { - i -= len(m.Manager) - copy(dAtA[i:], m.Manager) - i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) - i-- - dAtA[i] = 0x22 - } - { - size := m.InheritManagerFrom.Size() - i -= size - if _, err := m.InheritManagerFrom.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.MapId) > 0 { - i -= len(m.MapId) - copy(dAtA[i:], m.MapId) - i = encodeVarintTx(dAtA, i, uint64(len(m.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgCreateMap) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgCreateMap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Permissions != nil { - { - size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if len(m.DefaultValue) > 0 { - i -= len(m.DefaultValue) - copy(dAtA[i:], m.DefaultValue) - i = encodeVarintTx(dAtA, i, uint64(len(m.DefaultValue))) - i-- - dAtA[i] = 0x3a - } - if m.ValueOptions != nil { - { - size, err := m.ValueOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.UpdateCriteria != nil { - { - size, err := m.UpdateCriteria.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.Manager) > 0 { - i -= len(m.Manager) - copy(dAtA[i:], m.Manager) - i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) - i-- - dAtA[i] = 0x22 - } - { - size := m.InheritManagerFrom.Size() - i -= size - if _, err := m.InheritManagerFrom.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.MapId) > 0 { - i -= len(m.MapId) - copy(dAtA[i:], m.MapId) - i = encodeVarintTx(dAtA, i, uint64(len(m.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgCreateMapResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgCreateMapResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgCreateMapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgUpdateMap) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateMap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Permissions != nil { - { - size, err := m.Permissions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.UpdatePermissions { - i-- - if m.UpdatePermissions { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x48 - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.UpdateMetadata { - i-- - if m.UpdateMetadata { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if len(m.Manager) > 0 { - i -= len(m.Manager) - copy(dAtA[i:], m.Manager) - i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) - i-- - dAtA[i] = 0x22 - } - if m.UpdateManager { - i-- - if m.UpdateManager { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.MapId) > 0 { - i -= len(m.MapId) - copy(dAtA[i:], m.MapId) - i = encodeVarintTx(dAtA, i, uint64(len(m.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdateMapResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateMapResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateMapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgDeleteMap) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgDeleteMap) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgDeleteMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MapId) > 0 { - i -= len(m.MapId) - copy(dAtA[i:], m.MapId) - i = encodeVarintTx(dAtA, i, uint64(len(m.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgDeleteMapResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgDeleteMapResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgDeleteMapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *SetOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SetOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SetOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.UseMostRecentCollectionId { - i-- - if m.UseMostRecentCollectionId { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MsgSetValue) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgSetValue) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSetValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Options != nil { - { - size, err := m.Options.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintTx(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x22 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintTx(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x1a - } - if len(m.MapId) > 0 { - i -= len(m.MapId) - copy(dAtA[i:], m.MapId) - i = encodeVarintTx(dAtA, i, uint64(len(m.MapId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Creator) > 0 { - i -= len(m.Creator) - copy(dAtA[i:], m.Creator) - i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgSetValueResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgSetValueResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgSetValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintTx(dAtA []byte, offset int, v uint64) int { - offset -= sovTx(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MsgUpdateParams) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Params.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *MsgUpdateParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MapCustomMsgType) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SetValueMsg != nil { - l = m.SetValueMsg.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.CreateMapMsg != nil { - l = m.CreateMapMsg.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.UpdateMapMsg != nil { - l = m.UpdateMapMsg.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.DeleteMapMsg != nil { - l = m.DeleteMapMsg.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *ValueStore) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.LastSetBy) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MapUpdateCriteria) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ManagerOnly { - n += 2 - } - l = m.CollectionId.Size() - n += 1 + l + sovTx(uint64(l)) - if m.CreatorOnly { - n += 2 - } - if m.FirstComeFirstServe { - n += 2 - } - return n -} - -func (m *ValueOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NoDuplicates { - n += 2 - } - if m.PermanentOnceSet { - n += 2 - } - if m.ExpectUint { - n += 2 - } - if m.ExpectBoolean { - n += 2 - } - if m.ExpectAddress { - n += 2 - } - if m.ExpectUri { - n += 2 - } - return n -} - -func (m *MapPermissions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.CanUpdateMetadata) > 0 { - for _, e := range m.CanUpdateMetadata { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - if len(m.CanUpdateManager) > 0 { - for _, e := range m.CanUpdateManager { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - if len(m.CanDeleteMap) > 0 { - for _, e := range m.CanDeleteMap { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } - return n -} - -func (m *Map) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.MapId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.InheritManagerFrom.Size() - n += 1 + l + sovTx(uint64(l)) - l = len(m.Manager) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.UpdateCriteria != nil { - l = m.UpdateCriteria.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.ValueOptions != nil { - l = m.ValueOptions.Size() - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.DefaultValue) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.Permissions != nil { - l = m.Permissions.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgCreateMap) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.MapId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.InheritManagerFrom.Size() - n += 1 + l + sovTx(uint64(l)) - l = len(m.Manager) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.UpdateCriteria != nil { - l = m.UpdateCriteria.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.ValueOptions != nil { - l = m.ValueOptions.Size() - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.DefaultValue) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.Permissions != nil { - l = m.Permissions.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgCreateMapResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgUpdateMap) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.MapId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.UpdateManager { - n += 2 - } - l = len(m.Manager) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.UpdateMetadata { - n += 2 - } - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovTx(uint64(l)) - } - if m.UpdatePermissions { - n += 2 - } - if m.Permissions != nil { - l = m.Permissions.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUpdateMapResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgDeleteMap) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.MapId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgDeleteMapResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *SetOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UseMostRecentCollectionId { - n += 2 - } - return n -} - -func (m *MsgSetValue) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.MapId) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Value) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - if m.Options != nil { - l = m.Options.Size() - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgSetValueResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovTx(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTx(x uint64) (n int) { - return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MapCustomMsgType) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MapCustomMsgType: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MapCustomMsgType: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetValueMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.SetValueMsg == nil { - m.SetValueMsg = &MsgSetValue{} - } - if err := m.SetValueMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateMapMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreateMapMsg == nil { - m.CreateMapMsg = &MsgCreateMap{} - } - if err := m.CreateMapMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateMapMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UpdateMapMsg == nil { - m.UpdateMapMsg = &MsgUpdateMap{} - } - if err := m.UpdateMapMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteMapMsg", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteMapMsg == nil { - m.DeleteMapMsg = &MsgDeleteMap{} - } - if err := m.DeleteMapMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValueStore) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValueStore: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValueStore: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastSetBy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LastSetBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MapUpdateCriteria) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MapUpdateCriteria: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MapUpdateCriteria: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ManagerOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ManagerOnly = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatorOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.CreatorOnly = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FirstComeFirstServe", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.FirstComeFirstServe = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValueOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValueOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValueOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoDuplicates", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NoDuplicates = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PermanentOnceSet", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PermanentOnceSet = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectUint", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExpectUint = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectBoolean", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExpectBoolean = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectAddress", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExpectAddress = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpectUri", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExpectUri = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MapPermissions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MapPermissions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MapPermissions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CanUpdateMetadata = append(m.CanUpdateMetadata, &ActionPermission{}) - if err := m.CanUpdateMetadata[len(m.CanUpdateMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateManager", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CanUpdateManager = append(m.CanUpdateManager, &ActionPermission{}) - if err := m.CanUpdateManager[len(m.CanUpdateManager)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CanDeleteMap", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CanDeleteMap = append(m.CanDeleteMap, &ActionPermission{}) - if err := m.CanDeleteMap[len(m.CanDeleteMap)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Map) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Map: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Map: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InheritManagerFrom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.InheritManagerFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Manager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateCriteria", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UpdateCriteria == nil { - m.UpdateCriteria = &MapUpdateCriteria{} - } - if err := m.UpdateCriteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ValueOptions == nil { - m.ValueOptions = &ValueOptions{} - } - if err := m.ValueOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DefaultValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Permissions == nil { - m.Permissions = &MapPermissions{} - } - if err := m.Permissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgCreateMap) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgCreateMap: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateMap: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InheritManagerFrom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.InheritManagerFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Manager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateCriteria", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.UpdateCriteria == nil { - m.UpdateCriteria = &MapUpdateCriteria{} - } - if err := m.UpdateCriteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValueOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ValueOptions == nil { - m.ValueOptions = &ValueOptions{} - } - if err := m.ValueOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DefaultValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Permissions == nil { - m.Permissions = &MapPermissions{} - } - if err := m.Permissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgCreateMapResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgCreateMapResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateMapResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateMap) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateMap: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateMap: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateManager", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.UpdateManager = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Manager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateMetadata", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.UpdateMetadata = bool(v != 0) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatePermissions", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.UpdatePermissions = bool(v != 0) - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Permissions == nil { - m.Permissions = &MapPermissions{} - } - if err := m.Permissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateMapResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateMapResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateMapResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgDeleteMap) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgDeleteMap: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDeleteMap: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgDeleteMapResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgDeleteMapResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgDeleteMapResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetOptions) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SetOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UseMostRecentCollectionId", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.UseMostRecentCollectionId = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgSetValue) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgSetValue: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSetValue: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Creator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MapId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MapId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Options == nil { - m.Options = &SetOptions{} - } - if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgSetValueResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgSetValueResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSetValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTx(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTx - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTx - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTx - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthTx - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTx - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTx - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/maps/types/types.go b/x/maps/types/types.go deleted file mode 100644 index ab1254f4..00000000 --- a/x/maps/types/types.go +++ /dev/null @@ -1 +0,0 @@ -package types diff --git a/x/maps/types/validate_basic_permissions.go b/x/maps/types/validate_basic_permissions.go deleted file mode 100644 index 365115ad..00000000 --- a/x/maps/types/validate_basic_permissions.go +++ /dev/null @@ -1,26 +0,0 @@ -package types - -import ( - tokentypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" -) - -// Validate permissions are validly formed. Disallows leading zeroes. -func ValidatePermissions(permissions *MapPermissions, canChangeValues bool) error { - if permissions == nil { - return ErrPermissionsIsNil - } - - if err := tokentypes.ValidateActionPermission(CastActionPermissions(permissions.CanUpdateManager), canChangeValues); err != nil { - return err - } - - if err := tokentypes.ValidateActionPermission(CastActionPermissions(permissions.CanUpdateMetadata), canChangeValues); err != nil { - return err - } - - if err := tokentypes.ValidateActionPermission(CastActionPermissions(permissions.CanDeleteMap), canChangeValues); err != nil { - return err - } - - return nil -} diff --git a/x/tokenization/client/cli/help_links.go b/x/tokenization/client/cli/help_links.go index b9ebe35c..0c2b6954 100644 --- a/x/tokenization/client/cli/help_links.go +++ b/x/tokenization/client/cli/help_links.go @@ -95,7 +95,7 @@ func schemaHelpFooter(protoFile string) string { Schema & Documentation: Proto definition: %s/%s Full OpenAPI spec: %s/docs/static/openapi.yml - SDK CLI docs: bitbadgeschaind sdk docs messages (if SDK CLI is installed)`, + SDK CLI docs: bitbadgeschaind cli sdk docs messages (if SDK CLI is installed)`, protoBaseURL, protoFile, repoBaseURL) } diff --git a/x/tokenization/keeper/approval_comparison.go b/x/tokenization/keeper/approval_comparison.go index 25ff16bd..c04010b8 100644 --- a/x/tokenization/keeper/approval_comparison.go +++ b/x/tokenization/keeper/approval_comparison.go @@ -1,6 +1,8 @@ package keeper import ( + "bytes" + "github.com/bitbadges/bitbadgeschain/x/tokenization/types" "github.com/gogo/protobuf/proto" ) @@ -18,7 +20,11 @@ func compareUintRanges(a, b []*types.UintRange) bool { return true } -// compareApprovalCriteria compares two protobuf messages for equality using marshaling +// compareApprovalCriteria compares two protobuf messages for equality using +// canonical binary marshaling. proto.MarshalTextString is not deterministic +// across gogo/protobuf versions (whitespace, field ordering), so binary Marshal +// is used instead — it is the same encoding used for consensus state and is +// stable across nodes. func compareApprovalCriteria(a, b proto.Message) bool { if (a == nil) != (b == nil) { return false @@ -26,10 +32,12 @@ func compareApprovalCriteria(a, b proto.Message) bool { if a == nil && b == nil { return true } - // Use protobuf text marshaling for comparison (more reliable than string comparison) - aBytes := proto.MarshalTextString(a) - bBytes := proto.MarshalTextString(b) - return aBytes == bBytes + aBytes, errA := proto.Marshal(a) + bBytes, errB := proto.Marshal(b) + if errA != nil || errB != nil { + return false + } + return bytes.Equal(aBytes, bBytes) } // collectionApprovalEqual compares two CollectionApproval objects for equality, diff --git a/x/tokenization/keeper/collection_stats.go b/x/tokenization/keeper/collection_stats.go index 78ff100f..8d5daa32 100644 --- a/x/tokenization/keeper/collection_stats.go +++ b/x/tokenization/keeper/collection_stats.go @@ -77,8 +77,10 @@ func (k Keeper) UpdateCirculatingSupplyOnBacking( var err error if isBacking { - // Backing removes from circulation - stats.Balances, err = types.SubtractBalancesWithZeroForUnderflows(ctx, balances, stats.Balances) + // Backing removes from circulation. Use non-clamping Subtract so any drift + // between stats.Balances and the real balance store surfaces as a loud + // error instead of silently sticking at zero. + stats.Balances, err = types.SubtractBalances(ctx, balances, stats.Balances) if err != nil { return err } diff --git a/x/tokenization/keeper/collection_stats_test.go b/x/tokenization/keeper/collection_stats_test.go index 51d552f1..73adb422 100644 --- a/x/tokenization/keeper/collection_stats_test.go +++ b/x/tokenization/keeper/collection_stats_test.go @@ -211,7 +211,10 @@ func TestCollectionStats_UpdateCirculatingSupplyOnBacking(t *testing.T) { require.True(t, got.Balances[0].Amount.Equal(sdkmath.NewUint(90))) } -func TestCollectionStats_UpdateCirculatingSupplyOnBacking_UnderflowClampsToZero(t *testing.T) { +func TestCollectionStats_UpdateCirculatingSupplyOnBacking_UnderflowErrors(t *testing.T) { + // v30: the backing path now uses non-clamping SubtractBalances. Drift between + // stats.Balances and a backing request must surface as a loud error instead + // of silently sticking at zero, so any upstream accounting bug is caught here. suite := new(TestSuite) suite.SetT(t) suite.SetupTest() @@ -219,7 +222,6 @@ func TestCollectionStats_UpdateCirculatingSupplyOnBacking_UnderflowClampsToZero( k := suite.app.TokenizationKeeper collectionId := sdkmath.NewUint(1) - // Set initial supply err := k.SetCollectionStatsInStore(ctx, collectionId, &types.CollectionStats{ HolderCount: sdkmath.NewUint(1), Balances: []*types.Balance{{ @@ -230,22 +232,20 @@ func TestCollectionStats_UpdateCirculatingSupplyOnBacking_UnderflowClampsToZero( }) require.NoError(t, err) - // Backing more than supply clamps to zero (uses SubtractBalancesWithZeroForUnderflows) + // Attempt to back more than the recorded circulating supply. backingBalances := []*types.Balance{{ - Amount: sdkmath.NewUint(200), // More than 100 + Amount: sdkmath.NewUint(200), // more than 100 TokenIds: []*types.UintRange{{Start: sdkmath.NewUint(1), End: sdkmath.NewUint(1)}}, OwnershipTimes: GetFullUintRanges(), }} err = k.UpdateCirculatingSupplyOnBacking(ctx, collectionId, backingBalances, true) - require.NoError(t, err) - got, _ := k.GetCollectionStatsFromStore(ctx, collectionId) + require.Error(t, err, "backing more than circulating supply must return an error") - // Should clamp to zero - totalSupply := sdkmath.ZeroUint() - for _, bal := range got.Balances { - totalSupply = totalSupply.Add(bal.Amount) - } - require.True(t, totalSupply.IsZero() || got.Balances[0].Amount.IsZero()) + // Stats must not have been mutated by the failed operation. + got, _ := k.GetCollectionStatsFromStore(ctx, collectionId) + require.Len(t, got.Balances, 1) + require.True(t, got.Balances[0].Amount.Equal(sdkmath.NewUint(100)), + "circulating supply must remain unchanged after a failed backing, got %s", got.Balances[0].Amount.String()) } func TestCollectionStats_UpdateHolderCount_NewHolder(t *testing.T) { diff --git a/x/tokenization/keeper/migrations.go b/x/tokenization/keeper/migrations.go index 2ecc577e..cce01aa2 100644 --- a/x/tokenization/keeper/migrations.go +++ b/x/tokenization/keeper/migrations.go @@ -2,18 +2,182 @@ package keeper import ( "context" + "encoding/binary" "encoding/json" + errorsmod "cosmossdk.io/errors" sdkmath "cosmossdk.io/math" "cosmossdk.io/store/prefix" storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" newtypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types" - oldtypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v28" + oldtypes "github.com/bitbadges/bitbadgeschain/x/tokenization/types/v29" ) +// The x/badges module was renamed to x/tokenization in v23, but the migration that +// re-derives collection addresses with the new module name (and moves the corresponding +// bank balances) was never wired into an upgrade handler. As a result, every existing +// collection on mainnet still has a mintEscrowAddress / cosmosCoinBackedPath.address / +// cosmosCoinWrapperPath.address derived from module="badges", while today's msg handlers +// and every downstream consumer (SDK, indexer, frontend) derives with module="tokenization". +// v30 is the catch-up migration: for each collection we compute the new tokenization-derived +// address, move all bank balances from the old address, rewrite the stored address on the +// collection, and flip the reserved-protocol-address flag. Idempotent — if old == new +// (which happens for any collection created after the migration ships), we skip. +const ( + oldAddressModuleName = "badges" +) + +// generateMintEscrowAddressWithModuleName reproduces UniversalUpdateCollection's address +// derivation with a pluggable module name. Used to compute both the legacy (badges) and +// new (tokenization) addresses for a collection so we can migrate between them. +func generateMintEscrowAddressWithModuleName(moduleName string, collectionId sdkmath.Uint) (sdk.AccAddress, error) { + derivationKey := make([]byte, DerivationKeyLength) + binary.BigEndian.PutUint64(derivationKey, collectionId.Uint64()) + ac, err := authtypes.NewModuleCredential(moduleName, AccountGenerationPrefix, derivationKey) + if err != nil { + return nil, err + } + return sdk.AccAddress(ac.Address()), nil +} + +// generatePathAddressWithModuleName mirrors generatePathAddress with a pluggable module name. +func generatePathAddressWithModuleName(moduleName string, pathString string, prefix []byte) (sdk.AccAddress, error) { + fullPathBytes := []byte(pathString) + ac, err := authtypes.NewModuleCredential(moduleName, prefix, fullPathBytes) + if err != nil { + return nil, errorsmod.Wrap(err, "failed to generate module credential") + } + return sdk.AccAddress(ac.Address()), nil +} + +// migrateBankBalancesBetweenAddresses moves every coin held by oldAddress to newAddress. +// No-op when the balance is zero (common for fresh wrapper/backed paths that never held funds). +func (k Keeper) migrateBankBalancesBetweenAddresses(ctx sdk.Context, oldAddress, newAddress string) error { + if oldAddress == newAddress { + return nil + } + oldAddr, err := sdk.AccAddressFromBech32(oldAddress) + if err != nil { + return errorsmod.Wrapf(err, "invalid old address %s", oldAddress) + } + newAddr, err := sdk.AccAddressFromBech32(newAddress) + if err != nil { + return errorsmod.Wrapf(err, "invalid new address %s", newAddress) + } + + balances := k.bankKeeper.GetAllBalances(ctx, oldAddr) + if balances.IsZero() { + return nil + } + if err := k.bankKeeper.SendCoins(ctx, oldAddr, newAddr, balances); err != nil { + return errorsmod.Wrapf(err, "failed to migrate balances from %s to %s", oldAddress, newAddress) + } + return nil +} + +// migrateReservedProtocolAddressMapping flips the reserved-protocol-address flag from the +// old address to the new one. The old flag is cleared so future lookups don't accidentally +// treat a stale module address as reserved. +func (k Keeper) migrateReservedProtocolAddressMapping(ctx sdk.Context, oldAddress, newAddress string) error { + if oldAddress == newAddress { + return nil + } + if err := k.SetReservedProtocolAddressInStore(ctx, oldAddress, false); err != nil { + return errorsmod.Wrapf(err, "failed to clear reserved flag on old address %s", oldAddress) + } + if err := k.SetReservedProtocolAddressInStore(ctx, newAddress, true); err != nil { + return errorsmod.Wrapf(err, "failed to set reserved flag on new address %s", newAddress) + } + return nil +} + +// migrateCollectionAddressesFromBadgesToTokenization updates a single collection's derived +// addresses in-place (mintEscrowAddress + cosmosCoinBackedPath.address + wrapper path +// addresses), moving bank balances from each old address to each new one. Mutates the +// passed-in collection pointer so the caller can persist it. +func (k Keeper) migrateCollectionAddressesFromBadgesToTokenization(ctx sdk.Context, collection *newtypes.TokenCollection) error { + newModuleName := newtypes.ModuleName // "tokenization" + + // 1. mintEscrowAddress + oldMint, err := generateMintEscrowAddressWithModuleName(oldAddressModuleName, collection.CollectionId) + if err != nil { + return errorsmod.Wrapf(err, "mint old derivation for collection %s", collection.CollectionId) + } + newMint, err := generateMintEscrowAddressWithModuleName(newModuleName, collection.CollectionId) + if err != nil { + return errorsmod.Wrapf(err, "mint new derivation for collection %s", collection.CollectionId) + } + oldMintStr, newMintStr := oldMint.String(), newMint.String() + if oldMintStr != newMintStr { + if err := k.migrateBankBalancesBetweenAddresses(ctx, oldMintStr, newMintStr); err != nil { + return errorsmod.Wrapf(err, "mint bank migration for collection %s", collection.CollectionId) + } + if err := k.migrateReservedProtocolAddressMapping(ctx, oldMintStr, newMintStr); err != nil { + return errorsmod.Wrapf(err, "mint reserved-flag migration for collection %s", collection.CollectionId) + } + collection.MintEscrowAddress = newMintStr + } + + // 2. cosmosCoinBackedPath.address (if present) + if collection.Invariants != nil && collection.Invariants.CosmosCoinBackedPath != nil { + backed := collection.Invariants.CosmosCoinBackedPath + if backed.Conversion != nil && backed.Conversion.SideA != nil && backed.Conversion.SideA.Denom != "" { + denom := backed.Conversion.SideA.Denom + oldAddr, err := generatePathAddressWithModuleName(oldAddressModuleName, denom, BackedPathGenerationPrefix) + if err != nil { + return errorsmod.Wrapf(err, "backed old derivation for denom %s", denom) + } + newAddr, err := generatePathAddressWithModuleName(newModuleName, denom, BackedPathGenerationPrefix) + if err != nil { + return errorsmod.Wrapf(err, "backed new derivation for denom %s", denom) + } + oldStr, newStr := oldAddr.String(), newAddr.String() + if oldStr != newStr { + if err := k.migrateBankBalancesBetweenAddresses(ctx, oldStr, newStr); err != nil { + return errorsmod.Wrapf(err, "backed bank migration for denom %s", denom) + } + if err := k.migrateReservedProtocolAddressMapping(ctx, oldStr, newStr); err != nil { + return errorsmod.Wrapf(err, "backed reserved-flag migration for denom %s", denom) + } + backed.Address = newStr + } + } + } + + // 3. cosmosCoinWrapperPaths[].address + for i := range collection.CosmosCoinWrapperPaths { + path := collection.CosmosCoinWrapperPaths[i] + if path == nil || path.Denom == "" { + continue + } + oldAddr, err := generatePathAddressWithModuleName(oldAddressModuleName, path.Denom, WrapperPathGenerationPrefix) + if err != nil { + return errorsmod.Wrapf(err, "wrapper old derivation for denom %s", path.Denom) + } + newAddr, err := generatePathAddressWithModuleName(newModuleName, path.Denom, WrapperPathGenerationPrefix) + if err != nil { + return errorsmod.Wrapf(err, "wrapper new derivation for denom %s", path.Denom) + } + oldStr, newStr := oldAddr.String(), newAddr.String() + if oldStr == newStr { + continue + } + if err := k.migrateBankBalancesBetweenAddresses(ctx, oldStr, newStr); err != nil { + return errorsmod.Wrapf(err, "wrapper bank migration for denom %s", path.Denom) + } + if err := k.migrateReservedProtocolAddressMapping(ctx, oldStr, newStr); err != nil { + return errorsmod.Wrapf(err, "wrapper reserved-flag migration for denom %s", path.Denom) + } + path.Address = newStr + } + + return nil +} + // MigrateTokenizationKeeper migrates the tokenization keeper from v28 to v29. // // v29 changes: @@ -57,7 +221,6 @@ func migrateIncomingApprovalCriteria(approvalCriteria *newtypes.IncomingApproval if approvalCriteria == nil { return } - migrateVotingChallenges(approvalCriteria.VotingChallenges) } // migrateOutgoingApprovalCriteria ensures new v29 fields have explicit defaults after JSON migration. @@ -65,7 +228,6 @@ func migrateOutgoingApprovalCriteria(approvalCriteria *newtypes.OutgoingApproval if approvalCriteria == nil { return } - migrateVotingChallenges(approvalCriteria.VotingChallenges) } // migrateApprovalCriteria ensures new v29 fields have explicit defaults after JSON migration. @@ -74,7 +236,6 @@ func migrateApprovalCriteria(approvalCriteria *newtypes.ApprovalCriteria) { if approvalCriteria == nil { return } - migrateVotingChallenges(approvalCriteria.VotingChallenges) // Migrate AltTimeChecks: new fields default to empty slices via JSON (no explicit action needed) @@ -85,54 +246,6 @@ func migrateApprovalCriteria(approvalCriteria *newtypes.ApprovalCriteria) { // However, the v27 type still has it — we handle this in MigrateCollections directly. } -// migrateVotingChallenges ensures new v29 voting challenge fields have explicit defaults. -// resetAfterExecution defaults to false, delayAfterQuorum defaults to zero Uint. -func migrateVotingChallenges(challenges []*newtypes.VotingChallenge) { - for _, challenge := range challenges { - if challenge == nil { - continue - } - // resetAfterExecution defaults to false (Go zero value, no action needed) - if challenge.DelayAfterQuorum.IsNil() { - challenge.DelayAfterQuorum = sdkmath.NewUint(0) - } - } -} - -// migrateCollectionApprovalRoyalties moves UserRoyalties from the old standalone field (field 13) -// into UserApprovalSettings.UserRoyalties on each collection approval. -// The old and new approval slices must be the same length and in the same order (from JSON marshal/unmarshal). -func migrateCollectionApprovalRoyalties(oldApprovals []*oldtypes.CollectionApproval, newApprovals []*newtypes.CollectionApproval) { - for i, oldApproval := range oldApprovals { - if i >= len(newApprovals) { - break - } - if oldApproval.ApprovalCriteria == nil || oldApproval.ApprovalCriteria.UserRoyalties == nil { - continue - } - - oldRoyalties := oldApproval.ApprovalCriteria.UserRoyalties - // Skip if royalties are effectively empty - if oldRoyalties.Percentage.IsNil() || oldRoyalties.Percentage.IsZero() { - continue - } - - newCriteria := newApprovals[i].ApprovalCriteria - if newCriteria == nil { - continue - } - - if newCriteria.UserApprovalSettings == nil { - newCriteria.UserApprovalSettings = &newtypes.UserApprovalSettings{} - } - - newCriteria.UserApprovalSettings.UserRoyalties = &newtypes.UserRoyalties{ - Percentage: oldRoyalties.Percentage, - PayoutAddress: oldRoyalties.PayoutAddress, - } - } -} - func MigrateIncomingApprovals(incomingApprovals []*newtypes.UserIncomingApproval) []*newtypes.UserIncomingApproval { for _, approval := range incomingApprovals { if approval.ApprovalCriteria == nil { @@ -191,15 +304,19 @@ func MigrateCollections(ctx sdk.Context, store storetypes.KVStore, k Keeper) err return err } - // Migrate UserRoyalties from old standalone field into UserApprovalSettings - migrateCollectionApprovalRoyalties(oldCollection.CollectionApprovals, newCollection.CollectionApprovals) - newCollection.CollectionApprovals = MigrateApprovals(newCollection.CollectionApprovals) if newCollection.DefaultBalances != nil { newCollection.DefaultBalances.IncomingApprovals = MigrateIncomingApprovals(newCollection.DefaultBalances.IncomingApprovals) newCollection.DefaultBalances.OutgoingApprovals = MigrateOutgoingApprovals(newCollection.DefaultBalances.OutgoingApprovals) } + // Re-derive module addresses with the current "tokenization" module name and move + // any bank balances off the legacy "badges"-derived addresses. See the comment on + // migrateCollectionAddressesFromBadgesToTokenization for the full history. + if err := k.migrateCollectionAddressesFromBadgesToTokenization(ctx, &newCollection); err != nil { + return err + } + // Save the updated collection (with migrated fields) if err := k.SetCollectionInStore(ctx, &newCollection, true); err != nil { return err diff --git a/x/tokenization/module/module.go b/x/tokenization/module/module.go index 83cf657b..cd821744 100644 --- a/x/tokenization/module/module.go +++ b/x/tokenization/module/module.go @@ -130,7 +130,7 @@ func NewAppModule( } } -const ConsensusVersion = 29 +const ConsensusVersion = 30 // RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries func (am AppModule) RegisterServices(cfg module.Configurator) { diff --git a/x/tokenization/types/v29/address_lists.pb.go b/x/tokenization/types/v29/address_lists.pb.go new file mode 100644 index 00000000..6449344e --- /dev/null +++ b/x/tokenization/types/v29/address_lists.pb.go @@ -0,0 +1,959 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/address_lists.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// An AddressList is a list of addresses that are referenced by an ID. +// AddressLists are used in defining approvals ia a reusbale identifier. +// Note: We also support a reserved ID system by string ID; "Mint", "!Mint" +type AddressList struct { + // Unique identifier for the address list. + ListId string `protobuf:"bytes,1,opt,name=listId,proto3" json:"listId,omitempty"` + // List of addresses included in the list. + Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"` + // Indicates whether the list includes the specified addresses (true) or excludes them (false). + Whitelist bool `protobuf:"varint,3,opt,name=whitelist,proto3" json:"whitelist,omitempty"` + // URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable. + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` + // Custom arbitrary data or additional information related to the address list. + CustomData string `protobuf:"bytes,5,opt,name=customData,proto3" json:"customData,omitempty"` + // The user or entity who created the address list. + CreatedBy string `protobuf:"bytes,6,opt,name=createdBy,proto3" json:"createdBy,omitempty"` +} + +func (m *AddressList) Reset() { *m = AddressList{} } +func (m *AddressList) String() string { return proto.CompactTextString(m) } +func (*AddressList) ProtoMessage() {} +func (*AddressList) Descriptor() ([]byte, []int) { + return fileDescriptor_29fb9e3c2bd3ebfc, []int{0} +} +func (m *AddressList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddressList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AddressList) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddressList.Merge(m, src) +} +func (m *AddressList) XXX_Size() int { + return m.Size() +} +func (m *AddressList) XXX_DiscardUnknown() { + xxx_messageInfo_AddressList.DiscardUnknown(m) +} + +var xxx_messageInfo_AddressList proto.InternalMessageInfo + +func (m *AddressList) GetListId() string { + if m != nil { + return m.ListId + } + return "" +} + +func (m *AddressList) GetAddresses() []string { + if m != nil { + return m.Addresses + } + return nil +} + +func (m *AddressList) GetWhitelist() bool { + if m != nil { + return m.Whitelist + } + return false +} + +func (m *AddressList) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *AddressList) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *AddressList) GetCreatedBy() string { + if m != nil { + return m.CreatedBy + } + return "" +} + +// AddressListInput is used for creating address lists via MsgCreateAddressLists. +// It contains all fields from AddressList except createdBy, which is automatically set from the message creator. +type AddressListInput struct { + // Unique identifier for the address list. + ListId string `protobuf:"bytes,1,opt,name=listId,proto3" json:"listId,omitempty"` + // List of addresses included in the list. + Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"` + // Indicates whether the list includes the specified addresses (true) or excludes them (false). + Whitelist bool `protobuf:"varint,3,opt,name=whitelist,proto3" json:"whitelist,omitempty"` + // URI (Uniform Resource Identifier) associated with the address list to provide metadata, if applicable. + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` + // Custom arbitrary data or additional information related to the address list. + CustomData string `protobuf:"bytes,5,opt,name=customData,proto3" json:"customData,omitempty"` +} + +func (m *AddressListInput) Reset() { *m = AddressListInput{} } +func (m *AddressListInput) String() string { return proto.CompactTextString(m) } +func (*AddressListInput) ProtoMessage() {} +func (*AddressListInput) Descriptor() ([]byte, []int) { + return fileDescriptor_29fb9e3c2bd3ebfc, []int{1} +} +func (m *AddressListInput) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddressListInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddressListInput.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AddressListInput) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddressListInput.Merge(m, src) +} +func (m *AddressListInput) XXX_Size() int { + return m.Size() +} +func (m *AddressListInput) XXX_DiscardUnknown() { + xxx_messageInfo_AddressListInput.DiscardUnknown(m) +} + +var xxx_messageInfo_AddressListInput proto.InternalMessageInfo + +func (m *AddressListInput) GetListId() string { + if m != nil { + return m.ListId + } + return "" +} + +func (m *AddressListInput) GetAddresses() []string { + if m != nil { + return m.Addresses + } + return nil +} + +func (m *AddressListInput) GetWhitelist() bool { + if m != nil { + return m.Whitelist + } + return false +} + +func (m *AddressListInput) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *AddressListInput) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func init() { + proto.RegisterType((*AddressList)(nil), "tokenization.v29.AddressList") + proto.RegisterType((*AddressListInput)(nil), "tokenization.v29.AddressListInput") +} + +func init() { + proto.RegisterFile("tokenization/v29/address_lists.proto", fileDescriptor_29fb9e3c2bd3ebfc) +} + +var fileDescriptor_29fb9e3c2bd3ebfc = []byte{ + // 298 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x51, 0xb1, 0x4a, 0xc4, 0x40, + 0x14, 0xbc, 0xf5, 0x34, 0x98, 0xb5, 0x09, 0x41, 0x64, 0x39, 0x64, 0x0d, 0x87, 0x45, 0xaa, 0x2c, + 0x9c, 0xd5, 0x81, 0x8d, 0x87, 0xcd, 0x81, 0x55, 0x0a, 0x0b, 0x1b, 0xd9, 0x24, 0x4b, 0xb2, 0x78, + 0x97, 0x0d, 0xd9, 0x97, 0xd3, 0xf3, 0x2b, 0x2c, 0xfd, 0x0d, 0xff, 0xc2, 0xf2, 0x4a, 0x4b, 0x49, + 0x7e, 0x44, 0x36, 0x17, 0x48, 0xc4, 0x1f, 0xb0, 0x9b, 0x37, 0x33, 0xcc, 0x1b, 0x18, 0x7c, 0x09, + 0xea, 0x49, 0xe4, 0xf2, 0x95, 0x83, 0x54, 0x39, 0xdb, 0xcc, 0xe6, 0x8c, 0x27, 0x49, 0x29, 0xb4, + 0x7e, 0x5c, 0x49, 0x0d, 0x3a, 0x28, 0x4a, 0x05, 0xca, 0x75, 0x86, 0xae, 0x60, 0x33, 0x9b, 0x4f, + 0x4e, 0x53, 0x95, 0xaa, 0x56, 0x64, 0x06, 0xed, 0x7d, 0x93, 0x8b, 0x3f, 0x69, 0x11, 0x5f, 0xf1, + 0x3c, 0x16, 0x5d, 0xd0, 0xf4, 0x03, 0xe1, 0x93, 0x9b, 0xfd, 0x83, 0x3b, 0xa9, 0xc1, 0x3d, 0xc3, + 0x96, 0xf9, 0xb3, 0x4c, 0x08, 0xf2, 0x90, 0x6f, 0x87, 0xdd, 0xe5, 0x9e, 0x63, 0xbb, 0xeb, 0x21, + 0x34, 0x39, 0xf0, 0xc6, 0xbe, 0x1d, 0xf6, 0x84, 0x51, 0x9f, 0x33, 0x09, 0xc2, 0x98, 0xc9, 0xd8, + 0x43, 0xfe, 0x71, 0xd8, 0x13, 0xae, 0x83, 0xc7, 0x55, 0x29, 0xc9, 0x61, 0x1b, 0x68, 0xa0, 0x4b, + 0x31, 0x8e, 0x2b, 0x0d, 0x6a, 0x7d, 0xcb, 0x81, 0x93, 0xa3, 0x56, 0x18, 0x30, 0x26, 0x2f, 0x2e, + 0x05, 0x07, 0x91, 0x2c, 0xb6, 0xc4, 0x6a, 0xe5, 0x9e, 0x98, 0xbe, 0x23, 0xec, 0x0c, 0x3a, 0x2f, + 0xf3, 0xa2, 0xfa, 0x27, 0xc5, 0x17, 0xf7, 0x9f, 0x35, 0x45, 0xbb, 0x9a, 0xa2, 0xef, 0x9a, 0xa2, + 0xb7, 0x86, 0x8e, 0x76, 0x0d, 0x1d, 0x7d, 0x35, 0x74, 0xf4, 0x70, 0x9d, 0x4a, 0xc8, 0xaa, 0x28, + 0x88, 0xd5, 0x9a, 0x45, 0x12, 0x22, 0x9e, 0xa4, 0x42, 0xf7, 0x28, 0xce, 0xb8, 0xcc, 0xd9, 0x0b, + 0xfb, 0xb5, 0x17, 0x6c, 0x0b, 0xa1, 0xcd, 0x6a, 0x91, 0xd5, 0xae, 0x75, 0xf5, 0x13, 0x00, 0x00, + 0xff, 0xff, 0xc0, 0x75, 0xbc, 0x9b, 0x1e, 0x02, 0x00, 0x00, +} + +func (m *AddressList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddressList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CreatedBy) > 0 { + i -= len(m.CreatedBy) + copy(dAtA[i:], m.CreatedBy) + i = encodeVarintAddressLists(dAtA, i, uint64(len(m.CreatedBy))) + i-- + dAtA[i] = 0x32 + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintAddressLists(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x2a + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintAddressLists(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x22 + } + if m.Whitelist { + i-- + if m.Whitelist { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Addresses) > 0 { + for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Addresses[iNdEx]) + copy(dAtA[i:], m.Addresses[iNdEx]) + i = encodeVarintAddressLists(dAtA, i, uint64(len(m.Addresses[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ListId) > 0 { + i -= len(m.ListId) + copy(dAtA[i:], m.ListId) + i = encodeVarintAddressLists(dAtA, i, uint64(len(m.ListId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AddressListInput) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddressListInput) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressListInput) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintAddressLists(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x2a + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintAddressLists(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x22 + } + if m.Whitelist { + i-- + if m.Whitelist { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Addresses) > 0 { + for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Addresses[iNdEx]) + copy(dAtA[i:], m.Addresses[iNdEx]) + i = encodeVarintAddressLists(dAtA, i, uint64(len(m.Addresses[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ListId) > 0 { + i -= len(m.ListId) + copy(dAtA[i:], m.ListId) + i = encodeVarintAddressLists(dAtA, i, uint64(len(m.ListId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintAddressLists(dAtA []byte, offset int, v uint64) int { + offset -= sovAddressLists(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AddressList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ListId) + if l > 0 { + n += 1 + l + sovAddressLists(uint64(l)) + } + if len(m.Addresses) > 0 { + for _, s := range m.Addresses { + l = len(s) + n += 1 + l + sovAddressLists(uint64(l)) + } + } + if m.Whitelist { + n += 2 + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovAddressLists(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovAddressLists(uint64(l)) + } + l = len(m.CreatedBy) + if l > 0 { + n += 1 + l + sovAddressLists(uint64(l)) + } + return n +} + +func (m *AddressListInput) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ListId) + if l > 0 { + n += 1 + l + sovAddressLists(uint64(l)) + } + if len(m.Addresses) > 0 { + for _, s := range m.Addresses { + l = len(s) + n += 1 + l + sovAddressLists(uint64(l)) + } + } + if m.Whitelist { + n += 2 + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovAddressLists(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovAddressLists(uint64(l)) + } + return n +} + +func sovAddressLists(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAddressLists(x uint64) (n int) { + return sovAddressLists(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *AddressList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddressList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddressList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAddressLists + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressLists + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAddressLists + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressLists + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Whitelist", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Whitelist = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAddressLists + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressLists + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAddressLists + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressLists + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAddressLists + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressLists + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAddressLists(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAddressLists + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddressListInput) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddressListInput: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddressListInput: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAddressLists + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressLists + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAddressLists + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressLists + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Whitelist", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Whitelist = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAddressLists + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressLists + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAddressLists + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthAddressLists + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAddressLists + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAddressLists(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthAddressLists + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAddressLists(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAddressLists + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAddressLists + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAddressLists + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthAddressLists + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupAddressLists + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthAddressLists + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthAddressLists = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAddressLists = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupAddressLists = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/approval_conditions.pb.go b/x/tokenization/types/v29/approval_conditions.pb.go new file mode 100644 index 00000000..bd4bdac3 --- /dev/null +++ b/x/tokenization/types/v29/approval_conditions.pb.go @@ -0,0 +1,2558 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/approval_conditions.proto + +package v29 + +import ( + fmt "fmt" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type CoinTransfer struct { + // The address of the recipient of the transfer. + To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` + // The sdk.Coins to be transferred. + Coins []*types.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins,omitempty"` + // By default, the from address is the initiator of the transaction. + // If this is set to true, we will override the from address with the approver address. + // Note: This is not applicable for collection approvals (since approverAddress == ''). + OverrideFromWithApproverAddress bool `protobuf:"varint,3,opt,name=overrideFromWithApproverAddress,proto3" json:"overrideFromWithApproverAddress,omitempty"` + // By default, the to address is what is specified in the coin transfer. + // If this is set to true, we will override the to address with the initiator of the transaction. + OverrideToWithInitiator bool `protobuf:"varint,4,opt,name=overrideToWithInitiator,proto3" json:"overrideToWithInitiator,omitempty"` +} + +func (m *CoinTransfer) Reset() { *m = CoinTransfer{} } +func (m *CoinTransfer) String() string { return proto.CompactTextString(m) } +func (*CoinTransfer) ProtoMessage() {} +func (*CoinTransfer) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1b78acd2cabdbe, []int{0} +} +func (m *CoinTransfer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CoinTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CoinTransfer.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CoinTransfer) XXX_Merge(src proto.Message) { + xxx_messageInfo_CoinTransfer.Merge(m, src) +} +func (m *CoinTransfer) XXX_Size() int { + return m.Size() +} +func (m *CoinTransfer) XXX_DiscardUnknown() { + xxx_messageInfo_CoinTransfer.DiscardUnknown(m) +} + +var xxx_messageInfo_CoinTransfer proto.InternalMessageInfo + +func (m *CoinTransfer) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *CoinTransfer) GetCoins() []*types.Coin { + if m != nil { + return m.Coins + } + return nil +} + +func (m *CoinTransfer) GetOverrideFromWithApproverAddress() bool { + if m != nil { + return m.OverrideFromWithApproverAddress + } + return false +} + +func (m *CoinTransfer) GetOverrideToWithInitiator() bool { + if m != nil { + return m.OverrideToWithInitiator + } + return false +} + +// MustOwnTokens represents a condition where a user must own specific tokens +// to be approved to transfer. +// +// - collectionId: The ID of the collection for the tokens that must be owned +// - amountRange: The range of amounts the user must own (min to max) +// - ownershipTimes: The time ranges during which the user must own the tokens. +// - tokenIds: The token IDs the user must own. +// - overrideWithCurrentTime: If true, auto override ownershipTimes with the current time. +// - mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for >= 1 millisecond is sufficient. +type MustOwnTokens struct { + // The ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // The range of amounts the user must own (min to max). + AmountRange *UintRange `protobuf:"bytes,2,opt,name=amountRange,proto3" json:"amountRange,omitempty"` + // The time ranges during which the user must own the tokens. + OwnershipTimes []*UintRange `protobuf:"bytes,3,rep,name=ownershipTimes,proto3" json:"ownershipTimes,omitempty"` + // The token IDs the user must own. + TokenIds []*UintRange `protobuf:"bytes,4,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` + // If true, override ownershipTimes with the current time. + OverrideWithCurrentTime bool `protobuf:"varint,5,opt,name=overrideWithCurrentTime,proto3" json:"overrideWithCurrentTime,omitempty"` + // If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token. + MustSatisfyForAllAssets bool `protobuf:"varint,6,opt,name=mustSatisfyForAllAssets,proto3" json:"mustSatisfyForAllAssets,omitempty"` + // The party to check ownership for. Options are "initiator", "sender", "recipient", or any valid bb1 address. + // If a valid bb1 address is provided, ownership will be checked for that specific address. + // This enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner). + // Defaults to "initiator" if empty or if the value is not a recognized option or valid bb1 address. + OwnershipCheckParty string `protobuf:"bytes,7,opt,name=ownershipCheckParty,proto3" json:"ownershipCheckParty,omitempty"` +} + +func (m *MustOwnTokens) Reset() { *m = MustOwnTokens{} } +func (m *MustOwnTokens) String() string { return proto.CompactTextString(m) } +func (*MustOwnTokens) ProtoMessage() {} +func (*MustOwnTokens) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1b78acd2cabdbe, []int{1} +} +func (m *MustOwnTokens) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MustOwnTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MustOwnTokens.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MustOwnTokens) XXX_Merge(src proto.Message) { + xxx_messageInfo_MustOwnTokens.Merge(m, src) +} +func (m *MustOwnTokens) XXX_Size() int { + return m.Size() +} +func (m *MustOwnTokens) XXX_DiscardUnknown() { + xxx_messageInfo_MustOwnTokens.DiscardUnknown(m) +} + +var xxx_messageInfo_MustOwnTokens proto.InternalMessageInfo + +func (m *MustOwnTokens) GetAmountRange() *UintRange { + if m != nil { + return m.AmountRange + } + return nil +} + +func (m *MustOwnTokens) GetOwnershipTimes() []*UintRange { + if m != nil { + return m.OwnershipTimes + } + return nil +} + +func (m *MustOwnTokens) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +func (m *MustOwnTokens) GetOverrideWithCurrentTime() bool { + if m != nil { + return m.OverrideWithCurrentTime + } + return false +} + +func (m *MustOwnTokens) GetMustSatisfyForAllAssets() bool { + if m != nil { + return m.MustSatisfyForAllAssets + } + return false +} + +func (m *MustOwnTokens) GetOwnershipCheckParty() string { + if m != nil { + return m.OwnershipCheckParty + } + return "" +} + +// DynamicStoreChallenge defines a challenge that requires the initiator to pass a dynamic store check. +type DynamicStoreChallenge struct { + // The ID of the dynamic store to check. + StoreId Uint `protobuf:"bytes,1,opt,name=storeId,proto3,customtype=Uint" json:"storeId"` + // The party to check ownership for. Options are "initiator", "sender", "recipient", or any valid bb1 address. + // If a valid bb1 address is provided, ownership will be checked for that specific address. + // This enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner). + // Defaults to "initiator" if empty or if the value is not a recognized option or valid bb1 address. + OwnershipCheckParty string `protobuf:"bytes,2,opt,name=ownershipCheckParty,proto3" json:"ownershipCheckParty,omitempty"` +} + +func (m *DynamicStoreChallenge) Reset() { *m = DynamicStoreChallenge{} } +func (m *DynamicStoreChallenge) String() string { return proto.CompactTextString(m) } +func (*DynamicStoreChallenge) ProtoMessage() {} +func (*DynamicStoreChallenge) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1b78acd2cabdbe, []int{2} +} +func (m *DynamicStoreChallenge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DynamicStoreChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DynamicStoreChallenge.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DynamicStoreChallenge) XXX_Merge(src proto.Message) { + xxx_messageInfo_DynamicStoreChallenge.Merge(m, src) +} +func (m *DynamicStoreChallenge) XXX_Size() int { + return m.Size() +} +func (m *DynamicStoreChallenge) XXX_DiscardUnknown() { + xxx_messageInfo_DynamicStoreChallenge.DiscardUnknown(m) +} + +var xxx_messageInfo_DynamicStoreChallenge proto.InternalMessageInfo + +func (m *DynamicStoreChallenge) GetOwnershipCheckParty() string { + if m != nil { + return m.OwnershipCheckParty + } + return "" +} + +// AddressChecks defines checks for address types (EVM contract, liquidity pool, etc.) +type AddressChecks struct { + // Require the address to be an EVM contract (has code). + MustBeEvmContract bool `protobuf:"varint,1,opt,name=mustBeEvmContract,proto3" json:"mustBeEvmContract,omitempty"` + // Require the address to not be an EVM contract (no code). + MustNotBeEvmContract bool `protobuf:"varint,2,opt,name=mustNotBeEvmContract,proto3" json:"mustNotBeEvmContract,omitempty"` + // Require the address to be a liquidity pool. + MustBeLiquidityPool bool `protobuf:"varint,3,opt,name=mustBeLiquidityPool,proto3" json:"mustBeLiquidityPool,omitempty"` + // Require the address to not be a liquidity pool. + MustNotBeLiquidityPool bool `protobuf:"varint,4,opt,name=mustNotBeLiquidityPool,proto3" json:"mustNotBeLiquidityPool,omitempty"` +} + +func (m *AddressChecks) Reset() { *m = AddressChecks{} } +func (m *AddressChecks) String() string { return proto.CompactTextString(m) } +func (*AddressChecks) ProtoMessage() {} +func (*AddressChecks) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1b78acd2cabdbe, []int{3} +} +func (m *AddressChecks) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AddressChecks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AddressChecks.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AddressChecks) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddressChecks.Merge(m, src) +} +func (m *AddressChecks) XXX_Size() int { + return m.Size() +} +func (m *AddressChecks) XXX_DiscardUnknown() { + xxx_messageInfo_AddressChecks.DiscardUnknown(m) +} + +var xxx_messageInfo_AddressChecks proto.InternalMessageInfo + +func (m *AddressChecks) GetMustBeEvmContract() bool { + if m != nil { + return m.MustBeEvmContract + } + return false +} + +func (m *AddressChecks) GetMustNotBeEvmContract() bool { + if m != nil { + return m.MustNotBeEvmContract + } + return false +} + +func (m *AddressChecks) GetMustBeLiquidityPool() bool { + if m != nil { + return m.MustBeLiquidityPool + } + return false +} + +func (m *AddressChecks) GetMustNotBeLiquidityPool() bool { + if m != nil { + return m.MustNotBeLiquidityPool + } + return false +} + +// AltTimeChecks defines alternative time-based checks for approval denial. +// If the transfer time falls within any of the specified offline hours or days, the approval is denied. +// Uses UTC timezone for neutral timezone approach. +// offlineHours: ranges of hours (0-23) when transfers should be denied +// offlineDays: ranges of days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied +type AltTimeChecks struct { + // Hours (0-23) when transfers should be denied. + OfflineHours []*UintRange `protobuf:"bytes,1,rep,name=offlineHours,proto3" json:"offlineHours,omitempty"` + // Days (0-6, where 0=Sunday, 1=Monday, ..., 6=Saturday) when transfers should be denied. + OfflineDays []*UintRange `protobuf:"bytes,2,rep,name=offlineDays,proto3" json:"offlineDays,omitempty"` + // Months (1-12, where 1=January, 12=December) when transfers should be denied. + OfflineMonths []*UintRange `protobuf:"bytes,3,rep,name=offlineMonths,proto3" json:"offlineMonths,omitempty"` + // Days of month (1-31) when transfers should be denied. + OfflineDaysOfMonth []*UintRange `protobuf:"bytes,4,rep,name=offlineDaysOfMonth,proto3" json:"offlineDaysOfMonth,omitempty"` + // Weeks of year (1-52) when transfers should be denied. Uses ISO 8601 week numbering. + OfflineWeeksOfYear []*UintRange `protobuf:"bytes,5,rep,name=offlineWeeksOfYear,proto3" json:"offlineWeeksOfYear,omitempty"` + // Timezone offset magnitude in minutes from UTC. Default 0 = UTC. Examples: 300 for EST (UTC-5), 330 for IST (UTC+5:30). + // All time checks are evaluated after applying this offset to the block time. + TimezoneOffsetMinutes Uint `protobuf:"bytes,6,opt,name=timezoneOffsetMinutes,proto3,customtype=Uint" json:"timezoneOffsetMinutes"` + // If true, the timezone offset is subtracted (west of UTC). If false, it is added (east of UTC). + // Example: EST (UTC-5) = timezoneOffsetMinutes: 300, timezoneOffsetNegative: true + TimezoneOffsetNegative bool `protobuf:"varint,7,opt,name=timezoneOffsetNegative,proto3" json:"timezoneOffsetNegative,omitempty"` +} + +func (m *AltTimeChecks) Reset() { *m = AltTimeChecks{} } +func (m *AltTimeChecks) String() string { return proto.CompactTextString(m) } +func (*AltTimeChecks) ProtoMessage() {} +func (*AltTimeChecks) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1b78acd2cabdbe, []int{4} +} +func (m *AltTimeChecks) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AltTimeChecks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AltTimeChecks.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AltTimeChecks) XXX_Merge(src proto.Message) { + xxx_messageInfo_AltTimeChecks.Merge(m, src) +} +func (m *AltTimeChecks) XXX_Size() int { + return m.Size() +} +func (m *AltTimeChecks) XXX_DiscardUnknown() { + xxx_messageInfo_AltTimeChecks.DiscardUnknown(m) +} + +var xxx_messageInfo_AltTimeChecks proto.InternalMessageInfo + +func (m *AltTimeChecks) GetOfflineHours() []*UintRange { + if m != nil { + return m.OfflineHours + } + return nil +} + +func (m *AltTimeChecks) GetOfflineDays() []*UintRange { + if m != nil { + return m.OfflineDays + } + return nil +} + +func (m *AltTimeChecks) GetOfflineMonths() []*UintRange { + if m != nil { + return m.OfflineMonths + } + return nil +} + +func (m *AltTimeChecks) GetOfflineDaysOfMonth() []*UintRange { + if m != nil { + return m.OfflineDaysOfMonth + } + return nil +} + +func (m *AltTimeChecks) GetOfflineWeeksOfYear() []*UintRange { + if m != nil { + return m.OfflineWeeksOfYear + } + return nil +} + +func (m *AltTimeChecks) GetTimezoneOffsetNegative() bool { + if m != nil { + return m.TimezoneOffsetNegative + } + return false +} + +// UserApprovalSettings defines issuer-imposed constraints on user-level approvals. +// Set on collection-level ApprovalCriteria and propagated to user-level approvals +// during greedy transfer matching. Each balance slice carries its own settings. +type UserApprovalSettings struct { + // Restricts which denoms user-level coinTransfers can reference (beyond params-level AllowedDenoms). + // If empty, all params-allowed denoms are permitted. + AllowedDenoms []string `protobuf:"bytes,1,rep,name=allowedDenoms,proto3" json:"allowedDenoms,omitempty"` + // If true, user-level approvals cannot trigger coinTransfers at all for transfers matched by this collection approval. + DisableUserCoinTransfers bool `protobuf:"varint,2,opt,name=disableUserCoinTransfers,proto3" json:"disableUserCoinTransfers,omitempty"` + // User-level royalties to enforce for transfers matched by this collection approval. + UserRoyalties *UserRoyalties `protobuf:"bytes,3,opt,name=userRoyalties,proto3" json:"userRoyalties,omitempty"` +} + +func (m *UserApprovalSettings) Reset() { *m = UserApprovalSettings{} } +func (m *UserApprovalSettings) String() string { return proto.CompactTextString(m) } +func (*UserApprovalSettings) ProtoMessage() {} +func (*UserApprovalSettings) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1b78acd2cabdbe, []int{5} +} +func (m *UserApprovalSettings) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserApprovalSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserApprovalSettings.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserApprovalSettings) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserApprovalSettings.Merge(m, src) +} +func (m *UserApprovalSettings) XXX_Size() int { + return m.Size() +} +func (m *UserApprovalSettings) XXX_DiscardUnknown() { + xxx_messageInfo_UserApprovalSettings.DiscardUnknown(m) +} + +var xxx_messageInfo_UserApprovalSettings proto.InternalMessageInfo + +func (m *UserApprovalSettings) GetAllowedDenoms() []string { + if m != nil { + return m.AllowedDenoms + } + return nil +} + +func (m *UserApprovalSettings) GetDisableUserCoinTransfers() bool { + if m != nil { + return m.DisableUserCoinTransfers + } + return false +} + +func (m *UserApprovalSettings) GetUserRoyalties() *UserRoyalties { + if m != nil { + return m.UserRoyalties + } + return nil +} + +// UserRoyalties defines the royalties for a user. +type UserRoyalties struct { + // Percentage of the transfer amount to apply as royalties. 1 to 10000 represents basis points. + Percentage Uint `protobuf:"bytes,1,opt,name=percentage,proto3,customtype=Uint" json:"percentage"` + // Payout address for the royalties. + PayoutAddress string `protobuf:"bytes,2,opt,name=payoutAddress,proto3" json:"payoutAddress,omitempty"` +} + +func (m *UserRoyalties) Reset() { *m = UserRoyalties{} } +func (m *UserRoyalties) String() string { return proto.CompactTextString(m) } +func (*UserRoyalties) ProtoMessage() {} +func (*UserRoyalties) Descriptor() ([]byte, []int) { + return fileDescriptor_4b1b78acd2cabdbe, []int{6} +} +func (m *UserRoyalties) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserRoyalties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserRoyalties.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserRoyalties) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserRoyalties.Merge(m, src) +} +func (m *UserRoyalties) XXX_Size() int { + return m.Size() +} +func (m *UserRoyalties) XXX_DiscardUnknown() { + xxx_messageInfo_UserRoyalties.DiscardUnknown(m) +} + +var xxx_messageInfo_UserRoyalties proto.InternalMessageInfo + +func (m *UserRoyalties) GetPayoutAddress() string { + if m != nil { + return m.PayoutAddress + } + return "" +} + +func init() { + proto.RegisterType((*CoinTransfer)(nil), "tokenization.v29.CoinTransfer") + proto.RegisterType((*MustOwnTokens)(nil), "tokenization.v29.MustOwnTokens") + proto.RegisterType((*DynamicStoreChallenge)(nil), "tokenization.v29.DynamicStoreChallenge") + proto.RegisterType((*AddressChecks)(nil), "tokenization.v29.AddressChecks") + proto.RegisterType((*AltTimeChecks)(nil), "tokenization.v29.AltTimeChecks") + proto.RegisterType((*UserApprovalSettings)(nil), "tokenization.v29.UserApprovalSettings") + proto.RegisterType((*UserRoyalties)(nil), "tokenization.v29.UserRoyalties") +} + +func init() { + proto.RegisterFile("tokenization/v29/approval_conditions.proto", fileDescriptor_4b1b78acd2cabdbe) +} + +var fileDescriptor_4b1b78acd2cabdbe = []byte{ + // 847 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x5f, 0x6f, 0xdb, 0x54, + 0x14, 0xaf, 0x93, 0x76, 0xeb, 0x6e, 0x9b, 0x09, 0x2e, 0x1d, 0x98, 0x22, 0x25, 0x55, 0x84, 0x50, + 0x85, 0x26, 0x7b, 0x0b, 0x12, 0x30, 0x04, 0x42, 0x69, 0xba, 0x69, 0x15, 0x74, 0x9d, 0xdc, 0x8e, + 0x09, 0x5e, 0xd0, 0x8d, 0x7d, 0x92, 0x5c, 0xd5, 0xbe, 0x27, 0xbb, 0xf7, 0x38, 0x25, 0xfb, 0x14, + 0x7c, 0x08, 0xbe, 0x07, 0xaf, 0x7b, 0x9c, 0xc4, 0x0b, 0x02, 0x69, 0x42, 0xed, 0x0b, 0x1f, 0x03, + 0x5d, 0xdb, 0x2d, 0x76, 0x9a, 0xac, 0x7d, 0xb3, 0xcf, 0xef, 0xcf, 0xf5, 0x39, 0xf7, 0x1c, 0x1f, + 0xf6, 0x29, 0xe1, 0x31, 0x28, 0xf9, 0x52, 0x90, 0x44, 0xe5, 0x4f, 0x3a, 0x0f, 0x7c, 0x31, 0x1e, + 0x6b, 0x9c, 0x88, 0xf8, 0xe7, 0x10, 0x55, 0x24, 0x6d, 0xd8, 0x78, 0x63, 0x8d, 0x84, 0xfc, 0x9d, + 0x32, 0xd7, 0x9b, 0x74, 0x1e, 0x6c, 0x6e, 0x0c, 0x71, 0x88, 0x19, 0xe8, 0xdb, 0xa7, 0x9c, 0xb7, + 0xd9, 0xba, 0xe4, 0xd9, 0x17, 0xb1, 0x50, 0x21, 0x14, 0x46, 0x9b, 0xcd, 0x10, 0x4d, 0x82, 0xc6, + 0xef, 0x0b, 0x03, 0xfe, 0xe4, 0x7e, 0x1f, 0x48, 0xdc, 0xf7, 0x43, 0x94, 0x2a, 0xc7, 0xdb, 0x7f, + 0x38, 0x6c, 0xbd, 0x87, 0x52, 0x1d, 0x69, 0xa1, 0xcc, 0x00, 0x34, 0xbf, 0xcd, 0x6a, 0x84, 0xae, + 0xb3, 0xe5, 0x6c, 0xdf, 0x0a, 0x6a, 0x84, 0xdc, 0x67, 0x2b, 0x96, 0x6e, 0xdc, 0xda, 0x56, 0x7d, + 0x7b, 0xad, 0xf3, 0xa1, 0x97, 0x1b, 0x7a, 0xd6, 0xd0, 0x2b, 0x0c, 0x3d, 0xeb, 0x10, 0xe4, 0x3c, + 0xfe, 0x98, 0xb5, 0x70, 0x02, 0x5a, 0xcb, 0x08, 0x1e, 0x69, 0x4c, 0x9e, 0x4b, 0x1a, 0x75, 0xb3, + 0x3c, 0x41, 0x77, 0xa3, 0x48, 0x83, 0x31, 0x6e, 0x7d, 0xcb, 0xd9, 0x5e, 0x0d, 0xae, 0xa2, 0xf1, + 0x2f, 0xd9, 0x07, 0xe7, 0x94, 0x23, 0xb4, 0x84, 0x3d, 0x25, 0x49, 0x0a, 0x42, 0xed, 0x2e, 0x67, + 0x0e, 0x8b, 0xe0, 0xf6, 0x6f, 0x75, 0xd6, 0xd8, 0x4f, 0x0d, 0x1d, 0x9c, 0xa8, 0x23, 0x5b, 0x20, + 0xc3, 0xef, 0xb1, 0xf5, 0x10, 0xe3, 0x18, 0x42, 0x5b, 0xa8, 0xbd, 0x28, 0x4f, 0x70, 0x67, 0xfd, + 0xd5, 0x9b, 0xd6, 0xd2, 0x5f, 0x6f, 0x5a, 0xcb, 0xcf, 0xa4, 0xa2, 0xa0, 0xc2, 0xe0, 0xdf, 0xb0, + 0x35, 0x91, 0x60, 0xaa, 0x28, 0x10, 0x6a, 0x08, 0x6e, 0x6d, 0xcb, 0xd9, 0x5e, 0xeb, 0x7c, 0xe4, + 0xcd, 0x5e, 0x8c, 0x97, 0x49, 0x2d, 0x25, 0x28, 0xf3, 0x79, 0x8f, 0xdd, 0xc6, 0x13, 0x05, 0xda, + 0x8c, 0xe4, 0xf8, 0x48, 0x26, 0x60, 0xb3, 0xae, 0x5f, 0xe5, 0x30, 0x23, 0xe1, 0x5f, 0xb0, 0xd5, + 0x8c, 0xbd, 0x17, 0x19, 0x77, 0xf9, 0x6a, 0xf9, 0x05, 0xb9, 0x5c, 0x3a, 0x5b, 0x99, 0x5e, 0xaa, + 0x35, 0x28, 0xb2, 0xa6, 0xee, 0x4a, 0xb5, 0x74, 0x33, 0xb0, 0x55, 0x26, 0xa9, 0xa1, 0x43, 0x41, + 0xd2, 0x0c, 0xa6, 0x8f, 0x50, 0x77, 0xe3, 0xb8, 0x6b, 0x0c, 0x90, 0x71, 0x6f, 0xe4, 0xca, 0x05, + 0x30, 0xbf, 0xc7, 0xde, 0xbb, 0xf8, 0xfc, 0xde, 0x08, 0xc2, 0xe3, 0xa7, 0x42, 0xd3, 0xd4, 0xbd, + 0x99, 0xb5, 0xd2, 0x3c, 0xa8, 0xfd, 0x82, 0xdd, 0xd9, 0x9d, 0x2a, 0x91, 0xc8, 0xf0, 0x90, 0x50, + 0x43, 0x6f, 0x24, 0xe2, 0x18, 0x6c, 0xf1, 0x3e, 0x61, 0x37, 0x8d, 0x8d, 0x2c, 0xb8, 0xa8, 0x73, + 0x70, 0xd1, 0x91, 0xb5, 0xc5, 0x47, 0xfe, 0xed, 0xb0, 0x46, 0xd1, 0x5f, 0x59, 0xd4, 0xf0, 0xbb, + 0xec, 0x5d, 0x9b, 0xd1, 0x0e, 0x3c, 0x9c, 0x24, 0x3d, 0x54, 0xa4, 0x45, 0x48, 0xd9, 0xa9, 0xab, + 0xc1, 0x65, 0x80, 0x77, 0xd8, 0x86, 0x0d, 0x3e, 0xc1, 0x19, 0x41, 0x2d, 0x13, 0xcc, 0xc5, 0xec, + 0x57, 0xe6, 0x46, 0xdf, 0xcb, 0x17, 0xa9, 0x8c, 0x24, 0x4d, 0x9f, 0x22, 0xc6, 0xc5, 0x14, 0xcc, + 0x83, 0xf8, 0xe7, 0xec, 0xfd, 0x0b, 0xa7, 0xaa, 0x28, 0x6f, 0xfc, 0x05, 0x68, 0xfb, 0xdf, 0x3a, + 0x6b, 0x74, 0xe3, 0xec, 0x22, 0x8b, 0xec, 0xbe, 0x65, 0xeb, 0x38, 0x18, 0xc4, 0x52, 0xc1, 0x63, + 0x4c, 0xb5, 0x71, 0x9d, 0xab, 0xbb, 0xa8, 0x22, 0xb0, 0x63, 0x50, 0xbc, 0xef, 0x8a, 0xe9, 0xf9, + 0x5f, 0xe0, 0xed, 0x63, 0x50, 0xe2, 0xf3, 0x2e, 0x6b, 0x14, 0xaf, 0xfb, 0xa8, 0x68, 0x74, 0xad, + 0x29, 0xa8, 0x2a, 0xf8, 0x77, 0x8c, 0x97, 0x1c, 0x0f, 0x06, 0x59, 0xf8, 0x3a, 0xe3, 0x30, 0x47, + 0x56, 0x32, 0x7b, 0x0e, 0x70, 0x6c, 0x0e, 0x06, 0x3f, 0x82, 0xd0, 0xee, 0xca, 0xf5, 0xcd, 0x4a, + 0x32, 0xbe, 0xc3, 0xee, 0x90, 0x4c, 0xe0, 0x25, 0x2a, 0x38, 0x18, 0x0c, 0x0c, 0xd0, 0xbe, 0x54, + 0x29, 0x41, 0x3e, 0x29, 0xb3, 0x4d, 0x3b, 0x9f, 0x6a, 0xaf, 0xba, 0x0a, 0x3c, 0x81, 0xa1, 0x20, + 0x39, 0x81, 0x6c, 0x70, 0x56, 0x83, 0x05, 0x68, 0xfb, 0x77, 0x87, 0x6d, 0x3c, 0x33, 0xa0, 0xbb, + 0xc5, 0x0e, 0x39, 0x04, 0x22, 0xa9, 0x86, 0x86, 0x7f, 0xcc, 0x1a, 0x22, 0x8e, 0xf1, 0x04, 0xa2, + 0x5d, 0x50, 0x98, 0xe4, 0x57, 0x7e, 0x2b, 0xa8, 0x06, 0xf9, 0x57, 0xcc, 0x8d, 0xa4, 0x11, 0xfd, + 0x18, 0xac, 0x49, 0x79, 0x03, 0x98, 0xa2, 0x97, 0x17, 0xe2, 0xfc, 0x21, 0x6b, 0xa4, 0x06, 0x74, + 0x80, 0x53, 0x11, 0x93, 0x84, 0xfc, 0x7f, 0xbe, 0xd6, 0x69, 0xcd, 0x29, 0x5f, 0x99, 0x16, 0x54, + 0x55, 0xed, 0x90, 0x35, 0x2a, 0x38, 0xbf, 0xcb, 0xd8, 0x18, 0x74, 0x08, 0x8a, 0xc4, 0x10, 0xe6, + 0x0e, 0x7e, 0x09, 0xb7, 0x79, 0x8e, 0xc5, 0x14, 0x53, 0x3a, 0xdf, 0x2a, 0xf9, 0xd4, 0x57, 0x83, + 0x3b, 0x3f, 0xbc, 0x3a, 0x6d, 0x3a, 0xaf, 0x4f, 0x9b, 0xce, 0x3f, 0xa7, 0x4d, 0xe7, 0xd7, 0xb3, + 0xe6, 0xd2, 0xeb, 0xb3, 0xe6, 0xd2, 0x9f, 0x67, 0xcd, 0xa5, 0x9f, 0xbe, 0x1e, 0x4a, 0x1a, 0xa5, + 0x7d, 0x2f, 0xc4, 0xc4, 0xef, 0x4b, 0xea, 0x8b, 0x68, 0x08, 0xe6, 0xff, 0xa7, 0x70, 0x24, 0xa4, + 0xf2, 0x7f, 0xf1, 0x2b, 0x0b, 0x96, 0xa6, 0x63, 0x30, 0x76, 0xcd, 0xf6, 0x6f, 0x64, 0xeb, 0xf3, + 0xb3, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5c, 0xd5, 0x41, 0x9f, 0xd5, 0x07, 0x00, 0x00, +} + +func (m *CoinTransfer) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CoinTransfer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CoinTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.OverrideToWithInitiator { + i-- + if m.OverrideToWithInitiator { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.OverrideFromWithApproverAddress { + i-- + if m.OverrideFromWithApproverAddress { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Coins) > 0 { + for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintApprovalConditions(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MustOwnTokens) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MustOwnTokens) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MustOwnTokens) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OwnershipCheckParty) > 0 { + i -= len(m.OwnershipCheckParty) + copy(dAtA[i:], m.OwnershipCheckParty) + i = encodeVarintApprovalConditions(dAtA, i, uint64(len(m.OwnershipCheckParty))) + i-- + dAtA[i] = 0x3a + } + if m.MustSatisfyForAllAssets { + i-- + if m.MustSatisfyForAllAssets { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.OverrideWithCurrentTime { + i-- + if m.OverrideWithCurrentTime { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.OwnershipTimes) > 0 { + for iNdEx := len(m.OwnershipTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OwnershipTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.AmountRange != nil { + { + size, err := m.AmountRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DynamicStoreChallenge) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DynamicStoreChallenge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DynamicStoreChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OwnershipCheckParty) > 0 { + i -= len(m.OwnershipCheckParty) + copy(dAtA[i:], m.OwnershipCheckParty) + i = encodeVarintApprovalConditions(dAtA, i, uint64(len(m.OwnershipCheckParty))) + i-- + dAtA[i] = 0x12 + } + { + size := m.StoreId.Size() + i -= size + if _, err := m.StoreId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *AddressChecks) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddressChecks) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AddressChecks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MustNotBeLiquidityPool { + i-- + if m.MustNotBeLiquidityPool { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.MustBeLiquidityPool { + i-- + if m.MustBeLiquidityPool { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.MustNotBeEvmContract { + i-- + if m.MustNotBeEvmContract { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.MustBeEvmContract { + i-- + if m.MustBeEvmContract { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *AltTimeChecks) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AltTimeChecks) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AltTimeChecks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TimezoneOffsetNegative { + i-- + if m.TimezoneOffsetNegative { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + { + size := m.TimezoneOffsetMinutes.Size() + i -= size + if _, err := m.TimezoneOffsetMinutes.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + if len(m.OfflineWeeksOfYear) > 0 { + for iNdEx := len(m.OfflineWeeksOfYear) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OfflineWeeksOfYear[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.OfflineDaysOfMonth) > 0 { + for iNdEx := len(m.OfflineDaysOfMonth) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OfflineDaysOfMonth[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.OfflineMonths) > 0 { + for iNdEx := len(m.OfflineMonths) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OfflineMonths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.OfflineDays) > 0 { + for iNdEx := len(m.OfflineDays) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OfflineDays[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.OfflineHours) > 0 { + for iNdEx := len(m.OfflineHours) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OfflineHours[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UserApprovalSettings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserApprovalSettings) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserApprovalSettings) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UserRoyalties != nil { + { + size, err := m.UserRoyalties.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.DisableUserCoinTransfers { + i-- + if m.DisableUserCoinTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.AllowedDenoms) > 0 { + for iNdEx := len(m.AllowedDenoms) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AllowedDenoms[iNdEx]) + copy(dAtA[i:], m.AllowedDenoms[iNdEx]) + i = encodeVarintApprovalConditions(dAtA, i, uint64(len(m.AllowedDenoms[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UserRoyalties) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserRoyalties) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserRoyalties) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PayoutAddress) > 0 { + i -= len(m.PayoutAddress) + copy(dAtA[i:], m.PayoutAddress) + i = encodeVarintApprovalConditions(dAtA, i, uint64(len(m.PayoutAddress))) + i-- + dAtA[i] = 0x12 + } + { + size := m.Percentage.Size() + i -= size + if _, err := m.Percentage.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalConditions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintApprovalConditions(dAtA []byte, offset int, v uint64) int { + offset -= sovApprovalConditions(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CoinTransfer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.To) + if l > 0 { + n += 1 + l + sovApprovalConditions(uint64(l)) + } + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + } + if m.OverrideFromWithApproverAddress { + n += 2 + } + if m.OverrideToWithInitiator { + n += 2 + } + return n +} + +func (m *MustOwnTokens) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + if m.AmountRange != nil { + l = m.AmountRange.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + if len(m.OwnershipTimes) > 0 { + for _, e := range m.OwnershipTimes { + l = e.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + } + if m.OverrideWithCurrentTime { + n += 2 + } + if m.MustSatisfyForAllAssets { + n += 2 + } + l = len(m.OwnershipCheckParty) + if l > 0 { + n += 1 + l + sovApprovalConditions(uint64(l)) + } + return n +} + +func (m *DynamicStoreChallenge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.StoreId.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + l = len(m.OwnershipCheckParty) + if l > 0 { + n += 1 + l + sovApprovalConditions(uint64(l)) + } + return n +} + +func (m *AddressChecks) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.MustBeEvmContract { + n += 2 + } + if m.MustNotBeEvmContract { + n += 2 + } + if m.MustBeLiquidityPool { + n += 2 + } + if m.MustNotBeLiquidityPool { + n += 2 + } + return n +} + +func (m *AltTimeChecks) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.OfflineHours) > 0 { + for _, e := range m.OfflineHours { + l = e.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + } + if len(m.OfflineDays) > 0 { + for _, e := range m.OfflineDays { + l = e.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + } + if len(m.OfflineMonths) > 0 { + for _, e := range m.OfflineMonths { + l = e.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + } + if len(m.OfflineDaysOfMonth) > 0 { + for _, e := range m.OfflineDaysOfMonth { + l = e.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + } + if len(m.OfflineWeeksOfYear) > 0 { + for _, e := range m.OfflineWeeksOfYear { + l = e.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + } + l = m.TimezoneOffsetMinutes.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + if m.TimezoneOffsetNegative { + n += 2 + } + return n +} + +func (m *UserApprovalSettings) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.AllowedDenoms) > 0 { + for _, s := range m.AllowedDenoms { + l = len(s) + n += 1 + l + sovApprovalConditions(uint64(l)) + } + } + if m.DisableUserCoinTransfers { + n += 2 + } + if m.UserRoyalties != nil { + l = m.UserRoyalties.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + } + return n +} + +func (m *UserRoyalties) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Percentage.Size() + n += 1 + l + sovApprovalConditions(uint64(l)) + l = len(m.PayoutAddress) + if l > 0 { + n += 1 + l + sovApprovalConditions(uint64(l)) + } + return n +} + +func sovApprovalConditions(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozApprovalConditions(x uint64) (n int) { + return sovApprovalConditions(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CoinTransfer) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CoinTransfer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CoinTransfer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Coins = append(m.Coins, &types.Coin{}) + if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OverrideFromWithApproverAddress", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OverrideFromWithApproverAddress = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OverrideToWithInitiator", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OverrideToWithInitiator = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipApprovalConditions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalConditions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MustOwnTokens) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MustOwnTokens: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MustOwnTokens: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountRange", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AmountRange == nil { + m.AmountRange = &UintRange{} + } + if err := m.AmountRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipTimes = append(m.OwnershipTimes, &UintRange{}) + if err := m.OwnershipTimes[len(m.OwnershipTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OverrideWithCurrentTime", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OverrideWithCurrentTime = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MustSatisfyForAllAssets", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MustSatisfyForAllAssets = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipCheckParty", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipCheckParty = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalConditions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalConditions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DynamicStoreChallenge) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DynamicStoreChallenge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DynamicStoreChallenge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StoreId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipCheckParty", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipCheckParty = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalConditions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalConditions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddressChecks) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddressChecks: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddressChecks: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MustBeEvmContract", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MustBeEvmContract = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MustNotBeEvmContract", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MustNotBeEvmContract = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MustBeLiquidityPool", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MustBeLiquidityPool = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MustNotBeLiquidityPool", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MustNotBeLiquidityPool = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipApprovalConditions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalConditions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AltTimeChecks) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AltTimeChecks: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AltTimeChecks: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfflineHours", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OfflineHours = append(m.OfflineHours, &UintRange{}) + if err := m.OfflineHours[len(m.OfflineHours)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfflineDays", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OfflineDays = append(m.OfflineDays, &UintRange{}) + if err := m.OfflineDays[len(m.OfflineDays)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfflineMonths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OfflineMonths = append(m.OfflineMonths, &UintRange{}) + if err := m.OfflineMonths[len(m.OfflineMonths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfflineDaysOfMonth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OfflineDaysOfMonth = append(m.OfflineDaysOfMonth, &UintRange{}) + if err := m.OfflineDaysOfMonth[len(m.OfflineDaysOfMonth)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OfflineWeeksOfYear", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OfflineWeeksOfYear = append(m.OfflineWeeksOfYear, &UintRange{}) + if err := m.OfflineWeeksOfYear[len(m.OfflineWeeksOfYear)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimezoneOffsetMinutes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TimezoneOffsetMinutes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TimezoneOffsetNegative", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TimezoneOffsetNegative = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipApprovalConditions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalConditions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserApprovalSettings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserApprovalSettings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserApprovalSettings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedDenoms", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AllowedDenoms = append(m.AllowedDenoms, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisableUserCoinTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DisableUserCoinTransfers = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserRoyalties", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserRoyalties == nil { + m.UserRoyalties = &UserRoyalties{} + } + if err := m.UserRoyalties.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalConditions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalConditions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserRoyalties) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserRoyalties: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserRoyalties: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Percentage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Percentage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PayoutAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalConditions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalConditions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PayoutAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalConditions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalConditions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipApprovalConditions(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovalConditions + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthApprovalConditions + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupApprovalConditions + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthApprovalConditions + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthApprovalConditions = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowApprovalConditions = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupApprovalConditions = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/approval_criteria.pb.go b/x/tokenization/types/v29/approval_criteria.pb.go new file mode 100644 index 00000000..16078b6b --- /dev/null +++ b/x/tokenization/types/v29/approval_criteria.pb.go @@ -0,0 +1,4013 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/approval_criteria.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// ApprovalCriteria defines the criteria for approving transfers. +// All criteria must be satisfied for the approval to be considered valid. +type ApprovalCriteria struct { + // Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs + // that satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash. + MerkleChallenges []*MerkleChallenge `protobuf:"bytes,1,rep,name=merkleChallenges,proto3" json:"merkleChallenges,omitempty"` + // Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs + // that can be transferred when using this approval. + PredeterminedBalances *PredeterminedBalances `protobuf:"bytes,2,opt,name=predeterminedBalances,proto3" json:"predeterminedBalances,omitempty"` + // Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts + // transferred and enforces maximum limits per approval. + ApprovalAmounts *ApprovalAmounts `protobuf:"bytes,3,opt,name=approvalAmounts,proto3" json:"approvalAmounts,omitempty"` + // Maximum number of transfers that can be processed using this approval. Tracks the count of transfers + // and enforces the limit to prevent exceeding the allowed number of uses. + MaxNumTransfers *MaxNumTransfers `protobuf:"bytes,4,opt,name=maxNumTransfers,proto3" json:"maxNumTransfers,omitempty"` + // The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees, + // royalties) that must be executed alongside the token transfer for the approval to be valid. + CoinTransfers []*CoinTransfer `protobuf:"bytes,5,rep,name=coinTransfers,proto3" json:"coinTransfers,omitempty"` + // Require the "to" address to be equal to the "initiated by" address for approval. + // If true, only transfers where the recipient matches the initiator are allowed. + RequireToEqualsInitiatedBy bool `protobuf:"varint,6,opt,name=requireToEqualsInitiatedBy,proto3" json:"requireToEqualsInitiatedBy,omitempty"` + // Require the "from" address to be equal to the "initiated by" address for approval. + // If true, only transfers where the sender matches the initiator are allowed. + RequireFromEqualsInitiatedBy bool `protobuf:"varint,7,opt,name=requireFromEqualsInitiatedBy,proto3" json:"requireFromEqualsInitiatedBy,omitempty"` + // Require the "to" address to not be equal to the "initiated by" address for approval. + // If true, transfers where the recipient equals the initiator are forbidden. + RequireToDoesNotEqualInitiatedBy bool `protobuf:"varint,8,opt,name=requireToDoesNotEqualInitiatedBy,proto3" json:"requireToDoesNotEqualInitiatedBy,omitempty"` + // Require the "from" address to not be equal to the "initiated by" address for approval. + // If true, transfers where the sender equals the initiator are forbidden. + RequireFromDoesNotEqualInitiatedBy bool `protobuf:"varint,9,opt,name=requireFromDoesNotEqualInitiatedBy,proto3" json:"requireFromDoesNotEqualInitiatedBy,omitempty"` + // Overrides the user's outgoing approvals for approval. If true, this collection-level approval + // takes precedence over any outgoing approvals defined by the sender, allowing the collection to + // control outgoing transfer behavior. + OverridesFromOutgoingApprovals bool `protobuf:"varint,10,opt,name=overridesFromOutgoingApprovals,proto3" json:"overridesFromOutgoingApprovals,omitempty"` + // Overrides the user's incoming approvals for approval. If true, this collection-level approval + // takes precedence over any incoming approvals defined by the recipient, allowing the collection to + // control incoming transfer behavior. + OverridesToIncomingApprovals bool `protobuf:"varint,11,opt,name=overridesToIncomingApprovals,proto3" json:"overridesToIncomingApprovals,omitempty"` + // Auto-deletion options for this approval. Defines conditions under which this approval should be + // automatically deleted (e.g., after a certain number of uses or time period). + AutoDeletionOptions *AutoDeletionOptions `protobuf:"bytes,12,opt,name=autoDeletionOptions,proto3" json:"autoDeletionOptions,omitempty"` + // Must own tokens for approval. Defines token ownership requirements that must be satisfied for + // the approval to be valid. The initiator must own the specified tokens at the specified ownership times. + MustOwnTokens []*MustOwnTokens `protobuf:"bytes,14,rep,name=mustOwnTokens,proto3" json:"mustOwnTokens,omitempty"` + // Dynamic store challenges that the initiator must pass for approval. The initiator must provide + // valid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups). + DynamicStoreChallenges []*DynamicStoreChallenge `protobuf:"bytes,15,rep,name=dynamicStoreChallenges,proto3" json:"dynamicStoreChallenges,omitempty"` + // ETH signature challenges that the initiator must pass for approval. The initiator must provide + // valid Ethereum signatures for all specified challenges. Each signature can only be used once. + EthSignatureChallenges []*ETHSignatureChallenge `protobuf:"bytes,16,rep,name=ethSignatureChallenges,proto3" json:"ethSignatureChallenges,omitempty"` + // Address checks for the sender of the transfer. Validates that the sender address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + SenderChecks *AddressChecks `protobuf:"bytes,17,opt,name=senderChecks,proto3" json:"senderChecks,omitempty"` + // Address checks for the recipient of the transfer. Validates that the recipient address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + RecipientChecks *AddressChecks `protobuf:"bytes,18,opt,name=recipientChecks,proto3" json:"recipientChecks,omitempty"` + // Address checks for the initiator of the transfer. Validates that the initiator address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + InitiatorChecks *AddressChecks `protobuf:"bytes,19,opt,name=initiatorChecks,proto3" json:"initiatorChecks,omitempty"` + // Alternative time-based checks for approval denial (offline hours/days). Defines time periods + // during which this approval should be denied, such as specific hours of the day or days of the week. + AltTimeChecks *AltTimeChecks `protobuf:"bytes,20,opt,name=altTimeChecks,proto3" json:"altTimeChecks,omitempty"` + // If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used. + // This allows fine-grained control over which approvals are applied when multiple approvals could match. + MustPrioritize bool `protobuf:"varint,21,opt,name=mustPrioritize,proto3" json:"mustPrioritize,omitempty"` + // Voting challenges that must be satisfied for approval. The initiator must provide + // valid votes that meet the quorum threshold for all specified challenges. + VotingChallenges []*VotingChallenge `protobuf:"bytes,22,rep,name=votingChallenges,proto3" json:"votingChallenges,omitempty"` + // If true, this collection approval allows backed minting operations (CosmosCoinBackedPath). + // When false, this approval cannot be used for transfers involving backed minting addresses. + // This prevents accidental allowances when toListIds is "All". + AllowBackedMinting bool `protobuf:"varint,23,opt,name=allowBackedMinting,proto3" json:"allowBackedMinting,omitempty"` + // If true, this collection approval allows special wrapping operations (CosmosCoinWrapperPath). + // When false, this approval cannot be used for transfers involving wrapping addresses. + // This prevents accidental allowances when toListIds is "All". + AllowSpecialWrapping bool `protobuf:"varint,24,opt,name=allowSpecialWrapping,proto3" json:"allowSpecialWrapping,omitempty"` + // EVM query challenges that must pass for approval. Read-only contract queries + // that verify external EVM state (e.g., token ownership in another contract). + EvmQueryChallenges []*EVMQueryChallenge `protobuf:"bytes,25,rep,name=evmQueryChallenges,proto3" json:"evmQueryChallenges,omitempty"` + // Issuer-imposed constraints on user-level coin transfers. Propagated to user-level approvals + // during greedy transfer matching (same pattern as userRoyalties). Only applicable on collection-level approvals. + // If conflicting settings across multiple matched approvals, the transfer is rejected (like royalties). + UserApprovalSettings *UserApprovalSettings `protobuf:"bytes,26,opt,name=userApprovalSettings,proto3" json:"userApprovalSettings,omitempty"` +} + +func (m *ApprovalCriteria) Reset() { *m = ApprovalCriteria{} } +func (m *ApprovalCriteria) String() string { return proto.CompactTextString(m) } +func (*ApprovalCriteria) ProtoMessage() {} +func (*ApprovalCriteria) Descriptor() ([]byte, []int) { + return fileDescriptor_c373d815c4655b4d, []int{0} +} +func (m *ApprovalCriteria) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApprovalCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApprovalCriteria.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ApprovalCriteria) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApprovalCriteria.Merge(m, src) +} +func (m *ApprovalCriteria) XXX_Size() int { + return m.Size() +} +func (m *ApprovalCriteria) XXX_DiscardUnknown() { + xxx_messageInfo_ApprovalCriteria.DiscardUnknown(m) +} + +var xxx_messageInfo_ApprovalCriteria proto.InternalMessageInfo + +func (m *ApprovalCriteria) GetMerkleChallenges() []*MerkleChallenge { + if m != nil { + return m.MerkleChallenges + } + return nil +} + +func (m *ApprovalCriteria) GetPredeterminedBalances() *PredeterminedBalances { + if m != nil { + return m.PredeterminedBalances + } + return nil +} + +func (m *ApprovalCriteria) GetApprovalAmounts() *ApprovalAmounts { + if m != nil { + return m.ApprovalAmounts + } + return nil +} + +func (m *ApprovalCriteria) GetMaxNumTransfers() *MaxNumTransfers { + if m != nil { + return m.MaxNumTransfers + } + return nil +} + +func (m *ApprovalCriteria) GetCoinTransfers() []*CoinTransfer { + if m != nil { + return m.CoinTransfers + } + return nil +} + +func (m *ApprovalCriteria) GetRequireToEqualsInitiatedBy() bool { + if m != nil { + return m.RequireToEqualsInitiatedBy + } + return false +} + +func (m *ApprovalCriteria) GetRequireFromEqualsInitiatedBy() bool { + if m != nil { + return m.RequireFromEqualsInitiatedBy + } + return false +} + +func (m *ApprovalCriteria) GetRequireToDoesNotEqualInitiatedBy() bool { + if m != nil { + return m.RequireToDoesNotEqualInitiatedBy + } + return false +} + +func (m *ApprovalCriteria) GetRequireFromDoesNotEqualInitiatedBy() bool { + if m != nil { + return m.RequireFromDoesNotEqualInitiatedBy + } + return false +} + +func (m *ApprovalCriteria) GetOverridesFromOutgoingApprovals() bool { + if m != nil { + return m.OverridesFromOutgoingApprovals + } + return false +} + +func (m *ApprovalCriteria) GetOverridesToIncomingApprovals() bool { + if m != nil { + return m.OverridesToIncomingApprovals + } + return false +} + +func (m *ApprovalCriteria) GetAutoDeletionOptions() *AutoDeletionOptions { + if m != nil { + return m.AutoDeletionOptions + } + return nil +} + +func (m *ApprovalCriteria) GetMustOwnTokens() []*MustOwnTokens { + if m != nil { + return m.MustOwnTokens + } + return nil +} + +func (m *ApprovalCriteria) GetDynamicStoreChallenges() []*DynamicStoreChallenge { + if m != nil { + return m.DynamicStoreChallenges + } + return nil +} + +func (m *ApprovalCriteria) GetEthSignatureChallenges() []*ETHSignatureChallenge { + if m != nil { + return m.EthSignatureChallenges + } + return nil +} + +func (m *ApprovalCriteria) GetSenderChecks() *AddressChecks { + if m != nil { + return m.SenderChecks + } + return nil +} + +func (m *ApprovalCriteria) GetRecipientChecks() *AddressChecks { + if m != nil { + return m.RecipientChecks + } + return nil +} + +func (m *ApprovalCriteria) GetInitiatorChecks() *AddressChecks { + if m != nil { + return m.InitiatorChecks + } + return nil +} + +func (m *ApprovalCriteria) GetAltTimeChecks() *AltTimeChecks { + if m != nil { + return m.AltTimeChecks + } + return nil +} + +func (m *ApprovalCriteria) GetMustPrioritize() bool { + if m != nil { + return m.MustPrioritize + } + return false +} + +func (m *ApprovalCriteria) GetVotingChallenges() []*VotingChallenge { + if m != nil { + return m.VotingChallenges + } + return nil +} + +func (m *ApprovalCriteria) GetAllowBackedMinting() bool { + if m != nil { + return m.AllowBackedMinting + } + return false +} + +func (m *ApprovalCriteria) GetAllowSpecialWrapping() bool { + if m != nil { + return m.AllowSpecialWrapping + } + return false +} + +func (m *ApprovalCriteria) GetEvmQueryChallenges() []*EVMQueryChallenge { + if m != nil { + return m.EvmQueryChallenges + } + return nil +} + +func (m *ApprovalCriteria) GetUserApprovalSettings() *UserApprovalSettings { + if m != nil { + return m.UserApprovalSettings + } + return nil +} + +// OutgoingApprovalCriteria defines the criteria for approving outgoing transfers. +// This is used for user-level outgoing approvals and only includes fields relevant to outgoing transfers. +// All criteria must be satisfied for the approval to be considered valid. +type OutgoingApprovalCriteria struct { + // Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs + // that satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash. + MerkleChallenges []*MerkleChallenge `protobuf:"bytes,1,rep,name=merkleChallenges,proto3" json:"merkleChallenges,omitempty"` + // Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs + // that can be transferred when using this approval. + PredeterminedBalances *PredeterminedBalances `protobuf:"bytes,2,opt,name=predeterminedBalances,proto3" json:"predeterminedBalances,omitempty"` + // Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts + // transferred and enforces maximum limits per approval. + ApprovalAmounts *ApprovalAmounts `protobuf:"bytes,3,opt,name=approvalAmounts,proto3" json:"approvalAmounts,omitempty"` + // Maximum number of transfers that can be processed using this approval. Tracks the count of transfers + // and enforces the limit to prevent exceeding the allowed number of uses. + MaxNumTransfers *MaxNumTransfers `protobuf:"bytes,4,opt,name=maxNumTransfers,proto3" json:"maxNumTransfers,omitempty"` + // The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees, + // royalties) that must be executed alongside the token transfer for the approval to be valid. + CoinTransfers []*CoinTransfer `protobuf:"bytes,5,rep,name=coinTransfers,proto3" json:"coinTransfers,omitempty"` + // Require the "to" address to be equal to the "initiated by" address for approval. + // If true, only transfers where the recipient matches the initiator are allowed. + RequireToEqualsInitiatedBy bool `protobuf:"varint,6,opt,name=requireToEqualsInitiatedBy,proto3" json:"requireToEqualsInitiatedBy,omitempty"` + // Require the "to" address to not be equal to the "initiated by" address for approval. + // If true, transfers where the recipient equals the initiator are forbidden. + RequireToDoesNotEqualInitiatedBy bool `protobuf:"varint,7,opt,name=requireToDoesNotEqualInitiatedBy,proto3" json:"requireToDoesNotEqualInitiatedBy,omitempty"` + // Auto-deletion options for this approval. Defines conditions under which this approval should be + // automatically deleted (e.g., after a certain number of uses or time period). + AutoDeletionOptions *AutoDeletionOptions `protobuf:"bytes,8,opt,name=autoDeletionOptions,proto3" json:"autoDeletionOptions,omitempty"` + // Must own tokens for approval. Defines token ownership requirements that must be satisfied for + // the approval to be valid. The initiator must own the specified tokens at the specified ownership times. + MustOwnTokens []*MustOwnTokens `protobuf:"bytes,9,rep,name=mustOwnTokens,proto3" json:"mustOwnTokens,omitempty"` + // Dynamic store challenges that the initiator must pass for approval. The initiator must provide + // valid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups). + DynamicStoreChallenges []*DynamicStoreChallenge `protobuf:"bytes,10,rep,name=dynamicStoreChallenges,proto3" json:"dynamicStoreChallenges,omitempty"` + // ETH signature challenges that the initiator must pass for approval. The initiator must provide + // valid Ethereum signatures for all specified challenges. Each signature can only be used once. + EthSignatureChallenges []*ETHSignatureChallenge `protobuf:"bytes,11,rep,name=ethSignatureChallenges,proto3" json:"ethSignatureChallenges,omitempty"` + // Address checks for the recipient of the transfer. Validates that the recipient address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + // Note: No sender checks are included for outgoing approvals since the sender is the user themselves. + RecipientChecks *AddressChecks `protobuf:"bytes,12,opt,name=recipientChecks,proto3" json:"recipientChecks,omitempty"` + // Address checks for the initiator of the transfer. Validates that the initiator address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + InitiatorChecks *AddressChecks `protobuf:"bytes,13,opt,name=initiatorChecks,proto3" json:"initiatorChecks,omitempty"` + // Alternative time-based checks for approval denial (offline hours/days). Defines time periods + // during which this approval should be denied, such as specific hours of the day or days of the week. + AltTimeChecks *AltTimeChecks `protobuf:"bytes,14,opt,name=altTimeChecks,proto3" json:"altTimeChecks,omitempty"` + // If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used. + // This allows fine-grained control over which approvals are applied when multiple approvals could match. + MustPrioritize bool `protobuf:"varint,15,opt,name=mustPrioritize,proto3" json:"mustPrioritize,omitempty"` + // Voting challenges that must be satisfied for approval. The initiator must provide + // valid votes that meet the quorum threshold for all specified challenges. + VotingChallenges []*VotingChallenge `protobuf:"bytes,16,rep,name=votingChallenges,proto3" json:"votingChallenges,omitempty"` + // EVM query challenges that must pass for approval. Read-only contract queries + // that verify external EVM state (e.g., token ownership in another contract). + EvmQueryChallenges []*EVMQueryChallenge `protobuf:"bytes,17,rep,name=evmQueryChallenges,proto3" json:"evmQueryChallenges,omitempty"` +} + +func (m *OutgoingApprovalCriteria) Reset() { *m = OutgoingApprovalCriteria{} } +func (m *OutgoingApprovalCriteria) String() string { return proto.CompactTextString(m) } +func (*OutgoingApprovalCriteria) ProtoMessage() {} +func (*OutgoingApprovalCriteria) Descriptor() ([]byte, []int) { + return fileDescriptor_c373d815c4655b4d, []int{1} +} +func (m *OutgoingApprovalCriteria) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OutgoingApprovalCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OutgoingApprovalCriteria.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OutgoingApprovalCriteria) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutgoingApprovalCriteria.Merge(m, src) +} +func (m *OutgoingApprovalCriteria) XXX_Size() int { + return m.Size() +} +func (m *OutgoingApprovalCriteria) XXX_DiscardUnknown() { + xxx_messageInfo_OutgoingApprovalCriteria.DiscardUnknown(m) +} + +var xxx_messageInfo_OutgoingApprovalCriteria proto.InternalMessageInfo + +func (m *OutgoingApprovalCriteria) GetMerkleChallenges() []*MerkleChallenge { + if m != nil { + return m.MerkleChallenges + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetPredeterminedBalances() *PredeterminedBalances { + if m != nil { + return m.PredeterminedBalances + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetApprovalAmounts() *ApprovalAmounts { + if m != nil { + return m.ApprovalAmounts + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetMaxNumTransfers() *MaxNumTransfers { + if m != nil { + return m.MaxNumTransfers + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetCoinTransfers() []*CoinTransfer { + if m != nil { + return m.CoinTransfers + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetRequireToEqualsInitiatedBy() bool { + if m != nil { + return m.RequireToEqualsInitiatedBy + } + return false +} + +func (m *OutgoingApprovalCriteria) GetRequireToDoesNotEqualInitiatedBy() bool { + if m != nil { + return m.RequireToDoesNotEqualInitiatedBy + } + return false +} + +func (m *OutgoingApprovalCriteria) GetAutoDeletionOptions() *AutoDeletionOptions { + if m != nil { + return m.AutoDeletionOptions + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetMustOwnTokens() []*MustOwnTokens { + if m != nil { + return m.MustOwnTokens + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetDynamicStoreChallenges() []*DynamicStoreChallenge { + if m != nil { + return m.DynamicStoreChallenges + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetEthSignatureChallenges() []*ETHSignatureChallenge { + if m != nil { + return m.EthSignatureChallenges + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetRecipientChecks() *AddressChecks { + if m != nil { + return m.RecipientChecks + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetInitiatorChecks() *AddressChecks { + if m != nil { + return m.InitiatorChecks + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetAltTimeChecks() *AltTimeChecks { + if m != nil { + return m.AltTimeChecks + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetMustPrioritize() bool { + if m != nil { + return m.MustPrioritize + } + return false +} + +func (m *OutgoingApprovalCriteria) GetVotingChallenges() []*VotingChallenge { + if m != nil { + return m.VotingChallenges + } + return nil +} + +func (m *OutgoingApprovalCriteria) GetEvmQueryChallenges() []*EVMQueryChallenge { + if m != nil { + return m.EvmQueryChallenges + } + return nil +} + +// IncomingApprovalCriteria defines the criteria for approving incoming transfers. +// This is used for user-level incoming approvals and only includes fields relevant to incoming transfers. +// All criteria must be satisfied for the approval to be considered valid. +type IncomingApprovalCriteria struct { + // Merkle challenges that must be satisfied for approval. The initiator must provide valid Merkle proofs + // that satisfy all specified challenges. Each challenge requires a proof that leads to a specific root hash. + MerkleChallenges []*MerkleChallenge `protobuf:"bytes,1,rep,name=merkleChallenges,proto3" json:"merkleChallenges,omitempty"` + // Predetermined balances that must be used for each approval. Defines the exact token amounts and IDs + // that can be transferred when using this approval. + PredeterminedBalances *PredeterminedBalances `protobuf:"bytes,2,opt,name=predeterminedBalances,proto3" json:"predeterminedBalances,omitempty"` + // Threshold limit of amounts that can be transferred using this approval. Tracks cumulative amounts + // transferred and enforces maximum limits per approval. + ApprovalAmounts *ApprovalAmounts `protobuf:"bytes,3,opt,name=approvalAmounts,proto3" json:"approvalAmounts,omitempty"` + // Maximum number of transfers that can be processed using this approval. Tracks the count of transfers + // and enforces the limit to prevent exceeding the allowed number of uses. + MaxNumTransfers *MaxNumTransfers `protobuf:"bytes,4,opt,name=maxNumTransfers,proto3" json:"maxNumTransfers,omitempty"` + // The sdk.Coins that need to be transferred for approval. Defines required coin transfers (e.g., fees, + // royalties) that must be executed alongside the token transfer for the approval to be valid. + CoinTransfers []*CoinTransfer `protobuf:"bytes,5,rep,name=coinTransfers,proto3" json:"coinTransfers,omitempty"` + // Require the "from" address to be equal to the "initiated by" address for approval. + // If true, only transfers where the sender matches the initiator are allowed. + RequireFromEqualsInitiatedBy bool `protobuf:"varint,6,opt,name=requireFromEqualsInitiatedBy,proto3" json:"requireFromEqualsInitiatedBy,omitempty"` + // Require the "from" address to not be equal to the "initiated by" address for approval. + // If true, transfers where the sender equals the initiator are forbidden. + RequireFromDoesNotEqualInitiatedBy bool `protobuf:"varint,7,opt,name=requireFromDoesNotEqualInitiatedBy,proto3" json:"requireFromDoesNotEqualInitiatedBy,omitempty"` + // Auto-deletion options for this approval. Defines conditions under which this approval should be + // automatically deleted (e.g., after a certain number of uses or time period). + AutoDeletionOptions *AutoDeletionOptions `protobuf:"bytes,8,opt,name=autoDeletionOptions,proto3" json:"autoDeletionOptions,omitempty"` + // Must own tokens for approval. Defines token ownership requirements that must be satisfied for + // the approval to be valid. The initiator must own the specified tokens at the specified ownership times. + MustOwnTokens []*MustOwnTokens `protobuf:"bytes,9,rep,name=mustOwnTokens,proto3" json:"mustOwnTokens,omitempty"` + // Dynamic store challenges that the initiator must pass for approval. The initiator must provide + // valid proofs that satisfy all specified dynamic store challenges (e.g., key-value store lookups). + DynamicStoreChallenges []*DynamicStoreChallenge `protobuf:"bytes,10,rep,name=dynamicStoreChallenges,proto3" json:"dynamicStoreChallenges,omitempty"` + // ETH signature challenges that the initiator must pass for approval. The initiator must provide + // valid Ethereum signatures for all specified challenges. Each signature can only be used once. + EthSignatureChallenges []*ETHSignatureChallenge `protobuf:"bytes,11,rep,name=ethSignatureChallenges,proto3" json:"ethSignatureChallenges,omitempty"` + // Address checks for the sender of the transfer. Validates that the sender address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + // Note: No recipient checks are included for incoming approvals since the recipient is the user themselves. + SenderChecks *AddressChecks `protobuf:"bytes,12,opt,name=senderChecks,proto3" json:"senderChecks,omitempty"` + // Address checks for the initiator of the transfer. Validates that the initiator address meets the + // specified criteria (e.g., whitelist, blacklist, protocol address requirements). + InitiatorChecks *AddressChecks `protobuf:"bytes,13,opt,name=initiatorChecks,proto3" json:"initiatorChecks,omitempty"` + // Alternative time-based checks for approval denial (offline hours/days). Defines time periods + // during which this approval should be denied, such as specific hours of the day or days of the week. + AltTimeChecks *AltTimeChecks `protobuf:"bytes,14,opt,name=altTimeChecks,proto3" json:"altTimeChecks,omitempty"` + // If true, this approval must be explicitly prioritized in PrioritizedApprovals to be used. + // This allows fine-grained control over which approvals are applied when multiple approvals could match. + MustPrioritize bool `protobuf:"varint,15,opt,name=mustPrioritize,proto3" json:"mustPrioritize,omitempty"` + // Voting challenges that must be satisfied for approval. The initiator must provide + // valid votes that meet the quorum threshold for all specified challenges. + VotingChallenges []*VotingChallenge `protobuf:"bytes,16,rep,name=votingChallenges,proto3" json:"votingChallenges,omitempty"` + // EVM query challenges that must pass for approval. Read-only contract queries + // that verify external EVM state (e.g., token ownership in another contract). + EvmQueryChallenges []*EVMQueryChallenge `protobuf:"bytes,17,rep,name=evmQueryChallenges,proto3" json:"evmQueryChallenges,omitempty"` +} + +func (m *IncomingApprovalCriteria) Reset() { *m = IncomingApprovalCriteria{} } +func (m *IncomingApprovalCriteria) String() string { return proto.CompactTextString(m) } +func (*IncomingApprovalCriteria) ProtoMessage() {} +func (*IncomingApprovalCriteria) Descriptor() ([]byte, []int) { + return fileDescriptor_c373d815c4655b4d, []int{2} +} +func (m *IncomingApprovalCriteria) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IncomingApprovalCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IncomingApprovalCriteria.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IncomingApprovalCriteria) XXX_Merge(src proto.Message) { + xxx_messageInfo_IncomingApprovalCriteria.Merge(m, src) +} +func (m *IncomingApprovalCriteria) XXX_Size() int { + return m.Size() +} +func (m *IncomingApprovalCriteria) XXX_DiscardUnknown() { + xxx_messageInfo_IncomingApprovalCriteria.DiscardUnknown(m) +} + +var xxx_messageInfo_IncomingApprovalCriteria proto.InternalMessageInfo + +func (m *IncomingApprovalCriteria) GetMerkleChallenges() []*MerkleChallenge { + if m != nil { + return m.MerkleChallenges + } + return nil +} + +func (m *IncomingApprovalCriteria) GetPredeterminedBalances() *PredeterminedBalances { + if m != nil { + return m.PredeterminedBalances + } + return nil +} + +func (m *IncomingApprovalCriteria) GetApprovalAmounts() *ApprovalAmounts { + if m != nil { + return m.ApprovalAmounts + } + return nil +} + +func (m *IncomingApprovalCriteria) GetMaxNumTransfers() *MaxNumTransfers { + if m != nil { + return m.MaxNumTransfers + } + return nil +} + +func (m *IncomingApprovalCriteria) GetCoinTransfers() []*CoinTransfer { + if m != nil { + return m.CoinTransfers + } + return nil +} + +func (m *IncomingApprovalCriteria) GetRequireFromEqualsInitiatedBy() bool { + if m != nil { + return m.RequireFromEqualsInitiatedBy + } + return false +} + +func (m *IncomingApprovalCriteria) GetRequireFromDoesNotEqualInitiatedBy() bool { + if m != nil { + return m.RequireFromDoesNotEqualInitiatedBy + } + return false +} + +func (m *IncomingApprovalCriteria) GetAutoDeletionOptions() *AutoDeletionOptions { + if m != nil { + return m.AutoDeletionOptions + } + return nil +} + +func (m *IncomingApprovalCriteria) GetMustOwnTokens() []*MustOwnTokens { + if m != nil { + return m.MustOwnTokens + } + return nil +} + +func (m *IncomingApprovalCriteria) GetDynamicStoreChallenges() []*DynamicStoreChallenge { + if m != nil { + return m.DynamicStoreChallenges + } + return nil +} + +func (m *IncomingApprovalCriteria) GetEthSignatureChallenges() []*ETHSignatureChallenge { + if m != nil { + return m.EthSignatureChallenges + } + return nil +} + +func (m *IncomingApprovalCriteria) GetSenderChecks() *AddressChecks { + if m != nil { + return m.SenderChecks + } + return nil +} + +func (m *IncomingApprovalCriteria) GetInitiatorChecks() *AddressChecks { + if m != nil { + return m.InitiatorChecks + } + return nil +} + +func (m *IncomingApprovalCriteria) GetAltTimeChecks() *AltTimeChecks { + if m != nil { + return m.AltTimeChecks + } + return nil +} + +func (m *IncomingApprovalCriteria) GetMustPrioritize() bool { + if m != nil { + return m.MustPrioritize + } + return false +} + +func (m *IncomingApprovalCriteria) GetVotingChallenges() []*VotingChallenge { + if m != nil { + return m.VotingChallenges + } + return nil +} + +func (m *IncomingApprovalCriteria) GetEvmQueryChallenges() []*EVMQueryChallenge { + if m != nil { + return m.EvmQueryChallenges + } + return nil +} + +func init() { + proto.RegisterType((*ApprovalCriteria)(nil), "tokenization.v29.ApprovalCriteria") + proto.RegisterType((*OutgoingApprovalCriteria)(nil), "tokenization.v29.OutgoingApprovalCriteria") + proto.RegisterType((*IncomingApprovalCriteria)(nil), "tokenization.v29.IncomingApprovalCriteria") +} + +func init() { + proto.RegisterFile("tokenization/v29/approval_criteria.proto", fileDescriptor_c373d815c4655b4d) +} + +var fileDescriptor_c373d815c4655b4d = []byte{ + // 929 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x98, 0xdd, 0x6e, 0xdb, 0x36, + 0x14, 0xc7, 0xe3, 0xb5, 0x4b, 0x52, 0x26, 0x71, 0x5c, 0x36, 0xed, 0xb4, 0x60, 0xf0, 0xd2, 0x0c, + 0xeb, 0x82, 0x01, 0xb3, 0x01, 0xef, 0x2a, 0xc0, 0x30, 0x20, 0x76, 0x52, 0x2c, 0x1d, 0x9c, 0x74, + 0xb2, 0x97, 0x02, 0x05, 0x86, 0x80, 0x96, 0xce, 0x64, 0xc2, 0x12, 0xa9, 0x92, 0x94, 0xdb, 0xf4, + 0x29, 0xf6, 0x46, 0xc3, 0xee, 0x76, 0xd9, 0xcb, 0x5d, 0x0e, 0xc9, 0x8b, 0x0c, 0x62, 0x94, 0x54, + 0x1f, 0xb4, 0x23, 0x74, 0x0e, 0x30, 0x0c, 0xbe, 0x13, 0xc4, 0xff, 0xf9, 0xf1, 0xeb, 0xf0, 0xfc, + 0x45, 0xa1, 0x1d, 0xc5, 0x47, 0xc0, 0xe8, 0x5b, 0xa2, 0x28, 0x67, 0xcd, 0x71, 0x6b, 0xb7, 0x49, + 0xc2, 0x50, 0xf0, 0x31, 0xf1, 0x4f, 0x1d, 0x41, 0x15, 0x08, 0x4a, 0x1a, 0xa1, 0xe0, 0x8a, 0xe3, + 0x5a, 0x5a, 0xd9, 0x18, 0xb7, 0x76, 0x37, 0x37, 0x3c, 0xee, 0x71, 0xdd, 0xd8, 0x8c, 0x9f, 0x2e, + 0x75, 0x9b, 0x8f, 0x0b, 0x44, 0x67, 0x48, 0x7c, 0x1f, 0x98, 0x07, 0x32, 0x91, 0x7c, 0x53, 0x90, + 0x84, 0x02, 0x5c, 0x50, 0x20, 0x02, 0xca, 0xc0, 0x3d, 0x1d, 0x10, 0x9f, 0x30, 0xe7, 0x5a, 0x3e, + 0x65, 0x8c, 0x4a, 0x10, 0x67, 0x44, 0x99, 0x97, 0x28, 0xbf, 0x9e, 0x32, 0x1b, 0xce, 0x5c, 0x1a, + 0xbf, 0x4e, 0xa8, 0xdb, 0xe7, 0x55, 0x54, 0xdb, 0x4b, 0x5a, 0x3b, 0xc9, 0x54, 0x71, 0x17, 0xd5, + 0x02, 0x10, 0x23, 0x1f, 0x3a, 0xd7, 0x63, 0xb6, 0x2a, 0x5b, 0x77, 0x76, 0x56, 0x5a, 0x8f, 0x1b, + 0xf9, 0xf9, 0x37, 0xba, 0x59, 0xa5, 0x5d, 0x08, 0xc5, 0xbf, 0xa0, 0x87, 0x99, 0x99, 0xb5, 0x93, + 0x89, 0x59, 0x1f, 0x6d, 0x55, 0x76, 0x56, 0x5a, 0x5f, 0x15, 0x99, 0xcf, 0x4d, 0x72, 0xdb, 0x4c, + 0xc1, 0x3f, 0xa2, 0xf5, 0xab, 0xf9, 0xed, 0x05, 0x3c, 0x62, 0x4a, 0x5a, 0x77, 0x34, 0xd8, 0x30, + 0xd8, 0xbd, 0xac, 0xd0, 0xce, 0x47, 0xc6, 0xb0, 0x80, 0xbc, 0x39, 0x8a, 0x82, 0xbe, 0x20, 0x4c, + 0xfe, 0x0a, 0x42, 0x5a, 0x77, 0x27, 0xc1, 0xba, 0x59, 0xa1, 0x9d, 0x8f, 0xc4, 0xfb, 0x68, 0xcd, + 0xe1, 0x94, 0xbd, 0x47, 0x7d, 0xac, 0x17, 0xb1, 0x5e, 0x44, 0x75, 0x52, 0x32, 0x3b, 0x1b, 0x84, + 0xbf, 0x47, 0x9b, 0x02, 0x5e, 0x45, 0x54, 0x40, 0x9f, 0x1f, 0xbc, 0x8a, 0x88, 0x2f, 0x0f, 0x19, + 0x55, 0x94, 0x28, 0x70, 0xdb, 0x67, 0xd6, 0xe2, 0x56, 0x65, 0x67, 0xd9, 0x9e, 0xa2, 0xc0, 0x6d, + 0xf4, 0x59, 0xd2, 0xfa, 0x54, 0xf0, 0xa0, 0x48, 0x58, 0xd2, 0x84, 0xa9, 0x1a, 0xfc, 0x0c, 0x6d, + 0x5d, 0xf7, 0xb0, 0xcf, 0x41, 0x1e, 0x71, 0xa5, 0x45, 0x69, 0xce, 0xb2, 0xe6, 0xdc, 0xa8, 0xc3, + 0x47, 0x68, 0x3b, 0xd5, 0xd7, 0x24, 0xda, 0x3d, 0x4d, 0x2b, 0xa1, 0xc4, 0x4f, 0x51, 0x9d, 0x8f, + 0x41, 0x08, 0xea, 0x82, 0x8c, 0x75, 0xc7, 0x91, 0xf2, 0x38, 0x65, 0xde, 0xd5, 0x5e, 0x4b, 0x0b, + 0x69, 0xd6, 0x0d, 0xaa, 0x78, 0x9d, 0xae, 0x15, 0x7d, 0x7e, 0xc8, 0x1c, 0x1e, 0x64, 0x28, 0x2b, + 0x97, 0xeb, 0x34, 0x4d, 0x83, 0x5f, 0xa0, 0x07, 0x24, 0x52, 0x7c, 0x1f, 0x7c, 0x88, 0xf7, 0xf6, + 0x38, 0xd4, 0x67, 0xcd, 0x5a, 0xd5, 0x29, 0xf4, 0xa5, 0x21, 0x1f, 0x8b, 0x62, 0xdb, 0x44, 0xc0, + 0x07, 0x68, 0x2d, 0x88, 0xa4, 0x3a, 0x7e, 0xcd, 0xfa, 0x31, 0x43, 0x5a, 0x55, 0x9d, 0x4a, 0x9f, + 0x1b, 0xb2, 0x32, 0x2d, 0xb3, 0xb3, 0x51, 0xf8, 0x14, 0x3d, 0x72, 0xcf, 0x18, 0x09, 0xa8, 0xd3, + 0x53, 0x5c, 0xa4, 0xcf, 0xf7, 0xba, 0xe6, 0x19, 0xce, 0xe2, 0xbe, 0x49, 0x6f, 0x4f, 0xc0, 0xc4, + 0x1d, 0x80, 0x1a, 0xf6, 0xa8, 0xc7, 0x88, 0x8a, 0x32, 0x1d, 0xd4, 0x26, 0x75, 0x70, 0xd0, 0xff, + 0xa1, 0xa8, 0xb7, 0x27, 0x60, 0x70, 0x07, 0xad, 0x4a, 0x60, 0x2e, 0x88, 0xce, 0x10, 0x9c, 0x91, + 0xb4, 0xee, 0xeb, 0xa5, 0x35, 0xac, 0xc3, 0x9e, 0xeb, 0x0a, 0x90, 0xf2, 0x52, 0x66, 0x67, 0x82, + 0xf0, 0x21, 0x5a, 0x17, 0xe0, 0xd0, 0x90, 0x02, 0x53, 0x09, 0x07, 0x97, 0xe3, 0xe4, 0xe3, 0x62, + 0x14, 0xbd, 0x4c, 0x46, 0x7e, 0x35, 0xa4, 0x07, 0x25, 0x51, 0xb9, 0xb8, 0x78, 0x8f, 0x89, 0xaf, + 0xfa, 0x34, 0x80, 0x04, 0xb4, 0x31, 0x11, 0x94, 0x96, 0xd9, 0xd9, 0x28, 0xfc, 0x04, 0x55, 0xe3, + 0x4d, 0x7f, 0x2e, 0x28, 0x17, 0x54, 0xd1, 0xb7, 0x60, 0x3d, 0xd4, 0x99, 0x9b, 0x7b, 0x1b, 0x57, + 0xf9, 0x31, 0x57, 0x94, 0x79, 0xa9, 0x4d, 0x7a, 0x34, 0xa9, 0xca, 0x9f, 0x64, 0x95, 0x76, 0x21, + 0x14, 0x37, 0x10, 0x26, 0xbe, 0xcf, 0x5f, 0xb7, 0x89, 0x33, 0x02, 0xb7, 0x4b, 0x59, 0xdc, 0x6e, + 0x7d, 0xa2, 0xbb, 0x36, 0xb4, 0xe0, 0x16, 0xda, 0xd0, 0x6f, 0x7b, 0x21, 0x38, 0x94, 0xf8, 0x2f, + 0x04, 0x09, 0xc3, 0x38, 0xc2, 0xd2, 0x11, 0xc6, 0x36, 0xdc, 0x43, 0x18, 0xc6, 0xc1, 0x4f, 0x11, + 0x88, 0xb3, 0xd4, 0xa0, 0x3f, 0xd5, 0x83, 0xfe, 0xc2, 0x90, 0x59, 0x27, 0xdd, 0xac, 0xd6, 0x36, + 0x84, 0xe3, 0x97, 0x68, 0x23, 0x92, 0x20, 0xae, 0x0e, 0x71, 0x0f, 0x54, 0x3c, 0x3e, 0x69, 0x6d, + 0xea, 0xd5, 0x7f, 0x52, 0xc4, 0xfe, 0x6c, 0x50, 0xdb, 0x46, 0xc6, 0xb3, 0xbb, 0xcb, 0x6b, 0xb5, + 0xea, 0xf6, 0xef, 0x08, 0x59, 0xf9, 0x7a, 0x33, 0x37, 0xdb, 0xff, 0xa5, 0xd9, 0x96, 0x31, 0xca, + 0xa5, 0x92, 0x46, 0x39, 0xc1, 0x4c, 0x96, 0x67, 0x6f, 0x26, 0xf7, 0x66, 0x6c, 0x26, 0xe8, 0xb6, + 0xcd, 0x64, 0x65, 0x36, 0x66, 0x62, 0xf0, 0x81, 0xd5, 0xd9, 0xf9, 0xc0, 0xda, 0xac, 0x7c, 0xa0, + 0x3a, 0x23, 0x1f, 0x58, 0x2f, 0xed, 0x03, 0xb5, 0x0f, 0xf7, 0x01, 0x73, 0x8d, 0xbe, 0xff, 0xaf, + 0x6a, 0xf4, 0xf6, 0x1f, 0x08, 0x59, 0xf9, 0xaf, 0xad, 0x79, 0x05, 0xfd, 0x4f, 0x56, 0xd0, 0x9b, + 0xae, 0x1b, 0x8b, 0x25, 0xae, 0x1b, 0xe5, 0xae, 0x08, 0x4b, 0xa5, 0xaf, 0x08, 0xf3, 0x4a, 0x7a, + 0xdb, 0x95, 0x34, 0xff, 0x59, 0xbe, 0xfa, 0x81, 0x9f, 0xe5, 0xf3, 0x1a, 0x7a, 0x5b, 0x35, 0xb4, + 0x7d, 0xf2, 0xe7, 0x79, 0xbd, 0xf2, 0xee, 0xbc, 0x5e, 0xf9, 0xfb, 0xbc, 0x5e, 0xf9, 0xed, 0xa2, + 0xbe, 0xf0, 0xee, 0xa2, 0xbe, 0xf0, 0xd7, 0x45, 0x7d, 0xe1, 0xe5, 0x77, 0x1e, 0x55, 0xc3, 0x68, + 0xd0, 0x70, 0x78, 0xd0, 0x1c, 0x50, 0x35, 0x20, 0xae, 0x07, 0xf2, 0xfd, 0x93, 0x33, 0x24, 0x94, + 0x35, 0xdf, 0x34, 0x33, 0xbf, 0x95, 0xd4, 0x59, 0x08, 0xb2, 0x39, 0x6e, 0xed, 0x0e, 0x16, 0xf5, + 0x9f, 0xa4, 0x6f, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x42, 0xce, 0xd4, 0xe7, 0x45, 0x13, 0x00, + 0x00, +} + +func (m *ApprovalCriteria) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApprovalCriteria) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApprovalCriteria) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UserApprovalSettings != nil { + { + size, err := m.UserApprovalSettings.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 + } + if len(m.EvmQueryChallenges) > 0 { + for iNdEx := len(m.EvmQueryChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EvmQueryChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + } + if m.AllowSpecialWrapping { + i-- + if m.AllowSpecialWrapping { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc0 + } + if m.AllowBackedMinting { + i-- + if m.AllowBackedMinting { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb8 + } + if len(m.VotingChallenges) > 0 { + for iNdEx := len(m.VotingChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VotingChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + } + if m.MustPrioritize { + i-- + if m.MustPrioritize { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + } + if m.AltTimeChecks != nil { + { + size, err := m.AltTimeChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + if m.InitiatorChecks != nil { + { + size, err := m.InitiatorChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + if m.RecipientChecks != nil { + { + size, err := m.RecipientChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + if m.SenderChecks != nil { + { + size, err := m.SenderChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if len(m.EthSignatureChallenges) > 0 { + for iNdEx := len(m.EthSignatureChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EthSignatureChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if len(m.DynamicStoreChallenges) > 0 { + for iNdEx := len(m.DynamicStoreChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DynamicStoreChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + } + if len(m.MustOwnTokens) > 0 { + for iNdEx := len(m.MustOwnTokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MustOwnTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + } + if m.AutoDeletionOptions != nil { + { + size, err := m.AutoDeletionOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + if m.OverridesToIncomingApprovals { + i-- + if m.OverridesToIncomingApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.OverridesFromOutgoingApprovals { + i-- + if m.OverridesFromOutgoingApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if m.RequireFromDoesNotEqualInitiatedBy { + i-- + if m.RequireFromDoesNotEqualInitiatedBy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.RequireToDoesNotEqualInitiatedBy { + i-- + if m.RequireToDoesNotEqualInitiatedBy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.RequireFromEqualsInitiatedBy { + i-- + if m.RequireFromEqualsInitiatedBy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.RequireToEqualsInitiatedBy { + i-- + if m.RequireToEqualsInitiatedBy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.CoinTransfers) > 0 { + for iNdEx := len(m.CoinTransfers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CoinTransfers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.MaxNumTransfers != nil { + { + size, err := m.MaxNumTransfers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.ApprovalAmounts != nil { + { + size, err := m.ApprovalAmounts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.PredeterminedBalances != nil { + { + size, err := m.PredeterminedBalances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.MerkleChallenges) > 0 { + for iNdEx := len(m.MerkleChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MerkleChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *OutgoingApprovalCriteria) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OutgoingApprovalCriteria) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OutgoingApprovalCriteria) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EvmQueryChallenges) > 0 { + for iNdEx := len(m.EvmQueryChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EvmQueryChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + if len(m.VotingChallenges) > 0 { + for iNdEx := len(m.VotingChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VotingChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if m.MustPrioritize { + i-- + if m.MustPrioritize { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x78 + } + if m.AltTimeChecks != nil { + { + size, err := m.AltTimeChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + if m.InitiatorChecks != nil { + { + size, err := m.InitiatorChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + if m.RecipientChecks != nil { + { + size, err := m.RecipientChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + if len(m.EthSignatureChallenges) > 0 { + for iNdEx := len(m.EthSignatureChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EthSignatureChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.DynamicStoreChallenges) > 0 { + for iNdEx := len(m.DynamicStoreChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DynamicStoreChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.MustOwnTokens) > 0 { + for iNdEx := len(m.MustOwnTokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MustOwnTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if m.AutoDeletionOptions != nil { + { + size, err := m.AutoDeletionOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.RequireToDoesNotEqualInitiatedBy { + i-- + if m.RequireToDoesNotEqualInitiatedBy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.RequireToEqualsInitiatedBy { + i-- + if m.RequireToEqualsInitiatedBy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.CoinTransfers) > 0 { + for iNdEx := len(m.CoinTransfers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CoinTransfers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.MaxNumTransfers != nil { + { + size, err := m.MaxNumTransfers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.ApprovalAmounts != nil { + { + size, err := m.ApprovalAmounts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.PredeterminedBalances != nil { + { + size, err := m.PredeterminedBalances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.MerkleChallenges) > 0 { + for iNdEx := len(m.MerkleChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MerkleChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *IncomingApprovalCriteria) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IncomingApprovalCriteria) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IncomingApprovalCriteria) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EvmQueryChallenges) > 0 { + for iNdEx := len(m.EvmQueryChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EvmQueryChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + if len(m.VotingChallenges) > 0 { + for iNdEx := len(m.VotingChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VotingChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if m.MustPrioritize { + i-- + if m.MustPrioritize { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x78 + } + if m.AltTimeChecks != nil { + { + size, err := m.AltTimeChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + if m.InitiatorChecks != nil { + { + size, err := m.InitiatorChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + if m.SenderChecks != nil { + { + size, err := m.SenderChecks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + if len(m.EthSignatureChallenges) > 0 { + for iNdEx := len(m.EthSignatureChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EthSignatureChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.DynamicStoreChallenges) > 0 { + for iNdEx := len(m.DynamicStoreChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DynamicStoreChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.MustOwnTokens) > 0 { + for iNdEx := len(m.MustOwnTokens) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MustOwnTokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if m.AutoDeletionOptions != nil { + { + size, err := m.AutoDeletionOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.RequireFromDoesNotEqualInitiatedBy { + i-- + if m.RequireFromDoesNotEqualInitiatedBy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.RequireFromEqualsInitiatedBy { + i-- + if m.RequireFromEqualsInitiatedBy { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.CoinTransfers) > 0 { + for iNdEx := len(m.CoinTransfers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CoinTransfers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.MaxNumTransfers != nil { + { + size, err := m.MaxNumTransfers.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.ApprovalAmounts != nil { + { + size, err := m.ApprovalAmounts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.PredeterminedBalances != nil { + { + size, err := m.PredeterminedBalances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.MerkleChallenges) > 0 { + for iNdEx := len(m.MerkleChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MerkleChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalCriteria(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintApprovalCriteria(dAtA []byte, offset int, v uint64) int { + offset -= sovApprovalCriteria(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ApprovalCriteria) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.MerkleChallenges) > 0 { + for _, e := range m.MerkleChallenges { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.PredeterminedBalances != nil { + l = m.PredeterminedBalances.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.ApprovalAmounts != nil { + l = m.ApprovalAmounts.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.MaxNumTransfers != nil { + l = m.MaxNumTransfers.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if len(m.CoinTransfers) > 0 { + for _, e := range m.CoinTransfers { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.RequireToEqualsInitiatedBy { + n += 2 + } + if m.RequireFromEqualsInitiatedBy { + n += 2 + } + if m.RequireToDoesNotEqualInitiatedBy { + n += 2 + } + if m.RequireFromDoesNotEqualInitiatedBy { + n += 2 + } + if m.OverridesFromOutgoingApprovals { + n += 2 + } + if m.OverridesToIncomingApprovals { + n += 2 + } + if m.AutoDeletionOptions != nil { + l = m.AutoDeletionOptions.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if len(m.MustOwnTokens) > 0 { + for _, e := range m.MustOwnTokens { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if len(m.DynamicStoreChallenges) > 0 { + for _, e := range m.DynamicStoreChallenges { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if len(m.EthSignatureChallenges) > 0 { + for _, e := range m.EthSignatureChallenges { + l = e.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.SenderChecks != nil { + l = m.SenderChecks.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + if m.RecipientChecks != nil { + l = m.RecipientChecks.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + if m.InitiatorChecks != nil { + l = m.InitiatorChecks.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + if m.AltTimeChecks != nil { + l = m.AltTimeChecks.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + if m.MustPrioritize { + n += 3 + } + if len(m.VotingChallenges) > 0 { + for _, e := range m.VotingChallenges { + l = e.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.AllowBackedMinting { + n += 3 + } + if m.AllowSpecialWrapping { + n += 3 + } + if len(m.EvmQueryChallenges) > 0 { + for _, e := range m.EvmQueryChallenges { + l = e.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.UserApprovalSettings != nil { + l = m.UserApprovalSettings.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + return n +} + +func (m *OutgoingApprovalCriteria) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.MerkleChallenges) > 0 { + for _, e := range m.MerkleChallenges { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.PredeterminedBalances != nil { + l = m.PredeterminedBalances.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.ApprovalAmounts != nil { + l = m.ApprovalAmounts.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.MaxNumTransfers != nil { + l = m.MaxNumTransfers.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if len(m.CoinTransfers) > 0 { + for _, e := range m.CoinTransfers { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.RequireToEqualsInitiatedBy { + n += 2 + } + if m.RequireToDoesNotEqualInitiatedBy { + n += 2 + } + if m.AutoDeletionOptions != nil { + l = m.AutoDeletionOptions.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if len(m.MustOwnTokens) > 0 { + for _, e := range m.MustOwnTokens { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if len(m.DynamicStoreChallenges) > 0 { + for _, e := range m.DynamicStoreChallenges { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if len(m.EthSignatureChallenges) > 0 { + for _, e := range m.EthSignatureChallenges { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.RecipientChecks != nil { + l = m.RecipientChecks.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.InitiatorChecks != nil { + l = m.InitiatorChecks.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.AltTimeChecks != nil { + l = m.AltTimeChecks.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.MustPrioritize { + n += 2 + } + if len(m.VotingChallenges) > 0 { + for _, e := range m.VotingChallenges { + l = e.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + } + if len(m.EvmQueryChallenges) > 0 { + for _, e := range m.EvmQueryChallenges { + l = e.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + } + return n +} + +func (m *IncomingApprovalCriteria) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.MerkleChallenges) > 0 { + for _, e := range m.MerkleChallenges { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.PredeterminedBalances != nil { + l = m.PredeterminedBalances.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.ApprovalAmounts != nil { + l = m.ApprovalAmounts.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.MaxNumTransfers != nil { + l = m.MaxNumTransfers.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if len(m.CoinTransfers) > 0 { + for _, e := range m.CoinTransfers { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.RequireFromEqualsInitiatedBy { + n += 2 + } + if m.RequireFromDoesNotEqualInitiatedBy { + n += 2 + } + if m.AutoDeletionOptions != nil { + l = m.AutoDeletionOptions.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if len(m.MustOwnTokens) > 0 { + for _, e := range m.MustOwnTokens { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if len(m.DynamicStoreChallenges) > 0 { + for _, e := range m.DynamicStoreChallenges { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if len(m.EthSignatureChallenges) > 0 { + for _, e := range m.EthSignatureChallenges { + l = e.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + } + if m.SenderChecks != nil { + l = m.SenderChecks.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.InitiatorChecks != nil { + l = m.InitiatorChecks.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.AltTimeChecks != nil { + l = m.AltTimeChecks.Size() + n += 1 + l + sovApprovalCriteria(uint64(l)) + } + if m.MustPrioritize { + n += 2 + } + if len(m.VotingChallenges) > 0 { + for _, e := range m.VotingChallenges { + l = e.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + } + if len(m.EvmQueryChallenges) > 0 { + for _, e := range m.EvmQueryChallenges { + l = e.Size() + n += 2 + l + sovApprovalCriteria(uint64(l)) + } + } + return n +} + +func sovApprovalCriteria(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozApprovalCriteria(x uint64) (n int) { + return sovApprovalCriteria(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ApprovalCriteria) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApprovalCriteria: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApprovalCriteria: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MerkleChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MerkleChallenges = append(m.MerkleChallenges, &MerkleChallenge{}) + if err := m.MerkleChallenges[len(m.MerkleChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PredeterminedBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PredeterminedBalances == nil { + m.PredeterminedBalances = &PredeterminedBalances{} + } + if err := m.PredeterminedBalances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalAmounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApprovalAmounts == nil { + m.ApprovalAmounts = &ApprovalAmounts{} + } + if err := m.ApprovalAmounts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxNumTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MaxNumTransfers == nil { + m.MaxNumTransfers = &MaxNumTransfers{} + } + if err := m.MaxNumTransfers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoinTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CoinTransfers = append(m.CoinTransfers, &CoinTransfer{}) + if err := m.CoinTransfers[len(m.CoinTransfers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequireToEqualsInitiatedBy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequireToEqualsInitiatedBy = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequireFromEqualsInitiatedBy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequireFromEqualsInitiatedBy = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequireToDoesNotEqualInitiatedBy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequireToDoesNotEqualInitiatedBy = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequireFromDoesNotEqualInitiatedBy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequireFromDoesNotEqualInitiatedBy = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OverridesFromOutgoingApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OverridesFromOutgoingApprovals = bool(v != 0) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OverridesToIncomingApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OverridesToIncomingApprovals = bool(v != 0) + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoDeletionOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AutoDeletionOptions == nil { + m.AutoDeletionOptions = &AutoDeletionOptions{} + } + if err := m.AutoDeletionOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MustOwnTokens", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MustOwnTokens = append(m.MustOwnTokens, &MustOwnTokens{}) + if err := m.MustOwnTokens[len(m.MustOwnTokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicStoreChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DynamicStoreChallenges = append(m.DynamicStoreChallenges, &DynamicStoreChallenge{}) + if err := m.DynamicStoreChallenges[len(m.DynamicStoreChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthSignatureChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthSignatureChallenges = append(m.EthSignatureChallenges, ÐSignatureChallenge{}) + if err := m.EthSignatureChallenges[len(m.EthSignatureChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SenderChecks == nil { + m.SenderChecks = &AddressChecks{} + } + if err := m.SenderChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecipientChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RecipientChecks == nil { + m.RecipientChecks = &AddressChecks{} + } + if err := m.RecipientChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatorChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InitiatorChecks == nil { + m.InitiatorChecks = &AddressChecks{} + } + if err := m.InitiatorChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AltTimeChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AltTimeChecks == nil { + m.AltTimeChecks = &AltTimeChecks{} + } + if err := m.AltTimeChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MustPrioritize", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MustPrioritize = bool(v != 0) + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VotingChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VotingChallenges = append(m.VotingChallenges, &VotingChallenge{}) + if err := m.VotingChallenges[len(m.VotingChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowBackedMinting", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowBackedMinting = bool(v != 0) + case 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowSpecialWrapping", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowSpecialWrapping = bool(v != 0) + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvmQueryChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EvmQueryChallenges = append(m.EvmQueryChallenges, &EVMQueryChallenge{}) + if err := m.EvmQueryChallenges[len(m.EvmQueryChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserApprovalSettings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserApprovalSettings == nil { + m.UserApprovalSettings = &UserApprovalSettings{} + } + if err := m.UserApprovalSettings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalCriteria(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalCriteria + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OutgoingApprovalCriteria) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OutgoingApprovalCriteria: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OutgoingApprovalCriteria: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MerkleChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MerkleChallenges = append(m.MerkleChallenges, &MerkleChallenge{}) + if err := m.MerkleChallenges[len(m.MerkleChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PredeterminedBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PredeterminedBalances == nil { + m.PredeterminedBalances = &PredeterminedBalances{} + } + if err := m.PredeterminedBalances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalAmounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApprovalAmounts == nil { + m.ApprovalAmounts = &ApprovalAmounts{} + } + if err := m.ApprovalAmounts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxNumTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MaxNumTransfers == nil { + m.MaxNumTransfers = &MaxNumTransfers{} + } + if err := m.MaxNumTransfers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoinTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CoinTransfers = append(m.CoinTransfers, &CoinTransfer{}) + if err := m.CoinTransfers[len(m.CoinTransfers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequireToEqualsInitiatedBy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequireToEqualsInitiatedBy = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequireToDoesNotEqualInitiatedBy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequireToDoesNotEqualInitiatedBy = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoDeletionOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AutoDeletionOptions == nil { + m.AutoDeletionOptions = &AutoDeletionOptions{} + } + if err := m.AutoDeletionOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MustOwnTokens", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MustOwnTokens = append(m.MustOwnTokens, &MustOwnTokens{}) + if err := m.MustOwnTokens[len(m.MustOwnTokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicStoreChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DynamicStoreChallenges = append(m.DynamicStoreChallenges, &DynamicStoreChallenge{}) + if err := m.DynamicStoreChallenges[len(m.DynamicStoreChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthSignatureChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthSignatureChallenges = append(m.EthSignatureChallenges, ÐSignatureChallenge{}) + if err := m.EthSignatureChallenges[len(m.EthSignatureChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecipientChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RecipientChecks == nil { + m.RecipientChecks = &AddressChecks{} + } + if err := m.RecipientChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatorChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InitiatorChecks == nil { + m.InitiatorChecks = &AddressChecks{} + } + if err := m.InitiatorChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AltTimeChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AltTimeChecks == nil { + m.AltTimeChecks = &AltTimeChecks{} + } + if err := m.AltTimeChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MustPrioritize", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MustPrioritize = bool(v != 0) + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VotingChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VotingChallenges = append(m.VotingChallenges, &VotingChallenge{}) + if err := m.VotingChallenges[len(m.VotingChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvmQueryChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EvmQueryChallenges = append(m.EvmQueryChallenges, &EVMQueryChallenge{}) + if err := m.EvmQueryChallenges[len(m.EvmQueryChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalCriteria(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalCriteria + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IncomingApprovalCriteria) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IncomingApprovalCriteria: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IncomingApprovalCriteria: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MerkleChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MerkleChallenges = append(m.MerkleChallenges, &MerkleChallenge{}) + if err := m.MerkleChallenges[len(m.MerkleChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PredeterminedBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PredeterminedBalances == nil { + m.PredeterminedBalances = &PredeterminedBalances{} + } + if err := m.PredeterminedBalances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalAmounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApprovalAmounts == nil { + m.ApprovalAmounts = &ApprovalAmounts{} + } + if err := m.ApprovalAmounts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxNumTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MaxNumTransfers == nil { + m.MaxNumTransfers = &MaxNumTransfers{} + } + if err := m.MaxNumTransfers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoinTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CoinTransfers = append(m.CoinTransfers, &CoinTransfer{}) + if err := m.CoinTransfers[len(m.CoinTransfers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequireFromEqualsInitiatedBy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequireFromEqualsInitiatedBy = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequireFromDoesNotEqualInitiatedBy", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RequireFromDoesNotEqualInitiatedBy = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoDeletionOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AutoDeletionOptions == nil { + m.AutoDeletionOptions = &AutoDeletionOptions{} + } + if err := m.AutoDeletionOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MustOwnTokens", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MustOwnTokens = append(m.MustOwnTokens, &MustOwnTokens{}) + if err := m.MustOwnTokens[len(m.MustOwnTokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicStoreChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DynamicStoreChallenges = append(m.DynamicStoreChallenges, &DynamicStoreChallenge{}) + if err := m.DynamicStoreChallenges[len(m.DynamicStoreChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthSignatureChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthSignatureChallenges = append(m.EthSignatureChallenges, ÐSignatureChallenge{}) + if err := m.EthSignatureChallenges[len(m.EthSignatureChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SenderChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SenderChecks == nil { + m.SenderChecks = &AddressChecks{} + } + if err := m.SenderChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatorChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InitiatorChecks == nil { + m.InitiatorChecks = &AddressChecks{} + } + if err := m.InitiatorChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AltTimeChecks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AltTimeChecks == nil { + m.AltTimeChecks = &AltTimeChecks{} + } + if err := m.AltTimeChecks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MustPrioritize", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.MustPrioritize = bool(v != 0) + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VotingChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VotingChallenges = append(m.VotingChallenges, &VotingChallenge{}) + if err := m.VotingChallenges[len(m.VotingChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvmQueryChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalCriteria + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalCriteria + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EvmQueryChallenges = append(m.EvmQueryChallenges, &EVMQueryChallenge{}) + if err := m.EvmQueryChallenges[len(m.EvmQueryChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalCriteria(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalCriteria + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipApprovalCriteria(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovalCriteria + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthApprovalCriteria + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupApprovalCriteria + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthApprovalCriteria + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthApprovalCriteria = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowApprovalCriteria = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupApprovalCriteria = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/approval_tracking.pb.go b/x/tokenization/types/v29/approval_tracking.pb.go new file mode 100644 index 00000000..f3fbcd23 --- /dev/null +++ b/x/tokenization/types/v29/approval_tracking.pb.go @@ -0,0 +1,1816 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/approval_tracking.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// AutoDeletionOptions defines the options for auto-deletion of approvals. +type AutoDeletionOptions struct { + // After one use? + AfterOneUse bool `protobuf:"varint,1,opt,name=afterOneUse,proto3" json:"afterOneUse,omitempty"` + // After overall max number of uses threshold is met? + AfterOverallMaxNumTransfers bool `protobuf:"varint,2,opt,name=afterOverallMaxNumTransfers,proto3" json:"afterOverallMaxNumTransfers,omitempty"` + // Allow counterparty to purge this approval if they are the only initiator + AllowCounterpartyPurge bool `protobuf:"varint,3,opt,name=allowCounterpartyPurge,proto3" json:"allowCounterpartyPurge,omitempty"` + // Allow others to call PurgeApprovals on behalf of this approval owner + AllowPurgeIfExpired bool `protobuf:"varint,4,opt,name=allowPurgeIfExpired,proto3" json:"allowPurgeIfExpired,omitempty"` +} + +func (m *AutoDeletionOptions) Reset() { *m = AutoDeletionOptions{} } +func (m *AutoDeletionOptions) String() string { return proto.CompactTextString(m) } +func (*AutoDeletionOptions) ProtoMessage() {} +func (*AutoDeletionOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_c110b45ecb3fc3c5, []int{0} +} +func (m *AutoDeletionOptions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AutoDeletionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AutoDeletionOptions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AutoDeletionOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_AutoDeletionOptions.Merge(m, src) +} +func (m *AutoDeletionOptions) XXX_Size() int { + return m.Size() +} +func (m *AutoDeletionOptions) XXX_DiscardUnknown() { + xxx_messageInfo_AutoDeletionOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_AutoDeletionOptions proto.InternalMessageInfo + +func (m *AutoDeletionOptions) GetAfterOneUse() bool { + if m != nil { + return m.AfterOneUse + } + return false +} + +func (m *AutoDeletionOptions) GetAfterOverallMaxNumTransfers() bool { + if m != nil { + return m.AfterOverallMaxNumTransfers + } + return false +} + +func (m *AutoDeletionOptions) GetAllowCounterpartyPurge() bool { + if m != nil { + return m.AllowCounterpartyPurge + } + return false +} + +func (m *AutoDeletionOptions) GetAllowPurgeIfExpired() bool { + if m != nil { + return m.AllowPurgeIfExpired + } + return false +} + +// Time intervals to reset the trackers at. +type ResetTimeIntervals struct { + // Original start time of the first interval. + StartTime Uint `protobuf:"bytes,1,opt,name=startTime,proto3,customtype=Uint" json:"startTime"` + // Interval length in unix milliseconds. + IntervalLength Uint `protobuf:"bytes,2,opt,name=intervalLength,proto3,customtype=Uint" json:"intervalLength"` +} + +func (m *ResetTimeIntervals) Reset() { *m = ResetTimeIntervals{} } +func (m *ResetTimeIntervals) String() string { return proto.CompactTextString(m) } +func (*ResetTimeIntervals) ProtoMessage() {} +func (*ResetTimeIntervals) Descriptor() ([]byte, []int) { + return fileDescriptor_c110b45ecb3fc3c5, []int{1} +} +func (m *ResetTimeIntervals) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResetTimeIntervals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResetTimeIntervals.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ResetTimeIntervals) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetTimeIntervals.Merge(m, src) +} +func (m *ResetTimeIntervals) XXX_Size() int { + return m.Size() +} +func (m *ResetTimeIntervals) XXX_DiscardUnknown() { + xxx_messageInfo_ResetTimeIntervals.DiscardUnknown(m) +} + +var xxx_messageInfo_ResetTimeIntervals proto.InternalMessageInfo + +// ApprovalAmounts defines approval amounts per unique "from," "to," and/or "initiated by" address. +// If any of these are nil or "0", we assume unlimited approvals. +// If they are set to a value, then the running tally of the amounts transferred for the specified token IDs and ownership times +// must not exceed the corresponding value. +type ApprovalAmounts struct { + // Overall approval amount. + OverallApprovalAmount Uint `protobuf:"bytes,1,opt,name=overallApprovalAmount,proto3,customtype=Uint" json:"overallApprovalAmount"` + // Approval amount per "to" address. + PerToAddressApprovalAmount Uint `protobuf:"bytes,2,opt,name=perToAddressApprovalAmount,proto3,customtype=Uint" json:"perToAddressApprovalAmount"` + // Approval amount per "from" address. + PerFromAddressApprovalAmount Uint `protobuf:"bytes,3,opt,name=perFromAddressApprovalAmount,proto3,customtype=Uint" json:"perFromAddressApprovalAmount"` + // Approval amount per "initiated by" address. + PerInitiatedByAddressApprovalAmount Uint `protobuf:"bytes,4,opt,name=perInitiatedByAddressApprovalAmount,proto3,customtype=Uint" json:"perInitiatedByAddressApprovalAmount"` + // The ID of the amount tracker associated with this approval. + // We use this ID to track the number of transfers and amounts transferred. + AmountTrackerId string `protobuf:"bytes,6,opt,name=amountTrackerId,proto3" json:"amountTrackerId,omitempty"` + // Time intervals to reset the trackers at. + ResetTimeIntervals *ResetTimeIntervals `protobuf:"bytes,7,opt,name=resetTimeIntervals,proto3" json:"resetTimeIntervals,omitempty"` +} + +func (m *ApprovalAmounts) Reset() { *m = ApprovalAmounts{} } +func (m *ApprovalAmounts) String() string { return proto.CompactTextString(m) } +func (*ApprovalAmounts) ProtoMessage() {} +func (*ApprovalAmounts) Descriptor() ([]byte, []int) { + return fileDescriptor_c110b45ecb3fc3c5, []int{2} +} +func (m *ApprovalAmounts) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApprovalAmounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApprovalAmounts.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ApprovalAmounts) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApprovalAmounts.Merge(m, src) +} +func (m *ApprovalAmounts) XXX_Size() int { + return m.Size() +} +func (m *ApprovalAmounts) XXX_DiscardUnknown() { + xxx_messageInfo_ApprovalAmounts.DiscardUnknown(m) +} + +var xxx_messageInfo_ApprovalAmounts proto.InternalMessageInfo + +func (m *ApprovalAmounts) GetAmountTrackerId() string { + if m != nil { + return m.AmountTrackerId + } + return "" +} + +func (m *ApprovalAmounts) GetResetTimeIntervals() *ResetTimeIntervals { + if m != nil { + return m.ResetTimeIntervals + } + return nil +} + +// MaxNumTransfers defines the maximum number of transfers per unique "from," "to," and/or "initiated by" address. +// If any of these are nil or "0", we assume unlimited approvals. +// If they are set to a value, then the running tally of the number of transfers for the specified token IDs and ownership times +// must not exceed the corresponding value. +type MaxNumTransfers struct { + // Overall maximum number of transfers. + OverallMaxNumTransfers Uint `protobuf:"bytes,1,opt,name=overallMaxNumTransfers,proto3,customtype=Uint" json:"overallMaxNumTransfers"` + // Maximum number of transfers per "to" address. + PerToAddressMaxNumTransfers Uint `protobuf:"bytes,2,opt,name=perToAddressMaxNumTransfers,proto3,customtype=Uint" json:"perToAddressMaxNumTransfers"` + // Maximum number of transfers per "from" address. + PerFromAddressMaxNumTransfers Uint `protobuf:"bytes,3,opt,name=perFromAddressMaxNumTransfers,proto3,customtype=Uint" json:"perFromAddressMaxNumTransfers"` + // Maximum number of transfers per "initiated by" address. + PerInitiatedByAddressMaxNumTransfers Uint `protobuf:"bytes,4,opt,name=perInitiatedByAddressMaxNumTransfers,proto3,customtype=Uint" json:"perInitiatedByAddressMaxNumTransfers"` + // The ID of the amount tracker associated with this approval. + // We use this ID to track the number of transfers and amounts transferred. + AmountTrackerId string `protobuf:"bytes,6,opt,name=amountTrackerId,proto3" json:"amountTrackerId,omitempty"` + // Time intervals to reset the trackers at. + ResetTimeIntervals *ResetTimeIntervals `protobuf:"bytes,7,opt,name=resetTimeIntervals,proto3" json:"resetTimeIntervals,omitempty"` +} + +func (m *MaxNumTransfers) Reset() { *m = MaxNumTransfers{} } +func (m *MaxNumTransfers) String() string { return proto.CompactTextString(m) } +func (*MaxNumTransfers) ProtoMessage() {} +func (*MaxNumTransfers) Descriptor() ([]byte, []int) { + return fileDescriptor_c110b45ecb3fc3c5, []int{3} +} +func (m *MaxNumTransfers) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MaxNumTransfers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MaxNumTransfers.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MaxNumTransfers) XXX_Merge(src proto.Message) { + xxx_messageInfo_MaxNumTransfers.Merge(m, src) +} +func (m *MaxNumTransfers) XXX_Size() int { + return m.Size() +} +func (m *MaxNumTransfers) XXX_DiscardUnknown() { + xxx_messageInfo_MaxNumTransfers.DiscardUnknown(m) +} + +var xxx_messageInfo_MaxNumTransfers proto.InternalMessageInfo + +func (m *MaxNumTransfers) GetAmountTrackerId() string { + if m != nil { + return m.AmountTrackerId + } + return "" +} + +func (m *MaxNumTransfers) GetResetTimeIntervals() *ResetTimeIntervals { + if m != nil { + return m.ResetTimeIntervals + } + return nil +} + +// ApprovalTracker defines the tracker for approvals. This tracks the cumulative number of transfers and associated balances transferred. +type ApprovalTracker struct { + // The number of transfers that have been processed. + NumTransfers Uint `protobuf:"bytes,1,opt,name=numTransfers,proto3,customtype=Uint" json:"numTransfers"` + // Cumulative balances associated with the transfers that have been processed. + Amounts []*Balance `protobuf:"bytes,2,rep,name=amounts,proto3" json:"amounts,omitempty"` + // Last updated at time. + LastUpdatedAt Uint `protobuf:"bytes,3,opt,name=lastUpdatedAt,proto3,customtype=Uint" json:"lastUpdatedAt"` +} + +func (m *ApprovalTracker) Reset() { *m = ApprovalTracker{} } +func (m *ApprovalTracker) String() string { return proto.CompactTextString(m) } +func (*ApprovalTracker) ProtoMessage() {} +func (*ApprovalTracker) Descriptor() ([]byte, []int) { + return fileDescriptor_c110b45ecb3fc3c5, []int{4} +} +func (m *ApprovalTracker) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApprovalTracker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApprovalTracker.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ApprovalTracker) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApprovalTracker.Merge(m, src) +} +func (m *ApprovalTracker) XXX_Size() int { + return m.Size() +} +func (m *ApprovalTracker) XXX_DiscardUnknown() { + xxx_messageInfo_ApprovalTracker.DiscardUnknown(m) +} + +var xxx_messageInfo_ApprovalTracker proto.InternalMessageInfo + +func (m *ApprovalTracker) GetAmounts() []*Balance { + if m != nil { + return m.Amounts + } + return nil +} + +func init() { + proto.RegisterType((*AutoDeletionOptions)(nil), "tokenization.v29.AutoDeletionOptions") + proto.RegisterType((*ResetTimeIntervals)(nil), "tokenization.v29.ResetTimeIntervals") + proto.RegisterType((*ApprovalAmounts)(nil), "tokenization.v29.ApprovalAmounts") + proto.RegisterType((*MaxNumTransfers)(nil), "tokenization.v29.MaxNumTransfers") + proto.RegisterType((*ApprovalTracker)(nil), "tokenization.v29.ApprovalTracker") +} + +func init() { + proto.RegisterFile("tokenization/v29/approval_tracking.proto", fileDescriptor_c110b45ecb3fc3c5) +} + +var fileDescriptor_c110b45ecb3fc3c5 = []byte{ + // 605 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0x41, 0x4f, 0x13, 0x41, + 0x18, 0xed, 0x5a, 0x02, 0xf2, 0x81, 0x62, 0x06, 0x25, 0x2b, 0xe8, 0x42, 0x2a, 0x87, 0xc6, 0x43, + 0x97, 0x14, 0x63, 0x42, 0xe2, 0xc1, 0x56, 0x34, 0x69, 0x82, 0x40, 0x36, 0xc5, 0x83, 0x07, 0x75, + 0xda, 0xfd, 0x58, 0x26, 0x6c, 0x67, 0x36, 0x33, 0xd3, 0x15, 0xfc, 0x15, 0xfe, 0x10, 0x7f, 0x08, + 0x47, 0x2e, 0x26, 0xc6, 0x44, 0x62, 0xda, 0x3f, 0x62, 0x76, 0xb7, 0xa6, 0xed, 0x76, 0xa8, 0xdc, + 0xbc, 0x34, 0x33, 0xf3, 0xbd, 0xf7, 0xfa, 0xcd, 0xbc, 0x79, 0x3b, 0x50, 0xd6, 0xe2, 0x14, 0x39, + 0xfb, 0x42, 0x35, 0x13, 0xdc, 0x8d, 0xab, 0x3b, 0x2e, 0x8d, 0x22, 0x29, 0x62, 0x1a, 0x7e, 0xd4, + 0x92, 0xb6, 0x4f, 0x19, 0x0f, 0x2a, 0x91, 0x14, 0x5a, 0x90, 0x7b, 0xa3, 0xc8, 0x4a, 0x5c, 0xdd, + 0x59, 0xbd, 0x1f, 0x88, 0x40, 0xa4, 0x45, 0x37, 0x19, 0x65, 0xb8, 0xd5, 0xf5, 0x09, 0xc5, 0x16, + 0x0d, 0x29, 0x6f, 0xa3, 0xca, 0x00, 0xa5, 0xbe, 0x05, 0xcb, 0xb5, 0xae, 0x16, 0xbb, 0x18, 0x62, + 0x82, 0x39, 0x88, 0x92, 0x5f, 0x45, 0x36, 0x60, 0x81, 0x1e, 0x6b, 0x94, 0x07, 0x1c, 0x8f, 0x14, + 0xda, 0xd6, 0x86, 0x55, 0xbe, 0xed, 0x8d, 0x2e, 0x91, 0x97, 0xb0, 0x96, 0x4d, 0x63, 0x94, 0x34, + 0x0c, 0xdf, 0xd2, 0xb3, 0xfd, 0x6e, 0xa7, 0x29, 0x29, 0x57, 0xc7, 0x28, 0x95, 0x7d, 0x2b, 0x65, + 0x4c, 0x83, 0x90, 0xe7, 0xb0, 0x42, 0xc3, 0x50, 0x7c, 0x7e, 0x25, 0xba, 0x5c, 0xa3, 0x8c, 0xa8, + 0xd4, 0xe7, 0x87, 0x5d, 0x19, 0xa0, 0x5d, 0x4c, 0xc9, 0xd7, 0x54, 0xc9, 0x16, 0x2c, 0xa7, 0x95, + 0x74, 0xd6, 0x38, 0x7e, 0x7d, 0x16, 0x31, 0x89, 0xbe, 0x3d, 0x93, 0x92, 0x4c, 0xa5, 0x52, 0x0c, + 0xc4, 0x43, 0x85, 0xba, 0xc9, 0x3a, 0xd8, 0x48, 0xd4, 0x62, 0x1a, 0x2a, 0xf2, 0x14, 0xe6, 0x95, + 0xa6, 0x32, 0x5d, 0x4d, 0x77, 0x38, 0x5f, 0x5f, 0xbc, 0xb8, 0x5a, 0x2f, 0xfc, 0xbc, 0x5a, 0x9f, + 0x39, 0x62, 0x5c, 0x7b, 0xc3, 0x32, 0x79, 0x06, 0x77, 0xd9, 0x80, 0xb8, 0x87, 0x3c, 0xd0, 0x27, + 0xe9, 0x06, 0xf3, 0x84, 0x1c, 0xa6, 0xf4, 0xbd, 0x08, 0x4b, 0xb5, 0x81, 0x85, 0xb5, 0x4e, 0xb2, + 0x11, 0x45, 0xea, 0xf0, 0x40, 0x64, 0xe7, 0x31, 0x5e, 0x31, 0x76, 0x60, 0x86, 0x92, 0x3d, 0x58, + 0x8d, 0x50, 0x36, 0x45, 0xcd, 0xf7, 0x25, 0x2a, 0x95, 0x13, 0x32, 0x75, 0x36, 0x05, 0x4f, 0x0e, + 0xe1, 0x51, 0x84, 0xf2, 0x8d, 0x14, 0x1d, 0xb3, 0x5e, 0xd1, 0xa0, 0x37, 0x95, 0x41, 0x3e, 0xc0, + 0x93, 0x08, 0x65, 0x83, 0x33, 0xcd, 0xa8, 0x46, 0xbf, 0x7e, 0x6e, 0x16, 0x9e, 0x31, 0x08, 0xdf, + 0x84, 0x48, 0xca, 0xb0, 0x44, 0xd3, 0x51, 0x33, 0x89, 0x05, 0xca, 0x86, 0x6f, 0xcf, 0x26, 0x5a, + 0x5e, 0x7e, 0x99, 0x34, 0x81, 0xc8, 0x09, 0xe7, 0xed, 0xb9, 0x0d, 0xab, 0xbc, 0x50, 0xdd, 0xac, + 0xe4, 0x53, 0x54, 0x99, 0xbc, 0x25, 0x9e, 0x81, 0x5f, 0xfa, 0x55, 0x84, 0xa5, 0xfc, 0x6d, 0xde, + 0x85, 0x15, 0x61, 0x8e, 0x82, 0xc9, 0xd8, 0x6b, 0xb0, 0x64, 0x1f, 0xd6, 0x46, 0x9d, 0x32, 0xa5, + 0x2a, 0x2f, 0x35, 0x8d, 0x40, 0x3c, 0x78, 0x3c, 0xee, 0x54, 0x5e, 0xd1, 0x64, 0xee, 0x74, 0x0a, + 0xf9, 0x04, 0x9b, 0x46, 0x93, 0xf2, 0xd2, 0x26, 0x7b, 0x6f, 0xc4, 0xfc, 0xef, 0xfe, 0x7e, 0xb3, + 0x86, 0xb9, 0x1d, 0xfc, 0x17, 0xd9, 0x82, 0x45, 0xfe, 0x2f, 0x57, 0xc7, 0x10, 0x64, 0x1b, 0xe6, + 0xb2, 0x76, 0x13, 0xdf, 0x8a, 0xe5, 0x85, 0xea, 0xc3, 0xc9, 0x86, 0xea, 0xd9, 0xe7, 0xd8, 0xfb, + 0x8b, 0x24, 0x55, 0xb8, 0x13, 0x52, 0xa5, 0x8f, 0x22, 0x3f, 0x39, 0xa1, 0x9a, 0x39, 0x7d, 0xe3, + 0x90, 0xfa, 0xbb, 0x8b, 0x9e, 0x63, 0x5d, 0xf6, 0x1c, 0xeb, 0x77, 0xcf, 0xb1, 0xbe, 0xf6, 0x9d, + 0xc2, 0x65, 0xdf, 0x29, 0xfc, 0xe8, 0x3b, 0x85, 0xf7, 0x2f, 0x02, 0xa6, 0x4f, 0xba, 0xad, 0x4a, + 0x5b, 0x74, 0xdc, 0x16, 0xd3, 0x2d, 0xea, 0x07, 0xa8, 0x86, 0xa3, 0xf6, 0x09, 0x65, 0xdc, 0x3d, + 0x73, 0xc7, 0x5e, 0x09, 0x7d, 0x1e, 0xa1, 0x4a, 0xde, 0x8a, 0xd6, 0x6c, 0xfa, 0x46, 0x6c, 0xff, + 0x09, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x67, 0xb5, 0xd8, 0x98, 0x06, 0x00, 0x00, +} + +func (m *AutoDeletionOptions) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AutoDeletionOptions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AutoDeletionOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AllowPurgeIfExpired { + i-- + if m.AllowPurgeIfExpired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.AllowCounterpartyPurge { + i-- + if m.AllowCounterpartyPurge { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.AfterOverallMaxNumTransfers { + i-- + if m.AfterOverallMaxNumTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.AfterOneUse { + i-- + if m.AfterOneUse { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ResetTimeIntervals) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResetTimeIntervals) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResetTimeIntervals) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.IntervalLength.Size() + i -= size + if _, err := m.IntervalLength.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.StartTime.Size() + i -= size + if _, err := m.StartTime.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ApprovalAmounts) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApprovalAmounts) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApprovalAmounts) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ResetTimeIntervals != nil { + { + size, err := m.ResetTimeIntervals.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if len(m.AmountTrackerId) > 0 { + i -= len(m.AmountTrackerId) + copy(dAtA[i:], m.AmountTrackerId) + i = encodeVarintApprovalTracking(dAtA, i, uint64(len(m.AmountTrackerId))) + i-- + dAtA[i] = 0x32 + } + { + size := m.PerInitiatedByAddressApprovalAmount.Size() + i -= size + if _, err := m.PerInitiatedByAddressApprovalAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.PerFromAddressApprovalAmount.Size() + i -= size + if _, err := m.PerFromAddressApprovalAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.PerToAddressApprovalAmount.Size() + i -= size + if _, err := m.PerToAddressApprovalAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.OverallApprovalAmount.Size() + i -= size + if _, err := m.OverallApprovalAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MaxNumTransfers) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MaxNumTransfers) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MaxNumTransfers) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ResetTimeIntervals != nil { + { + size, err := m.ResetTimeIntervals.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if len(m.AmountTrackerId) > 0 { + i -= len(m.AmountTrackerId) + copy(dAtA[i:], m.AmountTrackerId) + i = encodeVarintApprovalTracking(dAtA, i, uint64(len(m.AmountTrackerId))) + i-- + dAtA[i] = 0x32 + } + { + size := m.PerInitiatedByAddressMaxNumTransfers.Size() + i -= size + if _, err := m.PerInitiatedByAddressMaxNumTransfers.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.PerFromAddressMaxNumTransfers.Size() + i -= size + if _, err := m.PerFromAddressMaxNumTransfers.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.PerToAddressMaxNumTransfers.Size() + i -= size + if _, err := m.PerToAddressMaxNumTransfers.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.OverallMaxNumTransfers.Size() + i -= size + if _, err := m.OverallMaxNumTransfers.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ApprovalTracker) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApprovalTracker) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApprovalTracker) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.LastUpdatedAt.Size() + i -= size + if _, err := m.LastUpdatedAt.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Amounts) > 0 { + for iNdEx := len(m.Amounts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size := m.NumTransfers.Size() + i -= size + if _, err := m.NumTransfers.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovalTracking(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintApprovalTracking(dAtA []byte, offset int, v uint64) int { + offset -= sovApprovalTracking(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *AutoDeletionOptions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AfterOneUse { + n += 2 + } + if m.AfterOverallMaxNumTransfers { + n += 2 + } + if m.AllowCounterpartyPurge { + n += 2 + } + if m.AllowPurgeIfExpired { + n += 2 + } + return n +} + +func (m *ResetTimeIntervals) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.StartTime.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + l = m.IntervalLength.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + return n +} + +func (m *ApprovalAmounts) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.OverallApprovalAmount.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + l = m.PerToAddressApprovalAmount.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + l = m.PerFromAddressApprovalAmount.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + l = m.PerInitiatedByAddressApprovalAmount.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + l = len(m.AmountTrackerId) + if l > 0 { + n += 1 + l + sovApprovalTracking(uint64(l)) + } + if m.ResetTimeIntervals != nil { + l = m.ResetTimeIntervals.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + } + return n +} + +func (m *MaxNumTransfers) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.OverallMaxNumTransfers.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + l = m.PerToAddressMaxNumTransfers.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + l = m.PerFromAddressMaxNumTransfers.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + l = m.PerInitiatedByAddressMaxNumTransfers.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + l = len(m.AmountTrackerId) + if l > 0 { + n += 1 + l + sovApprovalTracking(uint64(l)) + } + if m.ResetTimeIntervals != nil { + l = m.ResetTimeIntervals.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + } + return n +} + +func (m *ApprovalTracker) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.NumTransfers.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + if len(m.Amounts) > 0 { + for _, e := range m.Amounts { + l = e.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + } + } + l = m.LastUpdatedAt.Size() + n += 1 + l + sovApprovalTracking(uint64(l)) + return n +} + +func sovApprovalTracking(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozApprovalTracking(x uint64) (n int) { + return sovApprovalTracking(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *AutoDeletionOptions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AutoDeletionOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AutoDeletionOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AfterOneUse", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AfterOneUse = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AfterOverallMaxNumTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AfterOverallMaxNumTransfers = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowCounterpartyPurge", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowCounterpartyPurge = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowPurgeIfExpired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowPurgeIfExpired = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipApprovalTracking(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalTracking + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResetTimeIntervals) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResetTimeIntervals: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResetTimeIntervals: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StartTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IntervalLength", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.IntervalLength.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalTracking(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalTracking + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApprovalAmounts) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApprovalAmounts: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApprovalAmounts: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OverallApprovalAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OverallApprovalAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerToAddressApprovalAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PerToAddressApprovalAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerFromAddressApprovalAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PerFromAddressApprovalAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerInitiatedByAddressApprovalAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PerInitiatedByAddressApprovalAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountTrackerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AmountTrackerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResetTimeIntervals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResetTimeIntervals == nil { + m.ResetTimeIntervals = &ResetTimeIntervals{} + } + if err := m.ResetTimeIntervals.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalTracking(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalTracking + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MaxNumTransfers) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MaxNumTransfers: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MaxNumTransfers: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OverallMaxNumTransfers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OverallMaxNumTransfers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerToAddressMaxNumTransfers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PerToAddressMaxNumTransfers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerFromAddressMaxNumTransfers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PerFromAddressMaxNumTransfers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PerInitiatedByAddressMaxNumTransfers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PerInitiatedByAddressMaxNumTransfers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AmountTrackerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AmountTrackerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResetTimeIntervals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ResetTimeIntervals == nil { + m.ResetTimeIntervals = &ResetTimeIntervals{} + } + if err := m.ResetTimeIntervals.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalTracking(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalTracking + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApprovalTracker) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApprovalTracker: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApprovalTracker: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumTransfers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NumTransfers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amounts = append(m.Amounts, &Balance{}) + if err := m.Amounts[len(m.Amounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastUpdatedAt", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovalTracking + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovalTracking + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.LastUpdatedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovalTracking(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovalTracking + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipApprovalTracking(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovalTracking + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthApprovalTracking + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupApprovalTracking + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthApprovalTracking + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthApprovalTracking = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowApprovalTracking = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupApprovalTracking = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/approvals.pb.go b/x/tokenization/types/v29/approvals.pb.go new file mode 100644 index 00000000..3ce05c9d --- /dev/null +++ b/x/tokenization/types/v29/approvals.pb.go @@ -0,0 +1,2581 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/approvals.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// CollectionApproval defines the rules for the approval of a transfer on the collection level +type CollectionApproval struct { + // The list ID for the sender of the transfer. + FromListId string `protobuf:"bytes,1,opt,name=fromListId,proto3" json:"fromListId,omitempty"` + // The list ID for the recipient of the transfer. + ToListId string `protobuf:"bytes,2,opt,name=toListId,proto3" json:"toListId,omitempty"` + // The list ID for the user who initiated the transfer. + InitiatedByListId string `protobuf:"bytes,3,opt,name=initiatedByListId,proto3" json:"initiatedByListId,omitempty"` + // The allowed range of transfer times for approval. + TransferTimes []*UintRange `protobuf:"bytes,4,rep,name=transferTimes,proto3" json:"transferTimes,omitempty"` + // The allowed range of token IDs for approval. + TokenIds []*UintRange `protobuf:"bytes,5,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` + // The allowed range of ownership times for approval. + OwnershipTimes []*UintRange `protobuf:"bytes,6,rep,name=ownershipTimes,proto3" json:"ownershipTimes,omitempty"` + // The URI associated with this approval, optionally providing metadata about the approval. + Uri string `protobuf:"bytes,7,opt,name=uri,proto3" json:"uri,omitempty"` + // Arbitrary custom data associated with this approval. + CustomData string `protobuf:"bytes,8,opt,name=customData,proto3" json:"customData,omitempty"` + // The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming). + ApprovalId string `protobuf:"bytes,9,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + // The criteria that must be met for this approval to be considered. + ApprovalCriteria *ApprovalCriteria `protobuf:"bytes,10,opt,name=approvalCriteria,proto3" json:"approvalCriteria,omitempty"` + // Version of the approval. Maintained internally. + Version Uint `protobuf:"bytes,11,opt,name=version,proto3,customtype=Uint" json:"version"` +} + +func (m *CollectionApproval) Reset() { *m = CollectionApproval{} } +func (m *CollectionApproval) String() string { return proto.CompactTextString(m) } +func (*CollectionApproval) ProtoMessage() {} +func (*CollectionApproval) Descriptor() ([]byte, []int) { + return fileDescriptor_fa19deec0bcff50d, []int{0} +} +func (m *CollectionApproval) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CollectionApproval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CollectionApproval.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CollectionApproval) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionApproval.Merge(m, src) +} +func (m *CollectionApproval) XXX_Size() int { + return m.Size() +} +func (m *CollectionApproval) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionApproval.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionApproval proto.InternalMessageInfo + +func (m *CollectionApproval) GetFromListId() string { + if m != nil { + return m.FromListId + } + return "" +} + +func (m *CollectionApproval) GetToListId() string { + if m != nil { + return m.ToListId + } + return "" +} + +func (m *CollectionApproval) GetInitiatedByListId() string { + if m != nil { + return m.InitiatedByListId + } + return "" +} + +func (m *CollectionApproval) GetTransferTimes() []*UintRange { + if m != nil { + return m.TransferTimes + } + return nil +} + +func (m *CollectionApproval) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +func (m *CollectionApproval) GetOwnershipTimes() []*UintRange { + if m != nil { + return m.OwnershipTimes + } + return nil +} + +func (m *CollectionApproval) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *CollectionApproval) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *CollectionApproval) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *CollectionApproval) GetApprovalCriteria() *ApprovalCriteria { + if m != nil { + return m.ApprovalCriteria + } + return nil +} + +// UserOutgoingApproval defines the rules for the approval of an outgoing transfer from a user. +type UserOutgoingApproval struct { + // The list ID for the recipient of the transfer. + ToListId string `protobuf:"bytes,1,opt,name=toListId,proto3" json:"toListId,omitempty"` + // The list ID for the user who initiated the transfer. + InitiatedByListId string `protobuf:"bytes,2,opt,name=initiatedByListId,proto3" json:"initiatedByListId,omitempty"` + // The allowed range of transfer times for approval. + TransferTimes []*UintRange `protobuf:"bytes,3,rep,name=transferTimes,proto3" json:"transferTimes,omitempty"` + // The allowed range of token IDs for approval. + TokenIds []*UintRange `protobuf:"bytes,4,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` + // The allowed range of ownership times for approval. + OwnershipTimes []*UintRange `protobuf:"bytes,5,rep,name=ownershipTimes,proto3" json:"ownershipTimes,omitempty"` + // The URI associated with this approval, optionally providing metadata about the approval. + Uri string `protobuf:"bytes,6,opt,name=uri,proto3" json:"uri,omitempty"` + // Arbitrary custom data associated with this approval. + CustomData string `protobuf:"bytes,7,opt,name=customData,proto3" json:"customData,omitempty"` + // The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming). + ApprovalId string `protobuf:"bytes,8,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + // The criteria that must be met for this approval to be considered. + ApprovalCriteria *OutgoingApprovalCriteria `protobuf:"bytes,9,opt,name=approvalCriteria,proto3" json:"approvalCriteria,omitempty"` + // Version of the approval. Maintained internally. + Version Uint `protobuf:"bytes,10,opt,name=version,proto3,customtype=Uint" json:"version"` +} + +func (m *UserOutgoingApproval) Reset() { *m = UserOutgoingApproval{} } +func (m *UserOutgoingApproval) String() string { return proto.CompactTextString(m) } +func (*UserOutgoingApproval) ProtoMessage() {} +func (*UserOutgoingApproval) Descriptor() ([]byte, []int) { + return fileDescriptor_fa19deec0bcff50d, []int{1} +} +func (m *UserOutgoingApproval) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserOutgoingApproval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserOutgoingApproval.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserOutgoingApproval) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserOutgoingApproval.Merge(m, src) +} +func (m *UserOutgoingApproval) XXX_Size() int { + return m.Size() +} +func (m *UserOutgoingApproval) XXX_DiscardUnknown() { + xxx_messageInfo_UserOutgoingApproval.DiscardUnknown(m) +} + +var xxx_messageInfo_UserOutgoingApproval proto.InternalMessageInfo + +func (m *UserOutgoingApproval) GetToListId() string { + if m != nil { + return m.ToListId + } + return "" +} + +func (m *UserOutgoingApproval) GetInitiatedByListId() string { + if m != nil { + return m.InitiatedByListId + } + return "" +} + +func (m *UserOutgoingApproval) GetTransferTimes() []*UintRange { + if m != nil { + return m.TransferTimes + } + return nil +} + +func (m *UserOutgoingApproval) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +func (m *UserOutgoingApproval) GetOwnershipTimes() []*UintRange { + if m != nil { + return m.OwnershipTimes + } + return nil +} + +func (m *UserOutgoingApproval) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *UserOutgoingApproval) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *UserOutgoingApproval) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *UserOutgoingApproval) GetApprovalCriteria() *OutgoingApprovalCriteria { + if m != nil { + return m.ApprovalCriteria + } + return nil +} + +// UserIncomingApproval defines the rules for the approval of an incoming transfer to a user. +type UserIncomingApproval struct { + // The list ID for the sender of the transfer. + FromListId string `protobuf:"bytes,1,opt,name=fromListId,proto3" json:"fromListId,omitempty"` + // The list ID for the user who initiated the transfer. + InitiatedByListId string `protobuf:"bytes,2,opt,name=initiatedByListId,proto3" json:"initiatedByListId,omitempty"` + // The allowed range of transfer times for approval. + TransferTimes []*UintRange `protobuf:"bytes,3,rep,name=transferTimes,proto3" json:"transferTimes,omitempty"` + // The allowed range of token IDs for approval. + TokenIds []*UintRange `protobuf:"bytes,4,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` + // The allowed range of ownership times for approval. + OwnershipTimes []*UintRange `protobuf:"bytes,5,rep,name=ownershipTimes,proto3" json:"ownershipTimes,omitempty"` + // The URI associated with this approval, optionally providing metadata about the approval. + Uri string `protobuf:"bytes,6,opt,name=uri,proto3" json:"uri,omitempty"` + // Arbitrary custom data associated with this approval. + CustomData string `protobuf:"bytes,7,opt,name=customData,proto3" json:"customData,omitempty"` + // The ID of this approval. Must be unique per level (i.e. collection, outgoing, incoming). + ApprovalId string `protobuf:"bytes,8,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + // The criteria that must be met for this approval to be considered. + ApprovalCriteria *IncomingApprovalCriteria `protobuf:"bytes,9,opt,name=approvalCriteria,proto3" json:"approvalCriteria,omitempty"` + // Version of the approval. Maintained internally. + Version Uint `protobuf:"bytes,10,opt,name=version,proto3,customtype=Uint" json:"version"` +} + +func (m *UserIncomingApproval) Reset() { *m = UserIncomingApproval{} } +func (m *UserIncomingApproval) String() string { return proto.CompactTextString(m) } +func (*UserIncomingApproval) ProtoMessage() {} +func (*UserIncomingApproval) Descriptor() ([]byte, []int) { + return fileDescriptor_fa19deec0bcff50d, []int{2} +} +func (m *UserIncomingApproval) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserIncomingApproval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserIncomingApproval.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserIncomingApproval) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserIncomingApproval.Merge(m, src) +} +func (m *UserIncomingApproval) XXX_Size() int { + return m.Size() +} +func (m *UserIncomingApproval) XXX_DiscardUnknown() { + xxx_messageInfo_UserIncomingApproval.DiscardUnknown(m) +} + +var xxx_messageInfo_UserIncomingApproval proto.InternalMessageInfo + +func (m *UserIncomingApproval) GetFromListId() string { + if m != nil { + return m.FromListId + } + return "" +} + +func (m *UserIncomingApproval) GetInitiatedByListId() string { + if m != nil { + return m.InitiatedByListId + } + return "" +} + +func (m *UserIncomingApproval) GetTransferTimes() []*UintRange { + if m != nil { + return m.TransferTimes + } + return nil +} + +func (m *UserIncomingApproval) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +func (m *UserIncomingApproval) GetOwnershipTimes() []*UintRange { + if m != nil { + return m.OwnershipTimes + } + return nil +} + +func (m *UserIncomingApproval) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *UserIncomingApproval) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *UserIncomingApproval) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *UserIncomingApproval) GetApprovalCriteria() *IncomingApprovalCriteria { + if m != nil { + return m.ApprovalCriteria + } + return nil +} + +// ApprovalIdentifierDetails defines the details to identify a specific approval. +type ApprovalIdentifierDetails struct { + // The ID of the approval. + ApprovalId string `protobuf:"bytes,1,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + // The level of the approval. Can be "collection", "incoming", or "outgoing". + ApprovalLevel string `protobuf:"bytes,2,opt,name=approvalLevel,proto3" json:"approvalLevel,omitempty"` + // The address of the approver. Leave blank "" if approvalLevel == "collection". + ApproverAddress string `protobuf:"bytes,3,opt,name=approverAddress,proto3" json:"approverAddress,omitempty"` + // The version of the approval. + Version Uint `protobuf:"bytes,4,opt,name=version,proto3,customtype=Uint" json:"version"` +} + +func (m *ApprovalIdentifierDetails) Reset() { *m = ApprovalIdentifierDetails{} } +func (m *ApprovalIdentifierDetails) String() string { return proto.CompactTextString(m) } +func (*ApprovalIdentifierDetails) ProtoMessage() {} +func (*ApprovalIdentifierDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_fa19deec0bcff50d, []int{3} +} +func (m *ApprovalIdentifierDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApprovalIdentifierDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApprovalIdentifierDetails.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ApprovalIdentifierDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApprovalIdentifierDetails.Merge(m, src) +} +func (m *ApprovalIdentifierDetails) XXX_Size() int { + return m.Size() +} +func (m *ApprovalIdentifierDetails) XXX_DiscardUnknown() { + xxx_messageInfo_ApprovalIdentifierDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_ApprovalIdentifierDetails proto.InternalMessageInfo + +func (m *ApprovalIdentifierDetails) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *ApprovalIdentifierDetails) GetApprovalLevel() string { + if m != nil { + return m.ApprovalLevel + } + return "" +} + +func (m *ApprovalIdentifierDetails) GetApproverAddress() string { + if m != nil { + return m.ApproverAddress + } + return "" +} + +func init() { + proto.RegisterType((*CollectionApproval)(nil), "tokenization.v29.CollectionApproval") + proto.RegisterType((*UserOutgoingApproval)(nil), "tokenization.v29.UserOutgoingApproval") + proto.RegisterType((*UserIncomingApproval)(nil), "tokenization.v29.UserIncomingApproval") + proto.RegisterType((*ApprovalIdentifierDetails)(nil), "tokenization.v29.ApprovalIdentifierDetails") +} + +func init() { proto.RegisterFile("tokenization/v29/approvals.proto", fileDescriptor_fa19deec0bcff50d) } + +var fileDescriptor_fa19deec0bcff50d = []byte{ + // 573 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x95, 0x4f, 0x6f, 0x12, 0x4f, + 0x18, 0xc7, 0xd9, 0x42, 0xf9, 0x33, 0xfc, 0xfa, 0x13, 0x27, 0x3d, 0xac, 0x98, 0x2c, 0x84, 0x18, + 0x43, 0x8c, 0x61, 0x13, 0x3c, 0x98, 0x26, 0x5e, 0x80, 0x5e, 0x48, 0x1a, 0x4d, 0x88, 0xed, 0xc1, + 0x8b, 0x19, 0x76, 0x1f, 0x96, 0x49, 0x97, 0x19, 0x32, 0x33, 0xac, 0xd6, 0x77, 0xe0, 0xcd, 0xf7, + 0xe2, 0x9b, 0xe8, 0xb1, 0x47, 0xe3, 0xa1, 0x31, 0xf0, 0x12, 0x3c, 0x78, 0x35, 0xfb, 0x07, 0x58, + 0x76, 0x6d, 0x21, 0xd6, 0x78, 0xf2, 0x36, 0xf3, 0x7c, 0xbf, 0xcf, 0xce, 0x77, 0xe6, 0x43, 0x78, + 0x50, 0x5d, 0xf1, 0x73, 0x60, 0xf4, 0x03, 0x51, 0x94, 0x33, 0xd3, 0x6b, 0x1f, 0x99, 0x64, 0x3a, + 0x15, 0xdc, 0x23, 0xae, 0x6c, 0x4d, 0x05, 0x57, 0x1c, 0x57, 0xe2, 0x8e, 0x96, 0xd7, 0x3e, 0xaa, + 0x1e, 0x3a, 0xdc, 0xe1, 0x81, 0x68, 0xfa, 0xab, 0xd0, 0x57, 0xad, 0xa5, 0xbe, 0x34, 0x24, 0x2e, + 0x61, 0x16, 0x44, 0x1f, 0xaa, 0x36, 0x6f, 0x3c, 0xea, 0xad, 0x25, 0xa8, 0x02, 0x41, 0x49, 0xe8, + 0x6c, 0x7c, 0xcc, 0x21, 0xdc, 0xe3, 0xae, 0x0b, 0x96, 0x6f, 0xed, 0x44, 0x2e, 0x6c, 0x20, 0x34, + 0x12, 0x7c, 0x72, 0x42, 0xa5, 0xea, 0xdb, 0xba, 0x56, 0xd7, 0x9a, 0xa5, 0x41, 0xac, 0x82, 0xab, + 0xa8, 0xa8, 0x78, 0xa4, 0xee, 0x05, 0xea, 0x6a, 0x8f, 0x9f, 0xa2, 0xfb, 0x94, 0x51, 0x45, 0x89, + 0x02, 0xbb, 0x7b, 0x11, 0x99, 0xb2, 0x81, 0x29, 0x2d, 0xe0, 0x0e, 0x3a, 0x50, 0x82, 0x30, 0x39, + 0x02, 0xf1, 0x9a, 0x4e, 0x40, 0xea, 0xb9, 0x7a, 0xb6, 0x59, 0x6e, 0x3f, 0x6c, 0x25, 0xdf, 0xa2, + 0x75, 0x4a, 0x99, 0x1a, 0x10, 0xe6, 0xc0, 0x60, 0xb3, 0x03, 0x3f, 0xf7, 0xc3, 0x9c, 0x03, 0xeb, + 0xdb, 0x52, 0xdf, 0xdf, 0xde, 0xbd, 0x32, 0xe3, 0x1e, 0xfa, 0x9f, 0xbf, 0x63, 0x20, 0xe4, 0x98, + 0x4e, 0xc3, 0xc3, 0xf3, 0xdb, 0xdb, 0x13, 0x2d, 0xb8, 0x82, 0xb2, 0x33, 0x41, 0xf5, 0x42, 0x70, + 0x41, 0x7f, 0xe9, 0x3f, 0x9e, 0x35, 0x93, 0x8a, 0x4f, 0x8e, 0x89, 0x22, 0x7a, 0x31, 0x7c, 0xbc, + 0x75, 0xc5, 0xd7, 0x97, 0x38, 0xfa, 0xb6, 0x5e, 0x0a, 0xf5, 0x75, 0x05, 0xbf, 0x44, 0x95, 0xe5, + 0xae, 0x17, 0xd1, 0xd2, 0x51, 0x5d, 0x6b, 0x96, 0xdb, 0x8d, 0x74, 0xb0, 0x4e, 0xc2, 0x39, 0x48, + 0xf5, 0xe2, 0xc7, 0xa8, 0xe0, 0x81, 0x90, 0x94, 0x33, 0xbd, 0xec, 0x1f, 0xd6, 0xfd, 0xef, 0xf2, + 0xba, 0x96, 0xf9, 0x7a, 0x5d, 0xcb, 0x05, 0xb7, 0x5a, 0x8a, 0x8d, 0xef, 0x59, 0x74, 0x78, 0x2a, + 0x41, 0xbc, 0x9a, 0x29, 0x87, 0x53, 0xe6, 0xac, 0x7e, 0x0d, 0x71, 0xda, 0xda, 0x2e, 0xb4, 0xf7, + 0x76, 0xa6, 0x9d, 0xbd, 0x13, 0xed, 0xdc, 0xdd, 0x68, 0xef, 0xff, 0x36, 0xed, 0xfc, 0x4d, 0xb4, + 0x0b, 0x5b, 0x68, 0x17, 0x53, 0xb4, 0xcf, 0x7e, 0x41, 0xbb, 0x14, 0xd0, 0x7e, 0x92, 0x0e, 0x96, + 0x44, 0xb3, 0x1b, 0x75, 0x74, 0x1b, 0xf5, 0x1f, 0x11, 0xf5, 0x3e, 0xb3, 0xf8, 0x24, 0x4e, 0x7d, + 0xdb, 0x7f, 0xc0, 0x3f, 0xf2, 0x7f, 0x93, 0x7c, 0x12, 0xcf, 0x1f, 0x20, 0xff, 0x59, 0x43, 0x0f, + 0x3a, 0xab, 0x38, 0xc0, 0x14, 0x1d, 0x51, 0x10, 0xc7, 0xa0, 0x08, 0x75, 0x65, 0x22, 0xbd, 0x96, + 0x4a, 0xff, 0x08, 0x1d, 0x2c, 0x77, 0x27, 0xe0, 0x81, 0x1b, 0xa1, 0xdf, 0x2c, 0xe2, 0x26, 0xba, + 0x17, 0x16, 0x40, 0x74, 0x6c, 0x5b, 0x80, 0x94, 0xd1, 0x28, 0x48, 0x96, 0xe3, 0xa9, 0x73, 0xb7, + 0xa4, 0xee, 0x9e, 0x5d, 0xce, 0x0d, 0xed, 0x6a, 0x6e, 0x68, 0xdf, 0xe6, 0x86, 0xf6, 0x69, 0x61, + 0x64, 0xae, 0x16, 0x46, 0xe6, 0xcb, 0xc2, 0xc8, 0xbc, 0x79, 0xe1, 0x50, 0x35, 0x9e, 0x0d, 0x5b, + 0x16, 0x9f, 0x98, 0x43, 0xaa, 0x86, 0xc4, 0x76, 0x40, 0xae, 0x57, 0xd6, 0x98, 0x50, 0x66, 0xbe, + 0x37, 0x37, 0x66, 0xa3, 0xba, 0x98, 0x82, 0xf4, 0x27, 0xe4, 0x30, 0x1f, 0x0c, 0xc4, 0x67, 0x3f, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x14, 0xd3, 0xa4, 0x37, 0xa7, 0x07, 0x00, 0x00, +} + +func (m *CollectionApproval) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CollectionApproval) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CollectionApproval) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Version.Size() + i -= size + if _, err := m.Version.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + if m.ApprovalCriteria != nil { + { + size, err := m.ApprovalCriteria.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0x4a + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x42 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x3a + } + if len(m.OwnershipTimes) > 0 { + for iNdEx := len(m.OwnershipTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OwnershipTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TransferTimes) > 0 { + for iNdEx := len(m.TransferTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TransferTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.InitiatedByListId) > 0 { + i -= len(m.InitiatedByListId) + copy(dAtA[i:], m.InitiatedByListId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.InitiatedByListId))) + i-- + dAtA[i] = 0x1a + } + if len(m.ToListId) > 0 { + i -= len(m.ToListId) + copy(dAtA[i:], m.ToListId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.ToListId))) + i-- + dAtA[i] = 0x12 + } + if len(m.FromListId) > 0 { + i -= len(m.FromListId) + copy(dAtA[i:], m.FromListId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.FromListId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UserOutgoingApproval) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserOutgoingApproval) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserOutgoingApproval) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Version.Size() + i -= size + if _, err := m.Version.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + if m.ApprovalCriteria != nil { + { + size, err := m.ApprovalCriteria.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0x42 + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x3a + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x32 + } + if len(m.OwnershipTimes) > 0 { + for iNdEx := len(m.OwnershipTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OwnershipTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.TransferTimes) > 0 { + for iNdEx := len(m.TransferTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TransferTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.InitiatedByListId) > 0 { + i -= len(m.InitiatedByListId) + copy(dAtA[i:], m.InitiatedByListId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.InitiatedByListId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ToListId) > 0 { + i -= len(m.ToListId) + copy(dAtA[i:], m.ToListId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.ToListId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UserIncomingApproval) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserIncomingApproval) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserIncomingApproval) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Version.Size() + i -= size + if _, err := m.Version.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + if m.ApprovalCriteria != nil { + { + size, err := m.ApprovalCriteria.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0x42 + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x3a + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x32 + } + if len(m.OwnershipTimes) > 0 { + for iNdEx := len(m.OwnershipTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OwnershipTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.TransferTimes) > 0 { + for iNdEx := len(m.TransferTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TransferTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.InitiatedByListId) > 0 { + i -= len(m.InitiatedByListId) + copy(dAtA[i:], m.InitiatedByListId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.InitiatedByListId))) + i-- + dAtA[i] = 0x12 + } + if len(m.FromListId) > 0 { + i -= len(m.FromListId) + copy(dAtA[i:], m.FromListId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.FromListId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ApprovalIdentifierDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApprovalIdentifierDetails) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApprovalIdentifierDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Version.Size() + i -= size + if _, err := m.Version.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintApprovals(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.ApproverAddress) > 0 { + i -= len(m.ApproverAddress) + copy(dAtA[i:], m.ApproverAddress) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.ApproverAddress))) + i-- + dAtA[i] = 0x1a + } + if len(m.ApprovalLevel) > 0 { + i -= len(m.ApprovalLevel) + copy(dAtA[i:], m.ApprovalLevel) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.ApprovalLevel))) + i-- + dAtA[i] = 0x12 + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintApprovals(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintApprovals(dAtA []byte, offset int, v uint64) int { + offset -= sovApprovals(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CollectionApproval) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FromListId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.ToListId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.InitiatedByListId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + if len(m.TransferTimes) > 0 { + for _, e := range m.TransferTimes { + l = e.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + } + if len(m.OwnershipTimes) > 0 { + for _, e := range m.OwnershipTimes { + l = e.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + if m.ApprovalCriteria != nil { + l = m.ApprovalCriteria.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + l = m.Version.Size() + n += 1 + l + sovApprovals(uint64(l)) + return n +} + +func (m *UserOutgoingApproval) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ToListId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.InitiatedByListId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + if len(m.TransferTimes) > 0 { + for _, e := range m.TransferTimes { + l = e.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + } + if len(m.OwnershipTimes) > 0 { + for _, e := range m.OwnershipTimes { + l = e.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + if m.ApprovalCriteria != nil { + l = m.ApprovalCriteria.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + l = m.Version.Size() + n += 1 + l + sovApprovals(uint64(l)) + return n +} + +func (m *UserIncomingApproval) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FromListId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.InitiatedByListId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + if len(m.TransferTimes) > 0 { + for _, e := range m.TransferTimes { + l = e.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + } + if len(m.OwnershipTimes) > 0 { + for _, e := range m.OwnershipTimes { + l = e.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + if m.ApprovalCriteria != nil { + l = m.ApprovalCriteria.Size() + n += 1 + l + sovApprovals(uint64(l)) + } + l = m.Version.Size() + n += 1 + l + sovApprovals(uint64(l)) + return n +} + +func (m *ApprovalIdentifierDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.ApprovalLevel) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = len(m.ApproverAddress) + if l > 0 { + n += 1 + l + sovApprovals(uint64(l)) + } + l = m.Version.Size() + n += 1 + l + sovApprovals(uint64(l)) + return n +} + +func sovApprovals(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozApprovals(x uint64) (n int) { + return sovApprovals(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CollectionApproval) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CollectionApproval: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectionApproval: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FromListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FromListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ToListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedByListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitiatedByListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransferTimes = append(m.TransferTimes, &UintRange{}) + if err := m.TransferTimes[len(m.TransferTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipTimes = append(m.OwnershipTimes, &UintRange{}) + if err := m.OwnershipTimes[len(m.OwnershipTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalCriteria", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApprovalCriteria == nil { + m.ApprovalCriteria = &ApprovalCriteria{} + } + if err := m.ApprovalCriteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovals(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovals + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserOutgoingApproval) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserOutgoingApproval: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserOutgoingApproval: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ToListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedByListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitiatedByListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransferTimes = append(m.TransferTimes, &UintRange{}) + if err := m.TransferTimes[len(m.TransferTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipTimes = append(m.OwnershipTimes, &UintRange{}) + if err := m.OwnershipTimes[len(m.OwnershipTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalCriteria", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApprovalCriteria == nil { + m.ApprovalCriteria = &OutgoingApprovalCriteria{} + } + if err := m.ApprovalCriteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovals(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovals + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserIncomingApproval) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserIncomingApproval: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserIncomingApproval: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FromListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FromListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedByListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitiatedByListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransferTimes = append(m.TransferTimes, &UintRange{}) + if err := m.TransferTimes[len(m.TransferTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipTimes = append(m.OwnershipTimes, &UintRange{}) + if err := m.OwnershipTimes[len(m.OwnershipTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalCriteria", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ApprovalCriteria == nil { + m.ApprovalCriteria = &IncomingApprovalCriteria{} + } + if err := m.ApprovalCriteria.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovals(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovals + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApprovalIdentifierDetails) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApprovalIdentifierDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApprovalIdentifierDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproverAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApproverAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApprovals + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthApprovals + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthApprovals + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipApprovals(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthApprovals + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipApprovals(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovals + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovals + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowApprovals + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthApprovals + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupApprovals + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthApprovals + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthApprovals = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowApprovals = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupApprovals = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/balances.pb.go b/x/tokenization/types/v29/balances.pb.go new file mode 100644 index 00000000..bdd1b676 --- /dev/null +++ b/x/tokenization/types/v29/balances.pb.go @@ -0,0 +1,958 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/balances.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// The UintRange is a range of IDs from some start to some end (inclusive). +// uintRanges are one of the core types used. +// +// They are used for everything from token IDs to time ranges to min/max balance amounts. +// +// See the BitBadges documentation for more information. +type UintRange struct { + // The starting value of the range (inclusive). + Start Uint `protobuf:"bytes,1,opt,name=start,proto3,customtype=Uint" json:"start"` + // The ending value of the range (inclusive). + End Uint `protobuf:"bytes,2,opt,name=end,proto3,customtype=Uint" json:"end"` +} + +func (m *UintRange) Reset() { *m = UintRange{} } +func (m *UintRange) String() string { return proto.CompactTextString(m) } +func (*UintRange) ProtoMessage() {} +func (*UintRange) Descriptor() ([]byte, []int) { + return fileDescriptor_46054e211e1e76c0, []int{0} +} +func (m *UintRange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UintRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UintRange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UintRange) XXX_Merge(src proto.Message) { + xxx_messageInfo_UintRange.Merge(m, src) +} +func (m *UintRange) XXX_Size() int { + return m.Size() +} +func (m *UintRange) XXX_DiscardUnknown() { + xxx_messageInfo_UintRange.DiscardUnknown(m) +} + +var xxx_messageInfo_UintRange proto.InternalMessageInfo + +// Balance represents the balance of a token for a specific user. +// The user amounts xAmount of a token specified for the time ranges specified. +// +// Example: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021. +// +// If times or tokenIDs have len > 1, then the user owns all token IDs specified for all time ranges specified. +type Balance struct { + // The amount of the token owned by the user. + Amount Uint `protobuf:"bytes,1,opt,name=amount,proto3,customtype=Uint" json:"amount"` + // The time ranges during which the user owns the token. + OwnershipTimes []*UintRange `protobuf:"bytes,2,rep,name=ownershipTimes,proto3" json:"ownershipTimes,omitempty"` + // The token IDs for which the user owns the token. + TokenIds []*UintRange `protobuf:"bytes,3,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` +} + +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_46054e211e1e76c0, []int{1} +} +func (m *Balance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Balance.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Balance) XXX_Merge(src proto.Message) { + xxx_messageInfo_Balance.Merge(m, src) +} +func (m *Balance) XXX_Size() int { + return m.Size() +} +func (m *Balance) XXX_DiscardUnknown() { + xxx_messageInfo_Balance.DiscardUnknown(m) +} + +var xxx_messageInfo_Balance proto.InternalMessageInfo + +func (m *Balance) GetOwnershipTimes() []*UintRange { + if m != nil { + return m.OwnershipTimes + } + return nil +} + +func (m *Balance) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +// PrecalculationOptions defines the options for precalculating the balances. +type PrecalculationOptions struct { + // The timestamp to override with when calculating the balances. + OverrideTimestamp Uint `protobuf:"bytes,1,opt,name=overrideTimestamp,proto3,customtype=Uint" json:"overrideTimestamp"` + // The IDs to override for the transfer. Only applicable if using this option in precalculation. + TokenIdsOverride []*UintRange `protobuf:"bytes,2,rep,name=tokenIdsOverride,proto3" json:"tokenIdsOverride,omitempty"` + // When > 0 and allowAmountScaling is true on the approval, all precalculated balance amounts + // are multiplied by this value. Must be <= maxScalingMultiplier. 0 means no scaling (returns 1x base). + ScalingMultiplier Uint `protobuf:"bytes,3,opt,name=scalingMultiplier,proto3,customtype=Uint" json:"scalingMultiplier"` +} + +func (m *PrecalculationOptions) Reset() { *m = PrecalculationOptions{} } +func (m *PrecalculationOptions) String() string { return proto.CompactTextString(m) } +func (*PrecalculationOptions) ProtoMessage() {} +func (*PrecalculationOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_46054e211e1e76c0, []int{2} +} +func (m *PrecalculationOptions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrecalculationOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrecalculationOptions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PrecalculationOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrecalculationOptions.Merge(m, src) +} +func (m *PrecalculationOptions) XXX_Size() int { + return m.Size() +} +func (m *PrecalculationOptions) XXX_DiscardUnknown() { + xxx_messageInfo_PrecalculationOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_PrecalculationOptions proto.InternalMessageInfo + +func (m *PrecalculationOptions) GetTokenIdsOverride() []*UintRange { + if m != nil { + return m.TokenIdsOverride + } + return nil +} + +func init() { + proto.RegisterType((*UintRange)(nil), "tokenization.v29.UintRange") + proto.RegisterType((*Balance)(nil), "tokenization.v29.Balance") + proto.RegisterType((*PrecalculationOptions)(nil), "tokenization.v29.PrecalculationOptions") +} + +func init() { proto.RegisterFile("tokenization/v29/balances.proto", fileDescriptor_46054e211e1e76c0) } + +var fileDescriptor_46054e211e1e76c0 = []byte{ + // 367 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x4b, 0xc3, 0x30, + 0x18, 0xc6, 0xdb, 0x55, 0xa7, 0x8b, 0x22, 0x33, 0x28, 0x94, 0x89, 0xdd, 0x28, 0x1e, 0x76, 0x6a, + 0x61, 0x1e, 0x64, 0xe2, 0x69, 0x1e, 0xc4, 0x83, 0x4c, 0x86, 0x7a, 0xf0, 0x96, 0xb6, 0xa1, 0x0b, + 0xb6, 0x49, 0x48, 0xd2, 0xf9, 0xe7, 0x53, 0xf8, 0x45, 0xfc, 0x1e, 0x3b, 0xee, 0x38, 0x3c, 0x0c, + 0xd9, 0xbe, 0x88, 0xb4, 0x9b, 0x53, 0xd7, 0x82, 0x5e, 0x42, 0xe0, 0xf9, 0xbd, 0xef, 0xfb, 0x3c, + 0xf0, 0x80, 0xba, 0x62, 0x0f, 0x98, 0x92, 0x17, 0xa4, 0x08, 0xa3, 0xee, 0xa0, 0xd5, 0x76, 0x3d, + 0x14, 0x21, 0xea, 0x63, 0xe9, 0x70, 0xc1, 0x14, 0x83, 0xd5, 0x9f, 0x80, 0x33, 0x68, 0xb5, 0x6b, + 0x7b, 0x21, 0x0b, 0x59, 0x26, 0xba, 0xe9, 0x6f, 0xce, 0xd5, 0x0e, 0x73, 0x8b, 0x38, 0x12, 0x28, + 0x5e, 0xac, 0xb1, 0xbb, 0xa0, 0x72, 0x4b, 0xa8, 0xea, 0x21, 0x1a, 0x62, 0x68, 0x83, 0x75, 0xa9, + 0x90, 0x50, 0xa6, 0xde, 0xd0, 0x9b, 0x95, 0xce, 0xf6, 0x70, 0x52, 0xd7, 0xde, 0x27, 0xf5, 0xb5, + 0x8c, 0x98, 0x4b, 0xd0, 0x02, 0x06, 0xa6, 0x81, 0x59, 0x2a, 0x20, 0x52, 0xc1, 0x7e, 0xd3, 0xc1, + 0x46, 0x67, 0x6e, 0x15, 0x1e, 0x81, 0x32, 0x8a, 0x59, 0x42, 0x8b, 0x17, 0x2e, 0x34, 0x78, 0x0e, + 0x76, 0xd8, 0x23, 0xc5, 0x42, 0xf6, 0x09, 0xbf, 0x21, 0x31, 0x96, 0x66, 0xa9, 0x61, 0x34, 0xb7, + 0x5a, 0x07, 0xce, 0x6a, 0x44, 0x67, 0x69, 0xb5, 0xb7, 0x32, 0x02, 0x4f, 0xc0, 0x66, 0x46, 0x5f, + 0x06, 0xd2, 0x34, 0xfe, 0x1e, 0x5f, 0xc2, 0xf6, 0x58, 0x07, 0xfb, 0xd7, 0x02, 0xfb, 0x28, 0xf2, + 0x93, 0x28, 0x43, 0xbb, 0x3c, 0x7d, 0x25, 0x3c, 0x05, 0xbb, 0x6c, 0x80, 0x85, 0x20, 0x01, 0xce, + 0x6e, 0x28, 0x14, 0xf3, 0xc2, 0x20, 0x79, 0x0c, 0x5e, 0x80, 0xea, 0xd7, 0x85, 0xee, 0x42, 0xfc, + 0x4f, 0xaa, 0xdc, 0x50, 0x6a, 0x42, 0xfa, 0x28, 0x22, 0x34, 0xbc, 0x4a, 0x22, 0x45, 0x78, 0x44, + 0xb0, 0x30, 0x8d, 0x22, 0x13, 0x39, 0xac, 0x73, 0x37, 0x9c, 0x5a, 0xfa, 0x68, 0x6a, 0xe9, 0x1f, + 0x53, 0x4b, 0x7f, 0x9d, 0x59, 0xda, 0x68, 0x66, 0x69, 0xe3, 0x99, 0xa5, 0xdd, 0x9f, 0x85, 0x44, + 0xf5, 0x13, 0xcf, 0xf1, 0x59, 0xec, 0x7a, 0x44, 0x79, 0x28, 0x08, 0xb1, 0xfc, 0xfe, 0xf9, 0x7d, + 0x44, 0xa8, 0xfb, 0xe4, 0xfe, 0xaa, 0x8e, 0x7a, 0xe6, 0x58, 0xa6, 0x05, 0xf2, 0xca, 0x59, 0x75, + 0x8e, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x89, 0x35, 0xcf, 0x1f, 0xa4, 0x02, 0x00, 0x00, +} + +func (m *UintRange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UintRange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UintRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.End.Size() + i -= size + if _, err := m.End.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.Start.Size() + i -= size + if _, err := m.Start.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Balance) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Balance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.OwnershipTimes) > 0 { + for iNdEx := len(m.OwnershipTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OwnershipTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PrecalculationOptions) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PrecalculationOptions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrecalculationOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.ScalingMultiplier.Size() + i -= size + if _, err := m.ScalingMultiplier.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.TokenIdsOverride) > 0 { + for iNdEx := len(m.TokenIdsOverride) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIdsOverride[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size := m.OverrideTimestamp.Size() + i -= size + if _, err := m.OverrideTimestamp.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintBalances(dAtA []byte, offset int, v uint64) int { + offset -= sovBalances(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *UintRange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Start.Size() + n += 1 + l + sovBalances(uint64(l)) + l = m.End.Size() + n += 1 + l + sovBalances(uint64(l)) + return n +} + +func (m *Balance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Amount.Size() + n += 1 + l + sovBalances(uint64(l)) + if len(m.OwnershipTimes) > 0 { + for _, e := range m.OwnershipTimes { + l = e.Size() + n += 1 + l + sovBalances(uint64(l)) + } + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovBalances(uint64(l)) + } + } + return n +} + +func (m *PrecalculationOptions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.OverrideTimestamp.Size() + n += 1 + l + sovBalances(uint64(l)) + if len(m.TokenIdsOverride) > 0 { + for _, e := range m.TokenIdsOverride { + l = e.Size() + n += 1 + l + sovBalances(uint64(l)) + } + } + l = m.ScalingMultiplier.Size() + n += 1 + l + sovBalances(uint64(l)) + return n +} + +func sovBalances(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozBalances(x uint64) (n int) { + return sovBalances(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *UintRange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UintRange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UintRange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Start.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.End.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBalances(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthBalances + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Balance) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Balance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Balance: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBalances + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipTimes = append(m.OwnershipTimes, &UintRange{}) + if err := m.OwnershipTimes[len(m.OwnershipTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBalances + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBalances(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthBalances + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PrecalculationOptions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PrecalculationOptions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PrecalculationOptions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OverrideTimestamp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OverrideTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIdsOverride", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthBalances + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIdsOverride = append(m.TokenIdsOverride, &UintRange{}) + if err := m.TokenIdsOverride[len(m.TokenIdsOverride)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ScalingMultiplier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ScalingMultiplier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipBalances(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthBalances + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipBalances(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBalances + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBalances + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowBalances + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthBalances + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupBalances + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthBalances + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthBalances = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBalances = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBalances = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/challenges.pb.go b/x/tokenization/types/v29/challenges.pb.go new file mode 100644 index 00000000..b1b054d4 --- /dev/null +++ b/x/tokenization/types/v29/challenges.pb.go @@ -0,0 +1,3466 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/challenges.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Challenges define a rule for the approval in the form of a Merkle challenge. +// +// A Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof, +// then the challenge is met. All challenges must be met with valid solutions for the transfer to be approved. +// +// IMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials. +// +// IMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge. +// If you update the challenge ID, then the used leaves tracker will reset and start a new tally. +// We recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior. +type MerkleChallenge struct { + // The root hash of the Merkle tree to which the Merkle path must lead for verification. + Root string `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"` + // The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks. + ExpectedProofLength Uint `protobuf:"bytes,2,opt,name=expectedProofLength,proto3,customtype=Uint" json:"expectedProofLength"` + // If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses. + UseCreatorAddressAsLeaf bool `protobuf:"varint,3,opt,name=useCreatorAddressAsLeaf,proto3" json:"useCreatorAddressAsLeaf,omitempty"` + // The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks. + MaxUsesPerLeaf Uint `protobuf:"bytes,4,opt,name=maxUsesPerLeaf,proto3,customtype=Uint" json:"maxUsesPerLeaf"` + // The URI associated with this Merkle challenge, optionally providing metadata about the challenge. + Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` + // Arbitrary custom data associated with this Merkle challenge. + CustomData string `protobuf:"bytes,6,opt,name=customData,proto3" json:"customData,omitempty"` + // The ID of this Merkle challenge for tracking the number of uses per leaf. + ChallengeTrackerId string `protobuf:"bytes,7,opt,name=challengeTrackerId,proto3" json:"challengeTrackerId,omitempty"` + // Ethereum address that must sign the leaf. Used to protect against man-in-the-middle attacks. + // Signature scheme: sign(leaf + "-" + creatorAddress), verified using elliptic curve signature verification. + LeafSigner string `protobuf:"bytes,8,opt,name=leafSigner,proto3" json:"leafSigner,omitempty"` +} + +func (m *MerkleChallenge) Reset() { *m = MerkleChallenge{} } +func (m *MerkleChallenge) String() string { return proto.CompactTextString(m) } +func (*MerkleChallenge) ProtoMessage() {} +func (*MerkleChallenge) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{0} +} +func (m *MerkleChallenge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MerkleChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MerkleChallenge.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MerkleChallenge) XXX_Merge(src proto.Message) { + xxx_messageInfo_MerkleChallenge.Merge(m, src) +} +func (m *MerkleChallenge) XXX_Size() int { + return m.Size() +} +func (m *MerkleChallenge) XXX_DiscardUnknown() { + xxx_messageInfo_MerkleChallenge.DiscardUnknown(m) +} + +var xxx_messageInfo_MerkleChallenge proto.InternalMessageInfo + +func (m *MerkleChallenge) GetRoot() string { + if m != nil { + return m.Root + } + return "" +} + +func (m *MerkleChallenge) GetUseCreatorAddressAsLeaf() bool { + if m != nil { + return m.UseCreatorAddressAsLeaf + } + return false +} + +func (m *MerkleChallenge) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *MerkleChallenge) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *MerkleChallenge) GetChallengeTrackerId() string { + if m != nil { + return m.ChallengeTrackerId + } + return "" +} + +func (m *MerkleChallenge) GetLeafSigner() string { + if m != nil { + return m.LeafSigner + } + return "" +} + +// ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge. +// +// An ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce. +// The signature scheme is ETHSign(nonce + "-" + initiatorAddress + "-" + collectionId + "-" + approverAddress + "-" + approvalLevel + "-" + approvalId + "-" + challengeId) and each signature can only be used once. +// All challenges must be met with valid solutions for the transfer to be approved. +// +// IMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once. +// If you update the challenge ID, then the used signatures tracker will reset and start a new tally. +// We recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior. +type ETHSignatureChallenge struct { + // The Ethereum address that must sign the nonce for verification. + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + // The ID of this ETH signature challenge for tracking the number of uses per signature. + ChallengeTrackerId string `protobuf:"bytes,2,opt,name=challengeTrackerId,proto3" json:"challengeTrackerId,omitempty"` + // The URI associated with this ETH signature challenge, optionally providing metadata about the challenge. + Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` + // Arbitrary custom data associated with this ETH signature challenge. + CustomData string `protobuf:"bytes,4,opt,name=customData,proto3" json:"customData,omitempty"` +} + +func (m *ETHSignatureChallenge) Reset() { *m = ETHSignatureChallenge{} } +func (m *ETHSignatureChallenge) String() string { return proto.CompactTextString(m) } +func (*ETHSignatureChallenge) ProtoMessage() {} +func (*ETHSignatureChallenge) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{1} +} +func (m *ETHSignatureChallenge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ETHSignatureChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ETHSignatureChallenge.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ETHSignatureChallenge) XXX_Merge(src proto.Message) { + xxx_messageInfo_ETHSignatureChallenge.Merge(m, src) +} +func (m *ETHSignatureChallenge) XXX_Size() int { + return m.Size() +} +func (m *ETHSignatureChallenge) XXX_DiscardUnknown() { + xxx_messageInfo_ETHSignatureChallenge.DiscardUnknown(m) +} + +var xxx_messageInfo_ETHSignatureChallenge proto.InternalMessageInfo + +func (m *ETHSignatureChallenge) GetSigner() string { + if m != nil { + return m.Signer + } + return "" +} + +func (m *ETHSignatureChallenge) GetChallengeTrackerId() string { + if m != nil { + return m.ChallengeTrackerId + } + return "" +} + +func (m *ETHSignatureChallenge) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *ETHSignatureChallenge) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +// MerklePathItem represents an item in a Merkle path. +type MerklePathItem struct { + // The hash of the sibling node (aunt) in the Merkle path. + Aunt string `protobuf:"bytes,1,opt,name=aunt,proto3" json:"aunt,omitempty"` + // Indicates whether the aunt node is on the right side of the path. + OnRight bool `protobuf:"varint,2,opt,name=onRight,proto3" json:"onRight,omitempty"` +} + +func (m *MerklePathItem) Reset() { *m = MerklePathItem{} } +func (m *MerklePathItem) String() string { return proto.CompactTextString(m) } +func (*MerklePathItem) ProtoMessage() {} +func (*MerklePathItem) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{2} +} +func (m *MerklePathItem) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MerklePathItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MerklePathItem.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MerklePathItem) XXX_Merge(src proto.Message) { + xxx_messageInfo_MerklePathItem.Merge(m, src) +} +func (m *MerklePathItem) XXX_Size() int { + return m.Size() +} +func (m *MerklePathItem) XXX_DiscardUnknown() { + xxx_messageInfo_MerklePathItem.DiscardUnknown(m) +} + +var xxx_messageInfo_MerklePathItem proto.InternalMessageInfo + +func (m *MerklePathItem) GetAunt() string { + if m != nil { + return m.Aunt + } + return "" +} + +func (m *MerklePathItem) GetOnRight() bool { + if m != nil { + return m.OnRight + } + return false +} + +// MerkleProof represents a Merkle proof, consistent with Tendermint/Crypto Merkle tree. +type MerkleProof struct { + // The hash of the leaf node for which the proof is generated. + Leaf string `protobuf:"bytes,1,opt,name=leaf,proto3" json:"leaf,omitempty"` + // List of Merkle path items (aunts) that make up the proof. + Aunts []*MerklePathItem `protobuf:"bytes,2,rep,name=aunts,proto3" json:"aunts,omitempty"` + // The signature of the leaf node tying the address to the leaf node. + LeafSignature string `protobuf:"bytes,3,opt,name=leafSignature,proto3" json:"leafSignature,omitempty"` +} + +func (m *MerkleProof) Reset() { *m = MerkleProof{} } +func (m *MerkleProof) String() string { return proto.CompactTextString(m) } +func (*MerkleProof) ProtoMessage() {} +func (*MerkleProof) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{3} +} +func (m *MerkleProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MerkleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MerkleProof.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MerkleProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_MerkleProof.Merge(m, src) +} +func (m *MerkleProof) XXX_Size() int { + return m.Size() +} +func (m *MerkleProof) XXX_DiscardUnknown() { + xxx_messageInfo_MerkleProof.DiscardUnknown(m) +} + +var xxx_messageInfo_MerkleProof proto.InternalMessageInfo + +func (m *MerkleProof) GetLeaf() string { + if m != nil { + return m.Leaf + } + return "" +} + +func (m *MerkleProof) GetAunts() []*MerklePathItem { + if m != nil { + return m.Aunts + } + return nil +} + +func (m *MerkleProof) GetLeafSignature() string { + if m != nil { + return m.LeafSignature + } + return "" +} + +// ETHSignatureProof represents an Ethereum signature proof for a challenge. +type ETHSignatureProof struct { + // The nonce that was signed. The signature scheme is ETHSign(nonce + "-" + initiatorAddress + "-" + collectionId + "-" + approverAddress + "-" + approvalLevel + "-" + approvalId + "-" + challengeId). + Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + // The Ethereum signature of the nonce. + Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` +} + +func (m *ETHSignatureProof) Reset() { *m = ETHSignatureProof{} } +func (m *ETHSignatureProof) String() string { return proto.CompactTextString(m) } +func (*ETHSignatureProof) ProtoMessage() {} +func (*ETHSignatureProof) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{4} +} +func (m *ETHSignatureProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ETHSignatureProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ETHSignatureProof.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ETHSignatureProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_ETHSignatureProof.Merge(m, src) +} +func (m *ETHSignatureProof) XXX_Size() int { + return m.Size() +} +func (m *ETHSignatureProof) XXX_DiscardUnknown() { + xxx_messageInfo_ETHSignatureProof.DiscardUnknown(m) +} + +var xxx_messageInfo_ETHSignatureProof proto.InternalMessageInfo + +func (m *ETHSignatureProof) GetNonce() string { + if m != nil { + return m.Nonce + } + return "" +} + +func (m *ETHSignatureProof) GetSignature() string { + if m != nil { + return m.Signature + } + return "" +} + +// VotingChallenge defines a rule for approval in the form of a voting/multi-sig challenge. +// Requires a weighted quorum threshold to be met through votes from specified voters. +// All challenges must be met with valid solutions for the transfer to be approved. +// +// IMPORTANT: Votes are stored separately and can be updated. The threshold is calculated as a percentage +// of total possible weight (all voters), not just voted weight. If you update the proposal ID, then the +// vote tracker will reset and start a new tally. We recommend using a unique proposal ID for each challenge +// to prevent overlap and unexpected behavior. +type VotingChallenge struct { + // The ID of this voting challenge for tracking votes (scoped like challengeTrackerId). + // Format: collectionId-approverAddress-approvalLevel-approvalId-challengeId + ProposalId string `protobuf:"bytes,1,opt,name=proposalId,proto3" json:"proposalId,omitempty"` + // The quorum threshold as a percentage (0-100) of total possible weight that must vote "yes". + // Example: 50 means 50% of total voter weight must vote yes for approval. + QuorumThreshold Uint `protobuf:"bytes,2,opt,name=quorumThreshold,proto3,customtype=Uint" json:"quorumThreshold"` + // List of voters with their weights. Each voter can cast a weighted vote. + Voters []*Voter `protobuf:"bytes,3,rep,name=voters,proto3" json:"voters,omitempty"` + // The URI associated with this voting challenge. + Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` + // Arbitrary custom data associated with this voting challenge. + CustomData string `protobuf:"bytes,5,opt,name=customData,proto3" json:"customData,omitempty"` + // If true, all votes for this challenge are cleared after a successful transfer execution. + // This makes the challenge reusable (e.g., for vault withdrawals that need fresh approval each time). + ResetAfterExecution bool `protobuf:"varint,6,opt,name=resetAfterExecution,proto3" json:"resetAfterExecution,omitempty"` + // Mandatory delay in milliseconds after quorum is reached before the transfer can execute. + // If set, the transfer will fail until: now >= quorumReachedTimestamp + delayAfterQuorum. + // During the delay, signers can remove their votes to cancel (quorum drops = delay resets). + DelayAfterQuorum Uint `protobuf:"bytes,7,opt,name=delayAfterQuorum,proto3,customtype=Uint" json:"delayAfterQuorum"` +} + +func (m *VotingChallenge) Reset() { *m = VotingChallenge{} } +func (m *VotingChallenge) String() string { return proto.CompactTextString(m) } +func (*VotingChallenge) ProtoMessage() {} +func (*VotingChallenge) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{5} +} +func (m *VotingChallenge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VotingChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VotingChallenge.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VotingChallenge) XXX_Merge(src proto.Message) { + xxx_messageInfo_VotingChallenge.Merge(m, src) +} +func (m *VotingChallenge) XXX_Size() int { + return m.Size() +} +func (m *VotingChallenge) XXX_DiscardUnknown() { + xxx_messageInfo_VotingChallenge.DiscardUnknown(m) +} + +var xxx_messageInfo_VotingChallenge proto.InternalMessageInfo + +func (m *VotingChallenge) GetProposalId() string { + if m != nil { + return m.ProposalId + } + return "" +} + +func (m *VotingChallenge) GetVoters() []*Voter { + if m != nil { + return m.Voters + } + return nil +} + +func (m *VotingChallenge) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *VotingChallenge) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *VotingChallenge) GetResetAfterExecution() bool { + if m != nil { + return m.ResetAfterExecution + } + return false +} + +// Voter defines a voter with their address and weight. +type Voter struct { + // The address of the voter. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // The weight of this voter's vote. + Weight Uint `protobuf:"bytes,2,opt,name=weight,proto3,customtype=Uint" json:"weight"` +} + +func (m *Voter) Reset() { *m = Voter{} } +func (m *Voter) String() string { return proto.CompactTextString(m) } +func (*Voter) ProtoMessage() {} +func (*Voter) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{6} +} +func (m *Voter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Voter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Voter.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Voter) XXX_Merge(src proto.Message) { + xxx_messageInfo_Voter.Merge(m, src) +} +func (m *Voter) XXX_Size() int { + return m.Size() +} +func (m *Voter) XXX_DiscardUnknown() { + xxx_messageInfo_Voter.DiscardUnknown(m) +} + +var xxx_messageInfo_Voter proto.InternalMessageInfo + +func (m *Voter) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +// VoteProof represents a vote cast for a voting challenge. +type VoteProof struct { + // The proposal ID this vote is for. + ProposalId string `protobuf:"bytes,1,opt,name=proposalId,proto3" json:"proposalId,omitempty"` + // The address of the voter casting the vote. + Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` + // The percentage weight (0-100) allocated to "yes" vote. + // The remaining percentage (100 - yesWeight) is allocated to "no" vote. + // Example: yesWeight=70 means 70% yes, 30% no. + YesWeight Uint `protobuf:"bytes,3,opt,name=yesWeight,proto3,customtype=Uint" json:"yesWeight"` + // Timestamp (unix ms) when this vote was cast. Set automatically by the chain. + VotedAt Uint `protobuf:"bytes,4,opt,name=votedAt,proto3,customtype=Uint" json:"votedAt"` +} + +func (m *VoteProof) Reset() { *m = VoteProof{} } +func (m *VoteProof) String() string { return proto.CompactTextString(m) } +func (*VoteProof) ProtoMessage() {} +func (*VoteProof) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{7} +} +func (m *VoteProof) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VoteProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VoteProof.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VoteProof) XXX_Merge(src proto.Message) { + xxx_messageInfo_VoteProof.Merge(m, src) +} +func (m *VoteProof) XXX_Size() int { + return m.Size() +} +func (m *VoteProof) XXX_DiscardUnknown() { + xxx_messageInfo_VoteProof.DiscardUnknown(m) +} + +var xxx_messageInfo_VoteProof proto.InternalMessageInfo + +func (m *VoteProof) GetProposalId() string { + if m != nil { + return m.ProposalId + } + return "" +} + +func (m *VoteProof) GetVoter() string { + if m != nil { + return m.Voter + } + return "" +} + +// VotingChallengeTracker tracks the quorum state for a voting challenge. +// Stored per (collectionId, approverAddress, approvalLevel, approvalId, proposalId). +type VotingChallengeTracker struct { + // Timestamp (unix ms) when quorum was first reached. Cleared when quorum drops or after reset. + QuorumReachedTimestamp Uint `protobuf:"bytes,1,opt,name=quorumReachedTimestamp,proto3,customtype=Uint" json:"quorumReachedTimestamp"` +} + +func (m *VotingChallengeTracker) Reset() { *m = VotingChallengeTracker{} } +func (m *VotingChallengeTracker) String() string { return proto.CompactTextString(m) } +func (*VotingChallengeTracker) ProtoMessage() {} +func (*VotingChallengeTracker) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{8} +} +func (m *VotingChallengeTracker) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *VotingChallengeTracker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_VotingChallengeTracker.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *VotingChallengeTracker) XXX_Merge(src proto.Message) { + xxx_messageInfo_VotingChallengeTracker.Merge(m, src) +} +func (m *VotingChallengeTracker) XXX_Size() int { + return m.Size() +} +func (m *VotingChallengeTracker) XXX_DiscardUnknown() { + xxx_messageInfo_VotingChallengeTracker.DiscardUnknown(m) +} + +var xxx_messageInfo_VotingChallengeTracker proto.InternalMessageInfo + +// EVMQueryChallenge defines a rule for approval via read-only EVM contract query. +// +// The challenge executes a staticcall to the specified contract with the given calldata. +// The result is compared against the expected result (if provided) or checked for non-zero return. +// +// IMPORTANT: This is read-only and cannot modify state. The query is executed with a gas limit +// to prevent DoS attacks. All results are deterministic since EVM state is consistent within a block. +type EVMQueryChallenge struct { + // The EVM contract address to query (0x format or bb1 format) + ContractAddress string `protobuf:"bytes,1,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"` + // ABI-encoded function selector + arguments (hex string without 0x prefix) + // Example: "70a08231000000000000000000000000{address}" for balanceOf(address) + // Can use placeholders: $initiator, $sender, $recipient (replaced at runtime) + Calldata string `protobuf:"bytes,2,opt,name=calldata,proto3" json:"calldata,omitempty"` + // Expected return value (hex string without 0x prefix). If empty, any non-error result passes. + // For boolean checks, use "0000...0001" for true. + ExpectedResult string `protobuf:"bytes,3,opt,name=expectedResult,proto3" json:"expectedResult,omitempty"` + // Comparison operator: "eq" (equals), "ne" (not equals), "gt" (greater than), "gte", "lt", "lte" + // Only "eq" and "ne" work for non-numeric types. Default is "eq". + ComparisonOperator string `protobuf:"bytes,4,opt,name=comparisonOperator,proto3" json:"comparisonOperator,omitempty"` + // Gas limit for the query (default 100000, max 500000) + GasLimit Uint `protobuf:"bytes,5,opt,name=gasLimit,proto3,customtype=Uint" json:"gasLimit"` + // The URI associated with this challenge (metadata) + Uri string `protobuf:"bytes,6,opt,name=uri,proto3" json:"uri,omitempty"` + // Arbitrary custom data + CustomData string `protobuf:"bytes,7,opt,name=customData,proto3" json:"customData,omitempty"` +} + +func (m *EVMQueryChallenge) Reset() { *m = EVMQueryChallenge{} } +func (m *EVMQueryChallenge) String() string { return proto.CompactTextString(m) } +func (*EVMQueryChallenge) ProtoMessage() {} +func (*EVMQueryChallenge) Descriptor() ([]byte, []int) { + return fileDescriptor_14389bbfc4dbefe1, []int{9} +} +func (m *EVMQueryChallenge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EVMQueryChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EVMQueryChallenge.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EVMQueryChallenge) XXX_Merge(src proto.Message) { + xxx_messageInfo_EVMQueryChallenge.Merge(m, src) +} +func (m *EVMQueryChallenge) XXX_Size() int { + return m.Size() +} +func (m *EVMQueryChallenge) XXX_DiscardUnknown() { + xxx_messageInfo_EVMQueryChallenge.DiscardUnknown(m) +} + +var xxx_messageInfo_EVMQueryChallenge proto.InternalMessageInfo + +func (m *EVMQueryChallenge) GetContractAddress() string { + if m != nil { + return m.ContractAddress + } + return "" +} + +func (m *EVMQueryChallenge) GetCalldata() string { + if m != nil { + return m.Calldata + } + return "" +} + +func (m *EVMQueryChallenge) GetExpectedResult() string { + if m != nil { + return m.ExpectedResult + } + return "" +} + +func (m *EVMQueryChallenge) GetComparisonOperator() string { + if m != nil { + return m.ComparisonOperator + } + return "" +} + +func (m *EVMQueryChallenge) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *EVMQueryChallenge) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func init() { + proto.RegisterType((*MerkleChallenge)(nil), "tokenization.v29.MerkleChallenge") + proto.RegisterType((*ETHSignatureChallenge)(nil), "tokenization.v29.ETHSignatureChallenge") + proto.RegisterType((*MerklePathItem)(nil), "tokenization.v29.MerklePathItem") + proto.RegisterType((*MerkleProof)(nil), "tokenization.v29.MerkleProof") + proto.RegisterType((*ETHSignatureProof)(nil), "tokenization.v29.ETHSignatureProof") + proto.RegisterType((*VotingChallenge)(nil), "tokenization.v29.VotingChallenge") + proto.RegisterType((*Voter)(nil), "tokenization.v29.Voter") + proto.RegisterType((*VoteProof)(nil), "tokenization.v29.VoteProof") + proto.RegisterType((*VotingChallengeTracker)(nil), "tokenization.v29.VotingChallengeTracker") + proto.RegisterType((*EVMQueryChallenge)(nil), "tokenization.v29.EVMQueryChallenge") +} + +func init() { proto.RegisterFile("tokenization/v29/challenges.proto", fileDescriptor_14389bbfc4dbefe1) } + +var fileDescriptor_14389bbfc4dbefe1 = []byte{ + // 822 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x55, 0x5f, 0x6b, 0xdc, 0x46, + 0x10, 0xb7, 0xee, 0x9f, 0xcf, 0x93, 0xd6, 0x76, 0x36, 0xae, 0x23, 0x42, 0x51, 0x5c, 0x11, 0xc2, + 0xd1, 0x87, 0xbb, 0xe2, 0x96, 0x90, 0x40, 0x09, 0x5c, 0x12, 0x93, 0x1a, 0x1c, 0xea, 0xa8, 0x8e, + 0x0b, 0x7d, 0x28, 0xac, 0xa5, 0xb1, 0x24, 0x2c, 0x69, 0xd5, 0xdd, 0x95, 0x7b, 0xd7, 0x97, 0x7e, + 0x82, 0x42, 0xfb, 0xd0, 0xef, 0xd2, 0x8f, 0x90, 0xc7, 0xbc, 0xb5, 0xf4, 0x21, 0x14, 0xfb, 0x8b, + 0x94, 0xdd, 0x95, 0xee, 0x8f, 0xac, 0x23, 0x6f, 0x3b, 0x33, 0xbf, 0x99, 0x9d, 0xf9, 0xcd, 0x4f, + 0x2b, 0xf8, 0x4c, 0xb2, 0x0b, 0xcc, 0xe2, 0x5f, 0xa8, 0x8c, 0x59, 0x36, 0xba, 0xdc, 0x7f, 0x32, + 0xf2, 0x23, 0x9a, 0x24, 0x98, 0x85, 0x28, 0x86, 0x39, 0x67, 0x92, 0x91, 0xed, 0x45, 0xc8, 0xf0, + 0x72, 0xff, 0xc9, 0xbd, 0x9d, 0x90, 0x85, 0x4c, 0x07, 0x47, 0xea, 0x64, 0x70, 0xee, 0xdf, 0x2d, + 0xd8, 0x7a, 0x85, 0xfc, 0x22, 0xc1, 0xe7, 0x55, 0x09, 0x42, 0xa0, 0xc3, 0x19, 0x93, 0xb6, 0xb5, + 0x67, 0x0d, 0x36, 0x3c, 0x7d, 0x26, 0x4f, 0xe1, 0x0e, 0x4e, 0x72, 0xf4, 0x25, 0x06, 0xc7, 0x9c, + 0xb1, 0xf3, 0x23, 0xcc, 0x42, 0x19, 0xd9, 0x2d, 0x05, 0x79, 0xf6, 0xd1, 0xdb, 0xf7, 0xf7, 0xd7, + 0xfe, 0x7d, 0x7f, 0xbf, 0xf3, 0x26, 0xce, 0xa4, 0xd7, 0x04, 0x24, 0x8f, 0xe1, 0x6e, 0x21, 0xf0, + 0x39, 0x47, 0x2a, 0x19, 0x1f, 0x07, 0x01, 0x47, 0x21, 0xc6, 0xe2, 0x08, 0xe9, 0xb9, 0xdd, 0xde, + 0xb3, 0x06, 0x7d, 0x6f, 0x55, 0x98, 0x7c, 0x05, 0x9b, 0x29, 0x9d, 0xbc, 0x11, 0x28, 0x8e, 0x91, + 0xeb, 0x84, 0x4e, 0xc3, 0xa5, 0x35, 0x0c, 0xd9, 0x86, 0x76, 0xc1, 0x63, 0xbb, 0xab, 0x47, 0x50, + 0x47, 0xe2, 0x00, 0xf8, 0x85, 0x90, 0x2c, 0x7d, 0x41, 0x25, 0xb5, 0x7b, 0x3a, 0xb0, 0xe0, 0x21, + 0x43, 0x20, 0x33, 0x16, 0x4f, 0x38, 0xf5, 0x2f, 0x90, 0x1f, 0x06, 0xf6, 0xba, 0xc6, 0x35, 0x44, + 0x54, 0xbd, 0x04, 0xe9, 0xf9, 0x77, 0x71, 0x98, 0x21, 0xb7, 0xfb, 0xa6, 0xde, 0xdc, 0xe3, 0xfe, + 0x61, 0xc1, 0x27, 0x07, 0x27, 0xdf, 0x28, 0x8b, 0xca, 0x82, 0x2f, 0xf0, 0xbb, 0x0b, 0x3d, 0x61, + 0xb2, 0x0c, 0xc3, 0xa5, 0xb5, 0xa2, 0x83, 0xd6, 0xca, 0x0e, 0xca, 0x19, 0xdb, 0xab, 0x66, 0xec, + 0xd4, 0x67, 0x74, 0x9f, 0xc2, 0xa6, 0x59, 0xf6, 0x31, 0x95, 0xd1, 0xa1, 0xc4, 0x54, 0xed, 0x9a, + 0x16, 0xd9, 0x6c, 0xd7, 0xea, 0x4c, 0x6c, 0x58, 0x67, 0x99, 0x17, 0x87, 0x91, 0xd4, 0x97, 0xf7, + 0xbd, 0xca, 0x74, 0x7f, 0x85, 0x5b, 0x65, 0xbe, 0x5a, 0xad, 0x4a, 0x56, 0x03, 0x57, 0xc9, 0xea, + 0x4c, 0x1e, 0x41, 0x57, 0x15, 0x11, 0x76, 0x6b, 0xaf, 0x3d, 0xb8, 0xb5, 0xbf, 0x37, 0xac, 0x0b, + 0x71, 0xb8, 0xdc, 0x81, 0x67, 0xe0, 0xe4, 0x01, 0x7c, 0x5c, 0x91, 0xa7, 0xe9, 0x2a, 0xc7, 0x5a, + 0x76, 0xba, 0x2f, 0xe1, 0xf6, 0x22, 0xa7, 0xa6, 0x8d, 0x1d, 0xe8, 0x66, 0x2c, 0xf3, 0xb1, 0xec, + 0xc3, 0x18, 0xe4, 0x53, 0xd8, 0x10, 0xb3, 0x62, 0x86, 0xc4, 0xb9, 0xc3, 0xfd, 0xab, 0x05, 0x5b, + 0xa7, 0x4c, 0xc6, 0x59, 0x38, 0xdf, 0x8b, 0x03, 0x90, 0x73, 0x96, 0x33, 0x41, 0x93, 0xc3, 0xa0, + 0x2c, 0xb6, 0xe0, 0x21, 0x8f, 0x60, 0xeb, 0xa7, 0x82, 0xf1, 0x22, 0x3d, 0x89, 0x38, 0x8a, 0x88, + 0x25, 0x41, 0xa3, 0xfe, 0xeb, 0x20, 0x32, 0x82, 0xde, 0x25, 0x93, 0xc8, 0x85, 0xdd, 0xd6, 0x9c, + 0xdc, 0xbd, 0xc9, 0xc9, 0xa9, 0x8a, 0x7b, 0x25, 0xac, 0x5a, 0x6c, 0x67, 0xd5, 0x62, 0xbb, 0x37, + 0xc4, 0xfb, 0x05, 0xdc, 0xe1, 0x28, 0x50, 0x8e, 0xcf, 0x25, 0xf2, 0x83, 0x09, 0xfa, 0x85, 0x2a, + 0xad, 0x55, 0xde, 0xf7, 0x9a, 0x42, 0xe4, 0x31, 0x6c, 0x07, 0x98, 0xd0, 0xa9, 0x76, 0xbf, 0xd6, + 0x1d, 0x1b, 0xb1, 0xd7, 0xa6, 0xb9, 0x81, 0x72, 0x5f, 0x42, 0x57, 0xb7, 0xab, 0x74, 0x42, 0xcd, + 0xa7, 0x5a, 0x92, 0x55, 0x99, 0xe4, 0x01, 0xf4, 0x7e, 0xc6, 0x99, 0x80, 0xea, 0x25, 0xcb, 0x98, + 0xfb, 0xa7, 0x05, 0x1b, 0xaa, 0x92, 0xd9, 0xe2, 0x87, 0xd8, 0xdf, 0x81, 0xae, 0xa6, 0xa7, 0xdc, + 0xa5, 0x31, 0xc8, 0xe7, 0xb0, 0x31, 0x45, 0xf1, 0xbd, 0xb9, 0xac, 0xdd, 0x70, 0xd9, 0x3c, 0x4c, + 0x1e, 0xc2, 0xba, 0x4a, 0x0a, 0xc6, 0xb2, 0xf1, 0x09, 0xa9, 0x82, 0xee, 0x8f, 0xb0, 0x5b, 0x93, + 0x46, 0xf9, 0xcd, 0x91, 0x17, 0xb0, 0x6b, 0x96, 0xeb, 0x21, 0xf5, 0x23, 0x0c, 0x4e, 0xe2, 0x14, + 0x85, 0xa4, 0x69, 0x6e, 0xfa, 0xad, 0x15, 0x5c, 0x81, 0x75, 0x7f, 0x6b, 0xc1, 0xed, 0x83, 0xd3, + 0x57, 0xaf, 0x0b, 0xe4, 0xd3, 0xb9, 0xfa, 0x06, 0xb0, 0xe5, 0xb3, 0x4c, 0x72, 0xea, 0xcb, 0xf1, + 0x12, 0xab, 0x75, 0x37, 0xb9, 0x07, 0x7d, 0x9f, 0x26, 0x49, 0xa0, 0xa4, 0x60, 0xc8, 0x98, 0xd9, + 0xe4, 0x21, 0x6c, 0x56, 0xcf, 0xaf, 0x87, 0xa2, 0x48, 0x4a, 0x52, 0xbc, 0x9a, 0x57, 0xbf, 0x35, + 0x2c, 0xcd, 0x29, 0x8f, 0x05, 0xcb, 0xbe, 0xcd, 0x91, 0xab, 0x87, 0xb7, 0x54, 0x5c, 0x43, 0x84, + 0x0c, 0xa0, 0x1f, 0x52, 0x71, 0x14, 0xa7, 0xb1, 0x34, 0xf2, 0xab, 0xcd, 0x3a, 0x8b, 0x56, 0xe2, + 0xed, 0xad, 0x12, 0xef, 0x7a, 0x5d, 0xbc, 0xcf, 0x4e, 0xdf, 0x5e, 0x39, 0xd6, 0xbb, 0x2b, 0xc7, + 0xfa, 0xef, 0xca, 0xb1, 0x7e, 0xbf, 0x76, 0xd6, 0xde, 0x5d, 0x3b, 0x6b, 0xff, 0x5c, 0x3b, 0x6b, + 0x3f, 0x7c, 0x1d, 0xc6, 0x32, 0x2a, 0xce, 0x86, 0x3e, 0x4b, 0x47, 0x67, 0xb1, 0x3c, 0xa3, 0x41, + 0x88, 0x62, 0x7e, 0xf2, 0x23, 0x1a, 0x67, 0xa3, 0xc9, 0x68, 0xe9, 0x77, 0x28, 0xa7, 0x39, 0x0a, + 0xf5, 0x53, 0x3c, 0xeb, 0xe9, 0x5f, 0xdc, 0x97, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x62, 0x0f, + 0xef, 0xbc, 0x2f, 0x07, 0x00, 0x00, +} + +func (m *MerkleChallenge) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MerkleChallenge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MerkleChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.LeafSigner) > 0 { + i -= len(m.LeafSigner) + copy(dAtA[i:], m.LeafSigner) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.LeafSigner))) + i-- + dAtA[i] = 0x42 + } + if len(m.ChallengeTrackerId) > 0 { + i -= len(m.ChallengeTrackerId) + copy(dAtA[i:], m.ChallengeTrackerId) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.ChallengeTrackerId))) + i-- + dAtA[i] = 0x3a + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x32 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x2a + } + { + size := m.MaxUsesPerLeaf.Size() + i -= size + if _, err := m.MaxUsesPerLeaf.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if m.UseCreatorAddressAsLeaf { + i-- + if m.UseCreatorAddressAsLeaf { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + { + size := m.ExpectedProofLength.Size() + i -= size + if _, err := m.ExpectedProofLength.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Root) > 0 { + i -= len(m.Root) + copy(dAtA[i:], m.Root) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Root))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ETHSignatureChallenge) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ETHSignatureChallenge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ETHSignatureChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x22 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x1a + } + if len(m.ChallengeTrackerId) > 0 { + i -= len(m.ChallengeTrackerId) + copy(dAtA[i:], m.ChallengeTrackerId) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.ChallengeTrackerId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Signer) > 0 { + i -= len(m.Signer) + copy(dAtA[i:], m.Signer) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Signer))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MerklePathItem) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MerklePathItem) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MerklePathItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.OnRight { + i-- + if m.OnRight { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.Aunt) > 0 { + i -= len(m.Aunt) + copy(dAtA[i:], m.Aunt) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Aunt))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MerkleProof) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MerkleProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MerkleProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.LeafSignature) > 0 { + i -= len(m.LeafSignature) + copy(dAtA[i:], m.LeafSignature) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.LeafSignature))) + i-- + dAtA[i] = 0x1a + } + if len(m.Aunts) > 0 { + for iNdEx := len(m.Aunts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Aunts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Leaf) > 0 { + i -= len(m.Leaf) + copy(dAtA[i:], m.Leaf) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Leaf))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ETHSignatureProof) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ETHSignatureProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ETHSignatureProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if len(m.Nonce) > 0 { + i -= len(m.Nonce) + copy(dAtA[i:], m.Nonce) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Nonce))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VotingChallenge) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VotingChallenge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VotingChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.DelayAfterQuorum.Size() + i -= size + if _, err := m.DelayAfterQuorum.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + if m.ResetAfterExecution { + i-- + if m.ResetAfterExecution { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x2a + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x22 + } + if len(m.Voters) > 0 { + for iNdEx := len(m.Voters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Voters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size := m.QuorumThreshold.Size() + i -= size + if _, err := m.QuorumThreshold.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.ProposalId) > 0 { + i -= len(m.ProposalId) + copy(dAtA[i:], m.ProposalId) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.ProposalId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Voter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Voter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Voter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Weight.Size() + i -= size + if _, err := m.Weight.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VoteProof) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VoteProof) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VoteProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.VotedAt.Size() + i -= size + if _, err := m.VotedAt.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.YesWeight.Size() + i -= size + if _, err := m.YesWeight.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.Voter) > 0 { + i -= len(m.Voter) + copy(dAtA[i:], m.Voter) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Voter))) + i-- + dAtA[i] = 0x12 + } + if len(m.ProposalId) > 0 { + i -= len(m.ProposalId) + copy(dAtA[i:], m.ProposalId) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.ProposalId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *VotingChallengeTracker) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *VotingChallengeTracker) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *VotingChallengeTracker) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.QuorumReachedTimestamp.Size() + i -= size + if _, err := m.QuorumReachedTimestamp.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *EVMQueryChallenge) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EVMQueryChallenge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EVMQueryChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x3a + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x32 + } + { + size := m.GasLimit.Size() + i -= size + if _, err := m.GasLimit.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintChallenges(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.ComparisonOperator) > 0 { + i -= len(m.ComparisonOperator) + copy(dAtA[i:], m.ComparisonOperator) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.ComparisonOperator))) + i-- + dAtA[i] = 0x22 + } + if len(m.ExpectedResult) > 0 { + i -= len(m.ExpectedResult) + copy(dAtA[i:], m.ExpectedResult) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.ExpectedResult))) + i-- + dAtA[i] = 0x1a + } + if len(m.Calldata) > 0 { + i -= len(m.Calldata) + copy(dAtA[i:], m.Calldata) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.Calldata))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContractAddress) > 0 { + i -= len(m.ContractAddress) + copy(dAtA[i:], m.ContractAddress) + i = encodeVarintChallenges(dAtA, i, uint64(len(m.ContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintChallenges(dAtA []byte, offset int, v uint64) int { + offset -= sovChallenges(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MerkleChallenge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Root) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = m.ExpectedProofLength.Size() + n += 1 + l + sovChallenges(uint64(l)) + if m.UseCreatorAddressAsLeaf { + n += 2 + } + l = m.MaxUsesPerLeaf.Size() + n += 1 + l + sovChallenges(uint64(l)) + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.ChallengeTrackerId) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.LeafSigner) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + return n +} + +func (m *ETHSignatureChallenge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Signer) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.ChallengeTrackerId) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + return n +} + +func (m *MerklePathItem) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Aunt) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + if m.OnRight { + n += 2 + } + return n +} + +func (m *MerkleProof) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Leaf) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + if len(m.Aunts) > 0 { + for _, e := range m.Aunts { + l = e.Size() + n += 1 + l + sovChallenges(uint64(l)) + } + } + l = len(m.LeafSignature) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + return n +} + +func (m *ETHSignatureProof) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Nonce) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + return n +} + +func (m *VotingChallenge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProposalId) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = m.QuorumThreshold.Size() + n += 1 + l + sovChallenges(uint64(l)) + if len(m.Voters) > 0 { + for _, e := range m.Voters { + l = e.Size() + n += 1 + l + sovChallenges(uint64(l)) + } + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + if m.ResetAfterExecution { + n += 2 + } + l = m.DelayAfterQuorum.Size() + n += 1 + l + sovChallenges(uint64(l)) + return n +} + +func (m *Voter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = m.Weight.Size() + n += 1 + l + sovChallenges(uint64(l)) + return n +} + +func (m *VoteProof) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ProposalId) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.Voter) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = m.YesWeight.Size() + n += 1 + l + sovChallenges(uint64(l)) + l = m.VotedAt.Size() + n += 1 + l + sovChallenges(uint64(l)) + return n +} + +func (m *VotingChallengeTracker) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.QuorumReachedTimestamp.Size() + n += 1 + l + sovChallenges(uint64(l)) + return n +} + +func (m *EVMQueryChallenge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractAddress) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.Calldata) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.ExpectedResult) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.ComparisonOperator) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = m.GasLimit.Size() + n += 1 + l + sovChallenges(uint64(l)) + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovChallenges(uint64(l)) + } + return n +} + +func sovChallenges(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozChallenges(x uint64) (n int) { + return sovChallenges(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MerkleChallenge) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MerkleChallenge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MerkleChallenge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Root = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedProofLength", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ExpectedProofLength.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UseCreatorAddressAsLeaf", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UseCreatorAddressAsLeaf = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxUsesPerLeaf", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxUsesPerLeaf.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChallengeTrackerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChallengeTrackerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LeafSigner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LeafSigner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ETHSignatureChallenge) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ETHSignatureChallenge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ETHSignatureChallenge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChallengeTrackerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChallengeTrackerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MerklePathItem) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MerklePathItem: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MerklePathItem: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aunt", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Aunt = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OnRight", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OnRight = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MerkleProof) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MerkleProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MerkleProof: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Leaf", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Leaf = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Aunts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Aunts = append(m.Aunts, &MerklePathItem{}) + if err := m.Aunts[len(m.Aunts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LeafSignature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LeafSignature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ETHSignatureProof) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ETHSignatureProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ETHSignatureProof: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nonce = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VotingChallenge) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VotingChallenge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VotingChallenge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProposalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QuorumThreshold", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.QuorumThreshold.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Voters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Voters = append(m.Voters, &Voter{}) + if err := m.Voters[len(m.Voters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResetAfterExecution", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ResetAfterExecution = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelayAfterQuorum", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DelayAfterQuorum.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Voter) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Voter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Voter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Weight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VoteProof) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VoteProof: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VoteProof: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProposalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Voter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YesWeight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YesWeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VotedAt", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.VotedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *VotingChallengeTracker) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: VotingChallengeTracker: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: VotingChallengeTracker: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QuorumReachedTimestamp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.QuorumReachedTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EVMQueryChallenge) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EVMQueryChallenge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EVMQueryChallenge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Calldata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Calldata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpectedResult", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExpectedResult = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ComparisonOperator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ComparisonOperator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.GasLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowChallenges + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthChallenges + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthChallenges + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipChallenges(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthChallenges + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipChallenges(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowChallenges + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowChallenges + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowChallenges + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthChallenges + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupChallenges + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthChallenges + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthChallenges = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowChallenges = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupChallenges = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/collections.pb.go b/x/tokenization/types/v29/collections.pb.go new file mode 100644 index 00000000..0a5af003 --- /dev/null +++ b/x/tokenization/types/v29/collections.pb.go @@ -0,0 +1,4258 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/collections.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// A TokenCollection is the top-level object for a collection of tokens. +// It defines everything about the collection, such as the manager, metadata, etc. +// +// All collections are identified by a collectionId assigned by the blockchain, which is a uint64 that increments (i.e. the first collection has ID 1). +// +// All collections can have a manager who is responsible for managing the collection and can be granted certain admin +// permissions, such as the ability to mint new tokens. +// +// Collections may have different balance types: standard vs. off-chain - indexed vs. inherited.vs off-chain - non-indexed vs non-public. +// +// See documentation for more details. +type TokenCollection struct { + // The unique identifier for this collection. This is assigned by the blockchain. First collection has ID 1. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // The metadata for the collection itself. + CollectionMetadata *CollectionMetadata `protobuf:"bytes,2,opt,name=collectionMetadata,proto3" json:"collectionMetadata,omitempty"` + // The metadata for each token in the collection. + TokenMetadata []*TokenMetadata `protobuf:"bytes,3,rep,name=tokenMetadata,proto3" json:"tokenMetadata,omitempty"` + // An arbitrary field that can store any data. + CustomData string `protobuf:"bytes,4,opt,name=customData,proto3" json:"customData,omitempty"` + // The address of the manager of this collection. + Manager string `protobuf:"bytes,5,opt,name=manager,proto3" json:"manager,omitempty"` + // Permissions that define what the manager of the collection can do or not do. + CollectionPermissions *CollectionPermissions `protobuf:"bytes,6,opt,name=collectionPermissions,proto3" json:"collectionPermissions,omitempty"` + // Transferability of the collection for collections with standard balances, subject to changes over time. + // Overrides user approvals for a transfer if specified. + // Transfer must satisfy both user and collection-level approvals. + // Only applicable to on-chain balances. + CollectionApprovals []*CollectionApproval `protobuf:"bytes,7,rep,name=collectionApprovals,proto3" json:"collectionApprovals,omitempty"` + // Standards that define how to interpret the fields of the collection. + Standards []string `protobuf:"bytes,8,rep,name=standards,proto3" json:"standards,omitempty"` + // Whether the collection is archived or not. + // When archived, it becomes read-only, and no transactions can be processed until it is unarchived. + IsArchived bool `protobuf:"varint,9,opt,name=isArchived,proto3" json:"isArchived,omitempty"` + // The default store of a balance / approvals for a user, upon genesis. + DefaultBalances *UserBalanceStore `protobuf:"bytes,10,opt,name=defaultBalances,proto3" json:"defaultBalances,omitempty"` + // The user or entity who created the collection. + CreatedBy string `protobuf:"bytes,11,opt,name=createdBy,proto3" json:"createdBy,omitempty"` + // The valid token IDs for this collection. + ValidTokenIds []*UintRange `protobuf:"bytes,12,rep,name=validTokenIds,proto3" json:"validTokenIds,omitempty"` + //The generated address of the collection. Also used to escrow Mint balances. + MintEscrowAddress string `protobuf:"bytes,13,opt,name=mintEscrowAddress,proto3" json:"mintEscrowAddress,omitempty"` + // The IBC wrapper (sdk.coin) paths for the collection. + CosmosCoinWrapperPaths []*CosmosCoinWrapperPath `protobuf:"bytes,14,rep,name=cosmosCoinWrapperPaths,proto3" json:"cosmosCoinWrapperPaths,omitempty"` + // Collection-level invariants that cannot be broken. + // These are set upon genesis and cannot be modified. + Invariants *CollectionInvariants `protobuf:"bytes,15,opt,name=invariants,proto3" json:"invariants,omitempty"` + // The alias (non-wrapping) paths for the collection. + AliasPaths []*AliasPath `protobuf:"bytes,16,rep,name=aliasPaths,proto3" json:"aliasPaths,omitempty"` +} + +func (m *TokenCollection) Reset() { *m = TokenCollection{} } +func (m *TokenCollection) String() string { return proto.CompactTextString(m) } +func (*TokenCollection) ProtoMessage() {} +func (*TokenCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{0} +} +func (m *TokenCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenCollection.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TokenCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenCollection.Merge(m, src) +} +func (m *TokenCollection) XXX_Size() int { + return m.Size() +} +func (m *TokenCollection) XXX_DiscardUnknown() { + xxx_messageInfo_TokenCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenCollection proto.InternalMessageInfo + +func (m *TokenCollection) GetCollectionMetadata() *CollectionMetadata { + if m != nil { + return m.CollectionMetadata + } + return nil +} + +func (m *TokenCollection) GetTokenMetadata() []*TokenMetadata { + if m != nil { + return m.TokenMetadata + } + return nil +} + +func (m *TokenCollection) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *TokenCollection) GetManager() string { + if m != nil { + return m.Manager + } + return "" +} + +func (m *TokenCollection) GetCollectionPermissions() *CollectionPermissions { + if m != nil { + return m.CollectionPermissions + } + return nil +} + +func (m *TokenCollection) GetCollectionApprovals() []*CollectionApproval { + if m != nil { + return m.CollectionApprovals + } + return nil +} + +func (m *TokenCollection) GetStandards() []string { + if m != nil { + return m.Standards + } + return nil +} + +func (m *TokenCollection) GetIsArchived() bool { + if m != nil { + return m.IsArchived + } + return false +} + +func (m *TokenCollection) GetDefaultBalances() *UserBalanceStore { + if m != nil { + return m.DefaultBalances + } + return nil +} + +func (m *TokenCollection) GetCreatedBy() string { + if m != nil { + return m.CreatedBy + } + return "" +} + +func (m *TokenCollection) GetValidTokenIds() []*UintRange { + if m != nil { + return m.ValidTokenIds + } + return nil +} + +func (m *TokenCollection) GetMintEscrowAddress() string { + if m != nil { + return m.MintEscrowAddress + } + return "" +} + +func (m *TokenCollection) GetCosmosCoinWrapperPaths() []*CosmosCoinWrapperPath { + if m != nil { + return m.CosmosCoinWrapperPaths + } + return nil +} + +func (m *TokenCollection) GetInvariants() *CollectionInvariants { + if m != nil { + return m.Invariants + } + return nil +} + +func (m *TokenCollection) GetAliasPaths() []*AliasPath { + if m != nil { + return m.AliasPaths + } + return nil +} + +// Conversion defines a bidirectional conversion between a cosmos coin (with denom) and token balances. +type Conversion struct { + // Side A: The cosmos coin side of the conversion (amount + denom). + SideA *ConversionSideAWithDenom `protobuf:"bytes,1,opt,name=sideA,proto3" json:"sideA,omitempty"` + // Side B: The token balances side of the conversion. + SideB []*Balance `protobuf:"bytes,2,rep,name=sideB,proto3" json:"sideB,omitempty"` +} + +func (m *Conversion) Reset() { *m = Conversion{} } +func (m *Conversion) String() string { return proto.CompactTextString(m) } +func (*Conversion) ProtoMessage() {} +func (*Conversion) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{1} +} +func (m *Conversion) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Conversion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Conversion.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Conversion) XXX_Merge(src proto.Message) { + xxx_messageInfo_Conversion.Merge(m, src) +} +func (m *Conversion) XXX_Size() int { + return m.Size() +} +func (m *Conversion) XXX_DiscardUnknown() { + xxx_messageInfo_Conversion.DiscardUnknown(m) +} + +var xxx_messageInfo_Conversion proto.InternalMessageInfo + +func (m *Conversion) GetSideA() *ConversionSideAWithDenom { + if m != nil { + return m.SideA + } + return nil +} + +func (m *Conversion) GetSideB() []*Balance { + if m != nil { + return m.SideB + } + return nil +} + +// ConversionSideAWithDenom represents the cosmos coin side of a conversion with denomination. +type ConversionSideAWithDenom struct { + // The amount of the cosmos coin (0 decimals). + Amount Uint `protobuf:"bytes,1,opt,name=amount,proto3,customtype=Uint" json:"amount"` + // The denomination of the cosmos coin. + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (m *ConversionSideAWithDenom) Reset() { *m = ConversionSideAWithDenom{} } +func (m *ConversionSideAWithDenom) String() string { return proto.CompactTextString(m) } +func (*ConversionSideAWithDenom) ProtoMessage() {} +func (*ConversionSideAWithDenom) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{2} +} +func (m *ConversionSideAWithDenom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConversionSideAWithDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConversionSideAWithDenom.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ConversionSideAWithDenom) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConversionSideAWithDenom.Merge(m, src) +} +func (m *ConversionSideAWithDenom) XXX_Size() int { + return m.Size() +} +func (m *ConversionSideAWithDenom) XXX_DiscardUnknown() { + xxx_messageInfo_ConversionSideAWithDenom.DiscardUnknown(m) +} + +var xxx_messageInfo_ConversionSideAWithDenom proto.InternalMessageInfo + +func (m *ConversionSideAWithDenom) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +// ConversionWithoutDenom defines a bidirectional conversion between a cosmos coin amount (without denom) and token balances. +// The denom is stored at the base level (e.g., in AliasPath or CosmosCoinWrapperPath). +type ConversionWithoutDenom struct { + // Side A: The cosmos coin amount side of the conversion (amount only, denom stored separately). + SideA *ConversionSideA `protobuf:"bytes,1,opt,name=sideA,proto3" json:"sideA,omitempty"` + // Side B: The token balances side of the conversion. + SideB []*Balance `protobuf:"bytes,2,rep,name=sideB,proto3" json:"sideB,omitempty"` +} + +func (m *ConversionWithoutDenom) Reset() { *m = ConversionWithoutDenom{} } +func (m *ConversionWithoutDenom) String() string { return proto.CompactTextString(m) } +func (*ConversionWithoutDenom) ProtoMessage() {} +func (*ConversionWithoutDenom) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{3} +} +func (m *ConversionWithoutDenom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConversionWithoutDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConversionWithoutDenom.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ConversionWithoutDenom) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConversionWithoutDenom.Merge(m, src) +} +func (m *ConversionWithoutDenom) XXX_Size() int { + return m.Size() +} +func (m *ConversionWithoutDenom) XXX_DiscardUnknown() { + xxx_messageInfo_ConversionWithoutDenom.DiscardUnknown(m) +} + +var xxx_messageInfo_ConversionWithoutDenom proto.InternalMessageInfo + +func (m *ConversionWithoutDenom) GetSideA() *ConversionSideA { + if m != nil { + return m.SideA + } + return nil +} + +func (m *ConversionWithoutDenom) GetSideB() []*Balance { + if m != nil { + return m.SideB + } + return nil +} + +// ConversionSideA represents the cosmos coin amount side of a conversion without denomination. +type ConversionSideA struct { + // The amount of the cosmos coin (0 decimals). + Amount Uint `protobuf:"bytes,1,opt,name=amount,proto3,customtype=Uint" json:"amount"` +} + +func (m *ConversionSideA) Reset() { *m = ConversionSideA{} } +func (m *ConversionSideA) String() string { return proto.CompactTextString(m) } +func (*ConversionSideA) ProtoMessage() {} +func (*ConversionSideA) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{4} +} +func (m *ConversionSideA) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ConversionSideA) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ConversionSideA.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ConversionSideA) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConversionSideA.Merge(m, src) +} +func (m *ConversionSideA) XXX_Size() int { + return m.Size() +} +func (m *ConversionSideA) XXX_DiscardUnknown() { + xxx_messageInfo_ConversionSideA.DiscardUnknown(m) +} + +var xxx_messageInfo_ConversionSideA proto.InternalMessageInfo + +type CosmosCoinWrapperPath struct { + // The BitBadges address associated with this wrapper path. Used for routing and identifying the wrapper. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // The denomination (denom) to be used for the wrapped coin or the alias denom. + Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` + // The conversion between cosmos coin and token balances. + Conversion *ConversionWithoutDenom `protobuf:"bytes,3,opt,name=conversion,proto3" json:"conversion,omitempty"` + // The symbol for the wrapped coin (e.g., "BADGE", "NFT"). Used for display purposes. Note that this may not be the default. + Symbol string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"` + // Denomination units for the wrapped coin. Defines how the coin can be displayed with different + // decimal places and symbols (e.g., base unit, display unit). You can specify which is the default display unit (base level or one of these). + DenomUnits []*DenomUnit `protobuf:"bytes,5,rep,name=denomUnits,proto3" json:"denomUnits,omitempty"` + // If true, allows this wrapper path to be used with any valid token ID in the collection via an {id} placeholder. + AllowOverrideWithAnyValidToken bool `protobuf:"varint,6,opt,name=allowOverrideWithAnyValidToken,proto3" json:"allowOverrideWithAnyValidToken,omitempty"` + // The metadata for this wrapper path. + Metadata *PathMetadata `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (m *CosmosCoinWrapperPath) Reset() { *m = CosmosCoinWrapperPath{} } +func (m *CosmosCoinWrapperPath) String() string { return proto.CompactTextString(m) } +func (*CosmosCoinWrapperPath) ProtoMessage() {} +func (*CosmosCoinWrapperPath) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{5} +} +func (m *CosmosCoinWrapperPath) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CosmosCoinWrapperPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CosmosCoinWrapperPath.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CosmosCoinWrapperPath) XXX_Merge(src proto.Message) { + xxx_messageInfo_CosmosCoinWrapperPath.Merge(m, src) +} +func (m *CosmosCoinWrapperPath) XXX_Size() int { + return m.Size() +} +func (m *CosmosCoinWrapperPath) XXX_DiscardUnknown() { + xxx_messageInfo_CosmosCoinWrapperPath.DiscardUnknown(m) +} + +var xxx_messageInfo_CosmosCoinWrapperPath proto.InternalMessageInfo + +func (m *CosmosCoinWrapperPath) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *CosmosCoinWrapperPath) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *CosmosCoinWrapperPath) GetConversion() *ConversionWithoutDenom { + if m != nil { + return m.Conversion + } + return nil +} + +func (m *CosmosCoinWrapperPath) GetSymbol() string { + if m != nil { + return m.Symbol + } + return "" +} + +func (m *CosmosCoinWrapperPath) GetDenomUnits() []*DenomUnit { + if m != nil { + return m.DenomUnits + } + return nil +} + +func (m *CosmosCoinWrapperPath) GetAllowOverrideWithAnyValidToken() bool { + if m != nil { + return m.AllowOverrideWithAnyValidToken + } + return false +} + +func (m *CosmosCoinWrapperPath) GetMetadata() *PathMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +type AliasPath struct { + // The denomination (denom) to be used for the alias. + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + // The conversion between cosmos coin and token balances. + Conversion *ConversionWithoutDenom `protobuf:"bytes,2,opt,name=conversion,proto3" json:"conversion,omitempty"` + // The symbol for the alias (e.g., "BADGE", "NFT"). Used for display purposes. Note that this may not be the default. + Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` + // Denomination units for the alias. Defines how the coin can be displayed with different decimal places and symbols. + DenomUnits []*DenomUnit `protobuf:"bytes,4,rep,name=denomUnits,proto3" json:"denomUnits,omitempty"` + // The metadata for this alias path. + Metadata *PathMetadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (m *AliasPath) Reset() { *m = AliasPath{} } +func (m *AliasPath) String() string { return proto.CompactTextString(m) } +func (*AliasPath) ProtoMessage() {} +func (*AliasPath) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{6} +} +func (m *AliasPath) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AliasPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AliasPath.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AliasPath) XXX_Merge(src proto.Message) { + xxx_messageInfo_AliasPath.Merge(m, src) +} +func (m *AliasPath) XXX_Size() int { + return m.Size() +} +func (m *AliasPath) XXX_DiscardUnknown() { + xxx_messageInfo_AliasPath.DiscardUnknown(m) +} + +var xxx_messageInfo_AliasPath proto.InternalMessageInfo + +func (m *AliasPath) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *AliasPath) GetConversion() *ConversionWithoutDenom { + if m != nil { + return m.Conversion + } + return nil +} + +func (m *AliasPath) GetSymbol() string { + if m != nil { + return m.Symbol + } + return "" +} + +func (m *AliasPath) GetDenomUnits() []*DenomUnit { + if m != nil { + return m.DenomUnits + } + return nil +} + +func (m *AliasPath) GetMetadata() *PathMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +type CosmosCoinBackedPath struct { + // The address associated with this backed path. Used for routing and escrowing IBC tokens. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // The conversion between IBC cosmos coin and token balances. + Conversion *Conversion `protobuf:"bytes,2,opt,name=conversion,proto3" json:"conversion,omitempty"` +} + +func (m *CosmosCoinBackedPath) Reset() { *m = CosmosCoinBackedPath{} } +func (m *CosmosCoinBackedPath) String() string { return proto.CompactTextString(m) } +func (*CosmosCoinBackedPath) ProtoMessage() {} +func (*CosmosCoinBackedPath) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{7} +} +func (m *CosmosCoinBackedPath) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CosmosCoinBackedPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CosmosCoinBackedPath.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CosmosCoinBackedPath) XXX_Merge(src proto.Message) { + xxx_messageInfo_CosmosCoinBackedPath.Merge(m, src) +} +func (m *CosmosCoinBackedPath) XXX_Size() int { + return m.Size() +} +func (m *CosmosCoinBackedPath) XXX_DiscardUnknown() { + xxx_messageInfo_CosmosCoinBackedPath.DiscardUnknown(m) +} + +var xxx_messageInfo_CosmosCoinBackedPath proto.InternalMessageInfo + +func (m *CosmosCoinBackedPath) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *CosmosCoinBackedPath) GetConversion() *Conversion { + if m != nil { + return m.Conversion + } + return nil +} + +type DenomUnit struct { + // The number of decimal places for this unit. Defines the precision of the unit. + Decimals Uint `protobuf:"bytes,1,opt,name=decimals,proto3,customtype=Uint" json:"decimals"` + // The symbol for this unit (e.g., "BADGE", "nBADGE"). Used for display purposes. + Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` + // If true, this is the default display unit. Only one unit should be marked as the default display unit. + // This unit will be used by default when displaying the coin amount. If none are marked default, we use the base level. + IsDefaultDisplay bool `protobuf:"varint,3,opt,name=isDefaultDisplay,proto3" json:"isDefaultDisplay,omitempty"` + // The metadata for this denomination unit. + Metadata *PathMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (m *DenomUnit) Reset() { *m = DenomUnit{} } +func (m *DenomUnit) String() string { return proto.CompactTextString(m) } +func (*DenomUnit) ProtoMessage() {} +func (*DenomUnit) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{8} +} +func (m *DenomUnit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DenomUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DenomUnit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DenomUnit) XXX_Merge(src proto.Message) { + xxx_messageInfo_DenomUnit.Merge(m, src) +} +func (m *DenomUnit) XXX_Size() int { + return m.Size() +} +func (m *DenomUnit) XXX_DiscardUnknown() { + xxx_messageInfo_DenomUnit.DiscardUnknown(m) +} + +var xxx_messageInfo_DenomUnit proto.InternalMessageInfo + +func (m *DenomUnit) GetSymbol() string { + if m != nil { + return m.Symbol + } + return "" +} + +func (m *DenomUnit) GetIsDefaultDisplay() bool { + if m != nil { + return m.IsDefaultDisplay + } + return false +} + +func (m *DenomUnit) GetMetadata() *PathMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +// CollectionInvariants defines the invariants that apply to a collection. +type CollectionInvariants struct { + // If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }]. + // This prevents time-based restrictions on token ownership. + NoCustomOwnershipTimes bool `protobuf:"varint,1,opt,name=noCustomOwnershipTimes,proto3" json:"noCustomOwnershipTimes,omitempty"` + // Maximum supply per token ID. Checked against Total address balances after transfers complete. + // A value of 0 means no limit (unlimited). + MaxSupplyPerId Uint `protobuf:"bytes,2,opt,name=maxSupplyPerId,proto3,customtype=Uint" json:"maxSupplyPerId"` + // The IBC backed (sdk.coin) path for the collection. Only one path is allowed. + CosmosCoinBackedPath *CosmosCoinBackedPath `protobuf:"bytes,3,opt,name=cosmosCoinBackedPath,proto3" json:"cosmosCoinBackedPath,omitempty"` + // If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true. + // This prevents forceful transfers that bypass user-level approvals. + // This only applies to transfers where the from address does not equal "Mint". + NoForcefulPostMintTransfers bool `protobuf:"varint,4,opt,name=noForcefulPostMintTransfers,proto3" json:"noForcefulPostMintTransfers,omitempty"` + // If true, disallows pool creation with this collection's assets. + // When true, any attempt to create a pool with tokenization assets from this collection will fail. + DisablePoolCreation bool `protobuf:"varint,5,opt,name=disablePoolCreation,proto3" json:"disablePoolCreation,omitempty"` + // EVM query invariants that must pass after all transfers complete. + // These are checked once per message after all balance updates, with access to ALL recipient addresses. + // Placeholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient + EvmQueryChallenges []*EVMQueryChallenge `protobuf:"bytes,6,rep,name=evmQueryChallenges,proto3" json:"evmQueryChallenges,omitempty"` +} + +func (m *CollectionInvariants) Reset() { *m = CollectionInvariants{} } +func (m *CollectionInvariants) String() string { return proto.CompactTextString(m) } +func (*CollectionInvariants) ProtoMessage() {} +func (*CollectionInvariants) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{9} +} +func (m *CollectionInvariants) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CollectionInvariants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CollectionInvariants.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CollectionInvariants) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionInvariants.Merge(m, src) +} +func (m *CollectionInvariants) XXX_Size() int { + return m.Size() +} +func (m *CollectionInvariants) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionInvariants.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionInvariants proto.InternalMessageInfo + +func (m *CollectionInvariants) GetNoCustomOwnershipTimes() bool { + if m != nil { + return m.NoCustomOwnershipTimes + } + return false +} + +func (m *CollectionInvariants) GetCosmosCoinBackedPath() *CosmosCoinBackedPath { + if m != nil { + return m.CosmosCoinBackedPath + } + return nil +} + +func (m *CollectionInvariants) GetNoForcefulPostMintTransfers() bool { + if m != nil { + return m.NoForcefulPostMintTransfers + } + return false +} + +func (m *CollectionInvariants) GetDisablePoolCreation() bool { + if m != nil { + return m.DisablePoolCreation + } + return false +} + +func (m *CollectionInvariants) GetEvmQueryChallenges() []*EVMQueryChallenge { + if m != nil { + return m.EvmQueryChallenges + } + return nil +} + +// CollectionStats tracks aggregated statistics for a collection. +type CollectionStats struct { + HolderCount Uint `protobuf:"bytes,1,opt,name=holderCount,proto3,customtype=Uint" json:"holderCount"` + // Tracks circulating supply as Balance[] for proper range handling + Balances []*Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances,omitempty"` +} + +func (m *CollectionStats) Reset() { *m = CollectionStats{} } +func (m *CollectionStats) String() string { return proto.CompactTextString(m) } +func (*CollectionStats) ProtoMessage() {} +func (*CollectionStats) Descriptor() ([]byte, []int) { + return fileDescriptor_1bee0c48f49dbe62, []int{10} +} +func (m *CollectionStats) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CollectionStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CollectionStats.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CollectionStats) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionStats.Merge(m, src) +} +func (m *CollectionStats) XXX_Size() int { + return m.Size() +} +func (m *CollectionStats) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionStats.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionStats proto.InternalMessageInfo + +func (m *CollectionStats) GetBalances() []*Balance { + if m != nil { + return m.Balances + } + return nil +} + +func init() { + proto.RegisterType((*TokenCollection)(nil), "tokenization.v29.TokenCollection") + proto.RegisterType((*Conversion)(nil), "tokenization.v29.Conversion") + proto.RegisterType((*ConversionSideAWithDenom)(nil), "tokenization.v29.ConversionSideAWithDenom") + proto.RegisterType((*ConversionWithoutDenom)(nil), "tokenization.v29.ConversionWithoutDenom") + proto.RegisterType((*ConversionSideA)(nil), "tokenization.v29.ConversionSideA") + proto.RegisterType((*CosmosCoinWrapperPath)(nil), "tokenization.v29.CosmosCoinWrapperPath") + proto.RegisterType((*AliasPath)(nil), "tokenization.v29.AliasPath") + proto.RegisterType((*CosmosCoinBackedPath)(nil), "tokenization.v29.CosmosCoinBackedPath") + proto.RegisterType((*DenomUnit)(nil), "tokenization.v29.DenomUnit") + proto.RegisterType((*CollectionInvariants)(nil), "tokenization.v29.CollectionInvariants") + proto.RegisterType((*CollectionStats)(nil), "tokenization.v29.CollectionStats") +} + +func init() { + proto.RegisterFile("tokenization/v29/collections.proto", fileDescriptor_1bee0c48f49dbe62) +} + +var fileDescriptor_1bee0c48f49dbe62 = []byte{ + // 1150 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcb, 0x6e, 0x1b, 0x37, + 0x17, 0xf6, 0x58, 0x96, 0x2d, 0x1d, 0x27, 0x71, 0x7e, 0xc6, 0x31, 0x26, 0x17, 0xc8, 0x8a, 0xfe, + 0x20, 0x55, 0x83, 0x42, 0x0a, 0xdc, 0x4b, 0x90, 0x36, 0x8b, 0x48, 0x72, 0x8c, 0x1a, 0xa8, 0x11, + 0x77, 0x7c, 0x09, 0x10, 0xa0, 0x30, 0xa8, 0x19, 0x5a, 0x22, 0x32, 0x43, 0x0a, 0x24, 0x25, 0x5b, + 0xdd, 0x14, 0xe8, 0x13, 0xf4, 0x35, 0xfa, 0x00, 0x7d, 0x87, 0x2c, 0x83, 0xae, 0x8a, 0x2e, 0x82, + 0xc2, 0xde, 0xf5, 0x19, 0xba, 0x28, 0x86, 0x73, 0x95, 0x67, 0x24, 0xd7, 0x45, 0x77, 0x43, 0xf2, + 0x3b, 0xdf, 0x9c, 0xef, 0xe3, 0xe1, 0x21, 0xa1, 0xa6, 0xf8, 0x5b, 0xc2, 0xe8, 0xf7, 0x58, 0x51, + 0xce, 0x9a, 0xa3, 0x8d, 0x67, 0x4d, 0x9b, 0xbb, 0x2e, 0xb1, 0xfd, 0xa1, 0x6c, 0x0c, 0x04, 0x57, + 0x1c, 0xdd, 0x4c, 0x63, 0x1a, 0xa3, 0x8d, 0x67, 0x77, 0xef, 0xf4, 0x38, 0xef, 0xb9, 0xa4, 0xa9, + 0xd7, 0xbb, 0xc3, 0xe3, 0x26, 0x66, 0xe3, 0x00, 0x7c, 0xb7, 0x9a, 0x21, 0x54, 0x02, 0x33, 0x79, + 0x4c, 0x44, 0x48, 0x77, 0x77, 0x3d, 0x83, 0xe8, 0x62, 0x17, 0x33, 0x9b, 0x44, 0x80, 0x6c, 0x4e, + 0x03, 0x22, 0x3c, 0x2a, 0x65, 0x92, 0x53, 0x0e, 0x89, 0x47, 0x14, 0x76, 0xb0, 0xc2, 0x53, 0xf3, + 0xc0, 0x83, 0x81, 0xe0, 0x23, 0xec, 0x46, 0x14, 0x1f, 0x67, 0x10, 0x43, 0x49, 0xc4, 0x51, 0x98, + 0xcc, 0x91, 0x54, 0x5c, 0x90, 0x10, 0xfa, 0x20, 0xeb, 0x52, 0x1f, 0xbb, 0x2e, 0x61, 0xbd, 0x38, + 0xe9, 0xd5, 0x1e, 0xef, 0x71, 0xfd, 0xd9, 0xf4, 0xbf, 0x82, 0xd9, 0xda, 0xaf, 0x4b, 0xb0, 0xb2, + 0xef, 0xc7, 0x76, 0x62, 0x57, 0xd1, 0x13, 0xb8, 0x96, 0x78, 0xbc, 0xed, 0x98, 0x46, 0xd5, 0xa8, + 0x97, 0xdb, 0xd7, 0xde, 0x7d, 0x58, 0x9f, 0xfb, 0xfd, 0xc3, 0xfa, 0xc2, 0x01, 0x65, 0xca, 0x9a, + 0x40, 0xa0, 0x7d, 0x40, 0xc9, 0x78, 0x27, 0xd4, 0x69, 0xce, 0x57, 0x8d, 0xfa, 0xf2, 0xc6, 0xc3, + 0xc6, 0xc5, 0xdd, 0x69, 0x74, 0x32, 0x58, 0x2b, 0x27, 0x1e, 0xbd, 0x84, 0xeb, 0x3a, 0x34, 0x26, + 0x2c, 0x54, 0x0b, 0xf5, 0xe5, 0x8d, 0xf5, 0x2c, 0xe1, 0x7e, 0x1a, 0x66, 0x4d, 0x46, 0xa1, 0x0a, + 0x80, 0x3d, 0x94, 0x8a, 0x7b, 0x9b, 0x3e, 0xc7, 0x82, 0x2f, 0xc6, 0x4a, 0xcd, 0x20, 0x13, 0x96, + 0x3c, 0xcc, 0x70, 0x8f, 0x08, 0xb3, 0xa8, 0x17, 0xa3, 0x21, 0xfa, 0x0e, 0x6e, 0x27, 0x69, 0xed, + 0x26, 0x5b, 0x6c, 0x2e, 0x6a, 0x65, 0x1f, 0xcd, 0x52, 0x96, 0x82, 0x5b, 0xf9, 0x2c, 0xe8, 0x10, + 0x6e, 0x25, 0x0b, 0xad, 0x68, 0xf3, 0xcd, 0x25, 0xad, 0x72, 0xa6, 0x6d, 0x11, 0xd8, 0xca, 0x23, + 0x40, 0xf7, 0xa1, 0x2c, 0x15, 0x66, 0x0e, 0x16, 0x8e, 0x34, 0x4b, 0xd5, 0x42, 0xbd, 0x6c, 0x25, + 0x13, 0xbe, 0x1d, 0x54, 0xb6, 0x84, 0xdd, 0xa7, 0x23, 0xe2, 0x98, 0xe5, 0xaa, 0x51, 0x2f, 0x59, + 0xa9, 0x19, 0xf4, 0x0d, 0xac, 0x38, 0xe4, 0x18, 0x0f, 0x5d, 0xd5, 0x0e, 0xab, 0xde, 0x04, 0x2d, + 0xb7, 0x96, 0xcd, 0xe8, 0x40, 0x12, 0x11, 0xa2, 0xf6, 0xfc, 0x6a, 0xb4, 0x2e, 0x86, 0xfa, 0xb9, + 0xd8, 0x82, 0x60, 0x45, 0x9c, 0xf6, 0xd8, 0x5c, 0xd6, 0xf6, 0x26, 0x13, 0xa8, 0x05, 0xd7, 0x47, + 0xd8, 0xa5, 0x8e, 0xde, 0xbf, 0x6d, 0x47, 0x9a, 0xd7, 0xb4, 0xf6, 0x7b, 0x39, 0x7f, 0xf2, 0x8b, + 0x0e, 0xb3, 0x1e, 0xb1, 0x26, 0x23, 0xd0, 0x27, 0xf0, 0x3f, 0x8f, 0x32, 0xf5, 0x52, 0xda, 0x82, + 0x9f, 0xb4, 0x1c, 0x47, 0x10, 0x29, 0xcd, 0xeb, 0xfa, 0x47, 0xd9, 0x05, 0x74, 0x04, 0x6b, 0x36, + 0x97, 0x1e, 0x97, 0x1d, 0x4e, 0xd9, 0x6b, 0x81, 0x07, 0x03, 0x22, 0x76, 0xb1, 0xea, 0x4b, 0xf3, + 0x86, 0xfe, 0x73, 0xee, 0x96, 0xe6, 0xe0, 0xad, 0x29, 0x34, 0x68, 0x0b, 0x80, 0xb2, 0x11, 0x16, + 0x14, 0x33, 0x25, 0xcd, 0x15, 0x6d, 0xdc, 0xa3, 0x59, 0x5b, 0xb9, 0x1d, 0xa3, 0xad, 0x54, 0x24, + 0xfa, 0x0a, 0x00, 0xbb, 0x14, 0xcb, 0x20, 0xb9, 0x9b, 0xd3, 0x6c, 0x69, 0x45, 0x18, 0x2b, 0x05, + 0xaf, 0xfd, 0x00, 0xd0, 0xe1, 0x6c, 0x44, 0x84, 0x5f, 0x67, 0xe8, 0x05, 0x14, 0x25, 0x75, 0x48, + 0x4b, 0x9f, 0xe3, 0xe5, 0x8d, 0xc7, 0x79, 0xd9, 0x44, 0xe0, 0x3d, 0x1f, 0xf8, 0x9a, 0xaa, 0xfe, + 0x26, 0x61, 0xdc, 0xb3, 0x82, 0x40, 0xd4, 0x0c, 0x18, 0xda, 0xe6, 0xbc, 0xce, 0xe3, 0x4e, 0x96, + 0x21, 0xdc, 0xef, 0x20, 0xa0, 0x5d, 0x3b, 0x04, 0x73, 0x1a, 0x27, 0x7a, 0x08, 0x8b, 0xd8, 0xe3, + 0x43, 0xa6, 0x72, 0xfb, 0x4a, 0xb8, 0x86, 0x56, 0xa1, 0xe8, 0xf8, 0x70, 0xdd, 0x44, 0xca, 0x56, + 0x30, 0xa8, 0xfd, 0x68, 0xc0, 0x5a, 0x42, 0xec, 0x73, 0xf2, 0xa1, 0x0a, 0x68, 0x9f, 0x4e, 0xaa, + 0x7c, 0x70, 0xa9, 0xca, 0x7f, 0x2d, 0xee, 0x29, 0xac, 0x5c, 0xa0, 0xfa, 0x67, 0x9a, 0x6a, 0x7f, + 0xce, 0xc3, 0xed, 0xdc, 0x6a, 0xf2, 0x5b, 0x10, 0x0e, 0x4b, 0xd7, 0x08, 0x5a, 0x50, 0x38, 0xcc, + 0xf7, 0x01, 0x7d, 0x0d, 0x60, 0xc7, 0x29, 0x98, 0x05, 0xad, 0xb8, 0x3e, 0x4b, 0x71, 0xda, 0x2a, + 0x2b, 0x15, 0x8b, 0xd6, 0x60, 0x51, 0x8e, 0xbd, 0x2e, 0x77, 0xc3, 0xc6, 0x18, 0x8e, 0xfc, 0xfa, + 0xd3, 0xbf, 0x3a, 0x60, 0x54, 0x49, 0xb3, 0x38, 0xad, 0xfe, 0x36, 0x23, 0x8c, 0x95, 0x82, 0xa3, + 0x2d, 0xa8, 0x60, 0xd7, 0xe5, 0x27, 0xaf, 0x46, 0x44, 0x08, 0xea, 0x10, 0xff, 0xef, 0x2d, 0x36, + 0x3e, 0x8c, 0x0f, 0xae, 0x6e, 0xa0, 0x25, 0xeb, 0x12, 0x14, 0xfa, 0x12, 0x4a, 0xd1, 0xa5, 0x69, + 0x2e, 0x69, 0x91, 0x95, 0x6c, 0x0a, 0xbe, 0x81, 0x71, 0xeb, 0x8f, 0xf1, 0xb5, 0xbf, 0x0c, 0x28, + 0xc7, 0xa7, 0x23, 0xb1, 0xd1, 0x98, 0x6e, 0xe3, 0xfc, 0x7f, 0x62, 0x63, 0x61, 0x86, 0x8d, 0x0b, + 0x57, 0xb3, 0x31, 0x2d, 0xbf, 0x78, 0x45, 0xf9, 0x0c, 0x56, 0x93, 0x52, 0x6b, 0x63, 0xfb, 0x2d, + 0x71, 0x2e, 0xa9, 0xb4, 0xe7, 0x39, 0x66, 0xdc, 0x9f, 0x65, 0x46, 0xda, 0x80, 0xda, 0x2f, 0x06, + 0x94, 0x63, 0x15, 0xa8, 0x0e, 0x25, 0x87, 0xd8, 0xd4, 0xf3, 0xaf, 0xb3, 0xbc, 0x13, 0x11, 0xaf, + 0xa6, 0x8c, 0x9b, 0x9f, 0x30, 0xee, 0x31, 0xdc, 0xa4, 0x72, 0x33, 0xb8, 0x4c, 0x36, 0xa9, 0x1c, + 0xb8, 0x78, 0xac, 0xad, 0x2d, 0x59, 0x99, 0xf9, 0x09, 0x9f, 0x16, 0xae, 0xe8, 0xd3, 0xcf, 0x05, + 0xdf, 0xa8, 0x6c, 0x33, 0x46, 0x5f, 0xc0, 0x1a, 0xe3, 0x1d, 0xfd, 0x4a, 0x78, 0x75, 0xc2, 0x88, + 0x90, 0x7d, 0x3a, 0xd8, 0xa7, 0x1e, 0x09, 0x04, 0x95, 0xac, 0x29, 0xab, 0xe8, 0x33, 0xb8, 0xe1, + 0xe1, 0xd3, 0xbd, 0xe1, 0x60, 0xe0, 0x8e, 0x77, 0x89, 0xd8, 0x76, 0x02, 0x61, 0x17, 0x0c, 0xb8, + 0x80, 0x41, 0x6f, 0x60, 0xd5, 0xce, 0xd9, 0xae, 0xf0, 0x68, 0x3f, 0x9a, 0x75, 0x2b, 0x25, 0x68, + 0x2b, 0x97, 0x03, 0xbd, 0x80, 0x7b, 0x8c, 0x6f, 0x71, 0x61, 0x93, 0xe3, 0xa1, 0xbb, 0xcb, 0xa5, + 0xda, 0xa1, 0x4c, 0xed, 0x47, 0x6f, 0x5e, 0xed, 0x58, 0xc9, 0x9a, 0x05, 0x41, 0x4f, 0xe0, 0x96, + 0x43, 0x25, 0xee, 0xba, 0x64, 0x97, 0x73, 0xb7, 0xe3, 0x5f, 0xdf, 0x7e, 0x8d, 0x14, 0x75, 0x64, + 0xde, 0x12, 0xda, 0x03, 0x44, 0x46, 0xde, 0xb7, 0x43, 0x22, 0xc6, 0x9d, 0xf8, 0x21, 0x6a, 0x2e, + 0xea, 0xfa, 0xff, 0x7f, 0x56, 0xcd, 0xcb, 0xc3, 0x9d, 0x49, 0xac, 0x95, 0x13, 0x5e, 0x3b, 0xf5, + 0x1b, 0x6f, 0xb4, 0x55, 0x7b, 0x0a, 0x2b, 0x89, 0x1a, 0xb0, 0xdc, 0xe7, 0xae, 0x43, 0x44, 0x67, + 0x6a, 0xf7, 0x4d, 0x03, 0xd0, 0xe7, 0x50, 0x8a, 0xde, 0xf2, 0x97, 0xf7, 0xfb, 0x18, 0xda, 0x3e, + 0x7c, 0x77, 0x56, 0x31, 0xde, 0x9f, 0x55, 0x8c, 0x3f, 0xce, 0x2a, 0xc6, 0x4f, 0xe7, 0x95, 0xb9, + 0xf7, 0xe7, 0x95, 0xb9, 0xdf, 0xce, 0x2b, 0x73, 0x6f, 0x9e, 0xf7, 0xa8, 0xea, 0x0f, 0xbb, 0x0d, + 0x9b, 0x7b, 0xcd, 0x2e, 0x55, 0x5d, 0xec, 0xf4, 0x88, 0x4c, 0xbe, 0xec, 0x3e, 0xa6, 0xac, 0x79, + 0xda, 0x9c, 0x78, 0x9e, 0xab, 0xf1, 0x80, 0x48, 0xff, 0x91, 0xde, 0x5d, 0xd4, 0x8f, 0xf0, 0x4f, + 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x45, 0xd6, 0x7a, 0xd1, 0xe5, 0x0c, 0x00, 0x00, +} + +func (m *TokenCollection) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TokenCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AliasPaths) > 0 { + for iNdEx := len(m.AliasPaths) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AliasPaths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if m.Invariants != nil { + { + size, err := m.Invariants.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + if len(m.CosmosCoinWrapperPaths) > 0 { + for iNdEx := len(m.CosmosCoinWrapperPaths) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CosmosCoinWrapperPaths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + } + if len(m.MintEscrowAddress) > 0 { + i -= len(m.MintEscrowAddress) + copy(dAtA[i:], m.MintEscrowAddress) + i = encodeVarintCollections(dAtA, i, uint64(len(m.MintEscrowAddress))) + i-- + dAtA[i] = 0x6a + } + if len(m.ValidTokenIds) > 0 { + for iNdEx := len(m.ValidTokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ValidTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if len(m.CreatedBy) > 0 { + i -= len(m.CreatedBy) + copy(dAtA[i:], m.CreatedBy) + i = encodeVarintCollections(dAtA, i, uint64(len(m.CreatedBy))) + i-- + dAtA[i] = 0x5a + } + if m.DefaultBalances != nil { + { + size, err := m.DefaultBalances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if len(m.Standards) > 0 { + for iNdEx := len(m.Standards) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Standards[iNdEx]) + copy(dAtA[i:], m.Standards[iNdEx]) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Standards[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(m.CollectionApprovals) > 0 { + for iNdEx := len(m.CollectionApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CollectionApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.CollectionPermissions != nil { + { + size, err := m.CollectionPermissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.Manager) > 0 { + i -= len(m.Manager) + copy(dAtA[i:], m.Manager) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Manager))) + i-- + dAtA[i] = 0x2a + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintCollections(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x22 + } + if len(m.TokenMetadata) > 0 { + for iNdEx := len(m.TokenMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.CollectionMetadata != nil { + { + size, err := m.CollectionMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Conversion) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Conversion) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Conversion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SideB) > 0 { + for iNdEx := len(m.SideB) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SideB[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.SideA != nil { + { + size, err := m.SideA.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ConversionSideAWithDenom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConversionSideAWithDenom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConversionSideAWithDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 + } + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ConversionWithoutDenom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConversionWithoutDenom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConversionWithoutDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SideB) > 0 { + for iNdEx := len(m.SideB) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SideB[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.SideA != nil { + { + size, err := m.SideA.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ConversionSideA) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ConversionSideA) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ConversionSideA) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *CosmosCoinWrapperPath) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CosmosCoinWrapperPath) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CosmosCoinWrapperPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.AllowOverrideWithAnyValidToken { + i-- + if m.AllowOverrideWithAnyValidToken { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.DenomUnits) > 0 { + for iNdEx := len(m.DenomUnits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DenomUnits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.Symbol) > 0 { + i -= len(m.Symbol) + copy(dAtA[i:], m.Symbol) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Symbol))) + i-- + dAtA[i] = 0x22 + } + if m.Conversion != nil { + { + size, err := m.Conversion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AliasPath) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AliasPath) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AliasPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DenomUnits) > 0 { + for iNdEx := len(m.DenomUnits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DenomUnits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Symbol) > 0 { + i -= len(m.Symbol) + copy(dAtA[i:], m.Symbol) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Symbol))) + i-- + dAtA[i] = 0x1a + } + if m.Conversion != nil { + { + size, err := m.Conversion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CosmosCoinBackedPath) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CosmosCoinBackedPath) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CosmosCoinBackedPath) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Conversion != nil { + { + size, err := m.Conversion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *DenomUnit) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DenomUnit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DenomUnit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.IsDefaultDisplay { + i-- + if m.IsDefaultDisplay { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Symbol) > 0 { + i -= len(m.Symbol) + copy(dAtA[i:], m.Symbol) + i = encodeVarintCollections(dAtA, i, uint64(len(m.Symbol))) + i-- + dAtA[i] = 0x12 + } + { + size := m.Decimals.Size() + i -= size + if _, err := m.Decimals.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *CollectionInvariants) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CollectionInvariants) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CollectionInvariants) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EvmQueryChallenges) > 0 { + for iNdEx := len(m.EvmQueryChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EvmQueryChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.DisablePoolCreation { + i-- + if m.DisablePoolCreation { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.NoForcefulPostMintTransfers { + i-- + if m.NoForcefulPostMintTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.CosmosCoinBackedPath != nil { + { + size, err := m.CosmosCoinBackedPath.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + { + size := m.MaxSupplyPerId.Size() + i -= size + if _, err := m.MaxSupplyPerId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.NoCustomOwnershipTimes { + i-- + if m.NoCustomOwnershipTimes { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *CollectionStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CollectionStats) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CollectionStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size := m.HolderCount.Size() + i -= size + if _, err := m.HolderCount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintCollections(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintCollections(dAtA []byte, offset int, v uint64) int { + offset -= sovCollections(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TokenCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovCollections(uint64(l)) + if m.CollectionMetadata != nil { + l = m.CollectionMetadata.Size() + n += 1 + l + sovCollections(uint64(l)) + } + if len(m.TokenMetadata) > 0 { + for _, e := range m.TokenMetadata { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + l = len(m.Manager) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + if m.CollectionPermissions != nil { + l = m.CollectionPermissions.Size() + n += 1 + l + sovCollections(uint64(l)) + } + if len(m.CollectionApprovals) > 0 { + for _, e := range m.CollectionApprovals { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + if len(m.Standards) > 0 { + for _, s := range m.Standards { + l = len(s) + n += 1 + l + sovCollections(uint64(l)) + } + } + if m.IsArchived { + n += 2 + } + if m.DefaultBalances != nil { + l = m.DefaultBalances.Size() + n += 1 + l + sovCollections(uint64(l)) + } + l = len(m.CreatedBy) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + if len(m.ValidTokenIds) > 0 { + for _, e := range m.ValidTokenIds { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + l = len(m.MintEscrowAddress) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + if len(m.CosmosCoinWrapperPaths) > 0 { + for _, e := range m.CosmosCoinWrapperPaths { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + if m.Invariants != nil { + l = m.Invariants.Size() + n += 1 + l + sovCollections(uint64(l)) + } + if len(m.AliasPaths) > 0 { + for _, e := range m.AliasPaths { + l = e.Size() + n += 2 + l + sovCollections(uint64(l)) + } + } + return n +} + +func (m *Conversion) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SideA != nil { + l = m.SideA.Size() + n += 1 + l + sovCollections(uint64(l)) + } + if len(m.SideB) > 0 { + for _, e := range m.SideB { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + return n +} + +func (m *ConversionSideAWithDenom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Amount.Size() + n += 1 + l + sovCollections(uint64(l)) + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + return n +} + +func (m *ConversionWithoutDenom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SideA != nil { + l = m.SideA.Size() + n += 1 + l + sovCollections(uint64(l)) + } + if len(m.SideB) > 0 { + for _, e := range m.SideB { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + return n +} + +func (m *ConversionSideA) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Amount.Size() + n += 1 + l + sovCollections(uint64(l)) + return n +} + +func (m *CosmosCoinWrapperPath) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + if m.Conversion != nil { + l = m.Conversion.Size() + n += 1 + l + sovCollections(uint64(l)) + } + l = len(m.Symbol) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + if len(m.DenomUnits) > 0 { + for _, e := range m.DenomUnits { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + if m.AllowOverrideWithAnyValidToken { + n += 2 + } + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovCollections(uint64(l)) + } + return n +} + +func (m *AliasPath) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + if m.Conversion != nil { + l = m.Conversion.Size() + n += 1 + l + sovCollections(uint64(l)) + } + l = len(m.Symbol) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + if len(m.DenomUnits) > 0 { + for _, e := range m.DenomUnits { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovCollections(uint64(l)) + } + return n +} + +func (m *CosmosCoinBackedPath) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + if m.Conversion != nil { + l = m.Conversion.Size() + n += 1 + l + sovCollections(uint64(l)) + } + return n +} + +func (m *DenomUnit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Decimals.Size() + n += 1 + l + sovCollections(uint64(l)) + l = len(m.Symbol) + if l > 0 { + n += 1 + l + sovCollections(uint64(l)) + } + if m.IsDefaultDisplay { + n += 2 + } + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovCollections(uint64(l)) + } + return n +} + +func (m *CollectionInvariants) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoCustomOwnershipTimes { + n += 2 + } + l = m.MaxSupplyPerId.Size() + n += 1 + l + sovCollections(uint64(l)) + if m.CosmosCoinBackedPath != nil { + l = m.CosmosCoinBackedPath.Size() + n += 1 + l + sovCollections(uint64(l)) + } + if m.NoForcefulPostMintTransfers { + n += 2 + } + if m.DisablePoolCreation { + n += 2 + } + if len(m.EvmQueryChallenges) > 0 { + for _, e := range m.EvmQueryChallenges { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + return n +} + +func (m *CollectionStats) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.HolderCount.Size() + n += 1 + l + sovCollections(uint64(l)) + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovCollections(uint64(l)) + } + } + return n +} + +func sovCollections(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozCollections(x uint64) (n int) { + return sovCollections(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TokenCollection) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TokenCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionMetadata == nil { + m.CollectionMetadata = &CollectionMetadata{} + } + if err := m.CollectionMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenMetadata = append(m.TokenMetadata, &TokenMetadata{}) + if err := m.TokenMetadata[len(m.TokenMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionPermissions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionPermissions == nil { + m.CollectionPermissions = &CollectionPermissions{} + } + if err := m.CollectionPermissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CollectionApprovals = append(m.CollectionApprovals, &CollectionApproval{}) + if err := m.CollectionApprovals[len(m.CollectionApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Standards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Standards = append(m.Standards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultBalances == nil { + m.DefaultBalances = &UserBalanceStore{} + } + if err := m.DefaultBalances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidTokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidTokenIds = append(m.ValidTokenIds, &UintRange{}) + if err := m.ValidTokenIds[len(m.ValidTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintEscrowAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintEscrowAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosmosCoinWrapperPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CosmosCoinWrapperPaths = append(m.CosmosCoinWrapperPaths, &CosmosCoinWrapperPath{}) + if err := m.CosmosCoinWrapperPaths[len(m.CosmosCoinWrapperPaths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Invariants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Invariants == nil { + m.Invariants = &CollectionInvariants{} + } + if err := m.Invariants.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AliasPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AliasPaths = append(m.AliasPaths, &AliasPath{}) + if err := m.AliasPaths[len(m.AliasPaths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Conversion) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Conversion: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Conversion: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SideA", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SideA == nil { + m.SideA = &ConversionSideAWithDenom{} + } + if err := m.SideA.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SideB", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SideB = append(m.SideB, &Balance{}) + if err := m.SideB[len(m.SideB)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConversionSideAWithDenom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ConversionSideAWithDenom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConversionSideAWithDenom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConversionWithoutDenom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ConversionWithoutDenom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConversionWithoutDenom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SideA", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SideA == nil { + m.SideA = &ConversionSideA{} + } + if err := m.SideA.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SideB", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SideB = append(m.SideB, &Balance{}) + if err := m.SideB[len(m.SideB)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ConversionSideA) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ConversionSideA: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ConversionSideA: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CosmosCoinWrapperPath) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CosmosCoinWrapperPath: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CosmosCoinWrapperPath: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conversion", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Conversion == nil { + m.Conversion = &ConversionWithoutDenom{} + } + if err := m.Conversion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Symbol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DenomUnits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DenomUnits = append(m.DenomUnits, &DenomUnit{}) + if err := m.DenomUnits[len(m.DenomUnits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowOverrideWithAnyValidToken", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowOverrideWithAnyValidToken = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &PathMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AliasPath) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AliasPath: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AliasPath: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conversion", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Conversion == nil { + m.Conversion = &ConversionWithoutDenom{} + } + if err := m.Conversion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Symbol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DenomUnits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DenomUnits = append(m.DenomUnits, &DenomUnit{}) + if err := m.DenomUnits[len(m.DenomUnits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &PathMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CosmosCoinBackedPath) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CosmosCoinBackedPath: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CosmosCoinBackedPath: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conversion", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Conversion == nil { + m.Conversion = &Conversion{} + } + if err := m.Conversion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DenomUnit) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DenomUnit: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DenomUnit: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Decimals.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Symbol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsDefaultDisplay", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsDefaultDisplay = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &PathMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectionInvariants) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CollectionInvariants: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectionInvariants: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoCustomOwnershipTimes", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoCustomOwnershipTimes = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSupplyPerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxSupplyPerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosmosCoinBackedPath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CosmosCoinBackedPath == nil { + m.CosmosCoinBackedPath = &CosmosCoinBackedPath{} + } + if err := m.CosmosCoinBackedPath.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoForcefulPostMintTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoForcefulPostMintTransfers = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisablePoolCreation", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DisablePoolCreation = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvmQueryChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EvmQueryChallenges = append(m.EvmQueryChallenges, &EVMQueryChallenge{}) + if err := m.EvmQueryChallenges[len(m.EvmQueryChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectionStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CollectionStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectionStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HolderCount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.HolderCount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCollections + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCollections + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCollections + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, &Balance{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCollections(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCollections + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCollections(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCollections + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCollections + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCollections + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthCollections + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupCollections + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthCollections + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthCollections = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCollections = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupCollections = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/dynamic_stores.pb.go b/x/tokenization/types/v29/dynamic_stores.pb.go new file mode 100644 index 00000000..1731a5fb --- /dev/null +++ b/x/tokenization/types/v29/dynamic_stores.pb.go @@ -0,0 +1,833 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/dynamic_stores.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// A DynamicStore is a flexible storage object that can store arbitrary data. +// It is identified by a unique ID assigned by the blockchain, which is a uint64 that increments. +// Dynamic stores are created by users and can only be updated or deleted by their creator. +// They provide a way to store custom data on-chain with proper access control. +type DynamicStore struct { + // The unique identifier for this dynamic store. This is assigned by the blockchain. + StoreId Uint `protobuf:"bytes,1,opt,name=storeId,proto3,customtype=Uint" json:"storeId"` + // The address of the creator of this dynamic store. + CreatedBy string `protobuf:"bytes,2,opt,name=createdBy,proto3" json:"createdBy,omitempty"` + // The default value for uninitialized addresses (true/false). + DefaultValue bool `protobuf:"varint,3,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` + // Global kill switch state (defaults to true on creation, can be toggled via UpdateDynamicStore). + // When false, all approvals using this store via DynamicStoreChallenge will fail immediately. + GlobalEnabled bool `protobuf:"varint,4,opt,name=globalEnabled,proto3" json:"globalEnabled,omitempty"` + // URI for additional metadata or resources associated with this dynamic store. + Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` + // Custom data field for storing arbitrary data associated with this dynamic store. + CustomData string `protobuf:"bytes,6,opt,name=customData,proto3" json:"customData,omitempty"` +} + +func (m *DynamicStore) Reset() { *m = DynamicStore{} } +func (m *DynamicStore) String() string { return proto.CompactTextString(m) } +func (*DynamicStore) ProtoMessage() {} +func (*DynamicStore) Descriptor() ([]byte, []int) { + return fileDescriptor_859ff0dd33306846, []int{0} +} +func (m *DynamicStore) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DynamicStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DynamicStore.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DynamicStore) XXX_Merge(src proto.Message) { + xxx_messageInfo_DynamicStore.Merge(m, src) +} +func (m *DynamicStore) XXX_Size() int { + return m.Size() +} +func (m *DynamicStore) XXX_DiscardUnknown() { + xxx_messageInfo_DynamicStore.DiscardUnknown(m) +} + +var xxx_messageInfo_DynamicStore proto.InternalMessageInfo + +func (m *DynamicStore) GetCreatedBy() string { + if m != nil { + return m.CreatedBy + } + return "" +} + +func (m *DynamicStore) GetDefaultValue() bool { + if m != nil { + return m.DefaultValue + } + return false +} + +func (m *DynamicStore) GetGlobalEnabled() bool { + if m != nil { + return m.GlobalEnabled + } + return false +} + +func (m *DynamicStore) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *DynamicStore) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +// A DynamicStoreValue stores a boolean value for a specific address in a dynamic store. +// This allows the creator to set true/false values per address that can be checked during approval. +type DynamicStoreValue struct { + // The unique identifier for this dynamic store. + StoreId Uint `protobuf:"bytes,1,opt,name=storeId,proto3,customtype=Uint" json:"storeId"` + // The address for which this value is stored. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // The boolean value (true/false). + Value bool `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *DynamicStoreValue) Reset() { *m = DynamicStoreValue{} } +func (m *DynamicStoreValue) String() string { return proto.CompactTextString(m) } +func (*DynamicStoreValue) ProtoMessage() {} +func (*DynamicStoreValue) Descriptor() ([]byte, []int) { + return fileDescriptor_859ff0dd33306846, []int{1} +} +func (m *DynamicStoreValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DynamicStoreValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DynamicStoreValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DynamicStoreValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_DynamicStoreValue.Merge(m, src) +} +func (m *DynamicStoreValue) XXX_Size() int { + return m.Size() +} +func (m *DynamicStoreValue) XXX_DiscardUnknown() { + xxx_messageInfo_DynamicStoreValue.DiscardUnknown(m) +} + +var xxx_messageInfo_DynamicStoreValue proto.InternalMessageInfo + +func (m *DynamicStoreValue) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *DynamicStoreValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +func init() { + proto.RegisterType((*DynamicStore)(nil), "tokenization.v29.DynamicStore") + proto.RegisterType((*DynamicStoreValue)(nil), "tokenization.v29.DynamicStoreValue") +} + +func init() { + proto.RegisterFile("tokenization/v29/dynamic_stores.proto", fileDescriptor_859ff0dd33306846) +} + +var fileDescriptor_859ff0dd33306846 = []byte{ + // 328 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0x3f, 0x6b, 0x3a, 0x41, + 0x14, 0xbc, 0xfd, 0xf9, 0xef, 0xe7, 0x62, 0xc0, 0x2c, 0x16, 0x4b, 0x08, 0xab, 0x48, 0x12, 0xac, + 0x3c, 0x30, 0x95, 0x90, 0x4a, 0x4c, 0x91, 0xd6, 0x10, 0x8b, 0x34, 0x61, 0xef, 0x76, 0x73, 0x2e, + 0x9e, 0xb7, 0x72, 0xfb, 0x4e, 0x62, 0x3e, 0x45, 0x3e, 0x96, 0xa5, 0x65, 0x48, 0x21, 0x41, 0xbf, + 0x48, 0xb8, 0xbd, 0x88, 0x77, 0x5d, 0xba, 0x79, 0x33, 0xf3, 0xde, 0x63, 0x18, 0x7c, 0x0d, 0x7a, + 0x2e, 0x23, 0xf5, 0xce, 0x41, 0xe9, 0xc8, 0x5d, 0x0d, 0x86, 0xae, 0x58, 0x47, 0x7c, 0xa1, 0xfc, + 0x17, 0x03, 0x3a, 0x96, 0xa6, 0xbf, 0x8c, 0x35, 0x68, 0xd2, 0xcc, 0xdb, 0xfa, 0xab, 0xc1, 0xf0, + 0xa2, 0x15, 0xe8, 0x40, 0x5b, 0xd1, 0x4d, 0x51, 0xe6, 0xeb, 0x6e, 0x11, 0x6e, 0x8c, 0xb3, 0x03, + 0x8f, 0xe9, 0x3e, 0xb9, 0xc1, 0x35, 0x7b, 0xe8, 0x41, 0x50, 0xd4, 0x41, 0xbd, 0xfa, 0xa8, 0xb1, + 0xd9, 0xb5, 0x9d, 0xaf, 0x5d, 0xbb, 0xfc, 0xa4, 0x22, 0x98, 0x1c, 0x45, 0x72, 0x89, 0xeb, 0x7e, + 0x2c, 0x39, 0x48, 0x31, 0x5a, 0xd3, 0x7f, 0xa9, 0x73, 0x72, 0x22, 0x48, 0x17, 0x37, 0x84, 0x7c, + 0xe5, 0x49, 0x08, 0x53, 0x1e, 0x26, 0x92, 0x96, 0x3a, 0xa8, 0xf7, 0x7f, 0x52, 0xe0, 0xc8, 0x15, + 0x3e, 0x0b, 0x42, 0xed, 0xf1, 0xf0, 0x3e, 0xe2, 0x5e, 0x28, 0x05, 0x2d, 0x5b, 0x53, 0x91, 0x24, + 0x4d, 0x5c, 0x4a, 0x62, 0x45, 0x2b, 0xf6, 0x43, 0x0a, 0x09, 0xc3, 0xd8, 0x4f, 0x0c, 0xe8, 0xc5, + 0x98, 0x03, 0xa7, 0x55, 0x2b, 0xe4, 0x98, 0xee, 0x1c, 0x9f, 0xe7, 0x13, 0x65, 0xcf, 0xfe, 0x1a, + 0x8b, 0xe2, 0x1a, 0x17, 0x22, 0x96, 0xc6, 0xfc, 0x86, 0x3a, 0x8e, 0xa4, 0x85, 0x2b, 0xab, 0x5c, + 0x96, 0x6c, 0x18, 0x4d, 0x37, 0x7b, 0x86, 0xb6, 0x7b, 0x86, 0xbe, 0xf7, 0x0c, 0x7d, 0x1c, 0x98, + 0xb3, 0x3d, 0x30, 0xe7, 0xf3, 0xc0, 0x9c, 0xe7, 0xbb, 0x40, 0xc1, 0x2c, 0xf1, 0xfa, 0xbe, 0x5e, + 0xb8, 0x9e, 0x02, 0x8f, 0x8b, 0x40, 0x9a, 0x13, 0xf2, 0x67, 0x5c, 0x45, 0xee, 0x9b, 0x5b, 0xa8, + 0x13, 0xd6, 0x4b, 0x69, 0xd2, 0x52, 0xbd, 0xaa, 0xad, 0xe7, 0xf6, 0x27, 0x00, 0x00, 0xff, 0xff, + 0xd0, 0x5b, 0xd5, 0x1a, 0xef, 0x01, 0x00, 0x00, +} + +func (m *DynamicStore) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DynamicStore) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DynamicStore) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintDynamicStores(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x32 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintDynamicStores(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x2a + } + if m.GlobalEnabled { + i-- + if m.GlobalEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.DefaultValue { + i-- + if m.DefaultValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.CreatedBy) > 0 { + i -= len(m.CreatedBy) + copy(dAtA[i:], m.CreatedBy) + i = encodeVarintDynamicStores(dAtA, i, uint64(len(m.CreatedBy))) + i-- + dAtA[i] = 0x12 + } + { + size := m.StoreId.Size() + i -= size + if _, err := m.StoreId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintDynamicStores(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DynamicStoreValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DynamicStoreValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DynamicStoreValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintDynamicStores(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + { + size := m.StoreId.Size() + i -= size + if _, err := m.StoreId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintDynamicStores(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintDynamicStores(dAtA []byte, offset int, v uint64) int { + offset -= sovDynamicStores(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *DynamicStore) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.StoreId.Size() + n += 1 + l + sovDynamicStores(uint64(l)) + l = len(m.CreatedBy) + if l > 0 { + n += 1 + l + sovDynamicStores(uint64(l)) + } + if m.DefaultValue { + n += 2 + } + if m.GlobalEnabled { + n += 2 + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovDynamicStores(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovDynamicStores(uint64(l)) + } + return n +} + +func (m *DynamicStoreValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.StoreId.Size() + n += 1 + l + sovDynamicStores(uint64(l)) + l = len(m.Address) + if l > 0 { + n += 1 + l + sovDynamicStores(uint64(l)) + } + if m.Value { + n += 2 + } + return n +} + +func sovDynamicStores(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozDynamicStores(x uint64) (n int) { + return sovDynamicStores(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DynamicStore) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DynamicStore: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DynamicStore: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthDynamicStores + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDynamicStores + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StoreId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthDynamicStores + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDynamicStores + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedBy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DefaultValue = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GlobalEnabled = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthDynamicStores + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDynamicStores + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthDynamicStores + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDynamicStores + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipDynamicStores(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDynamicStores + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DynamicStoreValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DynamicStoreValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DynamicStoreValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthDynamicStores + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDynamicStores + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StoreId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthDynamicStores + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDynamicStores + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipDynamicStores(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthDynamicStores + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipDynamicStores(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowDynamicStores + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthDynamicStores + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDynamicStores + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthDynamicStores + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthDynamicStores = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDynamicStores = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDynamicStores = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/genesis.pb.go b/x/tokenization/types/v29/genesis.pb.go new file mode 100644 index 00000000..d7a08c1b --- /dev/null +++ b/x/tokenization/types/v29/genesis.pb.go @@ -0,0 +1,1797 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/genesis.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// GenesisState defines the tokens module's genesis state. +type GenesisState struct { + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + Collections []*TokenCollection `protobuf:"bytes,3,rep,name=collections,proto3" json:"collections,omitempty"` + NextCollectionId Uint `protobuf:"bytes,4,opt,name=nextCollectionId,proto3,customtype=Uint" json:"nextCollectionId"` + Balances []*UserBalanceStore `protobuf:"bytes,5,rep,name=balances,proto3" json:"balances,omitempty"` + BalanceStoreKeys []string `protobuf:"bytes,6,rep,name=balanceStoreKeys,proto3" json:"balanceStoreKeys,omitempty"` + ChallengeTrackers []Uint `protobuf:"bytes,7,rep,name=challengeTrackers,proto3,customtype=Uint" json:"challengeTrackers"` + ChallengeTrackerStoreKeys []string `protobuf:"bytes,8,rep,name=challengeTrackerStoreKeys,proto3" json:"challengeTrackerStoreKeys,omitempty"` + AddressLists []*AddressList `protobuf:"bytes,9,rep,name=addressLists,proto3" json:"addressLists,omitempty"` + ApprovalTrackers []*ApprovalTracker `protobuf:"bytes,10,rep,name=approvalTrackers,proto3" json:"approvalTrackers,omitempty"` + ApprovalTrackerStoreKeys []string `protobuf:"bytes,11,rep,name=approvalTrackerStoreKeys,proto3" json:"approvalTrackerStoreKeys,omitempty"` + ApprovalTrackerVersions []Uint `protobuf:"bytes,12,rep,name=approvalTrackerVersions,proto3,customtype=Uint" json:"approvalTrackerVersions"` + ApprovalTrackerVersionsStoreKeys []string `protobuf:"bytes,13,rep,name=approvalTrackerVersionsStoreKeys,proto3" json:"approvalTrackerVersionsStoreKeys,omitempty"` + DynamicStores []*DynamicStore `protobuf:"bytes,14,rep,name=dynamicStores,proto3" json:"dynamicStores,omitempty"` + NextDynamicStoreId Uint `protobuf:"bytes,15,opt,name=nextDynamicStoreId,proto3,customtype=Uint" json:"nextDynamicStoreId"` + DynamicStoreValues []*DynamicStoreValue `protobuf:"bytes,16,rep,name=dynamicStoreValues,proto3" json:"dynamicStoreValues,omitempty"` + EthSignatureTrackers []Uint `protobuf:"bytes,17,rep,name=ethSignatureTrackers,proto3,customtype=Uint" json:"ethSignatureTrackers"` + EthSignatureTrackerStoreKeys []string `protobuf:"bytes,18,rep,name=ethSignatureTrackerStoreKeys,proto3" json:"ethSignatureTrackerStoreKeys,omitempty"` + VotingTrackers []*VoteProof `protobuf:"bytes,19,rep,name=votingTrackers,proto3" json:"votingTrackers,omitempty"` + VotingTrackerStoreKeys []string `protobuf:"bytes,20,rep,name=votingTrackerStoreKeys,proto3" json:"votingTrackerStoreKeys,omitempty"` + CollectionStats []*CollectionStats `protobuf:"bytes,21,rep,name=collectionStats,proto3" json:"collectionStats,omitempty"` + CollectionStatsIds []Uint `protobuf:"bytes,22,rep,name=collectionStatsIds,proto3,customtype=Uint" json:"collectionStatsIds"` + VotingChallengeTrackers []*VotingChallengeTracker `protobuf:"bytes,23,rep,name=votingChallengeTrackers,proto3" json:"votingChallengeTrackers,omitempty"` + VotingChallengeTrackerStoreKeys []string `protobuf:"bytes,24,rep,name=votingChallengeTrackerStoreKeys,proto3" json:"votingChallengeTrackerStoreKeys,omitempty"` + NextAddressListCounter Uint `protobuf:"bytes,25,opt,name=nextAddressListCounter,proto3,customtype=Uint" json:"nextAddressListCounter"` + ReservedProtocolAddresses []string `protobuf:"bytes,26,rep,name=reservedProtocolAddresses,proto3" json:"reservedProtocolAddresses,omitempty"` +} + +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_d952e2ff2bcf6c9a, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func (m *GenesisState) GetPortId() string { + if m != nil { + return m.PortId + } + return "" +} + +func (m *GenesisState) GetCollections() []*TokenCollection { + if m != nil { + return m.Collections + } + return nil +} + +func (m *GenesisState) GetBalances() []*UserBalanceStore { + if m != nil { + return m.Balances + } + return nil +} + +func (m *GenesisState) GetBalanceStoreKeys() []string { + if m != nil { + return m.BalanceStoreKeys + } + return nil +} + +func (m *GenesisState) GetChallengeTrackerStoreKeys() []string { + if m != nil { + return m.ChallengeTrackerStoreKeys + } + return nil +} + +func (m *GenesisState) GetAddressLists() []*AddressList { + if m != nil { + return m.AddressLists + } + return nil +} + +func (m *GenesisState) GetApprovalTrackers() []*ApprovalTracker { + if m != nil { + return m.ApprovalTrackers + } + return nil +} + +func (m *GenesisState) GetApprovalTrackerStoreKeys() []string { + if m != nil { + return m.ApprovalTrackerStoreKeys + } + return nil +} + +func (m *GenesisState) GetApprovalTrackerVersionsStoreKeys() []string { + if m != nil { + return m.ApprovalTrackerVersionsStoreKeys + } + return nil +} + +func (m *GenesisState) GetDynamicStores() []*DynamicStore { + if m != nil { + return m.DynamicStores + } + return nil +} + +func (m *GenesisState) GetDynamicStoreValues() []*DynamicStoreValue { + if m != nil { + return m.DynamicStoreValues + } + return nil +} + +func (m *GenesisState) GetEthSignatureTrackerStoreKeys() []string { + if m != nil { + return m.EthSignatureTrackerStoreKeys + } + return nil +} + +func (m *GenesisState) GetVotingTrackers() []*VoteProof { + if m != nil { + return m.VotingTrackers + } + return nil +} + +func (m *GenesisState) GetVotingTrackerStoreKeys() []string { + if m != nil { + return m.VotingTrackerStoreKeys + } + return nil +} + +func (m *GenesisState) GetCollectionStats() []*CollectionStats { + if m != nil { + return m.CollectionStats + } + return nil +} + +func (m *GenesisState) GetVotingChallengeTrackers() []*VotingChallengeTracker { + if m != nil { + return m.VotingChallengeTrackers + } + return nil +} + +func (m *GenesisState) GetVotingChallengeTrackerStoreKeys() []string { + if m != nil { + return m.VotingChallengeTrackerStoreKeys + } + return nil +} + +func (m *GenesisState) GetReservedProtocolAddresses() []string { + if m != nil { + return m.ReservedProtocolAddresses + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "tokenization.v29.GenesisState") +} + +func init() { proto.RegisterFile("tokenization/v29/genesis.proto", fileDescriptor_d952e2ff2bcf6c9a) } + +var fileDescriptor_d952e2ff2bcf6c9a = []byte{ + // 784 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x95, 0x51, 0x4f, 0xeb, 0x36, + 0x14, 0xc7, 0xdb, 0xc1, 0x0a, 0xb8, 0x05, 0x8a, 0xc7, 0xa8, 0xe9, 0x46, 0x5a, 0xd8, 0x26, 0x75, + 0x7b, 0x68, 0xa5, 0x4e, 0x42, 0x03, 0xa1, 0x69, 0xb4, 0x68, 0x5b, 0xc7, 0x26, 0xa1, 0x14, 0xfa, + 0xb0, 0x97, 0xca, 0x4d, 0x4c, 0x1a, 0x11, 0xe2, 0xca, 0x76, 0x2b, 0xb8, 0x9f, 0xe2, 0x7e, 0xa3, + 0xfb, 0xca, 0x23, 0x8f, 0x57, 0xf7, 0x01, 0x5d, 0xc1, 0x17, 0xb9, 0xb2, 0x9b, 0x36, 0x69, 0x9c, + 0xc0, 0x5b, 0x73, 0xce, 0xef, 0xf8, 0xfc, 0xfd, 0xf7, 0xa9, 0x0d, 0x0c, 0x41, 0x6f, 0x88, 0xef, + 0xbe, 0xc3, 0xc2, 0xa5, 0x7e, 0x63, 0xd2, 0x3c, 0x6a, 0x38, 0xc4, 0x27, 0xdc, 0xe5, 0xf5, 0x11, + 0xa3, 0x82, 0xc2, 0x62, 0x34, 0x5f, 0x9f, 0x34, 0x8f, 0xca, 0xdb, 0x0e, 0x75, 0xa8, 0x4a, 0x36, + 0xe4, 0xaf, 0x29, 0x57, 0xde, 0xd3, 0xd6, 0x19, 0x61, 0x86, 0x6f, 0x83, 0x65, 0xca, 0x07, 0x5a, + 0xda, 0xa2, 0x9e, 0x47, 0x2c, 0xf9, 0x39, 0x63, 0x2a, 0x1a, 0x33, 0xc0, 0x1e, 0xf6, 0x2d, 0x32, + 0x03, 0xaa, 0x1a, 0x20, 0x18, 0xf6, 0xf9, 0x35, 0x61, 0x33, 0xe2, 0x47, 0x8d, 0xc0, 0xb6, 0xcd, + 0x08, 0xe7, 0x7d, 0xcf, 0xe5, 0x62, 0x46, 0xfd, 0xa4, 0x51, 0xf6, 0xbd, 0x8f, 0x6f, 0x5d, 0xab, + 0xcf, 0x05, 0x65, 0xf3, 0x76, 0x3f, 0x6b, 0xd8, 0x98, 0x13, 0xd6, 0x0f, 0x44, 0x4d, 0xd9, 0x00, + 0xad, 0xe9, 0x7d, 0x47, 0x23, 0x46, 0x27, 0xd8, 0xeb, 0x0b, 0x86, 0xad, 0x1b, 0xd7, 0x77, 0x02, + 0x72, 0x5f, 0x37, 0x62, 0x88, 0x3d, 0x8f, 0xf8, 0xce, 0xac, 0xef, 0xc1, 0x87, 0x75, 0x50, 0xf8, + 0x6b, 0x7a, 0x08, 0x5d, 0x81, 0x05, 0x81, 0x87, 0x20, 0x37, 0x35, 0x13, 0x65, 0xab, 0xd9, 0x5a, + 0xbe, 0x89, 0xea, 0xf1, 0x43, 0xa9, 0x5f, 0xa8, 0x7c, 0x6b, 0xf9, 0xe1, 0xa9, 0x92, 0x31, 0x03, + 0x1a, 0x96, 0xc0, 0xca, 0x88, 0x32, 0xd1, 0x77, 0x6d, 0xf4, 0x55, 0x35, 0x5b, 0x5b, 0x33, 0x73, + 0xf2, 0xb3, 0x63, 0xc3, 0x36, 0xc8, 0x47, 0xec, 0x47, 0x4b, 0xd5, 0xa5, 0x5a, 0xbe, 0xb9, 0xaf, + 0xaf, 0x7a, 0x29, 0x03, 0xed, 0x39, 0x69, 0x46, 0xab, 0xe0, 0x6f, 0xa0, 0xe8, 0x93, 0x3b, 0x11, + 0xa6, 0x3b, 0x36, 0x5a, 0x96, 0x6d, 0x5a, 0x05, 0xa9, 0xe2, 0xd3, 0x53, 0x65, 0xf9, 0xca, 0xf5, + 0x85, 0xa9, 0x51, 0xf0, 0x77, 0xb0, 0x3a, 0x3b, 0x59, 0xf4, 0xb5, 0xea, 0x7d, 0xa0, 0xf7, 0xbe, + 0xe2, 0x84, 0xb5, 0xa6, 0x54, 0x57, 0x3a, 0x6d, 0xce, 0x6b, 0xe0, 0x2f, 0xa0, 0x38, 0x88, 0x64, + 0xce, 0xc9, 0x3d, 0x47, 0xb9, 0xea, 0x52, 0x6d, 0xcd, 0xd4, 0xe2, 0xf0, 0x18, 0x6c, 0xcd, 0x0d, + 0xbe, 0x94, 0x47, 0x41, 0x18, 0x47, 0x2b, 0x12, 0x8e, 0xc9, 0xd4, 0x31, 0x78, 0x02, 0x76, 0xe3, + 0xc1, 0xb0, 0xe1, 0xaa, 0x6a, 0x98, 0x0e, 0xc0, 0x53, 0x50, 0x08, 0x86, 0xef, 0x5f, 0x39, 0x7b, + 0x68, 0x4d, 0xed, 0x74, 0x4f, 0xdf, 0xe9, 0x69, 0x48, 0x99, 0x0b, 0x25, 0xf0, 0x3f, 0x50, 0x9c, + 0xcd, 0xd1, 0x5c, 0x3b, 0x48, 0x3b, 0xac, 0xd3, 0x45, 0xd2, 0xd4, 0x4a, 0xe1, 0x31, 0x40, 0xb1, + 0x58, 0xb8, 0x9d, 0xbc, 0xda, 0x4e, 0x6a, 0x1e, 0xfe, 0x09, 0x4a, 0xb1, 0x5c, 0x8f, 0x30, 0xae, + 0xc6, 0xa7, 0x90, 0xe0, 0x66, 0x1a, 0x0c, 0xff, 0x01, 0xd5, 0x94, 0x54, 0xa8, 0x65, 0x5d, 0x69, + 0x79, 0x93, 0x83, 0x67, 0x60, 0x3d, 0xf8, 0xe3, 0xaa, 0x18, 0x47, 0x1b, 0xca, 0x1b, 0x43, 0xf7, + 0xe6, 0x2c, 0x82, 0x99, 0x8b, 0x45, 0xf0, 0x04, 0x40, 0x39, 0xa1, 0x51, 0xa4, 0x63, 0xa3, 0xcd, + 0x84, 0x49, 0x4e, 0xe0, 0x60, 0x17, 0xc0, 0xe8, 0x72, 0x3d, 0xec, 0x8d, 0x09, 0x47, 0x45, 0x25, + 0xe4, 0x87, 0xd7, 0x85, 0x28, 0xd6, 0x4c, 0x28, 0x87, 0x7f, 0x80, 0x6d, 0x22, 0x86, 0x5d, 0xd7, + 0xf1, 0xb1, 0x18, 0xb3, 0x70, 0x6e, 0xb7, 0x12, 0x9c, 0x4e, 0x24, 0x61, 0x0b, 0x7c, 0x9f, 0x10, + 0x0f, 0x2d, 0x86, 0xca, 0xe2, 0x57, 0x19, 0xd8, 0x06, 0x1b, 0x13, 0x2a, 0x5c, 0xdf, 0x99, 0xf7, + 0xff, 0x46, 0x6d, 0xeb, 0x3b, 0x7d, 0x5b, 0x3d, 0x2a, 0xc8, 0x05, 0xa3, 0xf4, 0xda, 0x8c, 0x95, + 0xc0, 0x43, 0xb0, 0xb3, 0x10, 0x09, 0x25, 0x6c, 0x2b, 0x09, 0x29, 0x59, 0x78, 0x0e, 0x36, 0xc3, + 0xcb, 0x46, 0x5e, 0x83, 0x1c, 0x7d, 0x9b, 0x36, 0xf9, 0xed, 0x45, 0xd0, 0x8c, 0x57, 0xca, 0x23, + 0x8e, 0x85, 0x3a, 0x36, 0x47, 0x3b, 0x09, 0x6e, 0x26, 0x70, 0x70, 0x00, 0x4a, 0x53, 0x91, 0x6d, + 0xed, 0x22, 0x29, 0x29, 0x49, 0xb5, 0x44, 0x43, 0x12, 0x0a, 0xcc, 0xb4, 0x85, 0xe0, 0xdf, 0xa0, + 0x92, 0x9c, 0x0a, 0xfd, 0x42, 0xca, 0xaf, 0xb7, 0x30, 0x78, 0x06, 0x76, 0xe4, 0x98, 0x46, 0x2e, + 0x95, 0x36, 0x1d, 0xfb, 0x82, 0x30, 0xb4, 0x9b, 0x30, 0xd2, 0x29, 0xac, 0xbc, 0xfa, 0x18, 0xe1, + 0x84, 0x4d, 0x88, 0x7d, 0x21, 0x1f, 0x25, 0x8b, 0x7a, 0x01, 0x45, 0x38, 0x2a, 0x4f, 0xaf, 0xbe, + 0x54, 0xa0, 0xd5, 0x7b, 0x78, 0x36, 0xb2, 0x8f, 0xcf, 0x46, 0xf6, 0xf3, 0xb3, 0x91, 0x7d, 0xff, + 0x62, 0x64, 0x1e, 0x5f, 0x8c, 0xcc, 0xc7, 0x17, 0x23, 0xf3, 0xff, 0x89, 0xe3, 0x8a, 0xe1, 0x78, + 0x50, 0xb7, 0xe8, 0x6d, 0x63, 0xe0, 0x8a, 0x01, 0xb6, 0x1d, 0xc2, 0xc3, 0x5f, 0xd6, 0x10, 0xbb, + 0x7e, 0xe3, 0xae, 0xb1, 0xf0, 0x48, 0x8a, 0xfb, 0x11, 0xe1, 0xf2, 0xa9, 0x1c, 0xe4, 0xd4, 0x03, + 0xf9, 0xeb, 0x97, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcf, 0xdc, 0xa9, 0xdb, 0xb5, 0x08, 0x00, 0x00, +} + +func (m *GenesisState) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReservedProtocolAddresses) > 0 { + for iNdEx := len(m.ReservedProtocolAddresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReservedProtocolAddresses[iNdEx]) + copy(dAtA[i:], m.ReservedProtocolAddresses[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ReservedProtocolAddresses[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 + } + } + { + size := m.NextAddressListCounter.Size() + i -= size + if _, err := m.NextAddressListCounter.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + if len(m.VotingChallengeTrackerStoreKeys) > 0 { + for iNdEx := len(m.VotingChallengeTrackerStoreKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.VotingChallengeTrackerStoreKeys[iNdEx]) + copy(dAtA[i:], m.VotingChallengeTrackerStoreKeys[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.VotingChallengeTrackerStoreKeys[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.VotingChallengeTrackers) > 0 { + for iNdEx := len(m.VotingChallengeTrackers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VotingChallengeTrackers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + } + if len(m.CollectionStatsIds) > 0 { + for iNdEx := len(m.CollectionStatsIds) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.CollectionStatsIds[iNdEx].Size() + i -= size + if _, err := m.CollectionStatsIds[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + } + if len(m.CollectionStats) > 0 { + for iNdEx := len(m.CollectionStats) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CollectionStats[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + } + if len(m.VotingTrackerStoreKeys) > 0 { + for iNdEx := len(m.VotingTrackerStoreKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.VotingTrackerStoreKeys[iNdEx]) + copy(dAtA[i:], m.VotingTrackerStoreKeys[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.VotingTrackerStoreKeys[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.VotingTrackers) > 0 { + for iNdEx := len(m.VotingTrackers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VotingTrackers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + } + if len(m.EthSignatureTrackerStoreKeys) > 0 { + for iNdEx := len(m.EthSignatureTrackerStoreKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.EthSignatureTrackerStoreKeys[iNdEx]) + copy(dAtA[i:], m.EthSignatureTrackerStoreKeys[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.EthSignatureTrackerStoreKeys[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + } + if len(m.EthSignatureTrackers) > 0 { + for iNdEx := len(m.EthSignatureTrackers) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.EthSignatureTrackers[iNdEx].Size() + i -= size + if _, err := m.EthSignatureTrackers[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + if len(m.DynamicStoreValues) > 0 { + for iNdEx := len(m.DynamicStoreValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DynamicStoreValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + { + size := m.NextDynamicStoreId.Size() + i -= size + if _, err := m.NextDynamicStoreId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + if len(m.DynamicStores) > 0 { + for iNdEx := len(m.DynamicStores) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DynamicStores[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + } + if len(m.ApprovalTrackerVersionsStoreKeys) > 0 { + for iNdEx := len(m.ApprovalTrackerVersionsStoreKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ApprovalTrackerVersionsStoreKeys[iNdEx]) + copy(dAtA[i:], m.ApprovalTrackerVersionsStoreKeys[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ApprovalTrackerVersionsStoreKeys[iNdEx]))) + i-- + dAtA[i] = 0x6a + } + } + if len(m.ApprovalTrackerVersions) > 0 { + for iNdEx := len(m.ApprovalTrackerVersions) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.ApprovalTrackerVersions[iNdEx].Size() + i -= size + if _, err := m.ApprovalTrackerVersions[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if len(m.ApprovalTrackerStoreKeys) > 0 { + for iNdEx := len(m.ApprovalTrackerStoreKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ApprovalTrackerStoreKeys[iNdEx]) + copy(dAtA[i:], m.ApprovalTrackerStoreKeys[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ApprovalTrackerStoreKeys[iNdEx]))) + i-- + dAtA[i] = 0x5a + } + } + if len(m.ApprovalTrackers) > 0 { + for iNdEx := len(m.ApprovalTrackers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ApprovalTrackers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.AddressLists) > 0 { + for iNdEx := len(m.AddressLists) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AddressLists[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.ChallengeTrackerStoreKeys) > 0 { + for iNdEx := len(m.ChallengeTrackerStoreKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ChallengeTrackerStoreKeys[iNdEx]) + copy(dAtA[i:], m.ChallengeTrackerStoreKeys[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ChallengeTrackerStoreKeys[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(m.ChallengeTrackers) > 0 { + for iNdEx := len(m.ChallengeTrackers) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.ChallengeTrackers[iNdEx].Size() + i -= size + if _, err := m.ChallengeTrackers[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.BalanceStoreKeys) > 0 { + for iNdEx := len(m.BalanceStoreKeys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BalanceStoreKeys[iNdEx]) + copy(dAtA[i:], m.BalanceStoreKeys[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.BalanceStoreKeys[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + { + size := m.NextCollectionId.Size() + i -= size + if _, err := m.NextCollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.Collections) > 0 { + for iNdEx := len(m.Collections) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Collections[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.PortId) > 0 { + i -= len(m.PortId) + copy(dAtA[i:], m.PortId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.PortId))) + i-- + dAtA[i] = 0x12 + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + l = len(m.PortId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if len(m.Collections) > 0 { + for _, e := range m.Collections { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + l = m.NextCollectionId.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.BalanceStoreKeys) > 0 { + for _, s := range m.BalanceStoreKeys { + l = len(s) + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ChallengeTrackers) > 0 { + for _, e := range m.ChallengeTrackers { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ChallengeTrackerStoreKeys) > 0 { + for _, s := range m.ChallengeTrackerStoreKeys { + l = len(s) + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.AddressLists) > 0 { + for _, e := range m.AddressLists { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ApprovalTrackers) > 0 { + for _, e := range m.ApprovalTrackers { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ApprovalTrackerStoreKeys) > 0 { + for _, s := range m.ApprovalTrackerStoreKeys { + l = len(s) + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ApprovalTrackerVersions) > 0 { + for _, e := range m.ApprovalTrackerVersions { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ApprovalTrackerVersionsStoreKeys) > 0 { + for _, s := range m.ApprovalTrackerVersionsStoreKeys { + l = len(s) + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.DynamicStores) > 0 { + for _, e := range m.DynamicStores { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + l = m.NextDynamicStoreId.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.DynamicStoreValues) > 0 { + for _, e := range m.DynamicStoreValues { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.EthSignatureTrackers) > 0 { + for _, e := range m.EthSignatureTrackers { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.EthSignatureTrackerStoreKeys) > 0 { + for _, s := range m.EthSignatureTrackerStoreKeys { + l = len(s) + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.VotingTrackers) > 0 { + for _, e := range m.VotingTrackers { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.VotingTrackerStoreKeys) > 0 { + for _, s := range m.VotingTrackerStoreKeys { + l = len(s) + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.CollectionStats) > 0 { + for _, e := range m.CollectionStats { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.CollectionStatsIds) > 0 { + for _, e := range m.CollectionStatsIds { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.VotingChallengeTrackers) > 0 { + for _, e := range m.VotingChallengeTrackers { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.VotingChallengeTrackerStoreKeys) > 0 { + for _, s := range m.VotingChallengeTrackerStoreKeys { + l = len(s) + n += 2 + l + sovGenesis(uint64(l)) + } + } + l = m.NextAddressListCounter.Size() + n += 2 + l + sovGenesis(uint64(l)) + if len(m.ReservedProtocolAddresses) > 0 { + for _, s := range m.ReservedProtocolAddresses { + l = len(s) + n += 2 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PortId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Collections", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Collections = append(m.Collections, &TokenCollection{}) + if err := m.Collections[len(m.Collections)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextCollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NextCollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, &UserBalanceStore{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BalanceStoreKeys", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BalanceStoreKeys = append(m.BalanceStoreKeys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChallengeTrackers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v Uint + m.ChallengeTrackers = append(m.ChallengeTrackers, v) + if err := m.ChallengeTrackers[len(m.ChallengeTrackers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChallengeTrackerStoreKeys", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChallengeTrackerStoreKeys = append(m.ChallengeTrackerStoreKeys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressLists", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AddressLists = append(m.AddressLists, &AddressList{}) + if err := m.AddressLists[len(m.AddressLists)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalTrackers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalTrackers = append(m.ApprovalTrackers, &ApprovalTracker{}) + if err := m.ApprovalTrackers[len(m.ApprovalTrackers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalTrackerStoreKeys", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalTrackerStoreKeys = append(m.ApprovalTrackerStoreKeys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalTrackerVersions", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v Uint + m.ApprovalTrackerVersions = append(m.ApprovalTrackerVersions, v) + if err := m.ApprovalTrackerVersions[len(m.ApprovalTrackerVersions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalTrackerVersionsStoreKeys", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalTrackerVersionsStoreKeys = append(m.ApprovalTrackerVersionsStoreKeys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicStores", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DynamicStores = append(m.DynamicStores, &DynamicStore{}) + if err := m.DynamicStores[len(m.DynamicStores)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextDynamicStoreId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NextDynamicStoreId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DynamicStoreValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DynamicStoreValues = append(m.DynamicStoreValues, &DynamicStoreValue{}) + if err := m.DynamicStoreValues[len(m.DynamicStoreValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthSignatureTrackers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v Uint + m.EthSignatureTrackers = append(m.EthSignatureTrackers, v) + if err := m.EthSignatureTrackers[len(m.EthSignatureTrackers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthSignatureTrackerStoreKeys", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthSignatureTrackerStoreKeys = append(m.EthSignatureTrackerStoreKeys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VotingTrackers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VotingTrackers = append(m.VotingTrackers, &VoteProof{}) + if err := m.VotingTrackers[len(m.VotingTrackers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VotingTrackerStoreKeys", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VotingTrackerStoreKeys = append(m.VotingTrackerStoreKeys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CollectionStats = append(m.CollectionStats, &CollectionStats{}) + if err := m.CollectionStats[len(m.CollectionStats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionStatsIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v Uint + m.CollectionStatsIds = append(m.CollectionStatsIds, v) + if err := m.CollectionStatsIds[len(m.CollectionStatsIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VotingChallengeTrackers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VotingChallengeTrackers = append(m.VotingChallengeTrackers, &VotingChallengeTracker{}) + if err := m.VotingChallengeTrackers[len(m.VotingChallengeTrackers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VotingChallengeTrackerStoreKeys", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VotingChallengeTrackerStoreKeys = append(m.VotingChallengeTrackerStoreKeys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextAddressListCounter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NextAddressListCounter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReservedProtocolAddresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReservedProtocolAddresses = append(m.ReservedProtocolAddresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/icq.pb.go b/x/tokenization/types/v29/icq.pb.go new file mode 100644 index 00000000..1b26ec94 --- /dev/null +++ b/x/tokenization/types/v29/icq.pb.go @@ -0,0 +1,1964 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/icq.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// OwnershipQueryPacket is sent from a querying chain to BitBadges to verify token ownership. +// The querying chain provides the address and token criteria, and BitBadges responds with +// ownership status and optional cryptographic proof. +type OwnershipQueryPacket struct { + // Unique identifier for correlating request and response + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // Address to check ownership for (bech32 or EVM hex format) + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Collection ID to query (uint as string for cross-chain compatibility) + CollectionId string `protobuf:"bytes,3,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` + // Token ID to check ownership for (uint as string) + TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` + // Ownership time to check (uint as string, typically current time in milliseconds) + OwnershipTime string `protobuf:"bytes,5,opt,name=ownership_time,json=ownershipTime,proto3" json:"ownership_time,omitempty"` +} + +func (m *OwnershipQueryPacket) Reset() { *m = OwnershipQueryPacket{} } +func (m *OwnershipQueryPacket) String() string { return proto.CompactTextString(m) } +func (*OwnershipQueryPacket) ProtoMessage() {} +func (*OwnershipQueryPacket) Descriptor() ([]byte, []int) { + return fileDescriptor_c6b2025a94a2ba3a, []int{0} +} +func (m *OwnershipQueryPacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OwnershipQueryPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OwnershipQueryPacket.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OwnershipQueryPacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_OwnershipQueryPacket.Merge(m, src) +} +func (m *OwnershipQueryPacket) XXX_Size() int { + return m.Size() +} +func (m *OwnershipQueryPacket) XXX_DiscardUnknown() { + xxx_messageInfo_OwnershipQueryPacket.DiscardUnknown(m) +} + +var xxx_messageInfo_OwnershipQueryPacket proto.InternalMessageInfo + +func (m *OwnershipQueryPacket) GetQueryId() string { + if m != nil { + return m.QueryId + } + return "" +} + +func (m *OwnershipQueryPacket) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *OwnershipQueryPacket) GetCollectionId() string { + if m != nil { + return m.CollectionId + } + return "" +} + +func (m *OwnershipQueryPacket) GetTokenId() string { + if m != nil { + return m.TokenId + } + return "" +} + +func (m *OwnershipQueryPacket) GetOwnershipTime() string { + if m != nil { + return m.OwnershipTime + } + return "" +} + +// OwnershipQueryResponsePacket is sent from BitBadges back to the querying chain +// with the ownership verification result. +type OwnershipQueryResponsePacket struct { + // Correlation ID from the original request + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // True if the address owns any of the specified tokens (total_amount > 0) + OwnsTokens bool `protobuf:"varint,2,opt,name=owns_tokens,json=ownsTokens,proto3" json:"owns_tokens,omitempty"` + // Total amount owned for the specified token IDs and ownership times + TotalAmount Uint `protobuf:"bytes,3,opt,name=total_amount,json=totalAmount,proto3,customtype=Uint" json:"total_amount"` + // Block height at which the response was generated + ProofHeight uint64 `protobuf:"varint,4,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty"` + // Error message if the query failed (empty on success) + Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *OwnershipQueryResponsePacket) Reset() { *m = OwnershipQueryResponsePacket{} } +func (m *OwnershipQueryResponsePacket) String() string { return proto.CompactTextString(m) } +func (*OwnershipQueryResponsePacket) ProtoMessage() {} +func (*OwnershipQueryResponsePacket) Descriptor() ([]byte, []int) { + return fileDescriptor_c6b2025a94a2ba3a, []int{1} +} +func (m *OwnershipQueryResponsePacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OwnershipQueryResponsePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OwnershipQueryResponsePacket.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OwnershipQueryResponsePacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_OwnershipQueryResponsePacket.Merge(m, src) +} +func (m *OwnershipQueryResponsePacket) XXX_Size() int { + return m.Size() +} +func (m *OwnershipQueryResponsePacket) XXX_DiscardUnknown() { + xxx_messageInfo_OwnershipQueryResponsePacket.DiscardUnknown(m) +} + +var xxx_messageInfo_OwnershipQueryResponsePacket proto.InternalMessageInfo + +func (m *OwnershipQueryResponsePacket) GetQueryId() string { + if m != nil { + return m.QueryId + } + return "" +} + +func (m *OwnershipQueryResponsePacket) GetOwnsTokens() bool { + if m != nil { + return m.OwnsTokens + } + return false +} + +func (m *OwnershipQueryResponsePacket) GetProofHeight() uint64 { + if m != nil { + return m.ProofHeight + } + return 0 +} + +func (m *OwnershipQueryResponsePacket) GetError() string { + if m != nil { + return m.Error + } + return "" +} + +// BulkOwnershipQueryPacket allows querying multiple addresses/collections in a single IBC packet. +// This is more efficient than sending multiple individual queries. +type BulkOwnershipQueryPacket struct { + // Unique identifier for the bulk query + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // Individual queries to process (max 100 recommended) + Queries []*OwnershipQueryPacket `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"` +} + +func (m *BulkOwnershipQueryPacket) Reset() { *m = BulkOwnershipQueryPacket{} } +func (m *BulkOwnershipQueryPacket) String() string { return proto.CompactTextString(m) } +func (*BulkOwnershipQueryPacket) ProtoMessage() {} +func (*BulkOwnershipQueryPacket) Descriptor() ([]byte, []int) { + return fileDescriptor_c6b2025a94a2ba3a, []int{2} +} +func (m *BulkOwnershipQueryPacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BulkOwnershipQueryPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BulkOwnershipQueryPacket.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BulkOwnershipQueryPacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_BulkOwnershipQueryPacket.Merge(m, src) +} +func (m *BulkOwnershipQueryPacket) XXX_Size() int { + return m.Size() +} +func (m *BulkOwnershipQueryPacket) XXX_DiscardUnknown() { + xxx_messageInfo_BulkOwnershipQueryPacket.DiscardUnknown(m) +} + +var xxx_messageInfo_BulkOwnershipQueryPacket proto.InternalMessageInfo + +func (m *BulkOwnershipQueryPacket) GetQueryId() string { + if m != nil { + return m.QueryId + } + return "" +} + +func (m *BulkOwnershipQueryPacket) GetQueries() []*OwnershipQueryPacket { + if m != nil { + return m.Queries + } + return nil +} + +// BulkOwnershipQueryResponsePacket contains responses for all queries in a bulk request. +type BulkOwnershipQueryResponsePacket struct { + // Correlation ID from the original bulk request + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // Responses in the same order as the original queries + Responses []*OwnershipQueryResponsePacket `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` +} + +func (m *BulkOwnershipQueryResponsePacket) Reset() { *m = BulkOwnershipQueryResponsePacket{} } +func (m *BulkOwnershipQueryResponsePacket) String() string { return proto.CompactTextString(m) } +func (*BulkOwnershipQueryResponsePacket) ProtoMessage() {} +func (*BulkOwnershipQueryResponsePacket) Descriptor() ([]byte, []int) { + return fileDescriptor_c6b2025a94a2ba3a, []int{3} +} +func (m *BulkOwnershipQueryResponsePacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BulkOwnershipQueryResponsePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BulkOwnershipQueryResponsePacket.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BulkOwnershipQueryResponsePacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_BulkOwnershipQueryResponsePacket.Merge(m, src) +} +func (m *BulkOwnershipQueryResponsePacket) XXX_Size() int { + return m.Size() +} +func (m *BulkOwnershipQueryResponsePacket) XXX_DiscardUnknown() { + xxx_messageInfo_BulkOwnershipQueryResponsePacket.DiscardUnknown(m) +} + +var xxx_messageInfo_BulkOwnershipQueryResponsePacket proto.InternalMessageInfo + +func (m *BulkOwnershipQueryResponsePacket) GetQueryId() string { + if m != nil { + return m.QueryId + } + return "" +} + +func (m *BulkOwnershipQueryResponsePacket) GetResponses() []*OwnershipQueryResponsePacket { + if m != nil { + return m.Responses + } + return nil +} + +// FullBalanceQueryPacket is sent from a querying chain to BitBadges to retrieve +// the complete balance store for a user (balances, approvals, permissions). +type FullBalanceQueryPacket struct { + // Unique identifier for correlating request and response + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // Address to get balance for (bech32 or EVM hex format) + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Collection ID to query (uint as string for cross-chain compatibility) + CollectionId string `protobuf:"bytes,3,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` +} + +func (m *FullBalanceQueryPacket) Reset() { *m = FullBalanceQueryPacket{} } +func (m *FullBalanceQueryPacket) String() string { return proto.CompactTextString(m) } +func (*FullBalanceQueryPacket) ProtoMessage() {} +func (*FullBalanceQueryPacket) Descriptor() ([]byte, []int) { + return fileDescriptor_c6b2025a94a2ba3a, []int{4} +} +func (m *FullBalanceQueryPacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FullBalanceQueryPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FullBalanceQueryPacket.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FullBalanceQueryPacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_FullBalanceQueryPacket.Merge(m, src) +} +func (m *FullBalanceQueryPacket) XXX_Size() int { + return m.Size() +} +func (m *FullBalanceQueryPacket) XXX_DiscardUnknown() { + xxx_messageInfo_FullBalanceQueryPacket.DiscardUnknown(m) +} + +var xxx_messageInfo_FullBalanceQueryPacket proto.InternalMessageInfo + +func (m *FullBalanceQueryPacket) GetQueryId() string { + if m != nil { + return m.QueryId + } + return "" +} + +func (m *FullBalanceQueryPacket) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *FullBalanceQueryPacket) GetCollectionId() string { + if m != nil { + return m.CollectionId + } + return "" +} + +// FullBalanceQueryResponsePacket is sent from BitBadges back to the querying chain +// with the complete balance store (serialized as bytes for cross-chain compatibility). +type FullBalanceQueryResponsePacket struct { + // Correlation ID from the original request + QueryId string `protobuf:"bytes,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` + // The serialized UserBalanceStore (protobuf bytes) + // Contains balances, incoming/outgoing approvals, auto-approve settings, and permissions + BalanceStore []byte `protobuf:"bytes,2,opt,name=balance_store,json=balanceStore,proto3" json:"balance_store,omitempty"` + // Block height at which the response was generated + ProofHeight uint64 `protobuf:"varint,3,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty"` + // Error message if the query failed (empty on success) + Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *FullBalanceQueryResponsePacket) Reset() { *m = FullBalanceQueryResponsePacket{} } +func (m *FullBalanceQueryResponsePacket) String() string { return proto.CompactTextString(m) } +func (*FullBalanceQueryResponsePacket) ProtoMessage() {} +func (*FullBalanceQueryResponsePacket) Descriptor() ([]byte, []int) { + return fileDescriptor_c6b2025a94a2ba3a, []int{5} +} +func (m *FullBalanceQueryResponsePacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *FullBalanceQueryResponsePacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_FullBalanceQueryResponsePacket.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *FullBalanceQueryResponsePacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_FullBalanceQueryResponsePacket.Merge(m, src) +} +func (m *FullBalanceQueryResponsePacket) XXX_Size() int { + return m.Size() +} +func (m *FullBalanceQueryResponsePacket) XXX_DiscardUnknown() { + xxx_messageInfo_FullBalanceQueryResponsePacket.DiscardUnknown(m) +} + +var xxx_messageInfo_FullBalanceQueryResponsePacket proto.InternalMessageInfo + +func (m *FullBalanceQueryResponsePacket) GetQueryId() string { + if m != nil { + return m.QueryId + } + return "" +} + +func (m *FullBalanceQueryResponsePacket) GetBalanceStore() []byte { + if m != nil { + return m.BalanceStore + } + return nil +} + +func (m *FullBalanceQueryResponsePacket) GetProofHeight() uint64 { + if m != nil { + return m.ProofHeight + } + return 0 +} + +func (m *FullBalanceQueryResponsePacket) GetError() string { + if m != nil { + return m.Error + } + return "" +} + +func init() { + proto.RegisterType((*OwnershipQueryPacket)(nil), "tokenization.v29.OwnershipQueryPacket") + proto.RegisterType((*OwnershipQueryResponsePacket)(nil), "tokenization.v29.OwnershipQueryResponsePacket") + proto.RegisterType((*BulkOwnershipQueryPacket)(nil), "tokenization.v29.BulkOwnershipQueryPacket") + proto.RegisterType((*BulkOwnershipQueryResponsePacket)(nil), "tokenization.v29.BulkOwnershipQueryResponsePacket") + proto.RegisterType((*FullBalanceQueryPacket)(nil), "tokenization.v29.FullBalanceQueryPacket") + proto.RegisterType((*FullBalanceQueryResponsePacket)(nil), "tokenization.v29.FullBalanceQueryResponsePacket") +} + +func init() { proto.RegisterFile("tokenization/v29/icq.proto", fileDescriptor_c6b2025a94a2ba3a) } + +var fileDescriptor_c6b2025a94a2ba3a = []byte{ + // 500 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x53, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x8d, 0x49, 0x4a, 0xdb, 0x89, 0x83, 0x90, 0x15, 0x21, 0x13, 0x21, 0xa7, 0xb8, 0x02, 0xf5, + 0x64, 0x4b, 0xe1, 0x54, 0x89, 0x03, 0xe4, 0x80, 0x88, 0x84, 0x04, 0x98, 0xc2, 0x81, 0x8b, 0xb5, + 0xb6, 0x17, 0x7b, 0x15, 0x67, 0xd7, 0xdd, 0x5d, 0x37, 0x94, 0x5f, 0xe0, 0xc2, 0x95, 0xdf, 0xe0, + 0x1b, 0x38, 0xf4, 0xd8, 0x23, 0xe2, 0x50, 0xa1, 0xe4, 0x47, 0xd0, 0xae, 0x1d, 0xd2, 0x34, 0x88, + 0x96, 0x4b, 0x6f, 0x3b, 0x6f, 0xde, 0xcc, 0xbc, 0x59, 0xbd, 0x81, 0x9e, 0x64, 0x63, 0x4c, 0xc9, + 0x27, 0x24, 0x09, 0xa3, 0xfe, 0xd1, 0x60, 0xdf, 0x27, 0xf1, 0xa1, 0x57, 0x70, 0x26, 0x99, 0x75, + 0xfb, 0x7c, 0xce, 0x3b, 0x1a, 0xec, 0xf7, 0xba, 0x29, 0x4b, 0x99, 0x4e, 0xfa, 0xea, 0x55, 0xf1, + 0x7a, 0xfd, 0xb5, 0x1e, 0x11, 0xca, 0x11, 0x8d, 0xb1, 0xa8, 0x08, 0xee, 0x37, 0x03, 0xba, 0x2f, + 0xa7, 0x14, 0x73, 0x91, 0x91, 0xe2, 0x75, 0x89, 0xf9, 0xf1, 0x2b, 0x14, 0x8f, 0xb1, 0xb4, 0xee, + 0xc2, 0xd6, 0xa1, 0x0a, 0x43, 0x92, 0xd8, 0xc6, 0x8e, 0xb1, 0xb7, 0x1d, 0x6c, 0xea, 0x78, 0x94, + 0x58, 0x36, 0x6c, 0xa2, 0x24, 0xe1, 0x58, 0x08, 0xfb, 0x46, 0x95, 0xa9, 0x43, 0x6b, 0x17, 0x3a, + 0x31, 0xcb, 0x73, 0x1c, 0xab, 0x71, 0xaa, 0xb2, 0xa9, 0xf3, 0xe6, 0x12, 0x1c, 0x25, 0xaa, 0xb3, + 0x56, 0xa5, 0xf2, 0xad, 0xaa, 0x5e, 0xc7, 0xa3, 0xc4, 0x7a, 0x00, 0xb7, 0xd8, 0x42, 0x4c, 0x28, + 0xc9, 0x04, 0xdb, 0x1b, 0x9a, 0xd0, 0xf9, 0x83, 0x1e, 0x90, 0x09, 0x76, 0xbf, 0x1b, 0x70, 0x6f, + 0x55, 0x74, 0x80, 0x45, 0xc1, 0xa8, 0xc0, 0x97, 0x8b, 0xef, 0x43, 0x9b, 0x4d, 0xa9, 0x08, 0xf5, + 0xc8, 0x6a, 0x81, 0xad, 0x00, 0x14, 0x74, 0xa0, 0x11, 0xcb, 0x07, 0x53, 0x32, 0x89, 0xf2, 0x10, + 0x4d, 0x58, 0x49, 0x65, 0xb5, 0xc2, 0xd0, 0x3c, 0x39, 0xeb, 0x37, 0x7e, 0x9e, 0xf5, 0x5b, 0x6f, + 0x09, 0x95, 0x41, 0x5b, 0x33, 0x9e, 0x6a, 0x82, 0x75, 0x1f, 0xcc, 0x82, 0x33, 0xf6, 0x21, 0xcc, + 0x30, 0x49, 0x33, 0xa9, 0x77, 0x6a, 0x05, 0x6d, 0x8d, 0x3d, 0xd7, 0x90, 0xd5, 0x85, 0x0d, 0xcc, + 0x39, 0xe3, 0xf5, 0x3a, 0x55, 0xe0, 0x4e, 0xc1, 0x1e, 0x96, 0xf9, 0xf8, 0x7f, 0xbf, 0xff, 0x09, + 0xe8, 0x27, 0xc1, 0x4a, 0x7d, 0x73, 0xaf, 0x3d, 0x78, 0xe8, 0x5d, 0x74, 0x83, 0xf7, 0xb7, 0x9e, + 0xc1, 0xa2, 0xcc, 0xfd, 0x6c, 0xc0, 0xce, 0xfa, 0xe4, 0xab, 0xff, 0xe1, 0x0b, 0xd8, 0xe6, 0x35, + 0x79, 0xa1, 0xc1, 0xbb, 0x4c, 0xc3, 0x6a, 0xf7, 0x60, 0xd9, 0xc0, 0xe5, 0x70, 0xe7, 0x59, 0x99, + 0xe7, 0xc3, 0xca, 0x98, 0xd7, 0xe2, 0x41, 0xf7, 0xab, 0x01, 0xce, 0xc5, 0xa1, 0x57, 0xdf, 0x7f, + 0x17, 0x3a, 0xf5, 0x19, 0x85, 0x42, 0x32, 0x8e, 0xb5, 0x04, 0x33, 0x30, 0x6b, 0xf0, 0x8d, 0xc2, + 0xd6, 0x6c, 0xd1, 0xfc, 0x87, 0x2d, 0x5a, 0xe7, 0x6c, 0x31, 0x7c, 0x77, 0x32, 0x73, 0x8c, 0xd3, + 0x99, 0x63, 0xfc, 0x9a, 0x39, 0xc6, 0x97, 0xb9, 0xd3, 0x38, 0x9d, 0x3b, 0x8d, 0x1f, 0x73, 0xa7, + 0xf1, 0xfe, 0x71, 0x4a, 0x64, 0x56, 0x46, 0x5e, 0xcc, 0x26, 0x7e, 0x44, 0x64, 0x84, 0x92, 0x14, + 0x8b, 0xe5, 0x2b, 0xce, 0x10, 0xa1, 0xfe, 0x47, 0x7f, 0xe5, 0xe6, 0xe5, 0x71, 0x81, 0x85, 0xba, + 0xfc, 0xe8, 0xa6, 0xbe, 0xf8, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa6, 0xb4, 0xae, 0x02, + 0x58, 0x04, 0x00, 0x00, +} + +func (m *OwnershipQueryPacket) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OwnershipQueryPacket) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OwnershipQueryPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OwnershipTime) > 0 { + i -= len(m.OwnershipTime) + copy(dAtA[i:], m.OwnershipTime) + i = encodeVarintIcq(dAtA, i, uint64(len(m.OwnershipTime))) + i-- + dAtA[i] = 0x2a + } + if len(m.TokenId) > 0 { + i -= len(m.TokenId) + copy(dAtA[i:], m.TokenId) + i = encodeVarintIcq(dAtA, i, uint64(len(m.TokenId))) + i-- + dAtA[i] = 0x22 + } + if len(m.CollectionId) > 0 { + i -= len(m.CollectionId) + copy(dAtA[i:], m.CollectionId) + i = encodeVarintIcq(dAtA, i, uint64(len(m.CollectionId))) + i-- + dAtA[i] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintIcq(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.QueryId) > 0 { + i -= len(m.QueryId) + copy(dAtA[i:], m.QueryId) + i = encodeVarintIcq(dAtA, i, uint64(len(m.QueryId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OwnershipQueryResponsePacket) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OwnershipQueryResponsePacket) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OwnershipQueryResponsePacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintIcq(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x2a + } + if m.ProofHeight != 0 { + i = encodeVarintIcq(dAtA, i, uint64(m.ProofHeight)) + i-- + dAtA[i] = 0x20 + } + { + size := m.TotalAmount.Size() + i -= size + if _, err := m.TotalAmount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintIcq(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if m.OwnsTokens { + i-- + if m.OwnsTokens { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.QueryId) > 0 { + i -= len(m.QueryId) + copy(dAtA[i:], m.QueryId) + i = encodeVarintIcq(dAtA, i, uint64(len(m.QueryId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BulkOwnershipQueryPacket) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BulkOwnershipQueryPacket) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BulkOwnershipQueryPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Queries) > 0 { + for iNdEx := len(m.Queries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Queries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIcq(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.QueryId) > 0 { + i -= len(m.QueryId) + copy(dAtA[i:], m.QueryId) + i = encodeVarintIcq(dAtA, i, uint64(len(m.QueryId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BulkOwnershipQueryResponsePacket) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BulkOwnershipQueryResponsePacket) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BulkOwnershipQueryResponsePacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Responses) > 0 { + for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintIcq(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.QueryId) > 0 { + i -= len(m.QueryId) + copy(dAtA[i:], m.QueryId) + i = encodeVarintIcq(dAtA, i, uint64(len(m.QueryId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FullBalanceQueryPacket) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FullBalanceQueryPacket) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FullBalanceQueryPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CollectionId) > 0 { + i -= len(m.CollectionId) + copy(dAtA[i:], m.CollectionId) + i = encodeVarintIcq(dAtA, i, uint64(len(m.CollectionId))) + i-- + dAtA[i] = 0x1a + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintIcq(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.QueryId) > 0 { + i -= len(m.QueryId) + copy(dAtA[i:], m.QueryId) + i = encodeVarintIcq(dAtA, i, uint64(len(m.QueryId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *FullBalanceQueryResponsePacket) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FullBalanceQueryResponsePacket) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *FullBalanceQueryResponsePacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintIcq(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x22 + } + if m.ProofHeight != 0 { + i = encodeVarintIcq(dAtA, i, uint64(m.ProofHeight)) + i-- + dAtA[i] = 0x18 + } + if len(m.BalanceStore) > 0 { + i -= len(m.BalanceStore) + copy(dAtA[i:], m.BalanceStore) + i = encodeVarintIcq(dAtA, i, uint64(len(m.BalanceStore))) + i-- + dAtA[i] = 0x12 + } + if len(m.QueryId) > 0 { + i -= len(m.QueryId) + copy(dAtA[i:], m.QueryId) + i = encodeVarintIcq(dAtA, i, uint64(len(m.QueryId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintIcq(dAtA []byte, offset int, v uint64) int { + offset -= sovIcq(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OwnershipQueryPacket) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.QueryId) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + l = len(m.CollectionId) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + l = len(m.TokenId) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + l = len(m.OwnershipTime) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + return n +} + +func (m *OwnershipQueryResponsePacket) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.QueryId) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + if m.OwnsTokens { + n += 2 + } + l = m.TotalAmount.Size() + n += 1 + l + sovIcq(uint64(l)) + if m.ProofHeight != 0 { + n += 1 + sovIcq(uint64(m.ProofHeight)) + } + l = len(m.Error) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + return n +} + +func (m *BulkOwnershipQueryPacket) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.QueryId) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + if len(m.Queries) > 0 { + for _, e := range m.Queries { + l = e.Size() + n += 1 + l + sovIcq(uint64(l)) + } + } + return n +} + +func (m *BulkOwnershipQueryResponsePacket) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.QueryId) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + if len(m.Responses) > 0 { + for _, e := range m.Responses { + l = e.Size() + n += 1 + l + sovIcq(uint64(l)) + } + } + return n +} + +func (m *FullBalanceQueryPacket) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.QueryId) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + l = len(m.CollectionId) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + return n +} + +func (m *FullBalanceQueryResponsePacket) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.QueryId) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + l = len(m.BalanceStore) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + if m.ProofHeight != 0 { + n += 1 + sovIcq(uint64(m.ProofHeight)) + } + l = len(m.Error) + if l > 0 { + n += 1 + l + sovIcq(uint64(l)) + } + return n +} + +func sovIcq(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozIcq(x uint64) (n int) { + return sovIcq(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OwnershipQueryPacket) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OwnershipQueryPacket: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnershipQueryPacket: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CollectionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIcq(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIcq + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OwnershipQueryResponsePacket) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OwnershipQueryResponsePacket: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OwnershipQueryResponsePacket: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnsTokens", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OwnsTokens = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalAmount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalAmount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) + } + m.ProofHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProofHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIcq(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIcq + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BulkOwnershipQueryPacket) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BulkOwnershipQueryPacket: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BulkOwnershipQueryPacket: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Queries = append(m.Queries, &OwnershipQueryPacket{}) + if err := m.Queries[len(m.Queries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIcq(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIcq + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BulkOwnershipQueryResponsePacket) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BulkOwnershipQueryResponsePacket: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BulkOwnershipQueryResponsePacket: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Responses = append(m.Responses, &OwnershipQueryResponsePacket{}) + if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIcq(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIcq + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FullBalanceQueryPacket) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FullBalanceQueryPacket: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FullBalanceQueryPacket: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CollectionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIcq(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIcq + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FullBalanceQueryResponsePacket) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FullBalanceQueryResponsePacket: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FullBalanceQueryResponsePacket: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field QueryId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.QueryId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BalanceStore", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BalanceStore = append(m.BalanceStore[:0], dAtA[iNdEx:postIndex]...) + if m.BalanceStore == nil { + m.BalanceStore = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) + } + m.ProofHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ProofHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowIcq + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthIcq + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthIcq + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipIcq(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthIcq + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipIcq(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIcq + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIcq + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowIcq + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthIcq + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupIcq + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthIcq + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthIcq = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowIcq = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupIcq = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/maps/types/math.go b/x/tokenization/types/v29/math.go similarity index 97% rename from x/maps/types/math.go rename to x/tokenization/types/v29/math.go index cbd19543..58434f03 100644 --- a/x/maps/types/math.go +++ b/x/tokenization/types/v29/math.go @@ -1,4 +1,4 @@ -package types +package v29 import ( sdkmath "cosmossdk.io/math" diff --git a/x/tokenization/types/v29/metadata.pb.go b/x/tokenization/types/v29/metadata.pb.go new file mode 100644 index 00000000..c136db8b --- /dev/null +++ b/x/tokenization/types/v29/metadata.pb.go @@ -0,0 +1,893 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/metadata.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// This message defines the metadata for specific token IDs. +// The interpretation of this metadata should follow the collection standard. +type TokenMetadata struct { + // The URI (Uniform Resource Identifier) associated with the token metadata. + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + // Custom data or additional information related to the token metadata. + CustomData string `protobuf:"bytes,2,opt,name=customData,proto3" json:"customData,omitempty"` + // The token IDs to which this metadata applies. + TokenIds []*UintRange `protobuf:"bytes,3,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` +} + +func (m *TokenMetadata) Reset() { *m = TokenMetadata{} } +func (m *TokenMetadata) String() string { return proto.CompactTextString(m) } +func (*TokenMetadata) ProtoMessage() {} +func (*TokenMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_9a93fbe0f62d4a6e, []int{0} +} +func (m *TokenMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenMetadata.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TokenMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenMetadata.Merge(m, src) +} +func (m *TokenMetadata) XXX_Size() int { + return m.Size() +} +func (m *TokenMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_TokenMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenMetadata proto.InternalMessageInfo + +func (m *TokenMetadata) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *TokenMetadata) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *TokenMetadata) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +// This message defines the metadata for the collection. +// The interpretation of this metadata should follow the collection standard. +type CollectionMetadata struct { + // The URI (Uniform Resource Identifier) associated with the collection metadata. + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + // Custom data or additional information related to the collection metadata. + CustomData string `protobuf:"bytes,2,opt,name=customData,proto3" json:"customData,omitempty"` +} + +func (m *CollectionMetadata) Reset() { *m = CollectionMetadata{} } +func (m *CollectionMetadata) String() string { return proto.CompactTextString(m) } +func (*CollectionMetadata) ProtoMessage() {} +func (*CollectionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_9a93fbe0f62d4a6e, []int{1} +} +func (m *CollectionMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CollectionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CollectionMetadata.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CollectionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionMetadata.Merge(m, src) +} +func (m *CollectionMetadata) XXX_Size() int { + return m.Size() +} +func (m *CollectionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionMetadata proto.InternalMessageInfo + +func (m *CollectionMetadata) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *CollectionMetadata) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +// This message defines the metadata for paths (alias paths and cosmos coin wrapper paths). +// The interpretation of this metadata should follow the collection standard. +type PathMetadata struct { + // The URI (Uniform Resource Identifier) associated with the path metadata. + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + // Custom data or additional information related to the path metadata. + CustomData string `protobuf:"bytes,2,opt,name=customData,proto3" json:"customData,omitempty"` +} + +func (m *PathMetadata) Reset() { *m = PathMetadata{} } +func (m *PathMetadata) String() string { return proto.CompactTextString(m) } +func (*PathMetadata) ProtoMessage() {} +func (*PathMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_9a93fbe0f62d4a6e, []int{2} +} +func (m *PathMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PathMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PathMetadata.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PathMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_PathMetadata.Merge(m, src) +} +func (m *PathMetadata) XXX_Size() int { + return m.Size() +} +func (m *PathMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_PathMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_PathMetadata proto.InternalMessageInfo + +func (m *PathMetadata) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *PathMetadata) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func init() { + proto.RegisterType((*TokenMetadata)(nil), "tokenization.v29.TokenMetadata") + proto.RegisterType((*CollectionMetadata)(nil), "tokenization.v29.CollectionMetadata") + proto.RegisterType((*PathMetadata)(nil), "tokenization.v29.PathMetadata") +} + +func init() { proto.RegisterFile("tokenization/v29/metadata.proto", fileDescriptor_9a93fbe0f62d4a6e) } + +var fileDescriptor_9a93fbe0f62d4a6e = []byte{ + // 289 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2f, 0xc9, 0xcf, 0x4e, + 0xcd, 0xcb, 0xac, 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0xb2, 0xd4, 0xcf, 0x4d, 0x2d, + 0x49, 0x4c, 0x49, 0x2c, 0x49, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x40, 0x56, 0xa0, + 0x57, 0x66, 0x64, 0x29, 0x25, 0x99, 0x9e, 0x9f, 0x9f, 0x9e, 0x93, 0xaa, 0x0f, 0x96, 0x4f, 0x2a, + 0x4d, 0xd3, 0x4f, 0xcc, 0xab, 0x84, 0x28, 0x96, 0xc2, 0x34, 0x2d, 0x29, 0x31, 0x27, 0x31, 0x2f, + 0x39, 0xb5, 0x18, 0xaa, 0x40, 0x24, 0x3d, 0x3f, 0x3d, 0x1f, 0xcc, 0xd4, 0x07, 0xb1, 0x20, 0xa2, + 0x4a, 0x55, 0x5c, 0xbc, 0x21, 0x20, 0x8d, 0xbe, 0x50, 0xab, 0x85, 0x04, 0xb8, 0x98, 0x4b, 0x8b, + 0x32, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x40, 0x4c, 0x21, 0x39, 0x2e, 0xae, 0xe4, 0xd2, + 0xe2, 0x92, 0xfc, 0x5c, 0x97, 0xc4, 0x92, 0x44, 0x09, 0x26, 0xb0, 0x04, 0x92, 0x88, 0x90, 0x39, + 0x17, 0x07, 0xd8, 0x6e, 0xcf, 0x94, 0x62, 0x09, 0x66, 0x05, 0x66, 0x0d, 0x6e, 0x23, 0x69, 0x3d, + 0x74, 0x97, 0xeb, 0x85, 0x66, 0xe6, 0x95, 0x04, 0x25, 0xe6, 0xa5, 0xa7, 0x06, 0xc1, 0x15, 0x2b, + 0xb9, 0x71, 0x09, 0x39, 0xe7, 0xe7, 0xe4, 0xa4, 0x26, 0x83, 0x54, 0x91, 0xef, 0x00, 0x25, 0x07, + 0x2e, 0x9e, 0x80, 0xc4, 0x92, 0x0c, 0xf2, 0x4d, 0x70, 0x0a, 0x3b, 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, 0x9b, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, + 0xfd, 0xa4, 0xcc, 0x92, 0xa4, 0xc4, 0x94, 0xf4, 0xd4, 0x62, 0x04, 0x2b, 0x39, 0x23, 0x31, 0x33, + 0x4f, 0xbf, 0x42, 0x1f, 0x25, 0xf0, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x41, 0x51, 0x90, 0xc4, 0x06, + 0x0e, 0x64, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x63, 0x9a, 0x14, 0x84, 0xeb, 0x01, 0x00, + 0x00, +} + +func (m *TokenMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TokenMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetadata(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x12 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CollectionMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CollectionMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CollectionMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x12 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PathMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PathMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PathMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x12 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintMetadata(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMetadata(dAtA []byte, offset int, v uint64) int { + offset -= sovMetadata(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TokenMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovMetadata(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovMetadata(uint64(l)) + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovMetadata(uint64(l)) + } + } + return n +} + +func (m *CollectionMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovMetadata(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovMetadata(uint64(l)) + } + return n +} + +func (m *PathMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovMetadata(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovMetadata(uint64(l)) + } + return n +} + +func sovMetadata(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMetadata(x uint64) (n int) { + return sovMetadata(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TokenMetadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TokenMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetadata + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetadata + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMetadata + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadata(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadata + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectionMetadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CollectionMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectionMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetadata + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetadata + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadata(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadata + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PathMetadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PathMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PathMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetadata + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetadata + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMetadata + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMetadata + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMetadata(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMetadata + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMetadata(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMetadata + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMetadata + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMetadata + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMetadata + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMetadata + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMetadata + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMetadata = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMetadata = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMetadata = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/packet.pb.go b/x/tokenization/types/v29/packet.pb.go new file mode 100644 index 00000000..d09d9a03 --- /dev/null +++ b/x/tokenization/types/v29/packet.pb.go @@ -0,0 +1,1000 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/packet.proto + +package v29 + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// TokenizationPacketData defines the packet data for the tokenization module. +// It uses a oneof to support multiple packet types over the same IBC channel. +type TokenizationPacketData struct { + // Types that are valid to be assigned to Packet: + // *TokenizationPacketData_NoData + // *TokenizationPacketData_OwnershipQuery + // *TokenizationPacketData_OwnershipQueryResponse + // *TokenizationPacketData_BulkOwnershipQuery + // *TokenizationPacketData_BulkOwnershipQueryResponse + // *TokenizationPacketData_FullBalanceQuery + // *TokenizationPacketData_FullBalanceQueryResponse + Packet isTokenizationPacketData_Packet `protobuf_oneof:"packet"` +} + +func (m *TokenizationPacketData) Reset() { *m = TokenizationPacketData{} } +func (m *TokenizationPacketData) String() string { return proto.CompactTextString(m) } +func (*TokenizationPacketData) ProtoMessage() {} +func (*TokenizationPacketData) Descriptor() ([]byte, []int) { + return fileDescriptor_5528b8095908a001, []int{0} +} +func (m *TokenizationPacketData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenizationPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenizationPacketData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TokenizationPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenizationPacketData.Merge(m, src) +} +func (m *TokenizationPacketData) XXX_Size() int { + return m.Size() +} +func (m *TokenizationPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_TokenizationPacketData.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenizationPacketData proto.InternalMessageInfo + +type isTokenizationPacketData_Packet interface { + isTokenizationPacketData_Packet() + MarshalTo([]byte) (int, error) + Size() int +} + +type TokenizationPacketData_NoData struct { + NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"` +} +type TokenizationPacketData_OwnershipQuery struct { + OwnershipQuery *OwnershipQueryPacket `protobuf:"bytes,2,opt,name=ownershipQuery,proto3,oneof" json:"ownershipQuery,omitempty"` +} +type TokenizationPacketData_OwnershipQueryResponse struct { + OwnershipQueryResponse *OwnershipQueryResponsePacket `protobuf:"bytes,3,opt,name=ownershipQueryResponse,proto3,oneof" json:"ownershipQueryResponse,omitempty"` +} +type TokenizationPacketData_BulkOwnershipQuery struct { + BulkOwnershipQuery *BulkOwnershipQueryPacket `protobuf:"bytes,4,opt,name=bulkOwnershipQuery,proto3,oneof" json:"bulkOwnershipQuery,omitempty"` +} +type TokenizationPacketData_BulkOwnershipQueryResponse struct { + BulkOwnershipQueryResponse *BulkOwnershipQueryResponsePacket `protobuf:"bytes,5,opt,name=bulkOwnershipQueryResponse,proto3,oneof" json:"bulkOwnershipQueryResponse,omitempty"` +} +type TokenizationPacketData_FullBalanceQuery struct { + FullBalanceQuery *FullBalanceQueryPacket `protobuf:"bytes,6,opt,name=fullBalanceQuery,proto3,oneof" json:"fullBalanceQuery,omitempty"` +} +type TokenizationPacketData_FullBalanceQueryResponse struct { + FullBalanceQueryResponse *FullBalanceQueryResponsePacket `protobuf:"bytes,7,opt,name=fullBalanceQueryResponse,proto3,oneof" json:"fullBalanceQueryResponse,omitempty"` +} + +func (*TokenizationPacketData_NoData) isTokenizationPacketData_Packet() {} +func (*TokenizationPacketData_OwnershipQuery) isTokenizationPacketData_Packet() {} +func (*TokenizationPacketData_OwnershipQueryResponse) isTokenizationPacketData_Packet() {} +func (*TokenizationPacketData_BulkOwnershipQuery) isTokenizationPacketData_Packet() {} +func (*TokenizationPacketData_BulkOwnershipQueryResponse) isTokenizationPacketData_Packet() {} +func (*TokenizationPacketData_FullBalanceQuery) isTokenizationPacketData_Packet() {} +func (*TokenizationPacketData_FullBalanceQueryResponse) isTokenizationPacketData_Packet() {} + +func (m *TokenizationPacketData) GetPacket() isTokenizationPacketData_Packet { + if m != nil { + return m.Packet + } + return nil +} + +func (m *TokenizationPacketData) GetNoData() *NoData { + if x, ok := m.GetPacket().(*TokenizationPacketData_NoData); ok { + return x.NoData + } + return nil +} + +func (m *TokenizationPacketData) GetOwnershipQuery() *OwnershipQueryPacket { + if x, ok := m.GetPacket().(*TokenizationPacketData_OwnershipQuery); ok { + return x.OwnershipQuery + } + return nil +} + +func (m *TokenizationPacketData) GetOwnershipQueryResponse() *OwnershipQueryResponsePacket { + if x, ok := m.GetPacket().(*TokenizationPacketData_OwnershipQueryResponse); ok { + return x.OwnershipQueryResponse + } + return nil +} + +func (m *TokenizationPacketData) GetBulkOwnershipQuery() *BulkOwnershipQueryPacket { + if x, ok := m.GetPacket().(*TokenizationPacketData_BulkOwnershipQuery); ok { + return x.BulkOwnershipQuery + } + return nil +} + +func (m *TokenizationPacketData) GetBulkOwnershipQueryResponse() *BulkOwnershipQueryResponsePacket { + if x, ok := m.GetPacket().(*TokenizationPacketData_BulkOwnershipQueryResponse); ok { + return x.BulkOwnershipQueryResponse + } + return nil +} + +func (m *TokenizationPacketData) GetFullBalanceQuery() *FullBalanceQueryPacket { + if x, ok := m.GetPacket().(*TokenizationPacketData_FullBalanceQuery); ok { + return x.FullBalanceQuery + } + return nil +} + +func (m *TokenizationPacketData) GetFullBalanceQueryResponse() *FullBalanceQueryResponsePacket { + if x, ok := m.GetPacket().(*TokenizationPacketData_FullBalanceQueryResponse); ok { + return x.FullBalanceQueryResponse + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*TokenizationPacketData) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*TokenizationPacketData_NoData)(nil), + (*TokenizationPacketData_OwnershipQuery)(nil), + (*TokenizationPacketData_OwnershipQueryResponse)(nil), + (*TokenizationPacketData_BulkOwnershipQuery)(nil), + (*TokenizationPacketData_BulkOwnershipQueryResponse)(nil), + (*TokenizationPacketData_FullBalanceQuery)(nil), + (*TokenizationPacketData_FullBalanceQueryResponse)(nil), + } +} + +// NoData is a placeholder packet type (legacy scaffold). +type NoData struct { +} + +func (m *NoData) Reset() { *m = NoData{} } +func (m *NoData) String() string { return proto.CompactTextString(m) } +func (*NoData) ProtoMessage() {} +func (*NoData) Descriptor() ([]byte, []int) { + return fileDescriptor_5528b8095908a001, []int{1} +} +func (m *NoData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NoData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NoData) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoData.Merge(m, src) +} +func (m *NoData) XXX_Size() int { + return m.Size() +} +func (m *NoData) XXX_DiscardUnknown() { + xxx_messageInfo_NoData.DiscardUnknown(m) +} + +var xxx_messageInfo_NoData proto.InternalMessageInfo + +func init() { + proto.RegisterType((*TokenizationPacketData)(nil), "tokenization.v29.TokenizationPacketData") + proto.RegisterType((*NoData)(nil), "tokenization.v29.NoData") +} + +func init() { proto.RegisterFile("tokenization/v29/packet.proto", fileDescriptor_5528b8095908a001) } + +var fileDescriptor_5528b8095908a001 = []byte{ + // 359 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x41, 0x4b, 0xc3, 0x30, + 0x14, 0xc7, 0x5b, 0x75, 0x75, 0x44, 0x90, 0x91, 0xc3, 0x28, 0x03, 0x83, 0xec, 0x20, 0xc3, 0x43, + 0x2a, 0xf5, 0x34, 0xf0, 0x54, 0x44, 0x76, 0xd2, 0x39, 0x64, 0x07, 0xf1, 0x92, 0xd6, 0xb8, 0x86, + 0xd5, 0xa4, 0xae, 0xe9, 0x74, 0x7e, 0x0a, 0x3f, 0x89, 0x9f, 0xc3, 0xe3, 0x8e, 0x1e, 0x65, 0xfb, + 0x22, 0xb2, 0x54, 0xeb, 0xda, 0x38, 0xe7, 0x2d, 0xbc, 0xf7, 0x7f, 0xbf, 0x1f, 0x0f, 0xf2, 0xc0, + 0x9e, 0x14, 0x43, 0xca, 0xd9, 0x33, 0x91, 0x4c, 0x70, 0x67, 0xec, 0xb6, 0x9d, 0x98, 0x04, 0x43, + 0x2a, 0x71, 0x3c, 0x12, 0x52, 0xc0, 0xda, 0x72, 0x1b, 0x8f, 0xdd, 0x76, 0xa3, 0xa1, 0x0d, 0xb0, + 0xe0, 0x21, 0x4b, 0x37, 0x5f, 0x2b, 0xa0, 0x7e, 0xb5, 0xd4, 0xee, 0x2a, 0xd4, 0x29, 0x91, 0x04, + 0xba, 0xc0, 0xe2, 0x62, 0xf1, 0xb2, 0xcd, 0x7d, 0xb3, 0xb5, 0xe3, 0xda, 0xb8, 0x4c, 0xc6, 0xe7, + 0xaa, 0xdf, 0x31, 0x7a, 0x5f, 0x49, 0xd8, 0x05, 0xbb, 0xe2, 0x91, 0xd3, 0x51, 0x12, 0xb2, 0xf8, + 0x32, 0xa5, 0xa3, 0x89, 0xbd, 0xa1, 0x66, 0x0f, 0xf4, 0xd9, 0x8b, 0x42, 0x2e, 0xf3, 0x76, 0x8c, + 0x5e, 0x69, 0x1e, 0x86, 0xa0, 0x5e, 0xac, 0xf4, 0x68, 0x12, 0x0b, 0x9e, 0x50, 0x7b, 0x53, 0x91, + 0xf1, 0x3a, 0xf2, 0x77, 0x3e, 0x37, 0xac, 0xe0, 0xc1, 0x1b, 0x00, 0xfd, 0x34, 0x1a, 0x16, 0xa7, + 0xed, 0x2d, 0x65, 0x39, 0xd4, 0x2d, 0x9e, 0x96, 0xcd, 0x0d, 0xbf, 0x70, 0xa0, 0x04, 0x0d, 0xbd, + 0x9a, 0xef, 0x52, 0x51, 0x16, 0xf7, 0x3f, 0x16, 0x6d, 0x9f, 0x3f, 0xb8, 0xb0, 0x0f, 0x6a, 0x77, + 0x69, 0x14, 0x79, 0x24, 0x22, 0x3c, 0xa0, 0xd9, 0x46, 0x96, 0x72, 0xb5, 0x74, 0xd7, 0x59, 0x29, + 0x99, 0x1b, 0x34, 0x06, 0xe4, 0xc0, 0x2e, 0xd7, 0xf2, 0x5d, 0xb6, 0x15, 0xff, 0x68, 0x3d, 0x5f, + 0xdb, 0x64, 0x25, 0xd3, 0xab, 0x02, 0x2b, 0xfb, 0xe4, 0xcd, 0x2a, 0xb0, 0xb2, 0x5f, 0xe7, 0xf5, + 0xdf, 0x66, 0xc8, 0x9c, 0xce, 0x90, 0xf9, 0x31, 0x43, 0xe6, 0xcb, 0x1c, 0x19, 0xd3, 0x39, 0x32, + 0xde, 0xe7, 0xc8, 0xb8, 0x3e, 0x19, 0x30, 0x19, 0xa6, 0x3e, 0x0e, 0xc4, 0xbd, 0xe3, 0x33, 0xe9, + 0x93, 0xdb, 0x01, 0x4d, 0x7e, 0x5e, 0x41, 0x48, 0x18, 0x77, 0x9e, 0x9c, 0xc2, 0x59, 0xc8, 0x49, + 0x4c, 0x93, 0xc5, 0x71, 0xf8, 0x96, 0xba, 0x8c, 0xe3, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x06, + 0x9f, 0xd3, 0x47, 0x68, 0x03, 0x00, 0x00, +} + +func (m *TokenizationPacketData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TokenizationPacketData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenizationPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Packet != nil { + { + size := m.Packet.Size() + i -= size + if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *TokenizationPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenizationPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.NoData != nil { + { + size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} +func (m *TokenizationPacketData_OwnershipQuery) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenizationPacketData_OwnershipQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.OwnershipQuery != nil { + { + size, err := m.OwnershipQuery.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} +func (m *TokenizationPacketData_OwnershipQueryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenizationPacketData_OwnershipQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.OwnershipQueryResponse != nil { + { + size, err := m.OwnershipQueryResponse.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *TokenizationPacketData_BulkOwnershipQuery) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenizationPacketData_BulkOwnershipQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BulkOwnershipQuery != nil { + { + size, err := m.BulkOwnershipQuery.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *TokenizationPacketData_BulkOwnershipQueryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenizationPacketData_BulkOwnershipQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.BulkOwnershipQueryResponse != nil { + { + size, err := m.BulkOwnershipQueryResponse.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + return len(dAtA) - i, nil +} +func (m *TokenizationPacketData_FullBalanceQuery) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenizationPacketData_FullBalanceQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FullBalanceQuery != nil { + { + size, err := m.FullBalanceQuery.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} +func (m *TokenizationPacketData_FullBalanceQueryResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenizationPacketData_FullBalanceQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.FullBalanceQueryResponse != nil { + { + size, err := m.FullBalanceQueryResponse.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + return len(dAtA) - i, nil +} +func (m *NoData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NoData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintPacket(dAtA []byte, offset int, v uint64) int { + offset -= sovPacket(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TokenizationPacketData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Packet != nil { + n += m.Packet.Size() + } + return n +} + +func (m *TokenizationPacketData_NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoData != nil { + l = m.NoData.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} +func (m *TokenizationPacketData_OwnershipQuery) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OwnershipQuery != nil { + l = m.OwnershipQuery.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} +func (m *TokenizationPacketData_OwnershipQueryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.OwnershipQueryResponse != nil { + l = m.OwnershipQueryResponse.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} +func (m *TokenizationPacketData_BulkOwnershipQuery) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BulkOwnershipQuery != nil { + l = m.BulkOwnershipQuery.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} +func (m *TokenizationPacketData_BulkOwnershipQueryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BulkOwnershipQueryResponse != nil { + l = m.BulkOwnershipQueryResponse.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} +func (m *TokenizationPacketData_FullBalanceQuery) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FullBalanceQuery != nil { + l = m.FullBalanceQuery.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} +func (m *TokenizationPacketData_FullBalanceQueryResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.FullBalanceQueryResponse != nil { + l = m.FullBalanceQueryResponse.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} +func (m *NoData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovPacket(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPacket(x uint64) (n int) { + return sovPacket(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TokenizationPacketData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TokenizationPacketData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenizationPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &NoData{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &TokenizationPacketData_NoData{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipQuery", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &OwnershipQueryPacket{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &TokenizationPacketData_OwnershipQuery{v} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipQueryResponse", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &OwnershipQueryResponsePacket{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &TokenizationPacketData_OwnershipQueryResponse{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BulkOwnershipQuery", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BulkOwnershipQueryPacket{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &TokenizationPacketData_BulkOwnershipQuery{v} + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BulkOwnershipQueryResponse", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &BulkOwnershipQueryResponsePacket{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &TokenizationPacketData_BulkOwnershipQueryResponse{v} + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FullBalanceQuery", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FullBalanceQueryPacket{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &TokenizationPacketData_FullBalanceQuery{v} + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FullBalanceQueryResponse", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &FullBalanceQueryResponsePacket{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &TokenizationPacketData_FullBalanceQueryResponse{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPacket(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPacket + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NoData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NoData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipPacket(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPacket + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPacket(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPacket + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPacket + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPacket + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPacket + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPacket + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPacket + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/anchor/types/params.pb.go b/x/tokenization/types/v29/params.pb.go similarity index 54% rename from x/anchor/types/params.pb.go rename to x/tokenization/types/v29/params.pb.go index 28a47689..1ab7e7a0 100644 --- a/x/anchor/types/params.pb.go +++ b/x/tokenization/types/v29/params.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: anchor/params.proto +// source: tokenization/v29/params.proto -package types +package v29 import ( fmt "fmt" @@ -26,13 +26,17 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the parameters for the module. type Params struct { + // allowed_denoms defines the list of denoms that are allowed to be used in coin_transfers + AllowedDenoms []string `protobuf:"bytes,1,rep,name=allowed_denoms,json=allowedDenoms,proto3" json:"allowed_denoms,omitempty"` + // affiliate_percentage defines the percentage of the transfer amount that goes to the affiliate + AffiliatePercentage Uint `protobuf:"bytes,2,opt,name=affiliate_percentage,json=affiliatePercentage,proto3,customtype=Uint" json:"affiliate_percentage"` } func (m *Params) Reset() { *m = Params{} } func (m *Params) String() string { return proto.CompactTextString(m) } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_e83ea027a3f3929c, []int{0} + return fileDescriptor_03f2c38239fdd4eb, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -61,25 +65,38 @@ func (m *Params) XXX_DiscardUnknown() { var xxx_messageInfo_Params proto.InternalMessageInfo +func (m *Params) GetAllowedDenoms() []string { + if m != nil { + return m.AllowedDenoms + } + return nil +} + func init() { - proto.RegisterType((*Params)(nil), "anchor.Params") + proto.RegisterType((*Params)(nil), "tokenization.v29.Params") } -func init() { proto.RegisterFile("anchor/params.proto", fileDescriptor_e83ea027a3f3929c) } +func init() { proto.RegisterFile("tokenization/v29/params.proto", fileDescriptor_03f2c38239fdd4eb) } -var fileDescriptor_e83ea027a3f3929c = []byte{ - // 167 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xcc, 0x4b, 0xce, - 0xc8, 0x2f, 0xd2, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, - 0x62, 0x83, 0x08, 0x4a, 0x09, 0x26, 0xe6, 0x66, 0xe6, 0xe5, 0xeb, 0x83, 0x49, 0x88, 0x94, 0x94, - 0x48, 0x7a, 0x7e, 0x7a, 0x3e, 0x98, 0xa9, 0x0f, 0x62, 0x41, 0x44, 0x95, 0x14, 0xb8, 0xd8, 0x02, - 0xc0, 0x06, 0x58, 0x89, 0xbd, 0x58, 0x20, 0xcf, 0xd8, 0xf5, 0x7c, 0x83, 0x16, 0x2f, 0xd4, 0x60, - 0x88, 0xb8, 0x93, 0xcf, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, - 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x19, 0xa5, - 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x27, 0x65, 0x96, 0x24, 0x25, 0xa6, - 0xa4, 0xa7, 0x16, 0x23, 0x58, 0xc9, 0x19, 0x89, 0x99, 0x79, 0xfa, 0x15, 0xfa, 0x50, 0xe3, 0x4a, - 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0xd6, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x7f, - 0x6f, 0x01, 0xa6, 0xbe, 0x00, 0x00, 0x00, +var fileDescriptor_03f2c38239fdd4eb = []byte{ + // 268 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2d, 0xc9, 0xcf, 0x4e, + 0xcd, 0xcb, 0xac, 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0xb2, 0xd4, 0x2f, 0x48, 0x2c, + 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x40, 0x96, 0xd6, 0x2b, 0x33, + 0xb2, 0x94, 0x12, 0x4c, 0xcc, 0xcd, 0xcc, 0xcb, 0xd7, 0x07, 0x93, 0x10, 0x45, 0x52, 0x22, 0xe9, + 0xf9, 0xe9, 0xf9, 0x60, 0xa6, 0x3e, 0x88, 0x05, 0x11, 0x55, 0xda, 0xc2, 0xc8, 0xc5, 0x16, 0x00, + 0x36, 0x4b, 0x48, 0x95, 0x8b, 0x2f, 0x31, 0x27, 0x27, 0xbf, 0x3c, 0x35, 0x25, 0x3e, 0x25, 0x35, + 0x2f, 0x3f, 0xb7, 0x58, 0x82, 0x51, 0x81, 0x59, 0x83, 0x33, 0x88, 0x17, 0x2a, 0xea, 0x02, 0x16, + 0x14, 0xb2, 0xe7, 0x12, 0x49, 0x4c, 0x4b, 0xcb, 0xcc, 0xc9, 0x4c, 0x2c, 0x49, 0x8d, 0x2f, 0x48, + 0x2d, 0x4a, 0x4e, 0xcd, 0x2b, 0x49, 0x4c, 0x4f, 0x95, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x74, 0xe2, + 0x39, 0x71, 0x4f, 0x9e, 0xe1, 0xd6, 0x3d, 0x79, 0x96, 0xd0, 0xcc, 0xbc, 0x92, 0x20, 0x61, 0xb8, + 0xca, 0x00, 0xb8, 0x42, 0x2b, 0xa7, 0x17, 0x0b, 0xe4, 0x19, 0xbb, 0x9e, 0x6f, 0xd0, 0xb2, 0x4c, + 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xca, 0x2c, 0x49, 0x4a, 0x4c, + 0x49, 0x4f, 0x2d, 0x46, 0xb0, 0x92, 0x33, 0x12, 0x33, 0xf3, 0xf4, 0x2b, 0xf4, 0x51, 0xfc, 0x0e, + 0x71, 0xab, 0x53, 0xd8, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, + 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xd9, 0x90, + 0x61, 0x68, 0x49, 0x65, 0x41, 0x6a, 0x31, 0x28, 0x58, 0x93, 0xd8, 0xc0, 0xa1, 0x62, 0x0c, 0x08, + 0x00, 0x00, 0xff, 0xff, 0x6e, 0x8b, 0xb3, 0x7d, 0x71, 0x01, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -101,6 +118,17 @@ func (this *Params) Equal(that interface{}) bool { } else if this == nil { return false } + if len(this.AllowedDenoms) != len(that1.AllowedDenoms) { + return false + } + for i := range this.AllowedDenoms { + if this.AllowedDenoms[i] != that1.AllowedDenoms[i] { + return false + } + } + if !this.AffiliatePercentage.Equal(that1.AffiliatePercentage) { + return false + } return true } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -123,6 +151,25 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size := m.AffiliatePercentage.Size() + i -= size + if _, err := m.AffiliatePercentage.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.AllowedDenoms) > 0 { + for iNdEx := len(m.AllowedDenoms) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AllowedDenoms[iNdEx]) + copy(dAtA[i:], m.AllowedDenoms[iNdEx]) + i = encodeVarintParams(dAtA, i, uint64(len(m.AllowedDenoms[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } return len(dAtA) - i, nil } @@ -143,6 +190,14 @@ func (m *Params) Size() (n int) { } var l int _ = l + if len(m.AllowedDenoms) > 0 { + for _, s := range m.AllowedDenoms { + l = len(s) + n += 1 + l + sovParams(uint64(l)) + } + } + l = m.AffiliatePercentage.Size() + n += 1 + l + sovParams(uint64(l)) return n } @@ -181,6 +236,72 @@ func (m *Params) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowedDenoms", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AllowedDenoms = append(m.AllowedDenoms, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AffiliatePercentage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AffiliatePercentage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/x/tokenization/types/v29/permissions.pb.go b/x/tokenization/types/v29/permissions.pb.go new file mode 100644 index 00000000..254a1059 --- /dev/null +++ b/x/tokenization/types/v29/permissions.pb.go @@ -0,0 +1,3874 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/permissions.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// CollectionPermissions defines the permissions for the collection (i.e., what the manager can and cannot do). +// +// There are three types of permissions for a collection: ActionPermission, TokenIdsActionPermission, and CollectionApprovalPermission. +// +// The permission type allows fine-grained access control for each action. +// - ActionPermission: defines when the manager can perform an action or update a field. +// - TokenIdsActionPermission: defines when the manager can perform an action for specific tokens +// - CollectionApprovalPermission: defines when the manager can update the transferability of the collection and what transfers can be updated vs. locked. +// +// Note there are a few different times here which could get confusing: +// - permanentlyPermitted/ForbiddenTimes - the times that a permission can be performed +// - transferTimes - the times that a transfer occurs +// - ownershipTimes - the times when a token is owned by a user +// +// The permitted/permanentlyForbiddenTimes are used to determine when a permission can be executed. +// Once a time is set to be permitted or forbidden, it is PERMANENT and cannot be changed. +// If a time is not set to be permitted or forbidden, it is considered NEUTRAL and can be updated but is ALLOWED by default. +// +// IMPORTANT: We take first-match only for the permissions. This means that if you forbid time T in array index 0 and permit time T in index 1, +// we will only check the first permission (forbid time T) and not the second permission (permit time T). +type CollectionPermissions struct { + // Permissions related to deleting the collection. + CanDeleteCollection []*ActionPermission `protobuf:"bytes,1,rep,name=canDeleteCollection,proto3" json:"canDeleteCollection,omitempty"` + // Permissions related to archiving the collection. + CanArchiveCollection []*ActionPermission `protobuf:"bytes,2,rep,name=canArchiveCollection,proto3" json:"canArchiveCollection,omitempty"` + // Permissions related to updating standards for the collection. + CanUpdateStandards []*ActionPermission `protobuf:"bytes,3,rep,name=canUpdateStandards,proto3" json:"canUpdateStandards,omitempty"` + // Permissions related to updating custom data for the collection. + CanUpdateCustomData []*ActionPermission `protobuf:"bytes,4,rep,name=canUpdateCustomData,proto3" json:"canUpdateCustomData,omitempty"` + // Permissions related to updating the collection's manager. + CanUpdateManager []*ActionPermission `protobuf:"bytes,5,rep,name=canUpdateManager,proto3" json:"canUpdateManager,omitempty"` + // Permissions related to updating the metadata of the collection. + CanUpdateCollectionMetadata []*ActionPermission `protobuf:"bytes,6,rep,name=canUpdateCollectionMetadata,proto3" json:"canUpdateCollectionMetadata,omitempty"` + // Permissions related to creating more tokens for the collection. + CanUpdateValidTokenIds []*TokenIdsActionPermission `protobuf:"bytes,7,rep,name=canUpdateValidTokenIds,proto3" json:"canUpdateValidTokenIds,omitempty"` + // Permissions related to updating token metadata for specific tokens. + CanUpdateTokenMetadata []*TokenIdsActionPermission `protobuf:"bytes,8,rep,name=canUpdateTokenMetadata,proto3" json:"canUpdateTokenMetadata,omitempty"` + // Permissions related to updating collection approvals. + CanUpdateCollectionApprovals []*CollectionApprovalPermission `protobuf:"bytes,9,rep,name=canUpdateCollectionApprovals,proto3" json:"canUpdateCollectionApprovals,omitempty"` + // Permissions related to adding more alias paths to the collection. + CanAddMoreAliasPaths []*ActionPermission `protobuf:"bytes,10,rep,name=canAddMoreAliasPaths,proto3" json:"canAddMoreAliasPaths,omitempty"` + // Permissions related to adding more cosmos coin wrapper paths to the collection. + CanAddMoreCosmosCoinWrapperPaths []*ActionPermission `protobuf:"bytes,11,rep,name=canAddMoreCosmosCoinWrapperPaths,proto3" json:"canAddMoreCosmosCoinWrapperPaths,omitempty"` +} + +func (m *CollectionPermissions) Reset() { *m = CollectionPermissions{} } +func (m *CollectionPermissions) String() string { return proto.CompactTextString(m) } +func (*CollectionPermissions) ProtoMessage() {} +func (*CollectionPermissions) Descriptor() ([]byte, []int) { + return fileDescriptor_5423cbeefe93fa74, []int{0} +} +func (m *CollectionPermissions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CollectionPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CollectionPermissions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CollectionPermissions) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionPermissions.Merge(m, src) +} +func (m *CollectionPermissions) XXX_Size() int { + return m.Size() +} +func (m *CollectionPermissions) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionPermissions.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionPermissions proto.InternalMessageInfo + +func (m *CollectionPermissions) GetCanDeleteCollection() []*ActionPermission { + if m != nil { + return m.CanDeleteCollection + } + return nil +} + +func (m *CollectionPermissions) GetCanArchiveCollection() []*ActionPermission { + if m != nil { + return m.CanArchiveCollection + } + return nil +} + +func (m *CollectionPermissions) GetCanUpdateStandards() []*ActionPermission { + if m != nil { + return m.CanUpdateStandards + } + return nil +} + +func (m *CollectionPermissions) GetCanUpdateCustomData() []*ActionPermission { + if m != nil { + return m.CanUpdateCustomData + } + return nil +} + +func (m *CollectionPermissions) GetCanUpdateManager() []*ActionPermission { + if m != nil { + return m.CanUpdateManager + } + return nil +} + +func (m *CollectionPermissions) GetCanUpdateCollectionMetadata() []*ActionPermission { + if m != nil { + return m.CanUpdateCollectionMetadata + } + return nil +} + +func (m *CollectionPermissions) GetCanUpdateValidTokenIds() []*TokenIdsActionPermission { + if m != nil { + return m.CanUpdateValidTokenIds + } + return nil +} + +func (m *CollectionPermissions) GetCanUpdateTokenMetadata() []*TokenIdsActionPermission { + if m != nil { + return m.CanUpdateTokenMetadata + } + return nil +} + +func (m *CollectionPermissions) GetCanUpdateCollectionApprovals() []*CollectionApprovalPermission { + if m != nil { + return m.CanUpdateCollectionApprovals + } + return nil +} + +func (m *CollectionPermissions) GetCanAddMoreAliasPaths() []*ActionPermission { + if m != nil { + return m.CanAddMoreAliasPaths + } + return nil +} + +func (m *CollectionPermissions) GetCanAddMoreCosmosCoinWrapperPaths() []*ActionPermission { + if m != nil { + return m.CanAddMoreCosmosCoinWrapperPaths + } + return nil +} + +// UserPermissions defines the permissions for the user about their approvals (i.e., what the user can and cannot do). +// +// See CollectionPermissions for more details on the different types of permissions. +// +// canUpdateOutgoingApprovals and canUpdateOutgoingApprovals follow the same as the canUpdateCollectionApprovals in CollectionPermissions, +// but certain fields are removed because they are not relevant to the user. +type UserPermissions struct { + // Permissions related to updating the user's approved outgoing transfers. + CanUpdateOutgoingApprovals []*UserOutgoingApprovalPermission `protobuf:"bytes,1,rep,name=canUpdateOutgoingApprovals,proto3" json:"canUpdateOutgoingApprovals,omitempty"` + // Permissions related to updating the user's approved incoming transfers. + CanUpdateIncomingApprovals []*UserIncomingApprovalPermission `protobuf:"bytes,2,rep,name=canUpdateIncomingApprovals,proto3" json:"canUpdateIncomingApprovals,omitempty"` + // Permissions related to updating auto-approval settings for self-initiated outgoing transfers (whether they are allowed by default). + CanUpdateAutoApproveSelfInitiatedOutgoingTransfers []*ActionPermission `protobuf:"bytes,3,rep,name=canUpdateAutoApproveSelfInitiatedOutgoingTransfers,proto3" json:"canUpdateAutoApproveSelfInitiatedOutgoingTransfers,omitempty"` + // Permissions related to updating auto-approval settings for self-initiated incoming transfers (whether they are allowed by default). + CanUpdateAutoApproveSelfInitiatedIncomingTransfers []*ActionPermission `protobuf:"bytes,4,rep,name=canUpdateAutoApproveSelfInitiatedIncomingTransfers,proto3" json:"canUpdateAutoApproveSelfInitiatedIncomingTransfers,omitempty"` + // Permissions related to updating auto-approval settings for all incoming transfers (whether they are allowed by default). + CanUpdateAutoApproveAllIncomingTransfers []*ActionPermission `protobuf:"bytes,5,rep,name=canUpdateAutoApproveAllIncomingTransfers,proto3" json:"canUpdateAutoApproveAllIncomingTransfers,omitempty"` +} + +func (m *UserPermissions) Reset() { *m = UserPermissions{} } +func (m *UserPermissions) String() string { return proto.CompactTextString(m) } +func (*UserPermissions) ProtoMessage() {} +func (*UserPermissions) Descriptor() ([]byte, []int) { + return fileDescriptor_5423cbeefe93fa74, []int{1} +} +func (m *UserPermissions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserPermissions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserPermissions) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserPermissions.Merge(m, src) +} +func (m *UserPermissions) XXX_Size() int { + return m.Size() +} +func (m *UserPermissions) XXX_DiscardUnknown() { + xxx_messageInfo_UserPermissions.DiscardUnknown(m) +} + +var xxx_messageInfo_UserPermissions proto.InternalMessageInfo + +func (m *UserPermissions) GetCanUpdateOutgoingApprovals() []*UserOutgoingApprovalPermission { + if m != nil { + return m.CanUpdateOutgoingApprovals + } + return nil +} + +func (m *UserPermissions) GetCanUpdateIncomingApprovals() []*UserIncomingApprovalPermission { + if m != nil { + return m.CanUpdateIncomingApprovals + } + return nil +} + +func (m *UserPermissions) GetCanUpdateAutoApproveSelfInitiatedOutgoingTransfers() []*ActionPermission { + if m != nil { + return m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers + } + return nil +} + +func (m *UserPermissions) GetCanUpdateAutoApproveSelfInitiatedIncomingTransfers() []*ActionPermission { + if m != nil { + return m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers + } + return nil +} + +func (m *UserPermissions) GetCanUpdateAutoApproveAllIncomingTransfers() []*ActionPermission { + if m != nil { + return m.CanUpdateAutoApproveAllIncomingTransfers + } + return nil +} + +// CollectionApprovalPermission defines what collection approved transfers can be updated vs. are locked. +// +// Each transfer is broken down to a (from, to, initiatedBy, transferTime, tokenId) tuple. +// For a transfer to match, we need to match ALL of the fields in the combination. +// These are determined by the fromListId, toListId, initiatedByListId, transferTimes, tokenIds fields. +// AddressLists are used for (from, to, initiatedBy) which are a permanent list of addresses identified by an ID (see AddressLists). +// +// permanentlyPermitted/ForbiddenTimes: when can the manager execute this permission? +// +// Ex: Let's say we are updating the transferability for the transfer tuple ("AllWithoutMint", "AllWithoutMint", "AllWithoutMint", 10, 1000). +// We would check to find the FIRST CollectionApprovalPermission that matches this combination. +// If we find a match, we would check the permitted/forbidden times to see if we can execute this permission (default is ALLOWED). +// +// Ex: So if you wanted to freeze the transferability to enforce that token ID 1 will always be transferable, you could set +// the combination ("AllWithoutMint", "AllWithoutMint", "AllWithoutMint", "All Transfer Times", 1) to always be forbidden. +type CollectionApprovalPermission struct { + // Identifier for the sender list. + FromListId string `protobuf:"bytes,1,opt,name=fromListId,proto3" json:"fromListId,omitempty"` + // Identifier for the recipient list. + ToListId string `protobuf:"bytes,2,opt,name=toListId,proto3" json:"toListId,omitempty"` + // Identifier for the initiator list (who is approved?). + InitiatedByListId string `protobuf:"bytes,3,opt,name=initiatedByListId,proto3" json:"initiatedByListId,omitempty"` + // Specifies the times when the transfer can occur. + TransferTimes []*UintRange `protobuf:"bytes,4,rep,name=transferTimes,proto3" json:"transferTimes,omitempty"` + // Specifies the token IDs involved in the transfer. + TokenIds []*UintRange `protobuf:"bytes,5,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` + // Specifies the ownership times for the tokens in the transfer. + OwnershipTimes []*UintRange `protobuf:"bytes,6,rep,name=ownershipTimes,proto3" json:"ownershipTimes,omitempty"` + // Identifier for the approvalId. You can use "All" or "!approvalId" for shorthand. + // If you use "All", this approval will match to all approvalIds. + // If you use "!approvalId", this approval will match to all approvalIds except for approvalId. + // If you use "approvalId", this approval will match to only the specified approvalId and fail on all others. + ApprovalId string `protobuf:"bytes,7,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + PermanentlyPermittedTimes []*UintRange `protobuf:"bytes,8,rep,name=permanentlyPermittedTimes,proto3" json:"permanentlyPermittedTimes,omitempty"` + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + PermanentlyForbiddenTimes []*UintRange `protobuf:"bytes,9,rep,name=permanentlyForbiddenTimes,proto3" json:"permanentlyForbiddenTimes,omitempty"` +} + +func (m *CollectionApprovalPermission) Reset() { *m = CollectionApprovalPermission{} } +func (m *CollectionApprovalPermission) String() string { return proto.CompactTextString(m) } +func (*CollectionApprovalPermission) ProtoMessage() {} +func (*CollectionApprovalPermission) Descriptor() ([]byte, []int) { + return fileDescriptor_5423cbeefe93fa74, []int{2} +} +func (m *CollectionApprovalPermission) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CollectionApprovalPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CollectionApprovalPermission.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CollectionApprovalPermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionApprovalPermission.Merge(m, src) +} +func (m *CollectionApprovalPermission) XXX_Size() int { + return m.Size() +} +func (m *CollectionApprovalPermission) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionApprovalPermission.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionApprovalPermission proto.InternalMessageInfo + +func (m *CollectionApprovalPermission) GetFromListId() string { + if m != nil { + return m.FromListId + } + return "" +} + +func (m *CollectionApprovalPermission) GetToListId() string { + if m != nil { + return m.ToListId + } + return "" +} + +func (m *CollectionApprovalPermission) GetInitiatedByListId() string { + if m != nil { + return m.InitiatedByListId + } + return "" +} + +func (m *CollectionApprovalPermission) GetTransferTimes() []*UintRange { + if m != nil { + return m.TransferTimes + } + return nil +} + +func (m *CollectionApprovalPermission) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +func (m *CollectionApprovalPermission) GetOwnershipTimes() []*UintRange { + if m != nil { + return m.OwnershipTimes + } + return nil +} + +func (m *CollectionApprovalPermission) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *CollectionApprovalPermission) GetPermanentlyPermittedTimes() []*UintRange { + if m != nil { + return m.PermanentlyPermittedTimes + } + return nil +} + +func (m *CollectionApprovalPermission) GetPermanentlyForbiddenTimes() []*UintRange { + if m != nil { + return m.PermanentlyForbiddenTimes + } + return nil +} + +// UserOutgoingApprovalPermission defines the permissions for updating the user's approved outgoing transfers. +type UserOutgoingApprovalPermission struct { + // Identifier for the recipient list. + ToListId string `protobuf:"bytes,1,opt,name=toListId,proto3" json:"toListId,omitempty"` + // Identifier for the initiator list (who is approved?). + InitiatedByListId string `protobuf:"bytes,2,opt,name=initiatedByListId,proto3" json:"initiatedByListId,omitempty"` + // Specifies the times when the transfer can occur. + TransferTimes []*UintRange `protobuf:"bytes,3,rep,name=transferTimes,proto3" json:"transferTimes,omitempty"` + // Specifies the token IDs involved in the transfer. + TokenIds []*UintRange `protobuf:"bytes,4,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` + // Specifies the ownership times for the tokens in the transfer. + OwnershipTimes []*UintRange `protobuf:"bytes,5,rep,name=ownershipTimes,proto3" json:"ownershipTimes,omitempty"` + // Identifier for the approvalId. You can use "All" or "!approvalId" for shorthand. + // If you use "All", this approval will match to all approvalIds. + // If you use "!approvalId", this approval will match to all approvalIds except for approvalId. + // If you use "approvalId", this approval will match to only the specified approvalId and fail on all others. + ApprovalId string `protobuf:"bytes,6,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + PermanentlyPermittedTimes []*UintRange `protobuf:"bytes,7,rep,name=permanentlyPermittedTimes,proto3" json:"permanentlyPermittedTimes,omitempty"` + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + PermanentlyForbiddenTimes []*UintRange `protobuf:"bytes,8,rep,name=permanentlyForbiddenTimes,proto3" json:"permanentlyForbiddenTimes,omitempty"` +} + +func (m *UserOutgoingApprovalPermission) Reset() { *m = UserOutgoingApprovalPermission{} } +func (m *UserOutgoingApprovalPermission) String() string { return proto.CompactTextString(m) } +func (*UserOutgoingApprovalPermission) ProtoMessage() {} +func (*UserOutgoingApprovalPermission) Descriptor() ([]byte, []int) { + return fileDescriptor_5423cbeefe93fa74, []int{3} +} +func (m *UserOutgoingApprovalPermission) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserOutgoingApprovalPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserOutgoingApprovalPermission.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserOutgoingApprovalPermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserOutgoingApprovalPermission.Merge(m, src) +} +func (m *UserOutgoingApprovalPermission) XXX_Size() int { + return m.Size() +} +func (m *UserOutgoingApprovalPermission) XXX_DiscardUnknown() { + xxx_messageInfo_UserOutgoingApprovalPermission.DiscardUnknown(m) +} + +var xxx_messageInfo_UserOutgoingApprovalPermission proto.InternalMessageInfo + +func (m *UserOutgoingApprovalPermission) GetToListId() string { + if m != nil { + return m.ToListId + } + return "" +} + +func (m *UserOutgoingApprovalPermission) GetInitiatedByListId() string { + if m != nil { + return m.InitiatedByListId + } + return "" +} + +func (m *UserOutgoingApprovalPermission) GetTransferTimes() []*UintRange { + if m != nil { + return m.TransferTimes + } + return nil +} + +func (m *UserOutgoingApprovalPermission) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +func (m *UserOutgoingApprovalPermission) GetOwnershipTimes() []*UintRange { + if m != nil { + return m.OwnershipTimes + } + return nil +} + +func (m *UserOutgoingApprovalPermission) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *UserOutgoingApprovalPermission) GetPermanentlyPermittedTimes() []*UintRange { + if m != nil { + return m.PermanentlyPermittedTimes + } + return nil +} + +func (m *UserOutgoingApprovalPermission) GetPermanentlyForbiddenTimes() []*UintRange { + if m != nil { + return m.PermanentlyForbiddenTimes + } + return nil +} + +// UserIncomingApprovalPermission defines the permissions for updating the user's approved incoming transfers. +// +// See CollectionApprovalPermission for more details. This is equivalent without the toListId field because that is always the user. +type UserIncomingApprovalPermission struct { + // Identifier for the sender list. + FromListId string `protobuf:"bytes,1,opt,name=fromListId,proto3" json:"fromListId,omitempty"` + // Identifier for the initiator list (who is approved?). + InitiatedByListId string `protobuf:"bytes,2,opt,name=initiatedByListId,proto3" json:"initiatedByListId,omitempty"` + // Specifies the times when the transfer can occur. + TransferTimes []*UintRange `protobuf:"bytes,3,rep,name=transferTimes,proto3" json:"transferTimes,omitempty"` + // Specifies the token IDs involved in the transfer. + TokenIds []*UintRange `protobuf:"bytes,4,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` + // Specifies the ownership times for the tokens in the transfer. + OwnershipTimes []*UintRange `protobuf:"bytes,5,rep,name=ownershipTimes,proto3" json:"ownershipTimes,omitempty"` + // Identifier for the approvalId. You can use "All" or "!approvalId" for shorthand. + // If you use "All", this approval will match to all approvalIds. + // If you use "!approvalId", this approval will match to all approvalIds except for approvalId. + // If you use "approvalId", this approval will match to only the specified approvalId and fail on all others. + ApprovalId string `protobuf:"bytes,6,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + PermanentlyPermittedTimes []*UintRange `protobuf:"bytes,7,rep,name=permanentlyPermittedTimes,proto3" json:"permanentlyPermittedTimes,omitempty"` + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + PermanentlyForbiddenTimes []*UintRange `protobuf:"bytes,8,rep,name=permanentlyForbiddenTimes,proto3" json:"permanentlyForbiddenTimes,omitempty"` +} + +func (m *UserIncomingApprovalPermission) Reset() { *m = UserIncomingApprovalPermission{} } +func (m *UserIncomingApprovalPermission) String() string { return proto.CompactTextString(m) } +func (*UserIncomingApprovalPermission) ProtoMessage() {} +func (*UserIncomingApprovalPermission) Descriptor() ([]byte, []int) { + return fileDescriptor_5423cbeefe93fa74, []int{4} +} +func (m *UserIncomingApprovalPermission) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserIncomingApprovalPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserIncomingApprovalPermission.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserIncomingApprovalPermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserIncomingApprovalPermission.Merge(m, src) +} +func (m *UserIncomingApprovalPermission) XXX_Size() int { + return m.Size() +} +func (m *UserIncomingApprovalPermission) XXX_DiscardUnknown() { + xxx_messageInfo_UserIncomingApprovalPermission.DiscardUnknown(m) +} + +var xxx_messageInfo_UserIncomingApprovalPermission proto.InternalMessageInfo + +func (m *UserIncomingApprovalPermission) GetFromListId() string { + if m != nil { + return m.FromListId + } + return "" +} + +func (m *UserIncomingApprovalPermission) GetInitiatedByListId() string { + if m != nil { + return m.InitiatedByListId + } + return "" +} + +func (m *UserIncomingApprovalPermission) GetTransferTimes() []*UintRange { + if m != nil { + return m.TransferTimes + } + return nil +} + +func (m *UserIncomingApprovalPermission) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +func (m *UserIncomingApprovalPermission) GetOwnershipTimes() []*UintRange { + if m != nil { + return m.OwnershipTimes + } + return nil +} + +func (m *UserIncomingApprovalPermission) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *UserIncomingApprovalPermission) GetPermanentlyPermittedTimes() []*UintRange { + if m != nil { + return m.PermanentlyPermittedTimes + } + return nil +} + +func (m *UserIncomingApprovalPermission) GetPermanentlyForbiddenTimes() []*UintRange { + if m != nil { + return m.PermanentlyForbiddenTimes + } + return nil +} + +// TokenIdsActionPermission defines the permissions for performing an action for specific tokens. +// Currently, this is only used for creating new tokens. +// +// Ex: If you want to lock the ability to create new tokens for tokenIds [1,2] at ownershipTimes 1/1/2020 - 1/1/2021, +// you could set the combination (tokenIds: [1,2], ownershipTimes: [1/1/2020 - 1/1/2021]) to always be forbidden. +type TokenIdsActionPermission struct { + // Specifies the token IDs involved in the transfer. + TokenIds []*UintRange `protobuf:"bytes,1,rep,name=tokenIds,proto3" json:"tokenIds,omitempty"` + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + PermanentlyPermittedTimes []*UintRange `protobuf:"bytes,2,rep,name=permanentlyPermittedTimes,proto3" json:"permanentlyPermittedTimes,omitempty"` + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + PermanentlyForbiddenTimes []*UintRange `protobuf:"bytes,3,rep,name=permanentlyForbiddenTimes,proto3" json:"permanentlyForbiddenTimes,omitempty"` +} + +func (m *TokenIdsActionPermission) Reset() { *m = TokenIdsActionPermission{} } +func (m *TokenIdsActionPermission) String() string { return proto.CompactTextString(m) } +func (*TokenIdsActionPermission) ProtoMessage() {} +func (*TokenIdsActionPermission) Descriptor() ([]byte, []int) { + return fileDescriptor_5423cbeefe93fa74, []int{5} +} +func (m *TokenIdsActionPermission) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenIdsActionPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenIdsActionPermission.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TokenIdsActionPermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenIdsActionPermission.Merge(m, src) +} +func (m *TokenIdsActionPermission) XXX_Size() int { + return m.Size() +} +func (m *TokenIdsActionPermission) XXX_DiscardUnknown() { + xxx_messageInfo_TokenIdsActionPermission.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenIdsActionPermission proto.InternalMessageInfo + +func (m *TokenIdsActionPermission) GetTokenIds() []*UintRange { + if m != nil { + return m.TokenIds + } + return nil +} + +func (m *TokenIdsActionPermission) GetPermanentlyPermittedTimes() []*UintRange { + if m != nil { + return m.PermanentlyPermittedTimes + } + return nil +} + +func (m *TokenIdsActionPermission) GetPermanentlyForbiddenTimes() []*UintRange { + if m != nil { + return m.PermanentlyForbiddenTimes + } + return nil +} + +// ActionPermission defines the permissions for performing an action. +// +// This is simple and straightforward as the only thing we need to check is the permitted/forbidden times. +type ActionPermission struct { + // Specifies the times when this permission is permitted. Can not overlap with permanentlyForbiddenTimes. + PermanentlyPermittedTimes []*UintRange `protobuf:"bytes,1,rep,name=permanentlyPermittedTimes,proto3" json:"permanentlyPermittedTimes,omitempty"` + // Specifies the times when this permission is forbidden. Can not overlap with permanentlyPermittedTimes. + PermanentlyForbiddenTimes []*UintRange `protobuf:"bytes,2,rep,name=permanentlyForbiddenTimes,proto3" json:"permanentlyForbiddenTimes,omitempty"` +} + +func (m *ActionPermission) Reset() { *m = ActionPermission{} } +func (m *ActionPermission) String() string { return proto.CompactTextString(m) } +func (*ActionPermission) ProtoMessage() {} +func (*ActionPermission) Descriptor() ([]byte, []int) { + return fileDescriptor_5423cbeefe93fa74, []int{6} +} +func (m *ActionPermission) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActionPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActionPermission.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ActionPermission) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActionPermission.Merge(m, src) +} +func (m *ActionPermission) XXX_Size() int { + return m.Size() +} +func (m *ActionPermission) XXX_DiscardUnknown() { + xxx_messageInfo_ActionPermission.DiscardUnknown(m) +} + +var xxx_messageInfo_ActionPermission proto.InternalMessageInfo + +func (m *ActionPermission) GetPermanentlyPermittedTimes() []*UintRange { + if m != nil { + return m.PermanentlyPermittedTimes + } + return nil +} + +func (m *ActionPermission) GetPermanentlyForbiddenTimes() []*UintRange { + if m != nil { + return m.PermanentlyForbiddenTimes + } + return nil +} + +func init() { + proto.RegisterType((*CollectionPermissions)(nil), "tokenization.v29.CollectionPermissions") + proto.RegisterType((*UserPermissions)(nil), "tokenization.v29.UserPermissions") + proto.RegisterType((*CollectionApprovalPermission)(nil), "tokenization.v29.CollectionApprovalPermission") + proto.RegisterType((*UserOutgoingApprovalPermission)(nil), "tokenization.v29.UserOutgoingApprovalPermission") + proto.RegisterType((*UserIncomingApprovalPermission)(nil), "tokenization.v29.UserIncomingApprovalPermission") + proto.RegisterType((*TokenIdsActionPermission)(nil), "tokenization.v29.TokenIdsActionPermission") + proto.RegisterType((*ActionPermission)(nil), "tokenization.v29.ActionPermission") +} + +func init() { + proto.RegisterFile("tokenization/v29/permissions.proto", fileDescriptor_5423cbeefe93fa74) +} + +var fileDescriptor_5423cbeefe93fa74 = []byte{ + // 845 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0x4d, 0x6f, 0xeb, 0x44, + 0x14, 0xad, 0xf3, 0xd5, 0x74, 0x9e, 0x80, 0x32, 0x3c, 0x90, 0x5f, 0xde, 0x93, 0xa9, 0x22, 0x16, + 0x15, 0x42, 0x31, 0x0a, 0x0b, 0xf4, 0x24, 0x36, 0x79, 0xa9, 0x90, 0x22, 0x51, 0xa8, 0xd2, 0xb4, + 0x08, 0x36, 0x68, 0xec, 0x99, 0x38, 0x23, 0x9c, 0x19, 0x6b, 0x66, 0x12, 0x08, 0x0b, 0x24, 0x16, + 0x2c, 0xd8, 0x21, 0xfe, 0x40, 0xd7, 0xfc, 0x93, 0x2e, 0xbb, 0x64, 0x89, 0xda, 0x3f, 0x82, 0xfc, + 0x11, 0x3b, 0xb6, 0x13, 0xc7, 0x21, 0x74, 0x83, 0xde, 0xce, 0x9d, 0xb9, 0xe7, 0x9c, 0x7b, 0x8f, + 0x4e, 0x6f, 0x6c, 0xd0, 0x56, 0xfc, 0x7b, 0xc2, 0xe8, 0x4f, 0x48, 0x51, 0xce, 0xcc, 0x79, 0xf7, + 0xa5, 0xe9, 0x11, 0x31, 0xa5, 0x52, 0x52, 0xce, 0x64, 0xc7, 0x13, 0x5c, 0x71, 0x78, 0xbc, 0x5a, + 0xd3, 0x99, 0x77, 0x5f, 0xb6, 0x9e, 0x39, 0x9c, 0x3b, 0x2e, 0x31, 0x83, 0x7b, 0x6b, 0x36, 0x36, + 0x11, 0x5b, 0x84, 0xc5, 0xad, 0xf7, 0x73, 0x84, 0x16, 0x72, 0x11, 0xb3, 0x49, 0xc4, 0xd6, 0xfa, + 0x20, 0x57, 0x80, 0x30, 0x16, 0x44, 0xca, 0xef, 0x5c, 0x2a, 0xd5, 0xb2, 0xea, 0xa9, 0xc3, 0x1d, + 0x1e, 0x3c, 0x9a, 0xfe, 0x53, 0x78, 0xda, 0xfe, 0xb3, 0x09, 0xde, 0xed, 0x73, 0xd7, 0x25, 0xb6, + 0x0f, 0xbe, 0x48, 0x3a, 0x85, 0x23, 0xf0, 0x8e, 0x8d, 0xd8, 0x19, 0x71, 0x89, 0x22, 0x49, 0x85, + 0xae, 0x9d, 0x54, 0x4f, 0x9f, 0x74, 0xdb, 0x9d, 0xec, 0x04, 0x9d, 0x5e, 0x86, 0x61, 0xb8, 0x0e, + 0x0e, 0xaf, 0xc1, 0x53, 0x1b, 0xb1, 0x9e, 0xb0, 0x27, 0x74, 0xbe, 0x4a, 0x5b, 0x29, 0x4d, 0xbb, + 0x16, 0x0f, 0x87, 0x00, 0xda, 0x88, 0x5d, 0x79, 0x18, 0x29, 0x72, 0xa9, 0x10, 0xc3, 0x48, 0x60, + 0xa9, 0x57, 0x4b, 0xb3, 0xae, 0x41, 0x47, 0x0e, 0x84, 0xa7, 0xfd, 0x99, 0x54, 0x7c, 0x7a, 0x86, + 0x14, 0xd2, 0x6b, 0x3b, 0x39, 0x90, 0x85, 0xc3, 0x2f, 0xc1, 0x71, 0x7c, 0x7c, 0x8e, 0x18, 0x72, + 0x88, 0xd0, 0xeb, 0xa5, 0x29, 0x73, 0x58, 0x88, 0xc1, 0xf3, 0x44, 0x26, 0x36, 0xe4, 0x9c, 0x28, + 0x84, 0xfd, 0x6e, 0x1b, 0xa5, 0xa9, 0x8b, 0x68, 0xa0, 0x05, 0xde, 0x8b, 0xaf, 0xaf, 0x91, 0x4b, + 0xf1, 0xc8, 0xe7, 0x1b, 0x60, 0xa9, 0x1f, 0x06, 0x02, 0x1f, 0xe6, 0x05, 0x96, 0x15, 0x39, 0xa1, + 0x0d, 0x4c, 0x29, 0x8d, 0xe0, 0x30, 0x1e, 0xa2, 0xb9, 0x87, 0x46, 0x8a, 0x09, 0x0a, 0xf0, 0x62, + 0xcd, 0x98, 0x3d, 0xcf, 0x13, 0x7c, 0x8e, 0x5c, 0xa9, 0x1f, 0x05, 0x4a, 0x9d, 0xbc, 0x52, 0xbe, + 0x78, 0x45, 0xad, 0x90, 0x73, 0x99, 0x79, 0x8c, 0xcf, 0xb9, 0x20, 0x3d, 0x97, 0x22, 0x79, 0x81, + 0xd4, 0x44, 0xea, 0x60, 0xb7, 0xcc, 0x67, 0xf1, 0x90, 0x81, 0x93, 0xe4, 0xbc, 0xcf, 0xe5, 0x94, + 0xcb, 0x3e, 0xa7, 0xec, 0x6b, 0x81, 0x3c, 0x8f, 0x88, 0x50, 0xe3, 0x49, 0x69, 0x8d, 0xad, 0x5c, + 0xed, 0x9b, 0x3a, 0x78, 0xeb, 0x4a, 0x12, 0xb1, 0xba, 0x25, 0x3c, 0xd0, 0x8a, 0x67, 0xff, 0x6a, + 0xa6, 0x1c, 0x4e, 0x99, 0x93, 0xb8, 0x19, 0x2e, 0x8b, 0x8f, 0xf3, 0xea, 0x3e, 0x4d, 0xb6, 0x7c, + 0xa5, 0x97, 0x02, 0xce, 0x94, 0xe2, 0x80, 0xd9, 0x7c, 0x9a, 0x52, 0xac, 0x14, 0x29, 0x66, 0xcb, + 0xd7, 0x2a, 0xe6, 0x38, 0xe1, 0x1f, 0x1a, 0xe8, 0xc6, 0xd7, 0xbd, 0x99, 0xe2, 0xe1, 0x15, 0xb9, + 0x24, 0xee, 0x78, 0xc0, 0xa8, 0xa2, 0x48, 0x11, 0xbc, 0x6c, 0x74, 0x24, 0x10, 0x93, 0x63, 0x22, + 0x76, 0x59, 0x3e, 0xff, 0x82, 0xbd, 0x5c, 0x53, 0xcb, 0x59, 0x92, 0xa6, 0x6a, 0xff, 0x61, 0x53, + 0x39, 0x76, 0xf8, 0x33, 0x38, 0x5d, 0x87, 0xea, 0xb9, 0x6e, 0xbe, 0x93, 0xf2, 0x3b, 0xaf, 0x34, + 0x67, 0xfb, 0xa6, 0x06, 0x5e, 0x14, 0xfd, 0xa3, 0x42, 0x03, 0x80, 0xb1, 0xe0, 0xd3, 0x2f, 0xa8, + 0x54, 0x03, 0xac, 0x6b, 0x27, 0xda, 0xe9, 0xd1, 0x70, 0xe5, 0x04, 0xb6, 0x40, 0x53, 0xf1, 0xe8, + 0xb6, 0x12, 0xdc, 0xc6, 0x7f, 0xc3, 0x8f, 0xc0, 0xdb, 0x74, 0x39, 0xfa, 0xab, 0x45, 0x54, 0x54, + 0x0d, 0x8a, 0xf2, 0x17, 0xb0, 0x07, 0xde, 0x50, 0x51, 0x5f, 0x23, 0x3a, 0x25, 0x4b, 0xe7, 0x9f, + 0xaf, 0x49, 0x26, 0x65, 0x6a, 0x88, 0x98, 0x43, 0x86, 0x69, 0x04, 0xfc, 0xd4, 0x6f, 0x26, 0xda, + 0xb2, 0xf5, 0xed, 0xe8, 0xb8, 0x18, 0xf6, 0xc1, 0x9b, 0xfc, 0x07, 0x46, 0x84, 0x9c, 0x50, 0x2f, + 0x14, 0x6f, 0x6c, 0x87, 0x67, 0x20, 0xbe, 0x55, 0x28, 0x32, 0x70, 0x80, 0xf5, 0xc3, 0xd0, 0xaa, + 0xe4, 0x04, 0x7e, 0x03, 0x9e, 0xf9, 0x2f, 0x36, 0x88, 0x11, 0xa6, 0xdc, 0x45, 0xe0, 0xb1, 0x52, + 0x04, 0x87, 0x7a, 0xcd, 0xed, 0x7a, 0x9b, 0xd1, 0x19, 0xea, 0xcf, 0xb9, 0xb0, 0x28, 0xc6, 0x84, + 0x85, 0xd4, 0x47, 0xbb, 0x51, 0xa7, 0xd1, 0xed, 0x5f, 0x6a, 0xc0, 0x28, 0x5e, 0x3e, 0xa9, 0x0c, + 0x68, 0x65, 0x32, 0x50, 0x29, 0x9d, 0x81, 0xea, 0x5e, 0x19, 0xa8, 0xed, 0x97, 0x81, 0xfa, 0xbe, + 0x19, 0x68, 0xec, 0x96, 0x81, 0xc3, 0xc7, 0xcb, 0x40, 0x73, 0xaf, 0x0c, 0xfc, 0x1a, 0x65, 0x60, + 0xf3, 0xcf, 0xc1, 0xd6, 0x3d, 0xf1, 0x3a, 0x07, 0xff, 0x83, 0x1c, 0xfc, 0x56, 0x01, 0xfa, 0xa6, + 0x17, 0xc8, 0x94, 0xe1, 0xda, 0x2e, 0x86, 0x17, 0x7a, 0x51, 0x79, 0x3c, 0x2f, 0xaa, 0x7b, 0x79, + 0x71, 0xab, 0x81, 0xe3, 0x9c, 0x07, 0x85, 0xa3, 0x68, 0x8f, 0x37, 0x4a, 0x65, 0x9f, 0x51, 0x5e, + 0x5d, 0xdf, 0xde, 0x1b, 0xda, 0xdd, 0xbd, 0xa1, 0xfd, 0x7d, 0x6f, 0x68, 0xbf, 0x3f, 0x18, 0x07, + 0x77, 0x0f, 0xc6, 0xc1, 0x5f, 0x0f, 0xc6, 0xc1, 0xb7, 0x9f, 0x39, 0x54, 0x4d, 0x66, 0x56, 0xc7, + 0xe6, 0x53, 0xd3, 0xa2, 0xca, 0x42, 0xd8, 0x21, 0x32, 0x79, 0xb2, 0x27, 0x88, 0x32, 0xf3, 0x47, + 0x33, 0xf5, 0x39, 0xad, 0x16, 0x1e, 0x91, 0xfe, 0x47, 0xb5, 0xd5, 0x08, 0xbe, 0x98, 0x3f, 0xf9, + 0x27, 0x00, 0x00, 0xff, 0xff, 0x87, 0xec, 0x73, 0xb5, 0xe1, 0x0f, 0x00, 0x00, +} + +func (m *CollectionPermissions) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CollectionPermissions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CollectionPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanAddMoreCosmosCoinWrapperPaths) > 0 { + for iNdEx := len(m.CanAddMoreCosmosCoinWrapperPaths) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanAddMoreCosmosCoinWrapperPaths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.CanAddMoreAliasPaths) > 0 { + for iNdEx := len(m.CanAddMoreAliasPaths) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanAddMoreAliasPaths[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.CanUpdateCollectionApprovals) > 0 { + for iNdEx := len(m.CanUpdateCollectionApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateCollectionApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.CanUpdateTokenMetadata) > 0 { + for iNdEx := len(m.CanUpdateTokenMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateTokenMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.CanUpdateValidTokenIds) > 0 { + for iNdEx := len(m.CanUpdateValidTokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateValidTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.CanUpdateCollectionMetadata) > 0 { + for iNdEx := len(m.CanUpdateCollectionMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateCollectionMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.CanUpdateManager) > 0 { + for iNdEx := len(m.CanUpdateManager) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateManager[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.CanUpdateCustomData) > 0 { + for iNdEx := len(m.CanUpdateCustomData) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateCustomData[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.CanUpdateStandards) > 0 { + for iNdEx := len(m.CanUpdateStandards) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateStandards[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.CanArchiveCollection) > 0 { + for iNdEx := len(m.CanArchiveCollection) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanArchiveCollection[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.CanDeleteCollection) > 0 { + for iNdEx := len(m.CanDeleteCollection) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanDeleteCollection[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *UserPermissions) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserPermissions) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanUpdateAutoApproveAllIncomingTransfers) > 0 { + for iNdEx := len(m.CanUpdateAutoApproveAllIncomingTransfers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateAutoApproveAllIncomingTransfers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers) > 0 { + for iNdEx := len(m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers) > 0 { + for iNdEx := len(m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.CanUpdateIncomingApprovals) > 0 { + for iNdEx := len(m.CanUpdateIncomingApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateIncomingApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.CanUpdateOutgoingApprovals) > 0 { + for iNdEx := len(m.CanUpdateOutgoingApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateOutgoingApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *CollectionApprovalPermission) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CollectionApprovalPermission) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CollectionApprovalPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PermanentlyForbiddenTimes) > 0 { + for iNdEx := len(m.PermanentlyForbiddenTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyForbiddenTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.PermanentlyPermittedTimes) > 0 { + for iNdEx := len(m.PermanentlyPermittedTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyPermittedTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0x3a + } + if len(m.OwnershipTimes) > 0 { + for iNdEx := len(m.OwnershipTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OwnershipTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TransferTimes) > 0 { + for iNdEx := len(m.TransferTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TransferTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.InitiatedByListId) > 0 { + i -= len(m.InitiatedByListId) + copy(dAtA[i:], m.InitiatedByListId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.InitiatedByListId))) + i-- + dAtA[i] = 0x1a + } + if len(m.ToListId) > 0 { + i -= len(m.ToListId) + copy(dAtA[i:], m.ToListId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.ToListId))) + i-- + dAtA[i] = 0x12 + } + if len(m.FromListId) > 0 { + i -= len(m.FromListId) + copy(dAtA[i:], m.FromListId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.FromListId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UserOutgoingApprovalPermission) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserOutgoingApprovalPermission) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserOutgoingApprovalPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PermanentlyForbiddenTimes) > 0 { + for iNdEx := len(m.PermanentlyForbiddenTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyForbiddenTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.PermanentlyPermittedTimes) > 0 { + for iNdEx := len(m.PermanentlyPermittedTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyPermittedTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0x32 + } + if len(m.OwnershipTimes) > 0 { + for iNdEx := len(m.OwnershipTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OwnershipTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.TransferTimes) > 0 { + for iNdEx := len(m.TransferTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TransferTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.InitiatedByListId) > 0 { + i -= len(m.InitiatedByListId) + copy(dAtA[i:], m.InitiatedByListId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.InitiatedByListId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ToListId) > 0 { + i -= len(m.ToListId) + copy(dAtA[i:], m.ToListId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.ToListId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UserIncomingApprovalPermission) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserIncomingApprovalPermission) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserIncomingApprovalPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PermanentlyForbiddenTimes) > 0 { + for iNdEx := len(m.PermanentlyForbiddenTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyForbiddenTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.PermanentlyPermittedTimes) > 0 { + for iNdEx := len(m.PermanentlyPermittedTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyPermittedTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0x32 + } + if len(m.OwnershipTimes) > 0 { + for iNdEx := len(m.OwnershipTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OwnershipTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.TransferTimes) > 0 { + for iNdEx := len(m.TransferTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TransferTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.InitiatedByListId) > 0 { + i -= len(m.InitiatedByListId) + copy(dAtA[i:], m.InitiatedByListId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.InitiatedByListId))) + i-- + dAtA[i] = 0x12 + } + if len(m.FromListId) > 0 { + i -= len(m.FromListId) + copy(dAtA[i:], m.FromListId) + i = encodeVarintPermissions(dAtA, i, uint64(len(m.FromListId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TokenIdsActionPermission) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TokenIdsActionPermission) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenIdsActionPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PermanentlyForbiddenTimes) > 0 { + for iNdEx := len(m.PermanentlyForbiddenTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyForbiddenTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.PermanentlyPermittedTimes) > 0 { + for iNdEx := len(m.PermanentlyPermittedTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyPermittedTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.TokenIds) > 0 { + for iNdEx := len(m.TokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ActionPermission) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ActionPermission) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActionPermission) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PermanentlyForbiddenTimes) > 0 { + for iNdEx := len(m.PermanentlyForbiddenTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyForbiddenTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.PermanentlyPermittedTimes) > 0 { + for iNdEx := len(m.PermanentlyPermittedTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PermanentlyPermittedTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPermissions(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintPermissions(dAtA []byte, offset int, v uint64) int { + offset -= sovPermissions(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CollectionPermissions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.CanDeleteCollection) > 0 { + for _, e := range m.CanDeleteCollection { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanArchiveCollection) > 0 { + for _, e := range m.CanArchiveCollection { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateStandards) > 0 { + for _, e := range m.CanUpdateStandards { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateCustomData) > 0 { + for _, e := range m.CanUpdateCustomData { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateManager) > 0 { + for _, e := range m.CanUpdateManager { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateCollectionMetadata) > 0 { + for _, e := range m.CanUpdateCollectionMetadata { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateValidTokenIds) > 0 { + for _, e := range m.CanUpdateValidTokenIds { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateTokenMetadata) > 0 { + for _, e := range m.CanUpdateTokenMetadata { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateCollectionApprovals) > 0 { + for _, e := range m.CanUpdateCollectionApprovals { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanAddMoreAliasPaths) > 0 { + for _, e := range m.CanAddMoreAliasPaths { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanAddMoreCosmosCoinWrapperPaths) > 0 { + for _, e := range m.CanAddMoreCosmosCoinWrapperPaths { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + return n +} + +func (m *UserPermissions) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.CanUpdateOutgoingApprovals) > 0 { + for _, e := range m.CanUpdateOutgoingApprovals { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateIncomingApprovals) > 0 { + for _, e := range m.CanUpdateIncomingApprovals { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers) > 0 { + for _, e := range m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers) > 0 { + for _, e := range m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.CanUpdateAutoApproveAllIncomingTransfers) > 0 { + for _, e := range m.CanUpdateAutoApproveAllIncomingTransfers { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + return n +} + +func (m *CollectionApprovalPermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FromListId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + l = len(m.ToListId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + l = len(m.InitiatedByListId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + if len(m.TransferTimes) > 0 { + for _, e := range m.TransferTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.OwnershipTimes) > 0 { + for _, e := range m.OwnershipTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + if len(m.PermanentlyPermittedTimes) > 0 { + for _, e := range m.PermanentlyPermittedTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.PermanentlyForbiddenTimes) > 0 { + for _, e := range m.PermanentlyForbiddenTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + return n +} + +func (m *UserOutgoingApprovalPermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ToListId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + l = len(m.InitiatedByListId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + if len(m.TransferTimes) > 0 { + for _, e := range m.TransferTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.OwnershipTimes) > 0 { + for _, e := range m.OwnershipTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + if len(m.PermanentlyPermittedTimes) > 0 { + for _, e := range m.PermanentlyPermittedTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.PermanentlyForbiddenTimes) > 0 { + for _, e := range m.PermanentlyForbiddenTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + return n +} + +func (m *UserIncomingApprovalPermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FromListId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + l = len(m.InitiatedByListId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + if len(m.TransferTimes) > 0 { + for _, e := range m.TransferTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.OwnershipTimes) > 0 { + for _, e := range m.OwnershipTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovPermissions(uint64(l)) + } + if len(m.PermanentlyPermittedTimes) > 0 { + for _, e := range m.PermanentlyPermittedTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.PermanentlyForbiddenTimes) > 0 { + for _, e := range m.PermanentlyForbiddenTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + return n +} + +func (m *TokenIdsActionPermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TokenIds) > 0 { + for _, e := range m.TokenIds { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.PermanentlyPermittedTimes) > 0 { + for _, e := range m.PermanentlyPermittedTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.PermanentlyForbiddenTimes) > 0 { + for _, e := range m.PermanentlyForbiddenTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + return n +} + +func (m *ActionPermission) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.PermanentlyPermittedTimes) > 0 { + for _, e := range m.PermanentlyPermittedTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + if len(m.PermanentlyForbiddenTimes) > 0 { + for _, e := range m.PermanentlyForbiddenTimes { + l = e.Size() + n += 1 + l + sovPermissions(uint64(l)) + } + } + return n +} + +func sovPermissions(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPermissions(x uint64) (n int) { + return sovPermissions(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CollectionPermissions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CollectionPermissions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectionPermissions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanDeleteCollection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanDeleteCollection = append(m.CanDeleteCollection, &ActionPermission{}) + if err := m.CanDeleteCollection[len(m.CanDeleteCollection)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanArchiveCollection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanArchiveCollection = append(m.CanArchiveCollection, &ActionPermission{}) + if err := m.CanArchiveCollection[len(m.CanArchiveCollection)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateStandards", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateStandards = append(m.CanUpdateStandards, &ActionPermission{}) + if err := m.CanUpdateStandards[len(m.CanUpdateStandards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateCustomData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateCustomData = append(m.CanUpdateCustomData, &ActionPermission{}) + if err := m.CanUpdateCustomData[len(m.CanUpdateCustomData)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateManager", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateManager = append(m.CanUpdateManager, &ActionPermission{}) + if err := m.CanUpdateManager[len(m.CanUpdateManager)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateCollectionMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateCollectionMetadata = append(m.CanUpdateCollectionMetadata, &ActionPermission{}) + if err := m.CanUpdateCollectionMetadata[len(m.CanUpdateCollectionMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateValidTokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateValidTokenIds = append(m.CanUpdateValidTokenIds, &TokenIdsActionPermission{}) + if err := m.CanUpdateValidTokenIds[len(m.CanUpdateValidTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateTokenMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateTokenMetadata = append(m.CanUpdateTokenMetadata, &TokenIdsActionPermission{}) + if err := m.CanUpdateTokenMetadata[len(m.CanUpdateTokenMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateCollectionApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateCollectionApprovals = append(m.CanUpdateCollectionApprovals, &CollectionApprovalPermission{}) + if err := m.CanUpdateCollectionApprovals[len(m.CanUpdateCollectionApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanAddMoreAliasPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanAddMoreAliasPaths = append(m.CanAddMoreAliasPaths, &ActionPermission{}) + if err := m.CanAddMoreAliasPaths[len(m.CanAddMoreAliasPaths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanAddMoreCosmosCoinWrapperPaths", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanAddMoreCosmosCoinWrapperPaths = append(m.CanAddMoreCosmosCoinWrapperPaths, &ActionPermission{}) + if err := m.CanAddMoreCosmosCoinWrapperPaths[len(m.CanAddMoreCosmosCoinWrapperPaths)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPermissions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPermissions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserPermissions) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserPermissions: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserPermissions: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateOutgoingApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateOutgoingApprovals = append(m.CanUpdateOutgoingApprovals, &UserOutgoingApprovalPermission{}) + if err := m.CanUpdateOutgoingApprovals[len(m.CanUpdateOutgoingApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateIncomingApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateIncomingApprovals = append(m.CanUpdateIncomingApprovals, &UserIncomingApprovalPermission{}) + if err := m.CanUpdateIncomingApprovals[len(m.CanUpdateIncomingApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateAutoApproveSelfInitiatedOutgoingTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers = append(m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers, &ActionPermission{}) + if err := m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers[len(m.CanUpdateAutoApproveSelfInitiatedOutgoingTransfers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateAutoApproveSelfInitiatedIncomingTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers = append(m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers, &ActionPermission{}) + if err := m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers[len(m.CanUpdateAutoApproveSelfInitiatedIncomingTransfers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateAutoApproveAllIncomingTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateAutoApproveAllIncomingTransfers = append(m.CanUpdateAutoApproveAllIncomingTransfers, &ActionPermission{}) + if err := m.CanUpdateAutoApproveAllIncomingTransfers[len(m.CanUpdateAutoApproveAllIncomingTransfers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPermissions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPermissions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CollectionApprovalPermission) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CollectionApprovalPermission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectionApprovalPermission: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FromListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FromListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ToListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedByListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitiatedByListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransferTimes = append(m.TransferTimes, &UintRange{}) + if err := m.TransferTimes[len(m.TransferTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipTimes = append(m.OwnershipTimes, &UintRange{}) + if err := m.OwnershipTimes[len(m.OwnershipTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyPermittedTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyPermittedTimes = append(m.PermanentlyPermittedTimes, &UintRange{}) + if err := m.PermanentlyPermittedTimes[len(m.PermanentlyPermittedTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyForbiddenTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyForbiddenTimes = append(m.PermanentlyForbiddenTimes, &UintRange{}) + if err := m.PermanentlyForbiddenTimes[len(m.PermanentlyForbiddenTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPermissions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPermissions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserOutgoingApprovalPermission) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserOutgoingApprovalPermission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserOutgoingApprovalPermission: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ToListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedByListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitiatedByListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransferTimes = append(m.TransferTimes, &UintRange{}) + if err := m.TransferTimes[len(m.TransferTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipTimes = append(m.OwnershipTimes, &UintRange{}) + if err := m.OwnershipTimes[len(m.OwnershipTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyPermittedTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyPermittedTimes = append(m.PermanentlyPermittedTimes, &UintRange{}) + if err := m.PermanentlyPermittedTimes[len(m.PermanentlyPermittedTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyForbiddenTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyForbiddenTimes = append(m.PermanentlyForbiddenTimes, &UintRange{}) + if err := m.PermanentlyForbiddenTimes[len(m.PermanentlyForbiddenTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPermissions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPermissions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserIncomingApprovalPermission) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserIncomingApprovalPermission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserIncomingApprovalPermission: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FromListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FromListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitiatedByListId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitiatedByListId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TransferTimes = append(m.TransferTimes, &UintRange{}) + if err := m.TransferTimes[len(m.TransferTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnershipTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OwnershipTimes = append(m.OwnershipTimes, &UintRange{}) + if err := m.OwnershipTimes[len(m.OwnershipTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyPermittedTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyPermittedTimes = append(m.PermanentlyPermittedTimes, &UintRange{}) + if err := m.PermanentlyPermittedTimes[len(m.PermanentlyPermittedTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyForbiddenTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyForbiddenTimes = append(m.PermanentlyForbiddenTimes, &UintRange{}) + if err := m.PermanentlyForbiddenTimes[len(m.PermanentlyForbiddenTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPermissions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPermissions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TokenIdsActionPermission) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TokenIdsActionPermission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenIdsActionPermission: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenIds = append(m.TokenIds, &UintRange{}) + if err := m.TokenIds[len(m.TokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyPermittedTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyPermittedTimes = append(m.PermanentlyPermittedTimes, &UintRange{}) + if err := m.PermanentlyPermittedTimes[len(m.PermanentlyPermittedTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyForbiddenTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyForbiddenTimes = append(m.PermanentlyForbiddenTimes, &UintRange{}) + if err := m.PermanentlyForbiddenTimes[len(m.PermanentlyForbiddenTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPermissions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPermissions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ActionPermission) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ActionPermission: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActionPermission: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyPermittedTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyPermittedTimes = append(m.PermanentlyPermittedTimes, &UintRange{}) + if err := m.PermanentlyPermittedTimes[len(m.PermanentlyPermittedTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PermanentlyForbiddenTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPermissions + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPermissions + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPermissions + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PermanentlyForbiddenTimes = append(m.PermanentlyForbiddenTimes, &UintRange{}) + if err := m.PermanentlyForbiddenTimes[len(m.PermanentlyForbiddenTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPermissions(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPermissions + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPermissions(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPermissions + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPermissions + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPermissions + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPermissions + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPermissions + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPermissions + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPermissions = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPermissions = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPermissions = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/predetermined_balances.pb.go b/x/tokenization/types/v29/predetermined_balances.pb.go new file mode 100644 index 00000000..bae9a1d4 --- /dev/null +++ b/x/tokenization/types/v29/predetermined_balances.pb.go @@ -0,0 +1,1881 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/predetermined_balances.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// ManualBalances represents a list of manual balances entered for the predetermined balances criteria. Order is calculated according to the calculation method set. +type ManualBalances struct { + Balances []*Balance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` +} + +func (m *ManualBalances) Reset() { *m = ManualBalances{} } +func (m *ManualBalances) String() string { return proto.CompactTextString(m) } +func (*ManualBalances) ProtoMessage() {} +func (*ManualBalances) Descriptor() ([]byte, []int) { + return fileDescriptor_605b48ccdc1d5231, []int{0} +} +func (m *ManualBalances) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ManualBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ManualBalances.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ManualBalances) XXX_Merge(src proto.Message) { + xxx_messageInfo_ManualBalances.Merge(m, src) +} +func (m *ManualBalances) XXX_Size() int { + return m.Size() +} +func (m *ManualBalances) XXX_DiscardUnknown() { + xxx_messageInfo_ManualBalances.DiscardUnknown(m) +} + +var xxx_messageInfo_ManualBalances proto.InternalMessageInfo + +func (m *ManualBalances) GetBalances() []*Balance { + if m != nil { + return m.Balances + } + return nil +} + +// RecurringOwnershipTimes represents a list of recurring ownership times. +type RecurringOwnershipTimes struct { + // The original start time of the first interval. + StartTime Uint `protobuf:"bytes,1,opt,name=startTime,proto3,customtype=Uint" json:"startTime"` + // The interval length in unix milliseconds. + IntervalLength Uint `protobuf:"bytes,2,opt,name=intervalLength,proto3,customtype=Uint" json:"intervalLength"` + // Grace period length where you can charge the next interval (nextStartTime - chargePeriodLength) until (nextStartTime) = charge period + ChargePeriodLength Uint `protobuf:"bytes,3,opt,name=chargePeriodLength,proto3,customtype=Uint" json:"chargePeriodLength"` +} + +func (m *RecurringOwnershipTimes) Reset() { *m = RecurringOwnershipTimes{} } +func (m *RecurringOwnershipTimes) String() string { return proto.CompactTextString(m) } +func (*RecurringOwnershipTimes) ProtoMessage() {} +func (*RecurringOwnershipTimes) Descriptor() ([]byte, []int) { + return fileDescriptor_605b48ccdc1d5231, []int{1} +} +func (m *RecurringOwnershipTimes) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecurringOwnershipTimes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecurringOwnershipTimes.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RecurringOwnershipTimes) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecurringOwnershipTimes.Merge(m, src) +} +func (m *RecurringOwnershipTimes) XXX_Size() int { + return m.Size() +} +func (m *RecurringOwnershipTimes) XXX_DiscardUnknown() { + xxx_messageInfo_RecurringOwnershipTimes.DiscardUnknown(m) +} + +var xxx_messageInfo_RecurringOwnershipTimes proto.InternalMessageInfo + +// IncrementedBalances represents balances that are incremented by specific amounts, according to the order calculation method. +type IncrementedBalances struct { + StartBalances []*Balance `protobuf:"bytes,1,rep,name=startBalances,proto3" json:"startBalances,omitempty"` + // The amount by which to increment token IDs. + IncrementTokenIdsBy Uint `protobuf:"bytes,2,opt,name=incrementTokenIdsBy,proto3,customtype=Uint" json:"incrementTokenIdsBy"` + // The amount by which to increment ownership times. Incompatible with approveStartingFromNowBy. + IncrementOwnershipTimesBy Uint `protobuf:"bytes,3,opt,name=incrementOwnershipTimesBy,proto3,customtype=Uint" json:"incrementOwnershipTimesBy"` + // The amount of unix milliseconds to approve starting from now. Incompatible with incrementOwnershipTimesBy. + DurationFromTimestamp Uint `protobuf:"bytes,4,opt,name=durationFromTimestamp,proto3,customtype=Uint" json:"durationFromTimestamp"` + // Whether to allow overriding the timestamp for the balances (only applicable with durationFromTimestamp set). + AllowOverrideTimestamp bool `protobuf:"varint,5,opt,name=allowOverrideTimestamp,proto3" json:"allowOverrideTimestamp,omitempty"` + // Recurring ownership times. + RecurringOwnershipTimes *RecurringOwnershipTimes `protobuf:"bytes,6,opt,name=recurringOwnershipTimes,proto3" json:"recurringOwnershipTimes,omitempty"` + // Allow override of any valid ID + AllowOverrideWithAnyValidToken bool `protobuf:"varint,7,opt,name=allowOverrideWithAnyValidToken,proto3" json:"allowOverrideWithAnyValidToken,omitempty"` + // When true, the actual transfer can be any evenly divisible integer multiple (>=1x) of startBalances. + // approvalCriteria.coinTransfers are scaled by the same multiplier. + // All other IncrementedBalances fields must be zero/false/nil when this is true. + AllowAmountScaling bool `protobuf:"varint,8,opt,name=allowAmountScaling,proto3" json:"allowAmountScaling,omitempty"` + // Maximum allowed scaling multiplier. Must be > 0 when allowAmountScaling is true. + // The chain rejects transfers where the computed multiplier exceeds this cap. + // Ignored (set to "0") when allowAmountScaling is false. + MaxScalingMultiplier Uint `protobuf:"bytes,9,opt,name=maxScalingMultiplier,proto3,customtype=Uint" json:"maxScalingMultiplier"` +} + +func (m *IncrementedBalances) Reset() { *m = IncrementedBalances{} } +func (m *IncrementedBalances) String() string { return proto.CompactTextString(m) } +func (*IncrementedBalances) ProtoMessage() {} +func (*IncrementedBalances) Descriptor() ([]byte, []int) { + return fileDescriptor_605b48ccdc1d5231, []int{2} +} +func (m *IncrementedBalances) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IncrementedBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IncrementedBalances.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IncrementedBalances) XXX_Merge(src proto.Message) { + xxx_messageInfo_IncrementedBalances.Merge(m, src) +} +func (m *IncrementedBalances) XXX_Size() int { + return m.Size() +} +func (m *IncrementedBalances) XXX_DiscardUnknown() { + xxx_messageInfo_IncrementedBalances.DiscardUnknown(m) +} + +var xxx_messageInfo_IncrementedBalances proto.InternalMessageInfo + +func (m *IncrementedBalances) GetStartBalances() []*Balance { + if m != nil { + return m.StartBalances + } + return nil +} + +func (m *IncrementedBalances) GetAllowOverrideTimestamp() bool { + if m != nil { + return m.AllowOverrideTimestamp + } + return false +} + +func (m *IncrementedBalances) GetRecurringOwnershipTimes() *RecurringOwnershipTimes { + if m != nil { + return m.RecurringOwnershipTimes + } + return nil +} + +func (m *IncrementedBalances) GetAllowOverrideWithAnyValidToken() bool { + if m != nil { + return m.AllowOverrideWithAnyValidToken + } + return false +} + +func (m *IncrementedBalances) GetAllowAmountScaling() bool { + if m != nil { + return m.AllowAmountScaling + } + return false +} + +// PredeterminedOrderCalculationMethod defines the method to calculate predetermined balances order. +type PredeterminedOrderCalculationMethod struct { + // Use the overall number of transfers to calculate the order. Ex: First transfer gets the first balance, second transfer gets the second balance, etc. + UseOverallNumTransfers bool `protobuf:"varint,1,opt,name=useOverallNumTransfers,proto3" json:"useOverallNumTransfers,omitempty"` + // Use the number of transfers per "to" address to calculate the order. Ex: First transfer to address A gets the first balance, second transfer to address A gets the second balance, etc. + UsePerToAddressNumTransfers bool `protobuf:"varint,2,opt,name=usePerToAddressNumTransfers,proto3" json:"usePerToAddressNumTransfers,omitempty"` + // Use the number of transfers per "from" address to calculate the order. Ex: First transfer from address A gets the first balance, second transfer from address A gets the second balance, etc. + UsePerFromAddressNumTransfers bool `protobuf:"varint,3,opt,name=usePerFromAddressNumTransfers,proto3" json:"usePerFromAddressNumTransfers,omitempty"` + // Use the number of transfers per "initiated by" address to calculate the order. Ex: First transfer initiated by address A gets the first balance, second transfer initiated by address A gets the second balance, etc. + UsePerInitiatedByAddressNumTransfers bool `protobuf:"varint,4,opt,name=usePerInitiatedByAddressNumTransfers,proto3" json:"usePerInitiatedByAddressNumTransfers,omitempty"` + // Use the Merkle challenge leaf index to calculate the order. Ex: Transfer that uses leaf index 0 gets the first balance, transfer that uses leaf index 1 gets the second balance, etc. + UseMerkleChallengeLeafIndex bool `protobuf:"varint,5,opt,name=useMerkleChallengeLeafIndex,proto3" json:"useMerkleChallengeLeafIndex,omitempty"` + // If useMerkleChallengeLeafIndex is set, then this is the ID of the challenge tracker associated with this calculation method. + ChallengeTrackerId string `protobuf:"bytes,6,opt,name=challengeTrackerId,proto3" json:"challengeTrackerId,omitempty"` +} + +func (m *PredeterminedOrderCalculationMethod) Reset() { *m = PredeterminedOrderCalculationMethod{} } +func (m *PredeterminedOrderCalculationMethod) String() string { return proto.CompactTextString(m) } +func (*PredeterminedOrderCalculationMethod) ProtoMessage() {} +func (*PredeterminedOrderCalculationMethod) Descriptor() ([]byte, []int) { + return fileDescriptor_605b48ccdc1d5231, []int{3} +} +func (m *PredeterminedOrderCalculationMethod) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PredeterminedOrderCalculationMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PredeterminedOrderCalculationMethod.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PredeterminedOrderCalculationMethod) XXX_Merge(src proto.Message) { + xxx_messageInfo_PredeterminedOrderCalculationMethod.Merge(m, src) +} +func (m *PredeterminedOrderCalculationMethod) XXX_Size() int { + return m.Size() +} +func (m *PredeterminedOrderCalculationMethod) XXX_DiscardUnknown() { + xxx_messageInfo_PredeterminedOrderCalculationMethod.DiscardUnknown(m) +} + +var xxx_messageInfo_PredeterminedOrderCalculationMethod proto.InternalMessageInfo + +func (m *PredeterminedOrderCalculationMethod) GetUseOverallNumTransfers() bool { + if m != nil { + return m.UseOverallNumTransfers + } + return false +} + +func (m *PredeterminedOrderCalculationMethod) GetUsePerToAddressNumTransfers() bool { + if m != nil { + return m.UsePerToAddressNumTransfers + } + return false +} + +func (m *PredeterminedOrderCalculationMethod) GetUsePerFromAddressNumTransfers() bool { + if m != nil { + return m.UsePerFromAddressNumTransfers + } + return false +} + +func (m *PredeterminedOrderCalculationMethod) GetUsePerInitiatedByAddressNumTransfers() bool { + if m != nil { + return m.UsePerInitiatedByAddressNumTransfers + } + return false +} + +func (m *PredeterminedOrderCalculationMethod) GetUseMerkleChallengeLeafIndex() bool { + if m != nil { + return m.UseMerkleChallengeLeafIndex + } + return false +} + +func (m *PredeterminedOrderCalculationMethod) GetChallengeTrackerId() string { + if m != nil { + return m.ChallengeTrackerId + } + return "" +} + +// PredeterminedBalances represents balances with predetermined order calculation. +type PredeterminedBalances struct { + // Manual balances that can be entered. If this is nil, then we use the incremented balances. + ManualBalances []*ManualBalances `protobuf:"bytes,1,rep,name=manualBalances,proto3" json:"manualBalances,omitempty"` + // Balances that have a starting amount and increment. If this is nil, then we use the manual balances. + IncrementedBalances *IncrementedBalances `protobuf:"bytes,2,opt,name=incrementedBalances,proto3" json:"incrementedBalances,omitempty"` + // The method to calculate the order of predetermined balances. + OrderCalculationMethod *PredeterminedOrderCalculationMethod `protobuf:"bytes,3,opt,name=orderCalculationMethod,proto3" json:"orderCalculationMethod,omitempty"` +} + +func (m *PredeterminedBalances) Reset() { *m = PredeterminedBalances{} } +func (m *PredeterminedBalances) String() string { return proto.CompactTextString(m) } +func (*PredeterminedBalances) ProtoMessage() {} +func (*PredeterminedBalances) Descriptor() ([]byte, []int) { + return fileDescriptor_605b48ccdc1d5231, []int{4} +} +func (m *PredeterminedBalances) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PredeterminedBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PredeterminedBalances.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PredeterminedBalances) XXX_Merge(src proto.Message) { + xxx_messageInfo_PredeterminedBalances.Merge(m, src) +} +func (m *PredeterminedBalances) XXX_Size() int { + return m.Size() +} +func (m *PredeterminedBalances) XXX_DiscardUnknown() { + xxx_messageInfo_PredeterminedBalances.DiscardUnknown(m) +} + +var xxx_messageInfo_PredeterminedBalances proto.InternalMessageInfo + +func (m *PredeterminedBalances) GetManualBalances() []*ManualBalances { + if m != nil { + return m.ManualBalances + } + return nil +} + +func (m *PredeterminedBalances) GetIncrementedBalances() *IncrementedBalances { + if m != nil { + return m.IncrementedBalances + } + return nil +} + +func (m *PredeterminedBalances) GetOrderCalculationMethod() *PredeterminedOrderCalculationMethod { + if m != nil { + return m.OrderCalculationMethod + } + return nil +} + +func init() { + proto.RegisterType((*ManualBalances)(nil), "tokenization.v29.ManualBalances") + proto.RegisterType((*RecurringOwnershipTimes)(nil), "tokenization.v29.RecurringOwnershipTimes") + proto.RegisterType((*IncrementedBalances)(nil), "tokenization.v29.IncrementedBalances") + proto.RegisterType((*PredeterminedOrderCalculationMethod)(nil), "tokenization.v29.PredeterminedOrderCalculationMethod") + proto.RegisterType((*PredeterminedBalances)(nil), "tokenization.v29.PredeterminedBalances") +} + +func init() { + proto.RegisterFile("tokenization/v29/predetermined_balances.proto", fileDescriptor_605b48ccdc1d5231) +} + +var fileDescriptor_605b48ccdc1d5231 = []byte{ + // 736 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x95, 0xdd, 0x4e, 0xdb, 0x48, + 0x14, 0xc7, 0x63, 0x92, 0x65, 0x93, 0xc9, 0x2e, 0x5a, 0x0d, 0x5f, 0x86, 0xd5, 0x86, 0x6c, 0x76, + 0x2b, 0xa5, 0x95, 0x9a, 0x48, 0x69, 0xa9, 0x84, 0x84, 0x5a, 0x08, 0x15, 0x6d, 0x2a, 0x52, 0x90, + 0x9b, 0x82, 0xd4, 0x9b, 0x6a, 0x62, 0x1f, 0xec, 0x11, 0xe3, 0x71, 0x34, 0x1e, 0x07, 0xd2, 0xa7, + 0xe8, 0x6b, 0x54, 0x7d, 0x82, 0xbe, 0x01, 0x97, 0x5c, 0x56, 0xbd, 0x40, 0x15, 0x3c, 0x47, 0xa5, + 0xca, 0x43, 0x3e, 0x30, 0x99, 0x50, 0xee, 0x6c, 0x9f, 0xdf, 0xf9, 0xfb, 0xcc, 0x99, 0xff, 0x9c, + 0x41, 0x0f, 0x65, 0x70, 0x04, 0x9c, 0x7e, 0x20, 0x92, 0x06, 0xbc, 0xda, 0xad, 0xad, 0x55, 0x3b, + 0x02, 0x1c, 0x90, 0x20, 0x7c, 0xca, 0xc1, 0x79, 0xdf, 0x26, 0x8c, 0x70, 0x1b, 0xc2, 0x4a, 0x47, + 0x04, 0x32, 0xc0, 0x7f, 0x5d, 0xc7, 0x2b, 0xdd, 0xda, 0xda, 0xf2, 0x9c, 0x1b, 0xb8, 0x81, 0x0a, + 0x56, 0xe3, 0xa7, 0x2b, 0x6e, 0x79, 0x65, 0x4c, 0x36, 0x29, 0xb4, 0xfc, 0xef, 0x18, 0x60, 0x7b, + 0x84, 0x31, 0xe0, 0xee, 0x00, 0x29, 0xbd, 0x40, 0x33, 0x4d, 0xc2, 0x23, 0xc2, 0xea, 0xfd, 0x54, + 0xbc, 0x8a, 0xb2, 0x03, 0x19, 0xd3, 0x28, 0xa6, 0xcb, 0xf9, 0xda, 0x52, 0xe5, 0x66, 0x41, 0x95, + 0x3e, 0x6d, 0x0d, 0xd1, 0xd2, 0x17, 0x03, 0x2d, 0x5a, 0x60, 0x47, 0x42, 0x50, 0xee, 0xee, 0x1e, + 0x73, 0x10, 0xa1, 0x47, 0x3b, 0x2d, 0xea, 0x43, 0x88, 0x1f, 0xa0, 0x5c, 0x28, 0x89, 0x90, 0xf1, + 0x9b, 0x69, 0x14, 0x8d, 0x72, 0xae, 0xfe, 0xc7, 0xe9, 0xf9, 0x4a, 0xea, 0xdb, 0xf9, 0x4a, 0xe6, + 0x2d, 0xe5, 0xd2, 0x1a, 0x85, 0xf1, 0x63, 0x34, 0x43, 0xb9, 0x04, 0xd1, 0x25, 0x6c, 0x07, 0xb8, + 0x2b, 0x3d, 0x73, 0x4a, 0x93, 0x70, 0x83, 0xc1, 0xeb, 0x08, 0xdb, 0x1e, 0x11, 0x2e, 0xec, 0x81, + 0xa0, 0x81, 0xd3, 0xcf, 0x4c, 0x6b, 0x32, 0x35, 0x5c, 0xe9, 0x47, 0x06, 0xcd, 0x36, 0xb8, 0x2d, + 0xc0, 0x07, 0x2e, 0xc1, 0x19, 0xb6, 0xe2, 0x19, 0xfa, 0x53, 0x15, 0x56, 0xbf, 0x73, 0x3f, 0x92, + 0x3c, 0x7e, 0x8a, 0x66, 0xe9, 0x40, 0xb7, 0x15, 0xe7, 0x34, 0x9c, 0xb0, 0xde, 0xd3, 0xae, 0x48, + 0x07, 0xe2, 0x57, 0x68, 0x69, 0xf8, 0x39, 0xd9, 0xd3, 0x7a, 0x4f, 0xbb, 0xba, 0xc9, 0x38, 0xae, + 0xa3, 0x79, 0x27, 0x12, 0xaa, 0xe4, 0x6d, 0x11, 0xf8, 0xea, 0xb3, 0x24, 0x7e, 0xc7, 0xcc, 0x68, + 0x74, 0xf4, 0x28, 0x7e, 0x82, 0x16, 0x08, 0x63, 0xc1, 0xf1, 0x6e, 0x17, 0x84, 0xa0, 0x0e, 0x8c, + 0x44, 0x7e, 0x2b, 0x1a, 0xe5, 0xac, 0x35, 0x21, 0x8a, 0x6d, 0xb4, 0x28, 0xf4, 0xde, 0x30, 0xa7, + 0x8b, 0x46, 0x39, 0x5f, 0xbb, 0x3f, 0xde, 0xd2, 0x09, 0x66, 0xb2, 0x26, 0x29, 0xe1, 0x6d, 0x54, + 0x48, 0xfc, 0xfe, 0x80, 0x4a, 0x6f, 0x93, 0xf7, 0xf6, 0x09, 0xa3, 0x8e, 0xea, 0xa9, 0xf9, 0xbb, + 0x2a, 0xf2, 0x17, 0x14, 0xae, 0x20, 0xac, 0x88, 0x4d, 0x3f, 0x88, 0xb8, 0x7c, 0x63, 0x13, 0x46, + 0xb9, 0x6b, 0x66, 0x55, 0xae, 0x26, 0x82, 0x37, 0xd0, 0x9c, 0x4f, 0x4e, 0xfa, 0x6f, 0xcd, 0x88, + 0x49, 0xda, 0x61, 0x14, 0x84, 0x99, 0xd3, 0xf4, 0x55, 0x4b, 0x96, 0x3e, 0xa7, 0xd1, 0x7f, 0x7b, + 0xd7, 0x27, 0xc2, 0xae, 0x70, 0x40, 0x6c, 0x11, 0x66, 0x47, 0x4c, 0x35, 0xa4, 0x09, 0xd2, 0x0b, + 0x9c, 0xb8, 0xfd, 0x51, 0x08, 0x71, 0xe5, 0x84, 0xb1, 0xd7, 0x91, 0xdf, 0x12, 0x84, 0x87, 0x87, + 0x20, 0x42, 0x75, 0xa8, 0xb2, 0xd6, 0x84, 0x28, 0xde, 0x40, 0x7f, 0x47, 0x61, 0x6c, 0xf9, 0x56, + 0xb0, 0xe9, 0x38, 0x02, 0xc2, 0x30, 0x91, 0x3c, 0xa5, 0x92, 0x6f, 0x43, 0xf0, 0x73, 0xf4, 0xcf, + 0x55, 0x38, 0xf6, 0x83, 0x4e, 0x23, 0xad, 0x34, 0x6e, 0x87, 0xb0, 0x85, 0xfe, 0xbf, 0x02, 0x1a, + 0x9c, 0x4a, 0x4a, 0xe2, 0xa3, 0xd6, 0xd3, 0x89, 0x65, 0x94, 0xd8, 0x9d, 0xd8, 0xfe, 0xda, 0x9a, + 0x20, 0x8e, 0x18, 0x6c, 0x0d, 0xa6, 0xdb, 0x0e, 0x90, 0xc3, 0x06, 0x77, 0xe0, 0xa4, 0xef, 0xcb, + 0xdb, 0x90, 0x78, 0xbf, 0x87, 0x63, 0xb1, 0x25, 0x88, 0x7d, 0x04, 0xa2, 0xe1, 0x28, 0x5f, 0xe6, + 0x2c, 0x4d, 0xa4, 0xf4, 0x69, 0x0a, 0xcd, 0x27, 0x76, 0x6b, 0x78, 0xdc, 0x5f, 0xa2, 0x19, 0x3f, + 0x31, 0x4c, 0xfb, 0x03, 0xa3, 0x38, 0xee, 0xee, 0xe4, 0xd0, 0xb5, 0x6e, 0xe4, 0xe1, 0x83, 0x6b, + 0x83, 0x63, 0xf4, 0x03, 0xb5, 0x53, 0xf9, 0xda, 0xbd, 0x71, 0x39, 0xcd, 0xf4, 0xb2, 0x74, 0x0a, + 0xd8, 0x47, 0x0b, 0x81, 0xd6, 0x5c, 0x6a, 0x07, 0xf3, 0xb5, 0xd5, 0x71, 0xed, 0x3b, 0x38, 0xd3, + 0x9a, 0x20, 0x5a, 0xdf, 0x3f, 0xbd, 0x28, 0x18, 0x67, 0x17, 0x05, 0xe3, 0xfb, 0x45, 0xc1, 0xf8, + 0x78, 0x59, 0x48, 0x9d, 0x5d, 0x16, 0x52, 0x5f, 0x2f, 0x0b, 0xa9, 0x77, 0xeb, 0x2e, 0x95, 0x5e, + 0xd4, 0xae, 0xd8, 0x81, 0x5f, 0x6d, 0x53, 0xd9, 0x26, 0x8e, 0x0b, 0xe1, 0xe8, 0xc9, 0xf6, 0x08, + 0xe5, 0xd5, 0x93, 0x6a, 0xe2, 0x06, 0x93, 0xbd, 0x0e, 0x84, 0xf1, 0x3d, 0xd6, 0x9e, 0x56, 0xb7, + 0xd7, 0xa3, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x70, 0x21, 0xd1, 0xd7, 0x5a, 0x07, 0x00, 0x00, +} + +func (m *ManualBalances) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ManualBalances) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ManualBalances) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *RecurringOwnershipTimes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RecurringOwnershipTimes) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecurringOwnershipTimes) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.ChargePeriodLength.Size() + i -= size + if _, err := m.ChargePeriodLength.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.IntervalLength.Size() + i -= size + if _, err := m.IntervalLength.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.StartTime.Size() + i -= size + if _, err := m.StartTime.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *IncrementedBalances) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IncrementedBalances) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IncrementedBalances) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MaxScalingMultiplier.Size() + i -= size + if _, err := m.MaxScalingMultiplier.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + if m.AllowAmountScaling { + i-- + if m.AllowAmountScaling { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.AllowOverrideWithAnyValidToken { + i-- + if m.AllowOverrideWithAnyValidToken { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.RecurringOwnershipTimes != nil { + { + size, err := m.RecurringOwnershipTimes.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.AllowOverrideTimestamp { + i-- + if m.AllowOverrideTimestamp { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + { + size := m.DurationFromTimestamp.Size() + i -= size + if _, err := m.DurationFromTimestamp.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.IncrementOwnershipTimesBy.Size() + i -= size + if _, err := m.IncrementOwnershipTimesBy.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.IncrementTokenIdsBy.Size() + i -= size + if _, err := m.IncrementTokenIdsBy.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.StartBalances) > 0 { + for iNdEx := len(m.StartBalances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.StartBalances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *PredeterminedOrderCalculationMethod) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PredeterminedOrderCalculationMethod) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PredeterminedOrderCalculationMethod) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ChallengeTrackerId) > 0 { + i -= len(m.ChallengeTrackerId) + copy(dAtA[i:], m.ChallengeTrackerId) + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(len(m.ChallengeTrackerId))) + i-- + dAtA[i] = 0x32 + } + if m.UseMerkleChallengeLeafIndex { + i-- + if m.UseMerkleChallengeLeafIndex { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.UsePerInitiatedByAddressNumTransfers { + i-- + if m.UsePerInitiatedByAddressNumTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.UsePerFromAddressNumTransfers { + i-- + if m.UsePerFromAddressNumTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.UsePerToAddressNumTransfers { + i-- + if m.UsePerToAddressNumTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.UseOverallNumTransfers { + i-- + if m.UseOverallNumTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *PredeterminedBalances) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PredeterminedBalances) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PredeterminedBalances) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.OrderCalculationMethod != nil { + { + size, err := m.OrderCalculationMethod.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.IncrementedBalances != nil { + { + size, err := m.IncrementedBalances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.ManualBalances) > 0 { + for iNdEx := len(m.ManualBalances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ManualBalances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPredeterminedBalances(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintPredeterminedBalances(dAtA []byte, offset int, v uint64) int { + offset -= sovPredeterminedBalances(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ManualBalances) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + } + } + return n +} + +func (m *RecurringOwnershipTimes) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.StartTime.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + l = m.IntervalLength.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + l = m.ChargePeriodLength.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + return n +} + +func (m *IncrementedBalances) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.StartBalances) > 0 { + for _, e := range m.StartBalances { + l = e.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + } + } + l = m.IncrementTokenIdsBy.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + l = m.IncrementOwnershipTimesBy.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + l = m.DurationFromTimestamp.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + if m.AllowOverrideTimestamp { + n += 2 + } + if m.RecurringOwnershipTimes != nil { + l = m.RecurringOwnershipTimes.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + } + if m.AllowOverrideWithAnyValidToken { + n += 2 + } + if m.AllowAmountScaling { + n += 2 + } + l = m.MaxScalingMultiplier.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + return n +} + +func (m *PredeterminedOrderCalculationMethod) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UseOverallNumTransfers { + n += 2 + } + if m.UsePerToAddressNumTransfers { + n += 2 + } + if m.UsePerFromAddressNumTransfers { + n += 2 + } + if m.UsePerInitiatedByAddressNumTransfers { + n += 2 + } + if m.UseMerkleChallengeLeafIndex { + n += 2 + } + l = len(m.ChallengeTrackerId) + if l > 0 { + n += 1 + l + sovPredeterminedBalances(uint64(l)) + } + return n +} + +func (m *PredeterminedBalances) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ManualBalances) > 0 { + for _, e := range m.ManualBalances { + l = e.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + } + } + if m.IncrementedBalances != nil { + l = m.IncrementedBalances.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + } + if m.OrderCalculationMethod != nil { + l = m.OrderCalculationMethod.Size() + n += 1 + l + sovPredeterminedBalances(uint64(l)) + } + return n +} + +func sovPredeterminedBalances(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozPredeterminedBalances(x uint64) (n int) { + return sovPredeterminedBalances(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ManualBalances) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ManualBalances: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ManualBalances: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, &Balance{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPredeterminedBalances(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RecurringOwnershipTimes) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RecurringOwnershipTimes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RecurringOwnershipTimes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StartTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IntervalLength", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.IntervalLength.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChargePeriodLength", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ChargePeriodLength.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPredeterminedBalances(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IncrementedBalances) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IncrementedBalances: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IncrementedBalances: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StartBalances = append(m.StartBalances, &Balance{}) + if err := m.StartBalances[len(m.StartBalances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncrementTokenIdsBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.IncrementTokenIdsBy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncrementOwnershipTimesBy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.IncrementOwnershipTimesBy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DurationFromTimestamp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DurationFromTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowOverrideTimestamp", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowOverrideTimestamp = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecurringOwnershipTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RecurringOwnershipTimes == nil { + m.RecurringOwnershipTimes = &RecurringOwnershipTimes{} + } + if err := m.RecurringOwnershipTimes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowOverrideWithAnyValidToken", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowOverrideWithAnyValidToken = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowAmountScaling", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowAmountScaling = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxScalingMultiplier", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxScalingMultiplier.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPredeterminedBalances(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PredeterminedOrderCalculationMethod) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PredeterminedOrderCalculationMethod: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PredeterminedOrderCalculationMethod: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UseOverallNumTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UseOverallNumTransfers = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsePerToAddressNumTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UsePerToAddressNumTransfers = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsePerFromAddressNumTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UsePerFromAddressNumTransfers = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UsePerInitiatedByAddressNumTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UsePerInitiatedByAddressNumTransfers = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UseMerkleChallengeLeafIndex", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UseMerkleChallengeLeafIndex = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChallengeTrackerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChallengeTrackerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPredeterminedBalances(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PredeterminedBalances) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PredeterminedBalances: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PredeterminedBalances: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ManualBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ManualBalances = append(m.ManualBalances, &ManualBalances{}) + if err := m.ManualBalances[len(m.ManualBalances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncrementedBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IncrementedBalances == nil { + m.IncrementedBalances = &IncrementedBalances{} + } + if err := m.IncrementedBalances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrderCalculationMethod", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPredeterminedBalances + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OrderCalculationMethod == nil { + m.OrderCalculationMethod = &PredeterminedOrderCalculationMethod{} + } + if err := m.OrderCalculationMethod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPredeterminedBalances(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthPredeterminedBalances + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPredeterminedBalances(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPredeterminedBalances + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthPredeterminedBalances + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupPredeterminedBalances + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthPredeterminedBalances + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthPredeterminedBalances = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPredeterminedBalances = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPredeterminedBalances = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/timelines.pb.go b/x/tokenization/types/v29/timelines.pb.go new file mode 100644 index 00000000..cdd5e15e --- /dev/null +++ b/x/tokenization/types/v29/timelines.pb.go @@ -0,0 +1,1824 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/timelines.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/codec/types" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// CollectionMetadataTimeline defines the metadata for a collection at different timeline times. +type CollectionMetadataTimeline struct { + // The collection metadata for a specific timeline element. + CollectionMetadata *CollectionMetadata `protobuf:"bytes,1,opt,name=collectionMetadata,proto3" json:"collectionMetadata,omitempty"` + // The timeline times when the collection metadata is valid. Can not overlap with other timeline elements in same array. + TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` +} + +func (m *CollectionMetadataTimeline) Reset() { *m = CollectionMetadataTimeline{} } +func (m *CollectionMetadataTimeline) String() string { return proto.CompactTextString(m) } +func (*CollectionMetadataTimeline) ProtoMessage() {} +func (*CollectionMetadataTimeline) Descriptor() ([]byte, []int) { + return fileDescriptor_084a5a2b74f56723, []int{0} +} +func (m *CollectionMetadataTimeline) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CollectionMetadataTimeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CollectionMetadataTimeline.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CollectionMetadataTimeline) XXX_Merge(src proto.Message) { + xxx_messageInfo_CollectionMetadataTimeline.Merge(m, src) +} +func (m *CollectionMetadataTimeline) XXX_Size() int { + return m.Size() +} +func (m *CollectionMetadataTimeline) XXX_DiscardUnknown() { + xxx_messageInfo_CollectionMetadataTimeline.DiscardUnknown(m) +} + +var xxx_messageInfo_CollectionMetadataTimeline proto.InternalMessageInfo + +func (m *CollectionMetadataTimeline) GetCollectionMetadata() *CollectionMetadata { + if m != nil { + return m.CollectionMetadata + } + return nil +} + +func (m *CollectionMetadataTimeline) GetTimelineTimes() []*UintRange { + if m != nil { + return m.TimelineTimes + } + return nil +} + +// TokenMetadataTimeline defines the metadata for tokens at different timeline times. +type TokenMetadataTimeline struct { + // The token metadata for a specific timeline element. + TokenMetadata []*TokenMetadata `protobuf:"bytes,1,rep,name=tokenMetadata,proto3" json:"tokenMetadata,omitempty"` + // The timeline times when the token metadata is valid. Can not overlap with other timeline elements in same array. + TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` +} + +func (m *TokenMetadataTimeline) Reset() { *m = TokenMetadataTimeline{} } +func (m *TokenMetadataTimeline) String() string { return proto.CompactTextString(m) } +func (*TokenMetadataTimeline) ProtoMessage() {} +func (*TokenMetadataTimeline) Descriptor() ([]byte, []int) { + return fileDescriptor_084a5a2b74f56723, []int{1} +} +func (m *TokenMetadataTimeline) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenMetadataTimeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenMetadataTimeline.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TokenMetadataTimeline) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenMetadataTimeline.Merge(m, src) +} +func (m *TokenMetadataTimeline) XXX_Size() int { + return m.Size() +} +func (m *TokenMetadataTimeline) XXX_DiscardUnknown() { + xxx_messageInfo_TokenMetadataTimeline.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenMetadataTimeline proto.InternalMessageInfo + +func (m *TokenMetadataTimeline) GetTokenMetadata() []*TokenMetadata { + if m != nil { + return m.TokenMetadata + } + return nil +} + +func (m *TokenMetadataTimeline) GetTimelineTimes() []*UintRange { + if m != nil { + return m.TimelineTimes + } + return nil +} + +// CustomDataTimeline defines custom data at different timeline times. +type CustomDataTimeline struct { + // The custom data for a specific timeline element. + CustomData string `protobuf:"bytes,1,opt,name=customData,proto3" json:"customData,omitempty"` + // The timeline times when the custom data is valid. Can not overlap with other timeline elements in same array. + TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` +} + +func (m *CustomDataTimeline) Reset() { *m = CustomDataTimeline{} } +func (m *CustomDataTimeline) String() string { return proto.CompactTextString(m) } +func (*CustomDataTimeline) ProtoMessage() {} +func (*CustomDataTimeline) Descriptor() ([]byte, []int) { + return fileDescriptor_084a5a2b74f56723, []int{2} +} +func (m *CustomDataTimeline) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CustomDataTimeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CustomDataTimeline.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CustomDataTimeline) XXX_Merge(src proto.Message) { + xxx_messageInfo_CustomDataTimeline.Merge(m, src) +} +func (m *CustomDataTimeline) XXX_Size() int { + return m.Size() +} +func (m *CustomDataTimeline) XXX_DiscardUnknown() { + xxx_messageInfo_CustomDataTimeline.DiscardUnknown(m) +} + +var xxx_messageInfo_CustomDataTimeline proto.InternalMessageInfo + +func (m *CustomDataTimeline) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *CustomDataTimeline) GetTimelineTimes() []*UintRange { + if m != nil { + return m.TimelineTimes + } + return nil +} + +// ManagerTimeline defines the manager address at different timeline times. +type ManagerTimeline struct { + // The manager address for a specific timeline element. + Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // The timeline times when the manager address is valid. Can not overlap with other timeline elements in same array. + TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` +} + +func (m *ManagerTimeline) Reset() { *m = ManagerTimeline{} } +func (m *ManagerTimeline) String() string { return proto.CompactTextString(m) } +func (*ManagerTimeline) ProtoMessage() {} +func (*ManagerTimeline) Descriptor() ([]byte, []int) { + return fileDescriptor_084a5a2b74f56723, []int{3} +} +func (m *ManagerTimeline) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ManagerTimeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ManagerTimeline.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ManagerTimeline) XXX_Merge(src proto.Message) { + xxx_messageInfo_ManagerTimeline.Merge(m, src) +} +func (m *ManagerTimeline) XXX_Size() int { + return m.Size() +} +func (m *ManagerTimeline) XXX_DiscardUnknown() { + xxx_messageInfo_ManagerTimeline.DiscardUnknown(m) +} + +var xxx_messageInfo_ManagerTimeline proto.InternalMessageInfo + +func (m *ManagerTimeline) GetManager() string { + if m != nil { + return m.Manager + } + return "" +} + +func (m *ManagerTimeline) GetTimelineTimes() []*UintRange { + if m != nil { + return m.TimelineTimes + } + return nil +} + +// IsArchivedTimeline defines whether a collection is archived at different timeline times. +type IsArchivedTimeline struct { + // Indicates whether the collection is archived for a specific timeline element. + IsArchived bool `protobuf:"varint,1,opt,name=isArchived,proto3" json:"isArchived,omitempty"` + // The timeline times when the archived status is valid. Can not overlap with other timeline elements in same array. + TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` +} + +func (m *IsArchivedTimeline) Reset() { *m = IsArchivedTimeline{} } +func (m *IsArchivedTimeline) String() string { return proto.CompactTextString(m) } +func (*IsArchivedTimeline) ProtoMessage() {} +func (*IsArchivedTimeline) Descriptor() ([]byte, []int) { + return fileDescriptor_084a5a2b74f56723, []int{4} +} +func (m *IsArchivedTimeline) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *IsArchivedTimeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_IsArchivedTimeline.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *IsArchivedTimeline) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsArchivedTimeline.Merge(m, src) +} +func (m *IsArchivedTimeline) XXX_Size() int { + return m.Size() +} +func (m *IsArchivedTimeline) XXX_DiscardUnknown() { + xxx_messageInfo_IsArchivedTimeline.DiscardUnknown(m) +} + +var xxx_messageInfo_IsArchivedTimeline proto.InternalMessageInfo + +func (m *IsArchivedTimeline) GetIsArchived() bool { + if m != nil { + return m.IsArchived + } + return false +} + +func (m *IsArchivedTimeline) GetTimelineTimes() []*UintRange { + if m != nil { + return m.TimelineTimes + } + return nil +} + +// ContractAddressTimeline defines the contract address at different timeline times. +type ContractAddressTimeline struct { + // The contract address for a specific timeline element. + ContractAddress string `protobuf:"bytes,1,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"` + // The timeline times when the contract address is valid. Can not overlap with other timeline elements in same array. + TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` +} + +func (m *ContractAddressTimeline) Reset() { *m = ContractAddressTimeline{} } +func (m *ContractAddressTimeline) String() string { return proto.CompactTextString(m) } +func (*ContractAddressTimeline) ProtoMessage() {} +func (*ContractAddressTimeline) Descriptor() ([]byte, []int) { + return fileDescriptor_084a5a2b74f56723, []int{5} +} +func (m *ContractAddressTimeline) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContractAddressTimeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ContractAddressTimeline.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ContractAddressTimeline) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContractAddressTimeline.Merge(m, src) +} +func (m *ContractAddressTimeline) XXX_Size() int { + return m.Size() +} +func (m *ContractAddressTimeline) XXX_DiscardUnknown() { + xxx_messageInfo_ContractAddressTimeline.DiscardUnknown(m) +} + +var xxx_messageInfo_ContractAddressTimeline proto.InternalMessageInfo + +func (m *ContractAddressTimeline) GetContractAddress() string { + if m != nil { + return m.ContractAddress + } + return "" +} + +func (m *ContractAddressTimeline) GetTimelineTimes() []*UintRange { + if m != nil { + return m.TimelineTimes + } + return nil +} + +// StandardsTimeline defines the standards used for a collection at different timeline times. +type StandardsTimeline struct { + // The standards applied to the collection for a specific timeline element. + Standards []string `protobuf:"bytes,1,rep,name=standards,proto3" json:"standards,omitempty"` + // The timeline times when the standards are valid. Can not overlap with other timeline elements in same array. + TimelineTimes []*UintRange `protobuf:"bytes,2,rep,name=timelineTimes,proto3" json:"timelineTimes,omitempty"` +} + +func (m *StandardsTimeline) Reset() { *m = StandardsTimeline{} } +func (m *StandardsTimeline) String() string { return proto.CompactTextString(m) } +func (*StandardsTimeline) ProtoMessage() {} +func (*StandardsTimeline) Descriptor() ([]byte, []int) { + return fileDescriptor_084a5a2b74f56723, []int{6} +} +func (m *StandardsTimeline) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StandardsTimeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StandardsTimeline.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *StandardsTimeline) XXX_Merge(src proto.Message) { + xxx_messageInfo_StandardsTimeline.Merge(m, src) +} +func (m *StandardsTimeline) XXX_Size() int { + return m.Size() +} +func (m *StandardsTimeline) XXX_DiscardUnknown() { + xxx_messageInfo_StandardsTimeline.DiscardUnknown(m) +} + +var xxx_messageInfo_StandardsTimeline proto.InternalMessageInfo + +func (m *StandardsTimeline) GetStandards() []string { + if m != nil { + return m.Standards + } + return nil +} + +func (m *StandardsTimeline) GetTimelineTimes() []*UintRange { + if m != nil { + return m.TimelineTimes + } + return nil +} + +func init() { + proto.RegisterType((*CollectionMetadataTimeline)(nil), "tokenization.v29.CollectionMetadataTimeline") + proto.RegisterType((*TokenMetadataTimeline)(nil), "tokenization.v29.TokenMetadataTimeline") + proto.RegisterType((*CustomDataTimeline)(nil), "tokenization.v29.CustomDataTimeline") + proto.RegisterType((*ManagerTimeline)(nil), "tokenization.v29.ManagerTimeline") + proto.RegisterType((*IsArchivedTimeline)(nil), "tokenization.v29.IsArchivedTimeline") + proto.RegisterType((*ContractAddressTimeline)(nil), "tokenization.v29.ContractAddressTimeline") + proto.RegisterType((*StandardsTimeline)(nil), "tokenization.v29.StandardsTimeline") +} + +func init() { proto.RegisterFile("tokenization/v29/timelines.proto", fileDescriptor_084a5a2b74f56723) } + +var fileDescriptor_084a5a2b74f56723 = []byte{ + // 449 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xbd, 0x8e, 0xd3, 0x40, + 0x10, 0xce, 0x82, 0x04, 0x64, 0x4f, 0xa7, 0x03, 0x0b, 0x44, 0x30, 0xc8, 0x17, 0x45, 0x14, 0xa9, + 0xbc, 0x52, 0xa8, 0x4e, 0xa2, 0x09, 0x81, 0x82, 0xe2, 0x1a, 0x13, 0x28, 0xe8, 0xc6, 0xeb, 0xbd, + 0xcd, 0x0a, 0x7b, 0x37, 0xda, 0x9d, 0x04, 0x8e, 0x07, 0xa0, 0xe6, 0x15, 0x78, 0x08, 0xde, 0x81, + 0xf2, 0x4a, 0x4a, 0x94, 0xbc, 0x08, 0xb2, 0xe3, 0x38, 0xf6, 0xf9, 0xae, 0x73, 0xb7, 0xfe, 0xe6, + 0xfb, 0x99, 0x19, 0x59, 0x43, 0x87, 0x68, 0xbe, 0x08, 0xad, 0xbe, 0x03, 0x2a, 0xa3, 0xd9, 0x7a, + 0x72, 0xc6, 0x50, 0x65, 0x22, 0x55, 0x5a, 0xb8, 0x70, 0x69, 0x0d, 0x1a, 0xef, 0x61, 0x9d, 0x11, + 0xae, 0x27, 0x67, 0xfe, 0x33, 0x69, 0x8c, 0x4c, 0x05, 0x2b, 0xea, 0xf1, 0xea, 0x82, 0x81, 0xbe, + 0xdc, 0x91, 0xfd, 0x1b, 0xec, 0x2c, 0x68, 0x77, 0x21, 0x6c, 0x69, 0xe7, 0x9f, 0xb6, 0x18, 0x31, + 0xa4, 0xa0, 0xf9, 0x3e, 0xcf, 0x1f, 0xb5, 0x08, 0x4b, 0x61, 0x33, 0xe5, 0x9c, 0x32, 0xfa, 0x76, + 0x93, 0x4c, 0x20, 0x24, 0x80, 0x50, 0x12, 0x1e, 0x4b, 0x23, 0x4d, 0xf1, 0x64, 0xf9, 0x6b, 0x87, + 0x8e, 0x7e, 0x13, 0xea, 0xcf, 0x4c, 0x9a, 0x0a, 0x9e, 0xeb, 0xce, 0x4b, 0xc9, 0xbc, 0x1c, 0xd8, + 0x9b, 0x53, 0x8f, 0xb7, 0xaa, 0x03, 0x32, 0x24, 0xe3, 0xa3, 0xc9, 0xcb, 0xf0, 0xfa, 0x1a, 0xc2, + 0xb6, 0x53, 0x74, 0x83, 0xde, 0x9b, 0xd2, 0xe3, 0xfd, 0x4a, 0xf3, 0x24, 0x37, 0xb8, 0x33, 0xbc, + 0x3b, 0x3e, 0x9a, 0x3c, 0x6f, 0x1b, 0x7e, 0x54, 0x1a, 0x23, 0xd0, 0x52, 0x44, 0x4d, 0xc5, 0xe8, + 0x17, 0xa1, 0x4f, 0xe6, 0x39, 0xbb, 0xd5, 0xf2, 0x3b, 0x7a, 0x8c, 0xf5, 0xc2, 0x80, 0x14, 0xe6, + 0xa7, 0x6d, 0xf3, 0x86, 0x3e, 0x6a, 0xaa, 0xba, 0xe8, 0xf1, 0x2b, 0xf5, 0x66, 0x2b, 0x87, 0x26, + 0x7b, 0x5b, 0xef, 0x2f, 0xa0, 0x94, 0x57, 0x68, 0xb1, 0xca, 0x7e, 0x54, 0x43, 0xba, 0x08, 0xd6, + 0xf4, 0xe4, 0x1c, 0x34, 0x48, 0x61, 0xab, 0xd4, 0x01, 0xbd, 0x9f, 0xed, 0xa0, 0x32, 0x72, 0xff, + 0xd9, 0xd1, 0xa0, 0xef, 0xdd, 0xd4, 0xf2, 0x85, 0x5a, 0x8b, 0xa4, 0x3e, 0xa8, 0xaa, 0xd0, 0x22, + 0xf5, 0x41, 0x54, 0x43, 0xba, 0x08, 0xfe, 0x41, 0xe8, 0xd3, 0x99, 0xd1, 0x68, 0x81, 0xe3, 0x34, + 0x49, 0xac, 0x70, 0xae, 0x8a, 0x1f, 0xd3, 0x13, 0xde, 0x2c, 0x95, 0x93, 0x5f, 0x87, 0xbb, 0x68, + 0x04, 0xe9, 0xa3, 0x0f, 0x08, 0x3a, 0x01, 0x9b, 0x1c, 0x3a, 0x78, 0x41, 0xfb, 0x6e, 0x0f, 0x16, + 0x7f, 0x61, 0x3f, 0x3a, 0x00, 0x1d, 0xa4, 0xbe, 0xf9, 0xf4, 0x67, 0x13, 0x90, 0xab, 0x4d, 0x40, + 0xfe, 0x6d, 0x02, 0xf2, 0x73, 0x1b, 0xf4, 0xae, 0xb6, 0x41, 0xef, 0xef, 0x36, 0xe8, 0x7d, 0x7e, + 0x2d, 0x15, 0x2e, 0x56, 0x71, 0xc8, 0x4d, 0xc6, 0x62, 0x85, 0x31, 0x24, 0x52, 0xb8, 0xc3, 0x8b, + 0x2f, 0x40, 0x69, 0xf6, 0x8d, 0x35, 0x6e, 0x06, 0x5e, 0x2e, 0x85, 0xcb, 0x2f, 0x47, 0x7c, 0xaf, + 0xb8, 0x0d, 0xaf, 0xfe, 0x07, 0x00, 0x00, 0xff, 0xff, 0x10, 0x58, 0xef, 0x29, 0x0a, 0x05, 0x00, + 0x00, +} + +func (m *CollectionMetadataTimeline) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CollectionMetadataTimeline) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CollectionMetadataTimeline) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TimelineTimes) > 0 { + for iNdEx := len(m.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TimelineTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTimelines(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.CollectionMetadata != nil { + { + size, err := m.CollectionMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTimelines(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TokenMetadataTimeline) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TokenMetadataTimeline) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenMetadataTimeline) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TimelineTimes) > 0 { + for iNdEx := len(m.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TimelineTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTimelines(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.TokenMetadata) > 0 { + for iNdEx := len(m.TokenMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTimelines(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *CustomDataTimeline) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CustomDataTimeline) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CustomDataTimeline) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TimelineTimes) > 0 { + for iNdEx := len(m.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TimelineTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTimelines(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintTimelines(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ManagerTimeline) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ManagerTimeline) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ManagerTimeline) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TimelineTimes) > 0 { + for iNdEx := len(m.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TimelineTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTimelines(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Manager) > 0 { + i -= len(m.Manager) + copy(dAtA[i:], m.Manager) + i = encodeVarintTimelines(dAtA, i, uint64(len(m.Manager))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *IsArchivedTimeline) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IsArchivedTimeline) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *IsArchivedTimeline) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TimelineTimes) > 0 { + for iNdEx := len(m.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TimelineTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTimelines(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ContractAddressTimeline) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContractAddressTimeline) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContractAddressTimeline) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TimelineTimes) > 0 { + for iNdEx := len(m.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TimelineTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTimelines(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContractAddress) > 0 { + i -= len(m.ContractAddress) + copy(dAtA[i:], m.ContractAddress) + i = encodeVarintTimelines(dAtA, i, uint64(len(m.ContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StandardsTimeline) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StandardsTimeline) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StandardsTimeline) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TimelineTimes) > 0 { + for iNdEx := len(m.TimelineTimes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TimelineTimes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTimelines(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Standards) > 0 { + for iNdEx := len(m.Standards) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Standards[iNdEx]) + copy(dAtA[i:], m.Standards[iNdEx]) + i = encodeVarintTimelines(dAtA, i, uint64(len(m.Standards[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintTimelines(dAtA []byte, offset int, v uint64) int { + offset -= sovTimelines(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *CollectionMetadataTimeline) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CollectionMetadata != nil { + l = m.CollectionMetadata.Size() + n += 1 + l + sovTimelines(uint64(l)) + } + if len(m.TimelineTimes) > 0 { + for _, e := range m.TimelineTimes { + l = e.Size() + n += 1 + l + sovTimelines(uint64(l)) + } + } + return n +} + +func (m *TokenMetadataTimeline) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TokenMetadata) > 0 { + for _, e := range m.TokenMetadata { + l = e.Size() + n += 1 + l + sovTimelines(uint64(l)) + } + } + if len(m.TimelineTimes) > 0 { + for _, e := range m.TimelineTimes { + l = e.Size() + n += 1 + l + sovTimelines(uint64(l)) + } + } + return n +} + +func (m *CustomDataTimeline) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovTimelines(uint64(l)) + } + if len(m.TimelineTimes) > 0 { + for _, e := range m.TimelineTimes { + l = e.Size() + n += 1 + l + sovTimelines(uint64(l)) + } + } + return n +} + +func (m *ManagerTimeline) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Manager) + if l > 0 { + n += 1 + l + sovTimelines(uint64(l)) + } + if len(m.TimelineTimes) > 0 { + for _, e := range m.TimelineTimes { + l = e.Size() + n += 1 + l + sovTimelines(uint64(l)) + } + } + return n +} + +func (m *IsArchivedTimeline) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.IsArchived { + n += 2 + } + if len(m.TimelineTimes) > 0 { + for _, e := range m.TimelineTimes { + l = e.Size() + n += 1 + l + sovTimelines(uint64(l)) + } + } + return n +} + +func (m *ContractAddressTimeline) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractAddress) + if l > 0 { + n += 1 + l + sovTimelines(uint64(l)) + } + if len(m.TimelineTimes) > 0 { + for _, e := range m.TimelineTimes { + l = e.Size() + n += 1 + l + sovTimelines(uint64(l)) + } + } + return n +} + +func (m *StandardsTimeline) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Standards) > 0 { + for _, s := range m.Standards { + l = len(s) + n += 1 + l + sovTimelines(uint64(l)) + } + } + if len(m.TimelineTimes) > 0 { + for _, e := range m.TimelineTimes { + l = e.Size() + n += 1 + l + sovTimelines(uint64(l)) + } + } + return n +} + +func sovTimelines(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTimelines(x uint64) (n int) { + return sovTimelines(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *CollectionMetadataTimeline) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CollectionMetadataTimeline: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CollectionMetadataTimeline: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionMetadata == nil { + m.CollectionMetadata = &CollectionMetadata{} + } + if err := m.CollectionMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimelineTimes = append(m.TimelineTimes, &UintRange{}) + if err := m.TimelineTimes[len(m.TimelineTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTimelines(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTimelines + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TokenMetadataTimeline) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TokenMetadataTimeline: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenMetadataTimeline: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenMetadata = append(m.TokenMetadata, &TokenMetadata{}) + if err := m.TokenMetadata[len(m.TokenMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimelineTimes = append(m.TimelineTimes, &UintRange{}) + if err := m.TimelineTimes[len(m.TimelineTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTimelines(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTimelines + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CustomDataTimeline) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CustomDataTimeline: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CustomDataTimeline: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimelineTimes = append(m.TimelineTimes, &UintRange{}) + if err := m.TimelineTimes[len(m.TimelineTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTimelines(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTimelines + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ManagerTimeline) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ManagerTimeline: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ManagerTimeline: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimelineTimes = append(m.TimelineTimes, &UintRange{}) + if err := m.TimelineTimes[len(m.TimelineTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTimelines(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTimelines + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IsArchivedTimeline) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IsArchivedTimeline: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IsArchivedTimeline: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimelineTimes = append(m.TimelineTimes, &UintRange{}) + if err := m.TimelineTimes[len(m.TimelineTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTimelines(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTimelines + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractAddressTimeline) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractAddressTimeline: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractAddressTimeline: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimelineTimes = append(m.TimelineTimes, &UintRange{}) + if err := m.TimelineTimes[len(m.TimelineTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTimelines(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTimelines + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *StandardsTimeline) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: StandardsTimeline: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: StandardsTimeline: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Standards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Standards = append(m.Standards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimelineTimes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTimelines + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTimelines + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTimelines + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimelineTimes = append(m.TimelineTimes, &UintRange{}) + if err := m.TimelineTimes[len(m.TimelineTimes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTimelines(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTimelines + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTimelines(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTimelines + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTimelines + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTimelines + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTimelines + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTimelines + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTimelines + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTimelines = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTimelines = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTimelines = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/transfers.pb.go b/x/tokenization/types/v29/transfers.pb.go new file mode 100644 index 00000000..f77d9653 --- /dev/null +++ b/x/tokenization/types/v29/transfers.pb.go @@ -0,0 +1,1286 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/transfers.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Transfer defines the details of a transfer of tokens. +type Transfer struct { + // The address of the sender of the transfer. + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + // The addresses of the recipients of the transfer. + ToAddresses []string `protobuf:"bytes,2,rep,name=toAddresses,proto3" json:"toAddresses,omitempty"` + // The balances to be transferred. + Balances []*Balance `protobuf:"bytes,3,rep,name=balances,proto3" json:"balances,omitempty"` + // If defined, we will use the predeterminedBalances from the specified approval to calculate the balances at execution time. + // We will override the balances field with the precalculated balances. Only applicable for approvals with predeterminedBalances set. + PrecalculateBalancesFromApproval *PrecalculateBalancesFromApprovalDetails `protobuf:"bytes,4,opt,name=precalculateBalancesFromApproval,proto3" json:"precalculateBalancesFromApproval,omitempty"` + // The Merkle proofs / solutions for all Merkle challenges required for the transfer. + MerkleProofs []*MerkleProof `protobuf:"bytes,5,rep,name=merkleProofs,proto3" json:"merkleProofs,omitempty"` + // The ETH signature proofs / solutions for all ETH signature challenges required for the transfer. + EthSignatureProofs []*ETHSignatureProof `protobuf:"bytes,6,rep,name=ethSignatureProofs,proto3" json:"ethSignatureProofs,omitempty"` + // The memo for the transfer. + Memo string `protobuf:"bytes,7,opt,name=memo,proto3" json:"memo,omitempty"` + // The prioritized approvals for the transfer. By default, we scan linearly through the approvals and use the first match. + // This field can be used to prioritize specific approvals and scan through them first. + PrioritizedApprovals []*ApprovalIdentifierDetails `protobuf:"bytes,8,rep,name=prioritizedApprovals,proto3" json:"prioritizedApprovals,omitempty"` + // Whether to only check prioritized approvals for the transfer. + // If true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals). + // If false, we will check the prioritized approvals first and then scan through the rest of the approvals. + OnlyCheckPrioritizedCollectionApprovals bool `protobuf:"varint,9,opt,name=onlyCheckPrioritizedCollectionApprovals,proto3" json:"onlyCheckPrioritizedCollectionApprovals,omitempty"` + // Whether to only check prioritized approvals for the transfer. + // If true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals). + // If false, we will check the prioritized approvals first and then scan through the rest of the approvals. + OnlyCheckPrioritizedIncomingApprovals bool `protobuf:"varint,10,opt,name=onlyCheckPrioritizedIncomingApprovals,proto3" json:"onlyCheckPrioritizedIncomingApprovals,omitempty"` + // Whether to only check prioritized approvals for the transfer. + // If true, we will only check the prioritized approvals and fail if none of them match (i.e. do not check any non-prioritized approvals). + // If false, we will check the prioritized approvals first and then scan through the rest of the approvals. + OnlyCheckPrioritizedOutgoingApprovals bool `protobuf:"varint,11,opt,name=onlyCheckPrioritizedOutgoingApprovals,proto3" json:"onlyCheckPrioritizedOutgoingApprovals,omitempty"` +} + +func (m *Transfer) Reset() { *m = Transfer{} } +func (m *Transfer) String() string { return proto.CompactTextString(m) } +func (*Transfer) ProtoMessage() {} +func (*Transfer) Descriptor() ([]byte, []int) { + return fileDescriptor_21c2d26033b7e791, []int{0} +} +func (m *Transfer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Transfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Transfer.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Transfer) XXX_Merge(src proto.Message) { + xxx_messageInfo_Transfer.Merge(m, src) +} +func (m *Transfer) XXX_Size() int { + return m.Size() +} +func (m *Transfer) XXX_DiscardUnknown() { + xxx_messageInfo_Transfer.DiscardUnknown(m) +} + +var xxx_messageInfo_Transfer proto.InternalMessageInfo + +func (m *Transfer) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *Transfer) GetToAddresses() []string { + if m != nil { + return m.ToAddresses + } + return nil +} + +func (m *Transfer) GetBalances() []*Balance { + if m != nil { + return m.Balances + } + return nil +} + +func (m *Transfer) GetPrecalculateBalancesFromApproval() *PrecalculateBalancesFromApprovalDetails { + if m != nil { + return m.PrecalculateBalancesFromApproval + } + return nil +} + +func (m *Transfer) GetMerkleProofs() []*MerkleProof { + if m != nil { + return m.MerkleProofs + } + return nil +} + +func (m *Transfer) GetEthSignatureProofs() []*ETHSignatureProof { + if m != nil { + return m.EthSignatureProofs + } + return nil +} + +func (m *Transfer) GetMemo() string { + if m != nil { + return m.Memo + } + return "" +} + +func (m *Transfer) GetPrioritizedApprovals() []*ApprovalIdentifierDetails { + if m != nil { + return m.PrioritizedApprovals + } + return nil +} + +func (m *Transfer) GetOnlyCheckPrioritizedCollectionApprovals() bool { + if m != nil { + return m.OnlyCheckPrioritizedCollectionApprovals + } + return false +} + +func (m *Transfer) GetOnlyCheckPrioritizedIncomingApprovals() bool { + if m != nil { + return m.OnlyCheckPrioritizedIncomingApprovals + } + return false +} + +func (m *Transfer) GetOnlyCheckPrioritizedOutgoingApprovals() bool { + if m != nil { + return m.OnlyCheckPrioritizedOutgoingApprovals + } + return false +} + +// PrecalculateBalancesFromApprovalDetails defines the details for precalculating balances from an approval. +type PrecalculateBalancesFromApprovalDetails struct { + // The ID of the approval. + ApprovalId string `protobuf:"bytes,1,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + // The level of the approval. Can be "collection", "incoming", or "outgoing". + ApprovalLevel string `protobuf:"bytes,2,opt,name=approvalLevel,proto3" json:"approvalLevel,omitempty"` + // The address of the approver. Leave blank "" if approvalLevel == "collection". + ApproverAddress string `protobuf:"bytes,3,opt,name=approverAddress,proto3" json:"approverAddress,omitempty"` + // The version of the approval. + Version Uint `protobuf:"bytes,4,opt,name=version,proto3,customtype=Uint" json:"version"` + // The options for precalculating the balances. + PrecalculationOptions *PrecalculationOptions `protobuf:"bytes,5,opt,name=precalculationOptions,proto3" json:"precalculationOptions,omitempty"` +} + +func (m *PrecalculateBalancesFromApprovalDetails) Reset() { + *m = PrecalculateBalancesFromApprovalDetails{} +} +func (m *PrecalculateBalancesFromApprovalDetails) String() string { return proto.CompactTextString(m) } +func (*PrecalculateBalancesFromApprovalDetails) ProtoMessage() {} +func (*PrecalculateBalancesFromApprovalDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_21c2d26033b7e791, []int{1} +} +func (m *PrecalculateBalancesFromApprovalDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PrecalculateBalancesFromApprovalDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PrecalculateBalancesFromApprovalDetails.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *PrecalculateBalancesFromApprovalDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrecalculateBalancesFromApprovalDetails.Merge(m, src) +} +func (m *PrecalculateBalancesFromApprovalDetails) XXX_Size() int { + return m.Size() +} +func (m *PrecalculateBalancesFromApprovalDetails) XXX_DiscardUnknown() { + xxx_messageInfo_PrecalculateBalancesFromApprovalDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_PrecalculateBalancesFromApprovalDetails proto.InternalMessageInfo + +func (m *PrecalculateBalancesFromApprovalDetails) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *PrecalculateBalancesFromApprovalDetails) GetApprovalLevel() string { + if m != nil { + return m.ApprovalLevel + } + return "" +} + +func (m *PrecalculateBalancesFromApprovalDetails) GetApproverAddress() string { + if m != nil { + return m.ApproverAddress + } + return "" +} + +func (m *PrecalculateBalancesFromApprovalDetails) GetPrecalculationOptions() *PrecalculationOptions { + if m != nil { + return m.PrecalculationOptions + } + return nil +} + +func init() { + proto.RegisterType((*Transfer)(nil), "tokenization.v29.Transfer") + proto.RegisterType((*PrecalculateBalancesFromApprovalDetails)(nil), "tokenization.v29.PrecalculateBalancesFromApprovalDetails") +} + +func init() { proto.RegisterFile("tokenization/v29/transfers.proto", fileDescriptor_21c2d26033b7e791) } + +var fileDescriptor_21c2d26033b7e791 = []byte{ + // 582 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0x6b, 0x13, 0x41, + 0x14, 0xc0, 0xb3, 0x4d, 0x6d, 0x93, 0x49, 0x45, 0x19, 0x2a, 0xac, 0x05, 0xb7, 0x6b, 0xfd, 0xd3, + 0x05, 0x21, 0x0b, 0x11, 0x0f, 0x05, 0x2f, 0x4d, 0x55, 0x2c, 0x28, 0x0d, 0xdb, 0x28, 0x22, 0x88, + 0x4c, 0x36, 0x2f, 0x9b, 0x21, 0xb3, 0x33, 0xcb, 0xcc, 0x24, 0xd8, 0xde, 0xbd, 0x8b, 0x9f, 0xc0, + 0x8f, 0xd3, 0x63, 0x8f, 0xe2, 0xa1, 0x48, 0xf2, 0x45, 0x64, 0x37, 0xbb, 0xdd, 0xa4, 0x9b, 0xda, + 0x5c, 0xc2, 0xcb, 0xdb, 0xdf, 0xfc, 0xde, 0xbe, 0x9d, 0x79, 0x83, 0x6c, 0x2d, 0x06, 0xc0, 0xe9, + 0x29, 0xd1, 0x54, 0x70, 0x77, 0xd4, 0xd8, 0x73, 0xb5, 0x24, 0x5c, 0xf5, 0x40, 0xaa, 0x7a, 0x24, + 0x85, 0x16, 0xf8, 0xee, 0x2c, 0x51, 0x1f, 0x35, 0xf6, 0xb6, 0x36, 0x03, 0x11, 0x88, 0xe4, 0xa1, + 0x1b, 0x47, 0x53, 0x6e, 0x6b, 0xbb, 0x60, 0xea, 0x10, 0x46, 0xb8, 0x0f, 0xa9, 0x68, 0xab, 0x58, + 0x8a, 0x44, 0x91, 0x14, 0x23, 0xc2, 0x32, 0xe2, 0x61, 0x81, 0xf0, 0xfb, 0x84, 0x31, 0xe0, 0x41, + 0x26, 0xd9, 0xf9, 0xb9, 0x86, 0x2a, 0xed, 0xf4, 0x0d, 0x31, 0x46, 0xab, 0x3d, 0x29, 0x42, 0xd3, + 0xb0, 0x0d, 0xa7, 0xea, 0x25, 0x31, 0xb6, 0x51, 0x4d, 0x8b, 0xfd, 0x6e, 0x57, 0x82, 0x52, 0xa0, + 0xcc, 0x15, 0xbb, 0xec, 0x54, 0xbd, 0xd9, 0x14, 0x7e, 0x81, 0x2a, 0xd9, 0x9b, 0x99, 0x65, 0xbb, + 0xec, 0xd4, 0x1a, 0xf7, 0xeb, 0x57, 0x7b, 0xac, 0x37, 0xa7, 0x84, 0x77, 0x89, 0xe2, 0xef, 0x06, + 0xb2, 0x23, 0x09, 0x3e, 0x61, 0xfe, 0x90, 0x11, 0x0d, 0x29, 0xa1, 0xde, 0x48, 0x11, 0xee, 0xa7, + 0x8d, 0x98, 0xab, 0xb6, 0xe1, 0xd4, 0x1a, 0x7b, 0x45, 0x5f, 0xeb, 0x86, 0x95, 0xaf, 0x40, 0x13, + 0xca, 0x94, 0x77, 0x63, 0x09, 0xbc, 0x8f, 0x36, 0x42, 0x90, 0x03, 0x06, 0x2d, 0x29, 0x44, 0x4f, + 0x99, 0xb7, 0x92, 0x16, 0x1e, 0x14, 0x4b, 0xbe, 0xcf, 0x29, 0x6f, 0x6e, 0x09, 0x3e, 0x46, 0x18, + 0x74, 0xff, 0x98, 0x06, 0x9c, 0xe8, 0xa1, 0xcc, 0x44, 0x6b, 0x89, 0xe8, 0x51, 0x51, 0xf4, 0xba, + 0xfd, 0x76, 0x9e, 0xf5, 0x16, 0x2c, 0x8f, 0x37, 0x23, 0x84, 0x50, 0x98, 0xeb, 0xd3, 0xcd, 0x88, + 0x63, 0xfc, 0x15, 0x6d, 0x46, 0x92, 0x0a, 0x49, 0x35, 0x3d, 0x85, 0x6e, 0xd6, 0x82, 0x32, 0x2b, + 0x49, 0xa9, 0x67, 0xc5, 0x52, 0x19, 0x72, 0xd8, 0x05, 0xae, 0x69, 0x8f, 0x82, 0xcc, 0x3e, 0xcc, + 0x42, 0x11, 0xfe, 0x84, 0x76, 0x05, 0x67, 0x27, 0x07, 0x7d, 0xf0, 0x07, 0xad, 0x1c, 0x38, 0x10, + 0x8c, 0x81, 0x1f, 0x5b, 0xf3, 0x9a, 0x55, 0xdb, 0x70, 0x2a, 0xde, 0xb2, 0x38, 0x6e, 0xa3, 0x27, + 0x8b, 0xd0, 0x43, 0xee, 0x8b, 0x90, 0xf2, 0x20, 0xf7, 0xa2, 0xc4, 0xbb, 0x1c, 0x7c, 0x9d, 0xf5, + 0x68, 0xa8, 0x03, 0x31, 0x67, 0xad, 0x5d, 0x6f, 0x2d, 0xc0, 0x3b, 0xbf, 0x56, 0xd0, 0xee, 0x92, + 0x07, 0x0c, 0x5b, 0x08, 0x91, 0xcb, 0x8f, 0x9c, 0x4e, 0xce, 0x4c, 0x06, 0x3f, 0x46, 0xb7, 0xb3, + 0x7f, 0xef, 0x60, 0x04, 0xcc, 0x5c, 0x49, 0x90, 0xf9, 0x24, 0x76, 0xd0, 0x9d, 0x69, 0x02, 0x64, + 0x3a, 0x58, 0x66, 0x39, 0xe1, 0xae, 0xa6, 0xf1, 0x53, 0xb4, 0x3e, 0x02, 0xa9, 0xa8, 0xe0, 0xc9, + 0x70, 0x54, 0x9b, 0x1b, 0x67, 0x17, 0xdb, 0xa5, 0x3f, 0x17, 0xdb, 0xab, 0x1f, 0x28, 0xd7, 0x5e, + 0xf6, 0x10, 0x7f, 0x41, 0xf7, 0x66, 0x8e, 0x3e, 0x15, 0xfc, 0x28, 0x8a, 0x7f, 0xe3, 0xf3, 0x1d, + 0x8f, 0xd4, 0xee, 0x7f, 0x47, 0x2a, 0xc7, 0xbd, 0xc5, 0x96, 0xe6, 0xc7, 0xb3, 0xb1, 0x65, 0x9c, + 0x8f, 0x2d, 0xe3, 0xef, 0xd8, 0x32, 0x7e, 0x4c, 0xac, 0xd2, 0xf9, 0xc4, 0x2a, 0xfd, 0x9e, 0x58, + 0xa5, 0xcf, 0x2f, 0x03, 0xaa, 0xfb, 0xc3, 0x4e, 0xdd, 0x17, 0xa1, 0xdb, 0xa1, 0xba, 0x43, 0xba, + 0x01, 0xa8, 0x3c, 0xf2, 0xfb, 0x84, 0x72, 0xf7, 0x9b, 0x3b, 0x77, 0x35, 0xe9, 0x93, 0x08, 0x54, + 0x7c, 0x41, 0x75, 0xd6, 0x92, 0x6b, 0xe9, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x61, 0x0c, + 0xcd, 0xfa, 0x48, 0x05, 0x00, 0x00, +} + +func (m *Transfer) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Transfer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Transfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.OnlyCheckPrioritizedOutgoingApprovals { + i-- + if m.OnlyCheckPrioritizedOutgoingApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.OnlyCheckPrioritizedIncomingApprovals { + i-- + if m.OnlyCheckPrioritizedIncomingApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if m.OnlyCheckPrioritizedCollectionApprovals { + i-- + if m.OnlyCheckPrioritizedCollectionApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if len(m.PrioritizedApprovals) > 0 { + for iNdEx := len(m.PrioritizedApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PrioritizedApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransfers(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.Memo) > 0 { + i -= len(m.Memo) + copy(dAtA[i:], m.Memo) + i = encodeVarintTransfers(dAtA, i, uint64(len(m.Memo))) + i-- + dAtA[i] = 0x3a + } + if len(m.EthSignatureProofs) > 0 { + for iNdEx := len(m.EthSignatureProofs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EthSignatureProofs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransfers(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MerkleProofs) > 0 { + for iNdEx := len(m.MerkleProofs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MerkleProofs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransfers(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.PrecalculateBalancesFromApproval != nil { + { + size, err := m.PrecalculateBalancesFromApproval.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransfers(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransfers(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.ToAddresses) > 0 { + for iNdEx := len(m.ToAddresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ToAddresses[iNdEx]) + copy(dAtA[i:], m.ToAddresses[iNdEx]) + i = encodeVarintTransfers(dAtA, i, uint64(len(m.ToAddresses[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTransfers(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *PrecalculateBalancesFromApprovalDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PrecalculateBalancesFromApprovalDetails) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PrecalculateBalancesFromApprovalDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PrecalculationOptions != nil { + { + size, err := m.PrecalculationOptions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTransfers(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + { + size := m.Version.Size() + i -= size + if _, err := m.Version.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTransfers(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + if len(m.ApproverAddress) > 0 { + i -= len(m.ApproverAddress) + copy(dAtA[i:], m.ApproverAddress) + i = encodeVarintTransfers(dAtA, i, uint64(len(m.ApproverAddress))) + i-- + dAtA[i] = 0x1a + } + if len(m.ApprovalLevel) > 0 { + i -= len(m.ApprovalLevel) + copy(dAtA[i:], m.ApprovalLevel) + i = encodeVarintTransfers(dAtA, i, uint64(len(m.ApprovalLevel))) + i-- + dAtA[i] = 0x12 + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintTransfers(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintTransfers(dAtA []byte, offset int, v uint64) int { + offset -= sovTransfers(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Transfer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.From) + if l > 0 { + n += 1 + l + sovTransfers(uint64(l)) + } + if len(m.ToAddresses) > 0 { + for _, s := range m.ToAddresses { + l = len(s) + n += 1 + l + sovTransfers(uint64(l)) + } + } + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovTransfers(uint64(l)) + } + } + if m.PrecalculateBalancesFromApproval != nil { + l = m.PrecalculateBalancesFromApproval.Size() + n += 1 + l + sovTransfers(uint64(l)) + } + if len(m.MerkleProofs) > 0 { + for _, e := range m.MerkleProofs { + l = e.Size() + n += 1 + l + sovTransfers(uint64(l)) + } + } + if len(m.EthSignatureProofs) > 0 { + for _, e := range m.EthSignatureProofs { + l = e.Size() + n += 1 + l + sovTransfers(uint64(l)) + } + } + l = len(m.Memo) + if l > 0 { + n += 1 + l + sovTransfers(uint64(l)) + } + if len(m.PrioritizedApprovals) > 0 { + for _, e := range m.PrioritizedApprovals { + l = e.Size() + n += 1 + l + sovTransfers(uint64(l)) + } + } + if m.OnlyCheckPrioritizedCollectionApprovals { + n += 2 + } + if m.OnlyCheckPrioritizedIncomingApprovals { + n += 2 + } + if m.OnlyCheckPrioritizedOutgoingApprovals { + n += 2 + } + return n +} + +func (m *PrecalculateBalancesFromApprovalDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovTransfers(uint64(l)) + } + l = len(m.ApprovalLevel) + if l > 0 { + n += 1 + l + sovTransfers(uint64(l)) + } + l = len(m.ApproverAddress) + if l > 0 { + n += 1 + l + sovTransfers(uint64(l)) + } + l = m.Version.Size() + n += 1 + l + sovTransfers(uint64(l)) + if m.PrecalculationOptions != nil { + l = m.PrecalculationOptions.Size() + n += 1 + l + sovTransfers(uint64(l)) + } + return n +} + +func sovTransfers(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTransfers(x uint64) (n int) { + return sovTransfers(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Transfer) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Transfer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Transfer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToAddresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ToAddresses = append(m.ToAddresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, &Balance{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrecalculateBalancesFromApproval", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrecalculateBalancesFromApproval == nil { + m.PrecalculateBalancesFromApproval = &PrecalculateBalancesFromApprovalDetails{} + } + if err := m.PrecalculateBalancesFromApproval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MerkleProofs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MerkleProofs = append(m.MerkleProofs, &MerkleProof{}) + if err := m.MerkleProofs[len(m.MerkleProofs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EthSignatureProofs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EthSignatureProofs = append(m.EthSignatureProofs, ÐSignatureProof{}) + if err := m.EthSignatureProofs[len(m.EthSignatureProofs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Memo", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Memo = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrioritizedApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PrioritizedApprovals = append(m.PrioritizedApprovals, &ApprovalIdentifierDetails{}) + if err := m.PrioritizedApprovals[len(m.PrioritizedApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OnlyCheckPrioritizedCollectionApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OnlyCheckPrioritizedCollectionApprovals = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OnlyCheckPrioritizedIncomingApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OnlyCheckPrioritizedIncomingApprovals = bool(v != 0) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OnlyCheckPrioritizedOutgoingApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.OnlyCheckPrioritizedOutgoingApprovals = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTransfers(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTransfers + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PrecalculateBalancesFromApprovalDetails) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PrecalculateBalancesFromApprovalDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PrecalculateBalancesFromApprovalDetails: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproverAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApproverAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PrecalculationOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTransfers + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTransfers + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTransfers + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PrecalculationOptions == nil { + m.PrecalculationOptions = &PrecalculationOptions{} + } + if err := m.PrecalculationOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTransfers(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTransfers + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTransfers(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTransfers + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTransfers + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTransfers + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTransfers + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTransfers + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTransfers + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTransfers = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTransfers = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTransfers = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/tx.pb.go b/x/tokenization/types/v29/tx.pb.go new file mode 100644 index 00000000..08531d77 --- /dev/null +++ b/x/tokenization/types/v29/tx.pb.go @@ -0,0 +1,23046 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/tx.proto + +package v29 + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// Used for WASM bindings and JSON parsing +type TokenizationCustomMsgType struct { + CreateAddressListsMsg *MsgCreateAddressLists `protobuf:"bytes,1,opt,name=createAddressListsMsg,proto3" json:"createAddressListsMsg,omitempty"` + UniversalUpdateCollectionMsg *MsgUniversalUpdateCollection `protobuf:"bytes,2,opt,name=universalUpdateCollectionMsg,proto3" json:"universalUpdateCollectionMsg,omitempty"` + DeleteCollectionMsg *MsgDeleteCollection `protobuf:"bytes,3,opt,name=deleteCollectionMsg,proto3" json:"deleteCollectionMsg,omitempty"` + TransferTokensMsg *MsgTransferTokens `protobuf:"bytes,4,opt,name=transferTokensMsg,proto3" json:"transferTokensMsg,omitempty"` + UpdateUserApprovalsMsg *MsgUpdateUserApprovals `protobuf:"bytes,5,opt,name=updateUserApprovalsMsg,proto3" json:"updateUserApprovalsMsg,omitempty"` + UpdateCollectionMsg *MsgUpdateCollection `protobuf:"bytes,6,opt,name=updateCollectionMsg,proto3" json:"updateCollectionMsg,omitempty"` + CreateCollectionMsg *MsgCreateCollection `protobuf:"bytes,7,opt,name=createCollectionMsg,proto3" json:"createCollectionMsg,omitempty"` + CreateDynamicStoreMsg *MsgCreateDynamicStore `protobuf:"bytes,8,opt,name=createDynamicStoreMsg,proto3" json:"createDynamicStoreMsg,omitempty"` + UpdateDynamicStoreMsg *MsgUpdateDynamicStore `protobuf:"bytes,9,opt,name=updateDynamicStoreMsg,proto3" json:"updateDynamicStoreMsg,omitempty"` + DeleteDynamicStoreMsg *MsgDeleteDynamicStore `protobuf:"bytes,10,opt,name=deleteDynamicStoreMsg,proto3" json:"deleteDynamicStoreMsg,omitempty"` + SetDynamicStoreValueMsg *MsgSetDynamicStoreValue `protobuf:"bytes,11,opt,name=setDynamicStoreValueMsg,proto3" json:"setDynamicStoreValueMsg,omitempty"` + SetIncomingApprovalMsg *MsgSetIncomingApproval `protobuf:"bytes,14,opt,name=setIncomingApprovalMsg,proto3" json:"setIncomingApprovalMsg,omitempty"` + DeleteIncomingApprovalMsg *MsgDeleteIncomingApproval `protobuf:"bytes,15,opt,name=deleteIncomingApprovalMsg,proto3" json:"deleteIncomingApprovalMsg,omitempty"` + SetOutgoingApprovalMsg *MsgSetOutgoingApproval `protobuf:"bytes,16,opt,name=setOutgoingApprovalMsg,proto3" json:"setOutgoingApprovalMsg,omitempty"` + DeleteOutgoingApprovalMsg *MsgDeleteOutgoingApproval `protobuf:"bytes,17,opt,name=deleteOutgoingApprovalMsg,proto3" json:"deleteOutgoingApprovalMsg,omitempty"` + PurgeApprovalsMsg *MsgPurgeApprovals `protobuf:"bytes,18,opt,name=purgeApprovalsMsg,proto3" json:"purgeApprovalsMsg,omitempty"` + // Helper message types for UniversalUpdateCollection subsets + SetValidTokenIdsMsg *MsgSetValidTokenIds `protobuf:"bytes,19,opt,name=setValidTokenIdsMsg,proto3" json:"setValidTokenIdsMsg,omitempty"` + SetManagerMsg *MsgSetManager `protobuf:"bytes,20,opt,name=setManagerMsg,proto3" json:"setManagerMsg,omitempty"` + SetCollectionMetadataMsg *MsgSetCollectionMetadata `protobuf:"bytes,21,opt,name=setCollectionMetadataMsg,proto3" json:"setCollectionMetadataMsg,omitempty"` + SetTokenMetadataMsg *MsgSetTokenMetadata `protobuf:"bytes,22,opt,name=setTokenMetadataMsg,proto3" json:"setTokenMetadataMsg,omitempty"` + SetCustomDataMsg *MsgSetCustomData `protobuf:"bytes,23,opt,name=setCustomDataMsg,proto3" json:"setCustomDataMsg,omitempty"` + SetStandardsMsg *MsgSetStandards `protobuf:"bytes,24,opt,name=setStandardsMsg,proto3" json:"setStandardsMsg,omitempty"` + SetCollectionApprovalsMsg *MsgSetCollectionApprovals `protobuf:"bytes,25,opt,name=setCollectionApprovalsMsg,proto3" json:"setCollectionApprovalsMsg,omitempty"` + SetIsArchivedMsg *MsgSetIsArchived `protobuf:"bytes,26,opt,name=setIsArchivedMsg,proto3" json:"setIsArchivedMsg,omitempty"` + SetReservedProtocolAddressMsg *MsgSetReservedProtocolAddress `protobuf:"bytes,27,opt,name=setReservedProtocolAddressMsg,proto3" json:"setReservedProtocolAddressMsg,omitempty"` + CastVoteMsg *MsgCastVote `protobuf:"bytes,28,opt,name=castVoteMsg,proto3" json:"castVoteMsg,omitempty"` +} + +func (m *TokenizationCustomMsgType) Reset() { *m = TokenizationCustomMsgType{} } +func (m *TokenizationCustomMsgType) String() string { return proto.CompactTextString(m) } +func (*TokenizationCustomMsgType) ProtoMessage() {} +func (*TokenizationCustomMsgType) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{0} +} +func (m *TokenizationCustomMsgType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TokenizationCustomMsgType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TokenizationCustomMsgType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TokenizationCustomMsgType) XXX_Merge(src proto.Message) { + xxx_messageInfo_TokenizationCustomMsgType.Merge(m, src) +} +func (m *TokenizationCustomMsgType) XXX_Size() int { + return m.Size() +} +func (m *TokenizationCustomMsgType) XXX_DiscardUnknown() { + xxx_messageInfo_TokenizationCustomMsgType.DiscardUnknown(m) +} + +var xxx_messageInfo_TokenizationCustomMsgType proto.InternalMessageInfo + +func (m *TokenizationCustomMsgType) GetCreateAddressListsMsg() *MsgCreateAddressLists { + if m != nil { + return m.CreateAddressListsMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetUniversalUpdateCollectionMsg() *MsgUniversalUpdateCollection { + if m != nil { + return m.UniversalUpdateCollectionMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetDeleteCollectionMsg() *MsgDeleteCollection { + if m != nil { + return m.DeleteCollectionMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetTransferTokensMsg() *MsgTransferTokens { + if m != nil { + return m.TransferTokensMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetUpdateUserApprovalsMsg() *MsgUpdateUserApprovals { + if m != nil { + return m.UpdateUserApprovalsMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetUpdateCollectionMsg() *MsgUpdateCollection { + if m != nil { + return m.UpdateCollectionMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetCreateCollectionMsg() *MsgCreateCollection { + if m != nil { + return m.CreateCollectionMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetCreateDynamicStoreMsg() *MsgCreateDynamicStore { + if m != nil { + return m.CreateDynamicStoreMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetUpdateDynamicStoreMsg() *MsgUpdateDynamicStore { + if m != nil { + return m.UpdateDynamicStoreMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetDeleteDynamicStoreMsg() *MsgDeleteDynamicStore { + if m != nil { + return m.DeleteDynamicStoreMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetDynamicStoreValueMsg() *MsgSetDynamicStoreValue { + if m != nil { + return m.SetDynamicStoreValueMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetIncomingApprovalMsg() *MsgSetIncomingApproval { + if m != nil { + return m.SetIncomingApprovalMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetDeleteIncomingApprovalMsg() *MsgDeleteIncomingApproval { + if m != nil { + return m.DeleteIncomingApprovalMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetOutgoingApprovalMsg() *MsgSetOutgoingApproval { + if m != nil { + return m.SetOutgoingApprovalMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetDeleteOutgoingApprovalMsg() *MsgDeleteOutgoingApproval { + if m != nil { + return m.DeleteOutgoingApprovalMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetPurgeApprovalsMsg() *MsgPurgeApprovals { + if m != nil { + return m.PurgeApprovalsMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetValidTokenIdsMsg() *MsgSetValidTokenIds { + if m != nil { + return m.SetValidTokenIdsMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetManagerMsg() *MsgSetManager { + if m != nil { + return m.SetManagerMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetCollectionMetadataMsg() *MsgSetCollectionMetadata { + if m != nil { + return m.SetCollectionMetadataMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetTokenMetadataMsg() *MsgSetTokenMetadata { + if m != nil { + return m.SetTokenMetadataMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetCustomDataMsg() *MsgSetCustomData { + if m != nil { + return m.SetCustomDataMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetStandardsMsg() *MsgSetStandards { + if m != nil { + return m.SetStandardsMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetCollectionApprovalsMsg() *MsgSetCollectionApprovals { + if m != nil { + return m.SetCollectionApprovalsMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetIsArchivedMsg() *MsgSetIsArchived { + if m != nil { + return m.SetIsArchivedMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetSetReservedProtocolAddressMsg() *MsgSetReservedProtocolAddress { + if m != nil { + return m.SetReservedProtocolAddressMsg + } + return nil +} + +func (m *TokenizationCustomMsgType) GetCastVoteMsg() *MsgCastVote { + if m != nil { + return m.CastVoteMsg + } + return nil +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +type MsgUpdateParams struct { + // authority is the address that controls the module (defaults to x/gov unless overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the module parameters to update. + // + // NOTE: All parameters must be supplied. + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` +} + +func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } +func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{1} +} +func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams.Merge(m, src) +} +func (m *MsgUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo + +func (m *MsgUpdateParams) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgUpdateParams) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +type MsgUpdateParamsResponse struct { +} + +func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } +func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParamsResponse) ProtoMessage() {} +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{2} +} +func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) +} +func (m *MsgUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo + +type CosmosCoinWrapperPathAddObject struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + Conversion *ConversionWithoutDenom `protobuf:"bytes,2,opt,name=conversion,proto3" json:"conversion,omitempty"` + Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` + DenomUnits []*DenomUnit `protobuf:"bytes,4,rep,name=denomUnits,proto3" json:"denomUnits,omitempty"` + AllowOverrideWithAnyValidToken bool `protobuf:"varint,5,opt,name=allowOverrideWithAnyValidToken,proto3" json:"allowOverrideWithAnyValidToken,omitempty"` + // The metadata for this wrapper path. + Metadata *PathMetadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (m *CosmosCoinWrapperPathAddObject) Reset() { *m = CosmosCoinWrapperPathAddObject{} } +func (m *CosmosCoinWrapperPathAddObject) String() string { return proto.CompactTextString(m) } +func (*CosmosCoinWrapperPathAddObject) ProtoMessage() {} +func (*CosmosCoinWrapperPathAddObject) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{3} +} +func (m *CosmosCoinWrapperPathAddObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CosmosCoinWrapperPathAddObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CosmosCoinWrapperPathAddObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CosmosCoinWrapperPathAddObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_CosmosCoinWrapperPathAddObject.Merge(m, src) +} +func (m *CosmosCoinWrapperPathAddObject) XXX_Size() int { + return m.Size() +} +func (m *CosmosCoinWrapperPathAddObject) XXX_DiscardUnknown() { + xxx_messageInfo_CosmosCoinWrapperPathAddObject.DiscardUnknown(m) +} + +var xxx_messageInfo_CosmosCoinWrapperPathAddObject proto.InternalMessageInfo + +func (m *CosmosCoinWrapperPathAddObject) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *CosmosCoinWrapperPathAddObject) GetConversion() *ConversionWithoutDenom { + if m != nil { + return m.Conversion + } + return nil +} + +func (m *CosmosCoinWrapperPathAddObject) GetSymbol() string { + if m != nil { + return m.Symbol + } + return "" +} + +func (m *CosmosCoinWrapperPathAddObject) GetDenomUnits() []*DenomUnit { + if m != nil { + return m.DenomUnits + } + return nil +} + +func (m *CosmosCoinWrapperPathAddObject) GetAllowOverrideWithAnyValidToken() bool { + if m != nil { + return m.AllowOverrideWithAnyValidToken + } + return false +} + +func (m *CosmosCoinWrapperPathAddObject) GetMetadata() *PathMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +type AliasPathAddObject struct { + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` + Conversion *ConversionWithoutDenom `protobuf:"bytes,2,opt,name=conversion,proto3" json:"conversion,omitempty"` + Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` + DenomUnits []*DenomUnit `protobuf:"bytes,4,rep,name=denomUnits,proto3" json:"denomUnits,omitempty"` + // The metadata for this alias path. + Metadata *PathMetadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (m *AliasPathAddObject) Reset() { *m = AliasPathAddObject{} } +func (m *AliasPathAddObject) String() string { return proto.CompactTextString(m) } +func (*AliasPathAddObject) ProtoMessage() {} +func (*AliasPathAddObject) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{4} +} +func (m *AliasPathAddObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AliasPathAddObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AliasPathAddObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AliasPathAddObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_AliasPathAddObject.Merge(m, src) +} +func (m *AliasPathAddObject) XXX_Size() int { + return m.Size() +} +func (m *AliasPathAddObject) XXX_DiscardUnknown() { + xxx_messageInfo_AliasPathAddObject.DiscardUnknown(m) +} + +var xxx_messageInfo_AliasPathAddObject proto.InternalMessageInfo + +func (m *AliasPathAddObject) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *AliasPathAddObject) GetConversion() *ConversionWithoutDenom { + if m != nil { + return m.Conversion + } + return nil +} + +func (m *AliasPathAddObject) GetSymbol() string { + if m != nil { + return m.Symbol + } + return "" +} + +func (m *AliasPathAddObject) GetDenomUnits() []*DenomUnit { + if m != nil { + return m.DenomUnits + } + return nil +} + +func (m *AliasPathAddObject) GetMetadata() *PathMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +type CosmosCoinBackedPathAddObject struct { + Conversion *Conversion `protobuf:"bytes,1,opt,name=conversion,proto3" json:"conversion,omitempty"` +} + +func (m *CosmosCoinBackedPathAddObject) Reset() { *m = CosmosCoinBackedPathAddObject{} } +func (m *CosmosCoinBackedPathAddObject) String() string { return proto.CompactTextString(m) } +func (*CosmosCoinBackedPathAddObject) ProtoMessage() {} +func (*CosmosCoinBackedPathAddObject) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{5} +} +func (m *CosmosCoinBackedPathAddObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CosmosCoinBackedPathAddObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CosmosCoinBackedPathAddObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CosmosCoinBackedPathAddObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_CosmosCoinBackedPathAddObject.Merge(m, src) +} +func (m *CosmosCoinBackedPathAddObject) XXX_Size() int { + return m.Size() +} +func (m *CosmosCoinBackedPathAddObject) XXX_DiscardUnknown() { + xxx_messageInfo_CosmosCoinBackedPathAddObject.DiscardUnknown(m) +} + +var xxx_messageInfo_CosmosCoinBackedPathAddObject proto.InternalMessageInfo + +func (m *CosmosCoinBackedPathAddObject) GetConversion() *Conversion { + if m != nil { + return m.Conversion + } + return nil +} + +// InvariantsAddObject is used for adding invariants without specifying addresses. +// Addresses are generated by the keeper and stored in the collection. +type InvariantsAddObject struct { + // If true, all ownership times must be full ranges [{ start: 1, end: GoMaxUInt64 }]. + // This prevents time-based restrictions on token ownership. + NoCustomOwnershipTimes bool `protobuf:"varint,1,opt,name=noCustomOwnershipTimes,proto3" json:"noCustomOwnershipTimes,omitempty"` + // Maximum supply per token ID. Checked against Total address balances after transfers complete. + // A value of 0 means no limit (unlimited). + MaxSupplyPerId Uint `protobuf:"bytes,2,opt,name=maxSupplyPerId,proto3,customtype=Uint" json:"maxSupplyPerId"` + // The IBC backed (sdk.coin) path for the collection. Only one path is allowed. + // Address will be generated by the keeper. + CosmosCoinBackedPath *CosmosCoinBackedPathAddObject `protobuf:"bytes,3,opt,name=cosmosCoinBackedPath,proto3" json:"cosmosCoinBackedPath,omitempty"` + // If true, disallows any collection approvals that have overridesFromOutgoingApprovals or overridesToIncomingApprovals set to true. + // This prevents forceful transfers that bypass user-level approvals. + // This only applies to transfers where the from address does not equal "Mint". + NoForcefulPostMintTransfers bool `protobuf:"varint,4,opt,name=noForcefulPostMintTransfers,proto3" json:"noForcefulPostMintTransfers,omitempty"` + // If true, disallows pool creation with this collection's assets. + // When true, any attempt to create a pool with tokenization assets from this collection will fail. + DisablePoolCreation bool `protobuf:"varint,5,opt,name=disablePoolCreation,proto3" json:"disablePoolCreation,omitempty"` + // EVM query invariants that must pass after all transfers complete. + // These are checked once per message after all balance updates, with access to ALL recipient addresses. + // Placeholders: $sender, $recipients (comma-separated), $initiator, $collectionId, $recipient + EvmQueryChallenges []*EVMQueryChallenge `protobuf:"bytes,6,rep,name=evmQueryChallenges,proto3" json:"evmQueryChallenges,omitempty"` +} + +func (m *InvariantsAddObject) Reset() { *m = InvariantsAddObject{} } +func (m *InvariantsAddObject) String() string { return proto.CompactTextString(m) } +func (*InvariantsAddObject) ProtoMessage() {} +func (*InvariantsAddObject) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{6} +} +func (m *InvariantsAddObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *InvariantsAddObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_InvariantsAddObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *InvariantsAddObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_InvariantsAddObject.Merge(m, src) +} +func (m *InvariantsAddObject) XXX_Size() int { + return m.Size() +} +func (m *InvariantsAddObject) XXX_DiscardUnknown() { + xxx_messageInfo_InvariantsAddObject.DiscardUnknown(m) +} + +var xxx_messageInfo_InvariantsAddObject proto.InternalMessageInfo + +func (m *InvariantsAddObject) GetNoCustomOwnershipTimes() bool { + if m != nil { + return m.NoCustomOwnershipTimes + } + return false +} + +func (m *InvariantsAddObject) GetCosmosCoinBackedPath() *CosmosCoinBackedPathAddObject { + if m != nil { + return m.CosmosCoinBackedPath + } + return nil +} + +func (m *InvariantsAddObject) GetNoForcefulPostMintTransfers() bool { + if m != nil { + return m.NoForcefulPostMintTransfers + } + return false +} + +func (m *InvariantsAddObject) GetDisablePoolCreation() bool { + if m != nil { + return m.DisablePoolCreation + } + return false +} + +func (m *InvariantsAddObject) GetEvmQueryChallenges() []*EVMQueryChallenge { + if m != nil { + return m.EvmQueryChallenges + } + return nil +} + +// MsgUniversalUpdateCollection is used to define MsgServer types for all requests and responses for Msgs of the tokens module. +// It is a universal interface that can be used for both creating and updating collections. +// We have it defined for legacy purposes, but it is recommended to use MsgCreateCollection and MsgUpdateCollection instead. +type MsgUniversalUpdateCollection struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection (0 for new collection). + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // The default balances for the user + DefaultBalances *UserBalanceStore `protobuf:"bytes,3,opt,name=defaultBalances,proto3" json:"defaultBalances,omitempty"` + // Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateValidTokenIds bool `protobuf:"varint,4,opt,name=updateValidTokenIds,proto3" json:"updateValidTokenIds,omitempty"` + // New token IDs to add to this collection + ValidTokenIds []*UintRange `protobuf:"bytes,5,rep,name=validTokenIds,proto3" json:"validTokenIds,omitempty"` + // Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateCollectionPermissions bool `protobuf:"varint,6,opt,name=updateCollectionPermissions,proto3" json:"updateCollectionPermissions,omitempty"` + // New collection permissions to set. + CollectionPermissions *CollectionPermissions `protobuf:"bytes,7,opt,name=collectionPermissions,proto3" json:"collectionPermissions,omitempty"` + // Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateManager bool `protobuf:"varint,8,opt,name=updateManager,proto3" json:"updateManager,omitempty"` + // New manager to set. + Manager string `protobuf:"bytes,9,opt,name=manager,proto3" json:"manager,omitempty"` + // Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateCollectionMetadata bool `protobuf:"varint,10,opt,name=updateCollectionMetadata,proto3" json:"updateCollectionMetadata,omitempty"` + // New collection metadata to set. + CollectionMetadata *CollectionMetadata `protobuf:"bytes,11,opt,name=collectionMetadata,proto3" json:"collectionMetadata,omitempty"` + // Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateTokenMetadata bool `protobuf:"varint,12,opt,name=updateTokenMetadata,proto3" json:"updateTokenMetadata,omitempty"` + // New token metadata to set. + TokenMetadata []*TokenMetadata `protobuf:"bytes,13,rep,name=tokenMetadata,proto3" json:"tokenMetadata,omitempty"` + // Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateCustomData bool `protobuf:"varint,14,opt,name=updateCustomData,proto3" json:"updateCustomData,omitempty"` + // New custom data to set. + CustomData string `protobuf:"bytes,15,opt,name=customData,proto3" json:"customData,omitempty"` + // Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateCollectionApprovals bool `protobuf:"varint,16,opt,name=updateCollectionApprovals,proto3" json:"updateCollectionApprovals,omitempty"` + // New collection approvals to set. + CollectionApprovals []*CollectionApproval `protobuf:"bytes,17,rep,name=collectionApprovals,proto3" json:"collectionApprovals,omitempty"` + // Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateStandards bool `protobuf:"varint,18,opt,name=updateStandards,proto3" json:"updateStandards,omitempty"` + // New standards to set. + Standards []string `protobuf:"bytes,19,rep,name=standards,proto3" json:"standards,omitempty"` + // Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateIsArchived bool `protobuf:"varint,20,opt,name=updateIsArchived,proto3" json:"updateIsArchived,omitempty"` + // New isArchived to set. + IsArchived bool `protobuf:"varint,21,opt,name=isArchived,proto3" json:"isArchived,omitempty"` + // Coins to be transferred to the mint escrow address. + MintEscrowCoinsToTransfer []*types.Coin `protobuf:"bytes,22,rep,name=mintEscrowCoinsToTransfer,proto3" json:"mintEscrowCoinsToTransfer,omitempty"` + // IBC wrapper paths to add. + CosmosCoinWrapperPathsToAdd []*CosmosCoinWrapperPathAddObject `protobuf:"bytes,23,rep,name=cosmosCoinWrapperPathsToAdd,proto3" json:"cosmosCoinWrapperPathsToAdd,omitempty"` + // Collection-level invariants that cannot be broken. + // These are set upon genesis and cannot be modified. + // Addresses are generated by the keeper and stored in the collection. + Invariants *InvariantsAddObject `protobuf:"bytes,24,opt,name=invariants,proto3" json:"invariants,omitempty"` + // Alias (non-wrapping) paths to add. + AliasPathsToAdd []*AliasPathAddObject `protobuf:"bytes,25,rep,name=aliasPathsToAdd,proto3" json:"aliasPathsToAdd,omitempty"` +} + +func (m *MsgUniversalUpdateCollection) Reset() { *m = MsgUniversalUpdateCollection{} } +func (m *MsgUniversalUpdateCollection) String() string { return proto.CompactTextString(m) } +func (*MsgUniversalUpdateCollection) ProtoMessage() {} +func (*MsgUniversalUpdateCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{7} +} +func (m *MsgUniversalUpdateCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUniversalUpdateCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUniversalUpdateCollection.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUniversalUpdateCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUniversalUpdateCollection.Merge(m, src) +} +func (m *MsgUniversalUpdateCollection) XXX_Size() int { + return m.Size() +} +func (m *MsgUniversalUpdateCollection) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUniversalUpdateCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUniversalUpdateCollection proto.InternalMessageInfo + +func (m *MsgUniversalUpdateCollection) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgUniversalUpdateCollection) GetDefaultBalances() *UserBalanceStore { + if m != nil { + return m.DefaultBalances + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetUpdateValidTokenIds() bool { + if m != nil { + return m.UpdateValidTokenIds + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetValidTokenIds() []*UintRange { + if m != nil { + return m.ValidTokenIds + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetUpdateCollectionPermissions() bool { + if m != nil { + return m.UpdateCollectionPermissions + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetCollectionPermissions() *CollectionPermissions { + if m != nil { + return m.CollectionPermissions + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetUpdateManager() bool { + if m != nil { + return m.UpdateManager + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetManager() string { + if m != nil { + return m.Manager + } + return "" +} + +func (m *MsgUniversalUpdateCollection) GetUpdateCollectionMetadata() bool { + if m != nil { + return m.UpdateCollectionMetadata + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetCollectionMetadata() *CollectionMetadata { + if m != nil { + return m.CollectionMetadata + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetUpdateTokenMetadata() bool { + if m != nil { + return m.UpdateTokenMetadata + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetTokenMetadata() []*TokenMetadata { + if m != nil { + return m.TokenMetadata + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetUpdateCustomData() bool { + if m != nil { + return m.UpdateCustomData + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *MsgUniversalUpdateCollection) GetUpdateCollectionApprovals() bool { + if m != nil { + return m.UpdateCollectionApprovals + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetCollectionApprovals() []*CollectionApproval { + if m != nil { + return m.CollectionApprovals + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetUpdateStandards() bool { + if m != nil { + return m.UpdateStandards + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetStandards() []string { + if m != nil { + return m.Standards + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetUpdateIsArchived() bool { + if m != nil { + return m.UpdateIsArchived + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetIsArchived() bool { + if m != nil { + return m.IsArchived + } + return false +} + +func (m *MsgUniversalUpdateCollection) GetMintEscrowCoinsToTransfer() []*types.Coin { + if m != nil { + return m.MintEscrowCoinsToTransfer + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetCosmosCoinWrapperPathsToAdd() []*CosmosCoinWrapperPathAddObject { + if m != nil { + return m.CosmosCoinWrapperPathsToAdd + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetInvariants() *InvariantsAddObject { + if m != nil { + return m.Invariants + } + return nil +} + +func (m *MsgUniversalUpdateCollection) GetAliasPathsToAdd() []*AliasPathAddObject { + if m != nil { + return m.AliasPathsToAdd + } + return nil +} + +// MsgUniversalUpdateCollectionResponse is the response to MsgUniversalUpdateCollection. +type MsgUniversalUpdateCollectionResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + ApprovalChanges []*ApprovalChange `protobuf:"bytes,2,rep,name=approvalChanges,proto3" json:"approvalChanges,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgUniversalUpdateCollectionResponse) Reset() { *m = MsgUniversalUpdateCollectionResponse{} } +func (m *MsgUniversalUpdateCollectionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUniversalUpdateCollectionResponse) ProtoMessage() {} +func (*MsgUniversalUpdateCollectionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{8} +} +func (m *MsgUniversalUpdateCollectionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUniversalUpdateCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUniversalUpdateCollectionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUniversalUpdateCollectionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUniversalUpdateCollectionResponse.Merge(m, src) +} +func (m *MsgUniversalUpdateCollectionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUniversalUpdateCollectionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUniversalUpdateCollectionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUniversalUpdateCollectionResponse proto.InternalMessageInfo + +func (m *MsgUniversalUpdateCollectionResponse) GetApprovalChanges() []*ApprovalChange { + if m != nil { + return m.ApprovalChanges + } + return nil +} + +func (m *MsgUniversalUpdateCollectionResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgUpdateCollection is used to update a collection. +type MsgUpdateCollection struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection (0 for new collection). + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // Indicates if the valid token IDs should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateValidTokenIds bool `protobuf:"varint,3,opt,name=updateValidTokenIds,proto3" json:"updateValidTokenIds,omitempty"` + // New token IDs to add to this collection + ValidTokenIds []*UintRange `protobuf:"bytes,4,rep,name=validTokenIds,proto3" json:"validTokenIds,omitempty"` + // Indicates if collection permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateCollectionPermissions bool `protobuf:"varint,5,opt,name=updateCollectionPermissions,proto3" json:"updateCollectionPermissions,omitempty"` + // New collection permissions to set. + CollectionPermissions *CollectionPermissions `protobuf:"bytes,6,opt,name=collectionPermissions,proto3" json:"collectionPermissions,omitempty"` + // Indicates if the manager should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateManager bool `protobuf:"varint,7,opt,name=updateManager,proto3" json:"updateManager,omitempty"` + // New manager to set. + Manager string `protobuf:"bytes,8,opt,name=manager,proto3" json:"manager,omitempty"` + // Indicates if the collection metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateCollectionMetadata bool `protobuf:"varint,9,opt,name=updateCollectionMetadata,proto3" json:"updateCollectionMetadata,omitempty"` + // New collection metadata to set. + CollectionMetadata *CollectionMetadata `protobuf:"bytes,10,opt,name=collectionMetadata,proto3" json:"collectionMetadata,omitempty"` + // Indicates if the token metadata should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateTokenMetadata bool `protobuf:"varint,11,opt,name=updateTokenMetadata,proto3" json:"updateTokenMetadata,omitempty"` + // New token metadata to set. + TokenMetadata []*TokenMetadata `protobuf:"bytes,12,rep,name=tokenMetadata,proto3" json:"tokenMetadata,omitempty"` + // Indicates if the custom data should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateCustomData bool `protobuf:"varint,13,opt,name=updateCustomData,proto3" json:"updateCustomData,omitempty"` + // New custom data to set. + CustomData string `protobuf:"bytes,14,opt,name=customData,proto3" json:"customData,omitempty"` + // Indicates if collection approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateCollectionApprovals bool `protobuf:"varint,15,opt,name=updateCollectionApprovals,proto3" json:"updateCollectionApprovals,omitempty"` + // New collection approvals to set. + CollectionApprovals []*CollectionApproval `protobuf:"bytes,16,rep,name=collectionApprovals,proto3" json:"collectionApprovals,omitempty"` + // Indicates if the standards should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateStandards bool `protobuf:"varint,17,opt,name=updateStandards,proto3" json:"updateStandards,omitempty"` + // New standards to set. + Standards []string `protobuf:"bytes,18,rep,name=standards,proto3" json:"standards,omitempty"` + // Indicates if the isArchived should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateIsArchived bool `protobuf:"varint,19,opt,name=updateIsArchived,proto3" json:"updateIsArchived,omitempty"` + // New isArchived to set. + IsArchived bool `protobuf:"varint,20,opt,name=isArchived,proto3" json:"isArchived,omitempty"` + // Coins to be transferred to the mint escrow address. + MintEscrowCoinsToTransfer []*types.Coin `protobuf:"bytes,21,rep,name=mintEscrowCoinsToTransfer,proto3" json:"mintEscrowCoinsToTransfer,omitempty"` + // IBC wrapper paths to add. + CosmosCoinWrapperPathsToAdd []*CosmosCoinWrapperPathAddObject `protobuf:"bytes,22,rep,name=cosmosCoinWrapperPathsToAdd,proto3" json:"cosmosCoinWrapperPathsToAdd,omitempty"` + // Collection-level invariants that cannot be broken. + // These are set upon genesis and cannot be modified. + // Addresses are generated by the keeper and stored in the collection. + Invariants *InvariantsAddObject `protobuf:"bytes,23,opt,name=invariants,proto3" json:"invariants,omitempty"` + // Alias (non-wrapping) paths to add. + AliasPathsToAdd []*AliasPathAddObject `protobuf:"bytes,24,rep,name=aliasPathsToAdd,proto3" json:"aliasPathsToAdd,omitempty"` +} + +func (m *MsgUpdateCollection) Reset() { *m = MsgUpdateCollection{} } +func (m *MsgUpdateCollection) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateCollection) ProtoMessage() {} +func (*MsgUpdateCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{9} +} +func (m *MsgUpdateCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateCollection.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateCollection.Merge(m, src) +} +func (m *MsgUpdateCollection) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateCollection) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateCollection proto.InternalMessageInfo + +func (m *MsgUpdateCollection) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgUpdateCollection) GetUpdateValidTokenIds() bool { + if m != nil { + return m.UpdateValidTokenIds + } + return false +} + +func (m *MsgUpdateCollection) GetValidTokenIds() []*UintRange { + if m != nil { + return m.ValidTokenIds + } + return nil +} + +func (m *MsgUpdateCollection) GetUpdateCollectionPermissions() bool { + if m != nil { + return m.UpdateCollectionPermissions + } + return false +} + +func (m *MsgUpdateCollection) GetCollectionPermissions() *CollectionPermissions { + if m != nil { + return m.CollectionPermissions + } + return nil +} + +func (m *MsgUpdateCollection) GetUpdateManager() bool { + if m != nil { + return m.UpdateManager + } + return false +} + +func (m *MsgUpdateCollection) GetManager() string { + if m != nil { + return m.Manager + } + return "" +} + +func (m *MsgUpdateCollection) GetUpdateCollectionMetadata() bool { + if m != nil { + return m.UpdateCollectionMetadata + } + return false +} + +func (m *MsgUpdateCollection) GetCollectionMetadata() *CollectionMetadata { + if m != nil { + return m.CollectionMetadata + } + return nil +} + +func (m *MsgUpdateCollection) GetUpdateTokenMetadata() bool { + if m != nil { + return m.UpdateTokenMetadata + } + return false +} + +func (m *MsgUpdateCollection) GetTokenMetadata() []*TokenMetadata { + if m != nil { + return m.TokenMetadata + } + return nil +} + +func (m *MsgUpdateCollection) GetUpdateCustomData() bool { + if m != nil { + return m.UpdateCustomData + } + return false +} + +func (m *MsgUpdateCollection) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *MsgUpdateCollection) GetUpdateCollectionApprovals() bool { + if m != nil { + return m.UpdateCollectionApprovals + } + return false +} + +func (m *MsgUpdateCollection) GetCollectionApprovals() []*CollectionApproval { + if m != nil { + return m.CollectionApprovals + } + return nil +} + +func (m *MsgUpdateCollection) GetUpdateStandards() bool { + if m != nil { + return m.UpdateStandards + } + return false +} + +func (m *MsgUpdateCollection) GetStandards() []string { + if m != nil { + return m.Standards + } + return nil +} + +func (m *MsgUpdateCollection) GetUpdateIsArchived() bool { + if m != nil { + return m.UpdateIsArchived + } + return false +} + +func (m *MsgUpdateCollection) GetIsArchived() bool { + if m != nil { + return m.IsArchived + } + return false +} + +func (m *MsgUpdateCollection) GetMintEscrowCoinsToTransfer() []*types.Coin { + if m != nil { + return m.MintEscrowCoinsToTransfer + } + return nil +} + +func (m *MsgUpdateCollection) GetCosmosCoinWrapperPathsToAdd() []*CosmosCoinWrapperPathAddObject { + if m != nil { + return m.CosmosCoinWrapperPathsToAdd + } + return nil +} + +func (m *MsgUpdateCollection) GetInvariants() *InvariantsAddObject { + if m != nil { + return m.Invariants + } + return nil +} + +func (m *MsgUpdateCollection) GetAliasPathsToAdd() []*AliasPathAddObject { + if m != nil { + return m.AliasPathsToAdd + } + return nil +} + +// MsgUpdateCollectionResponse is the response to MsgUpdateCollection. +type MsgUpdateCollectionResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + ApprovalChanges []*ApprovalChange `protobuf:"bytes,2,rep,name=approvalChanges,proto3" json:"approvalChanges,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgUpdateCollectionResponse) Reset() { *m = MsgUpdateCollectionResponse{} } +func (m *MsgUpdateCollectionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateCollectionResponse) ProtoMessage() {} +func (*MsgUpdateCollectionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{10} +} +func (m *MsgUpdateCollectionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateCollectionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateCollectionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateCollectionResponse.Merge(m, src) +} +func (m *MsgUpdateCollectionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateCollectionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateCollectionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateCollectionResponse proto.InternalMessageInfo + +func (m *MsgUpdateCollectionResponse) GetApprovalChanges() []*ApprovalChange { + if m != nil { + return m.ApprovalChanges + } + return nil +} + +func (m *MsgUpdateCollectionResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgCreateCollection is used to create a new collection. +type MsgCreateCollection struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // The default balances for the user + DefaultBalances *UserBalanceStore `protobuf:"bytes,2,opt,name=defaultBalances,proto3" json:"defaultBalances,omitempty"` + // New token IDs to add to this collection + ValidTokenIds []*UintRange `protobuf:"bytes,3,rep,name=validTokenIds,proto3" json:"validTokenIds,omitempty"` + // Collection permissions. + CollectionPermissions *CollectionPermissions `protobuf:"bytes,4,opt,name=collectionPermissions,proto3" json:"collectionPermissions,omitempty"` + // Manager address. + Manager string `protobuf:"bytes,5,opt,name=manager,proto3" json:"manager,omitempty"` + // Collection metadata. + CollectionMetadata *CollectionMetadata `protobuf:"bytes,6,opt,name=collectionMetadata,proto3" json:"collectionMetadata,omitempty"` + // Token metadata entries. + TokenMetadata []*TokenMetadata `protobuf:"bytes,7,rep,name=tokenMetadata,proto3" json:"tokenMetadata,omitempty"` + // Custom data. + CustomData string `protobuf:"bytes,8,opt,name=customData,proto3" json:"customData,omitempty"` + // Collection approvals. + CollectionApprovals []*CollectionApproval `protobuf:"bytes,9,rep,name=collectionApprovals,proto3" json:"collectionApprovals,omitempty"` + // Standards entries. + Standards []string `protobuf:"bytes,10,rep,name=standards,proto3" json:"standards,omitempty"` + // isArchived flag. + IsArchived bool `protobuf:"varint,11,opt,name=isArchived,proto3" json:"isArchived,omitempty"` + // Coins to be transferred to the mint escrow address. + MintEscrowCoinsToTransfer []*types.Coin `protobuf:"bytes,12,rep,name=mintEscrowCoinsToTransfer,proto3" json:"mintEscrowCoinsToTransfer,omitempty"` + // IBC wrapper paths to add. + CosmosCoinWrapperPathsToAdd []*CosmosCoinWrapperPathAddObject `protobuf:"bytes,13,rep,name=cosmosCoinWrapperPathsToAdd,proto3" json:"cosmosCoinWrapperPathsToAdd,omitempty"` + // Collection-level invariants that cannot be broken. + // Addresses are generated by the keeper and stored in the collection. + Invariants *InvariantsAddObject `protobuf:"bytes,14,opt,name=invariants,proto3" json:"invariants,omitempty"` + // Alias (non-wrapping) paths to add. + AliasPathsToAdd []*AliasPathAddObject `protobuf:"bytes,15,rep,name=aliasPathsToAdd,proto3" json:"aliasPathsToAdd,omitempty"` +} + +func (m *MsgCreateCollection) Reset() { *m = MsgCreateCollection{} } +func (m *MsgCreateCollection) String() string { return proto.CompactTextString(m) } +func (*MsgCreateCollection) ProtoMessage() {} +func (*MsgCreateCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{11} +} +func (m *MsgCreateCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateCollection.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateCollection.Merge(m, src) +} +func (m *MsgCreateCollection) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateCollection) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateCollection proto.InternalMessageInfo + +func (m *MsgCreateCollection) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCreateCollection) GetDefaultBalances() *UserBalanceStore { + if m != nil { + return m.DefaultBalances + } + return nil +} + +func (m *MsgCreateCollection) GetValidTokenIds() []*UintRange { + if m != nil { + return m.ValidTokenIds + } + return nil +} + +func (m *MsgCreateCollection) GetCollectionPermissions() *CollectionPermissions { + if m != nil { + return m.CollectionPermissions + } + return nil +} + +func (m *MsgCreateCollection) GetManager() string { + if m != nil { + return m.Manager + } + return "" +} + +func (m *MsgCreateCollection) GetCollectionMetadata() *CollectionMetadata { + if m != nil { + return m.CollectionMetadata + } + return nil +} + +func (m *MsgCreateCollection) GetTokenMetadata() []*TokenMetadata { + if m != nil { + return m.TokenMetadata + } + return nil +} + +func (m *MsgCreateCollection) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *MsgCreateCollection) GetCollectionApprovals() []*CollectionApproval { + if m != nil { + return m.CollectionApprovals + } + return nil +} + +func (m *MsgCreateCollection) GetStandards() []string { + if m != nil { + return m.Standards + } + return nil +} + +func (m *MsgCreateCollection) GetIsArchived() bool { + if m != nil { + return m.IsArchived + } + return false +} + +func (m *MsgCreateCollection) GetMintEscrowCoinsToTransfer() []*types.Coin { + if m != nil { + return m.MintEscrowCoinsToTransfer + } + return nil +} + +func (m *MsgCreateCollection) GetCosmosCoinWrapperPathsToAdd() []*CosmosCoinWrapperPathAddObject { + if m != nil { + return m.CosmosCoinWrapperPathsToAdd + } + return nil +} + +func (m *MsgCreateCollection) GetInvariants() *InvariantsAddObject { + if m != nil { + return m.Invariants + } + return nil +} + +func (m *MsgCreateCollection) GetAliasPathsToAdd() []*AliasPathAddObject { + if m != nil { + return m.AliasPathsToAdd + } + return nil +} + +// MsgCreateCollectionResponse is the response to MsgCreateCollection. +type MsgCreateCollectionResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + ApprovalChanges []*ApprovalChange `protobuf:"bytes,2,rep,name=approvalChanges,proto3" json:"approvalChanges,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgCreateCollectionResponse) Reset() { *m = MsgCreateCollectionResponse{} } +func (m *MsgCreateCollectionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateCollectionResponse) ProtoMessage() {} +func (*MsgCreateCollectionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{12} +} +func (m *MsgCreateCollectionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateCollectionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateCollectionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateCollectionResponse.Merge(m, src) +} +func (m *MsgCreateCollectionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateCollectionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateCollectionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateCollectionResponse proto.InternalMessageInfo + +func (m *MsgCreateCollectionResponse) GetApprovalChanges() []*ApprovalChange { + if m != nil { + return m.ApprovalChanges + } + return nil +} + +func (m *MsgCreateCollectionResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgCreateAddressLists is used to create address lists. +type MsgCreateAddressLists struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // Address lists to create. The createdBy field will be automatically set to the creator address. + AddressLists []*AddressListInput `protobuf:"bytes,2,rep,name=addressLists,proto3" json:"addressLists,omitempty"` +} + +func (m *MsgCreateAddressLists) Reset() { *m = MsgCreateAddressLists{} } +func (m *MsgCreateAddressLists) String() string { return proto.CompactTextString(m) } +func (*MsgCreateAddressLists) ProtoMessage() {} +func (*MsgCreateAddressLists) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{13} +} +func (m *MsgCreateAddressLists) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateAddressLists) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateAddressLists.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateAddressLists) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateAddressLists.Merge(m, src) +} +func (m *MsgCreateAddressLists) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateAddressLists) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateAddressLists.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateAddressLists proto.InternalMessageInfo + +func (m *MsgCreateAddressLists) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCreateAddressLists) GetAddressLists() []*AddressListInput { + if m != nil { + return m.AddressLists + } + return nil +} + +// MsgCreateAddressListsResponse is the response to MsgCreateAddressLists. +type MsgCreateAddressListsResponse struct { +} + +func (m *MsgCreateAddressListsResponse) Reset() { *m = MsgCreateAddressListsResponse{} } +func (m *MsgCreateAddressListsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateAddressListsResponse) ProtoMessage() {} +func (*MsgCreateAddressListsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{14} +} +func (m *MsgCreateAddressListsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateAddressListsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateAddressListsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateAddressListsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateAddressListsResponse.Merge(m, src) +} +func (m *MsgCreateAddressListsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateAddressListsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateAddressListsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateAddressListsResponse proto.InternalMessageInfo + +// MsgTransferTokens is used to transfer tokens. +type MsgTransferTokens struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // Transfers to execute. + Transfers []*Transfer `protobuf:"bytes,3,rep,name=transfers,proto3" json:"transfers,omitempty"` +} + +func (m *MsgTransferTokens) Reset() { *m = MsgTransferTokens{} } +func (m *MsgTransferTokens) String() string { return proto.CompactTextString(m) } +func (*MsgTransferTokens) ProtoMessage() {} +func (*MsgTransferTokens) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{15} +} +func (m *MsgTransferTokens) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferTokens.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferTokens) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferTokens.Merge(m, src) +} +func (m *MsgTransferTokens) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferTokens) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferTokens.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferTokens proto.InternalMessageInfo + +func (m *MsgTransferTokens) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgTransferTokens) GetTransfers() []*Transfer { + if m != nil { + return m.Transfers + } + return nil +} + +// MsgTransferTokensResponse is the response to MsgTransferTokens. +type MsgTransferTokensResponse struct { + ApprovalsUsed []*ApprovalUsed `protobuf:"bytes,1,rep,name=approvalsUsed,proto3" json:"approvalsUsed,omitempty"` + CoinTransfers []*CoinTransferProto `protobuf:"bytes,2,rep,name=coinTransfers,proto3" json:"coinTransfers,omitempty"` + BalancesTransferred []*Balance `protobuf:"bytes,3,rep,name=balancesTransferred,proto3" json:"balancesTransferred,omitempty"` + ReviewItems []string `protobuf:"bytes,4,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgTransferTokensResponse) Reset() { *m = MsgTransferTokensResponse{} } +func (m *MsgTransferTokensResponse) String() string { return proto.CompactTextString(m) } +func (*MsgTransferTokensResponse) ProtoMessage() {} +func (*MsgTransferTokensResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{16} +} +func (m *MsgTransferTokensResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgTransferTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgTransferTokensResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgTransferTokensResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferTokensResponse.Merge(m, src) +} +func (m *MsgTransferTokensResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgTransferTokensResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferTokensResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgTransferTokensResponse proto.InternalMessageInfo + +func (m *MsgTransferTokensResponse) GetApprovalsUsed() []*ApprovalUsed { + if m != nil { + return m.ApprovalsUsed + } + return nil +} + +func (m *MsgTransferTokensResponse) GetCoinTransfers() []*CoinTransferProto { + if m != nil { + return m.CoinTransfers + } + return nil +} + +func (m *MsgTransferTokensResponse) GetBalancesTransferred() []*Balance { + if m != nil { + return m.BalancesTransferred + } + return nil +} + +func (m *MsgTransferTokensResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgDeleteCollection is used to delete a collection. +type MsgDeleteCollection struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` +} + +func (m *MsgDeleteCollection) Reset() { *m = MsgDeleteCollection{} } +func (m *MsgDeleteCollection) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteCollection) ProtoMessage() {} +func (*MsgDeleteCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{17} +} +func (m *MsgDeleteCollection) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteCollection.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDeleteCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteCollection.Merge(m, src) +} +func (m *MsgDeleteCollection) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteCollection) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteCollection proto.InternalMessageInfo + +func (m *MsgDeleteCollection) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +// MsgDeleteCollectionResponse is the response to MsgDeleteCollection. +type MsgDeleteCollectionResponse struct { +} + +func (m *MsgDeleteCollectionResponse) Reset() { *m = MsgDeleteCollectionResponse{} } +func (m *MsgDeleteCollectionResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteCollectionResponse) ProtoMessage() {} +func (*MsgDeleteCollectionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{18} +} +func (m *MsgDeleteCollectionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteCollectionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDeleteCollectionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteCollectionResponse.Merge(m, src) +} +func (m *MsgDeleteCollectionResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteCollectionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteCollectionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteCollectionResponse proto.InternalMessageInfo + +// MsgUpdateUserApprovals is used to update user approvals. +type MsgUpdateUserApprovals struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // Indicates if outgoing approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateOutgoingApprovals bool `protobuf:"varint,3,opt,name=updateOutgoingApprovals,proto3" json:"updateOutgoingApprovals,omitempty"` + // New outgoing approvals to set. + OutgoingApprovals []*UserOutgoingApproval `protobuf:"bytes,4,rep,name=outgoingApprovals,proto3" json:"outgoingApprovals,omitempty"` + // Indicates if incoming approvals should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateIncomingApprovals bool `protobuf:"varint,5,opt,name=updateIncomingApprovals,proto3" json:"updateIncomingApprovals,omitempty"` + // New incoming approvals to set. + IncomingApprovals []*UserIncomingApproval `protobuf:"bytes,6,rep,name=incomingApprovals,proto3" json:"incomingApprovals,omitempty"` + // Indicates if auto-approve settings for self-initiated outgoing transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateAutoApproveSelfInitiatedOutgoingTransfers bool `protobuf:"varint,7,opt,name=updateAutoApproveSelfInitiatedOutgoingTransfers,proto3" json:"updateAutoApproveSelfInitiatedOutgoingTransfers,omitempty"` + // Auto-approve setting for self-initiated outgoing transfers. + AutoApproveSelfInitiatedOutgoingTransfers bool `protobuf:"varint,8,opt,name=autoApproveSelfInitiatedOutgoingTransfers,proto3" json:"autoApproveSelfInitiatedOutgoingTransfers,omitempty"` + // Indicates if auto-approve settings for self-initiated incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateAutoApproveSelfInitiatedIncomingTransfers bool `protobuf:"varint,9,opt,name=updateAutoApproveSelfInitiatedIncomingTransfers,proto3" json:"updateAutoApproveSelfInitiatedIncomingTransfers,omitempty"` + // Auto-approve setting for self-initiated incoming transfers. + AutoApproveSelfInitiatedIncomingTransfers bool `protobuf:"varint,10,opt,name=autoApproveSelfInitiatedIncomingTransfers,proto3" json:"autoApproveSelfInitiatedIncomingTransfers,omitempty"` + // Indicates if auto-approve settings for all incoming transfers should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateAutoApproveAllIncomingTransfers bool `protobuf:"varint,11,opt,name=updateAutoApproveAllIncomingTransfers,proto3" json:"updateAutoApproveAllIncomingTransfers,omitempty"` + // Auto-approve setting for all incoming transfers. + AutoApproveAllIncomingTransfers bool `protobuf:"varint,12,opt,name=autoApproveAllIncomingTransfers,proto3" json:"autoApproveAllIncomingTransfers,omitempty"` + // Indicates if user permissions should be updated. If true, we set to value in this Msg. If false, we keep existing value. + UpdateUserPermissions bool `protobuf:"varint,13,opt,name=updateUserPermissions,proto3" json:"updateUserPermissions,omitempty"` + // New user permissions to set. + UserPermissions *UserPermissions `protobuf:"bytes,14,opt,name=userPermissions,proto3" json:"userPermissions,omitempty"` +} + +func (m *MsgUpdateUserApprovals) Reset() { *m = MsgUpdateUserApprovals{} } +func (m *MsgUpdateUserApprovals) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateUserApprovals) ProtoMessage() {} +func (*MsgUpdateUserApprovals) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{19} +} +func (m *MsgUpdateUserApprovals) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateUserApprovals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateUserApprovals.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateUserApprovals) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateUserApprovals.Merge(m, src) +} +func (m *MsgUpdateUserApprovals) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateUserApprovals) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateUserApprovals.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateUserApprovals proto.InternalMessageInfo + +func (m *MsgUpdateUserApprovals) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgUpdateUserApprovals) GetUpdateOutgoingApprovals() bool { + if m != nil { + return m.UpdateOutgoingApprovals + } + return false +} + +func (m *MsgUpdateUserApprovals) GetOutgoingApprovals() []*UserOutgoingApproval { + if m != nil { + return m.OutgoingApprovals + } + return nil +} + +func (m *MsgUpdateUserApprovals) GetUpdateIncomingApprovals() bool { + if m != nil { + return m.UpdateIncomingApprovals + } + return false +} + +func (m *MsgUpdateUserApprovals) GetIncomingApprovals() []*UserIncomingApproval { + if m != nil { + return m.IncomingApprovals + } + return nil +} + +func (m *MsgUpdateUserApprovals) GetUpdateAutoApproveSelfInitiatedOutgoingTransfers() bool { + if m != nil { + return m.UpdateAutoApproveSelfInitiatedOutgoingTransfers + } + return false +} + +func (m *MsgUpdateUserApprovals) GetAutoApproveSelfInitiatedOutgoingTransfers() bool { + if m != nil { + return m.AutoApproveSelfInitiatedOutgoingTransfers + } + return false +} + +func (m *MsgUpdateUserApprovals) GetUpdateAutoApproveSelfInitiatedIncomingTransfers() bool { + if m != nil { + return m.UpdateAutoApproveSelfInitiatedIncomingTransfers + } + return false +} + +func (m *MsgUpdateUserApprovals) GetAutoApproveSelfInitiatedIncomingTransfers() bool { + if m != nil { + return m.AutoApproveSelfInitiatedIncomingTransfers + } + return false +} + +func (m *MsgUpdateUserApprovals) GetUpdateAutoApproveAllIncomingTransfers() bool { + if m != nil { + return m.UpdateAutoApproveAllIncomingTransfers + } + return false +} + +func (m *MsgUpdateUserApprovals) GetAutoApproveAllIncomingTransfers() bool { + if m != nil { + return m.AutoApproveAllIncomingTransfers + } + return false +} + +func (m *MsgUpdateUserApprovals) GetUpdateUserPermissions() bool { + if m != nil { + return m.UpdateUserPermissions + } + return false +} + +func (m *MsgUpdateUserApprovals) GetUserPermissions() *UserPermissions { + if m != nil { + return m.UserPermissions + } + return nil +} + +// MsgUpdateUserApprovalsResponse is the response to MsgUpdateUserApprovals. +type MsgUpdateUserApprovalsResponse struct { + IncomingChanges []*ApprovalChange `protobuf:"bytes,1,rep,name=incomingChanges,proto3" json:"incomingChanges,omitempty"` + OutgoingChanges []*ApprovalChange `protobuf:"bytes,2,rep,name=outgoingChanges,proto3" json:"outgoingChanges,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgUpdateUserApprovalsResponse) Reset() { *m = MsgUpdateUserApprovalsResponse{} } +func (m *MsgUpdateUserApprovalsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateUserApprovalsResponse) ProtoMessage() {} +func (*MsgUpdateUserApprovalsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{20} +} +func (m *MsgUpdateUserApprovalsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateUserApprovalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateUserApprovalsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateUserApprovalsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateUserApprovalsResponse.Merge(m, src) +} +func (m *MsgUpdateUserApprovalsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateUserApprovalsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateUserApprovalsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateUserApprovalsResponse proto.InternalMessageInfo + +func (m *MsgUpdateUserApprovalsResponse) GetIncomingChanges() []*ApprovalChange { + if m != nil { + return m.IncomingChanges + } + return nil +} + +func (m *MsgUpdateUserApprovalsResponse) GetOutgoingChanges() []*ApprovalChange { + if m != nil { + return m.OutgoingChanges + } + return nil +} + +func (m *MsgUpdateUserApprovalsResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgSetIncomingApproval is a helper message to set a single incoming approval. +type MsgSetIncomingApproval struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // The incoming approval to set. + Approval *UserIncomingApproval `protobuf:"bytes,3,opt,name=approval,proto3" json:"approval,omitempty"` +} + +func (m *MsgSetIncomingApproval) Reset() { *m = MsgSetIncomingApproval{} } +func (m *MsgSetIncomingApproval) String() string { return proto.CompactTextString(m) } +func (*MsgSetIncomingApproval) ProtoMessage() {} +func (*MsgSetIncomingApproval) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{21} +} +func (m *MsgSetIncomingApproval) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetIncomingApproval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetIncomingApproval.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetIncomingApproval) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetIncomingApproval.Merge(m, src) +} +func (m *MsgSetIncomingApproval) XXX_Size() int { + return m.Size() +} +func (m *MsgSetIncomingApproval) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetIncomingApproval.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetIncomingApproval proto.InternalMessageInfo + +func (m *MsgSetIncomingApproval) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetIncomingApproval) GetApproval() *UserIncomingApproval { + if m != nil { + return m.Approval + } + return nil +} + +// MsgSetIncomingApprovalResponse is the response to MsgSetIncomingApproval. +type MsgSetIncomingApprovalResponse struct { + Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgSetIncomingApprovalResponse) Reset() { *m = MsgSetIncomingApprovalResponse{} } +func (m *MsgSetIncomingApprovalResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetIncomingApprovalResponse) ProtoMessage() {} +func (*MsgSetIncomingApprovalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{22} +} +func (m *MsgSetIncomingApprovalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetIncomingApprovalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetIncomingApprovalResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetIncomingApprovalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetIncomingApprovalResponse.Merge(m, src) +} +func (m *MsgSetIncomingApprovalResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetIncomingApprovalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetIncomingApprovalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetIncomingApprovalResponse proto.InternalMessageInfo + +func (m *MsgSetIncomingApprovalResponse) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func (m *MsgSetIncomingApprovalResponse) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *MsgSetIncomingApprovalResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgDeleteIncomingApproval is a helper message to delete a single incoming approval. +type MsgDeleteIncomingApproval struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // The ID of the approval to delete. + ApprovalId string `protobuf:"bytes,3,opt,name=approvalId,proto3" json:"approvalId,omitempty"` +} + +func (m *MsgDeleteIncomingApproval) Reset() { *m = MsgDeleteIncomingApproval{} } +func (m *MsgDeleteIncomingApproval) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteIncomingApproval) ProtoMessage() {} +func (*MsgDeleteIncomingApproval) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{23} +} +func (m *MsgDeleteIncomingApproval) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteIncomingApproval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteIncomingApproval.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDeleteIncomingApproval) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteIncomingApproval.Merge(m, src) +} +func (m *MsgDeleteIncomingApproval) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteIncomingApproval) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteIncomingApproval.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteIncomingApproval proto.InternalMessageInfo + +func (m *MsgDeleteIncomingApproval) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgDeleteIncomingApproval) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +// MsgDeleteIncomingApprovalResponse is the response to MsgDeleteIncomingApproval. +type MsgDeleteIncomingApprovalResponse struct { + Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgDeleteIncomingApprovalResponse) Reset() { *m = MsgDeleteIncomingApprovalResponse{} } +func (m *MsgDeleteIncomingApprovalResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteIncomingApprovalResponse) ProtoMessage() {} +func (*MsgDeleteIncomingApprovalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{24} +} +func (m *MsgDeleteIncomingApprovalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteIncomingApprovalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteIncomingApprovalResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDeleteIncomingApprovalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteIncomingApprovalResponse.Merge(m, src) +} +func (m *MsgDeleteIncomingApprovalResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteIncomingApprovalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteIncomingApprovalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteIncomingApprovalResponse proto.InternalMessageInfo + +func (m *MsgDeleteIncomingApprovalResponse) GetFound() bool { + if m != nil { + return m.Found + } + return false +} + +func (m *MsgDeleteIncomingApprovalResponse) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *MsgDeleteIncomingApprovalResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgSetOutgoingApproval is a helper message to set a single outgoing approval. +type MsgSetOutgoingApproval struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // The outgoing approval to set. + Approval *UserOutgoingApproval `protobuf:"bytes,3,opt,name=approval,proto3" json:"approval,omitempty"` +} + +func (m *MsgSetOutgoingApproval) Reset() { *m = MsgSetOutgoingApproval{} } +func (m *MsgSetOutgoingApproval) String() string { return proto.CompactTextString(m) } +func (*MsgSetOutgoingApproval) ProtoMessage() {} +func (*MsgSetOutgoingApproval) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{25} +} +func (m *MsgSetOutgoingApproval) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetOutgoingApproval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetOutgoingApproval.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetOutgoingApproval) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetOutgoingApproval.Merge(m, src) +} +func (m *MsgSetOutgoingApproval) XXX_Size() int { + return m.Size() +} +func (m *MsgSetOutgoingApproval) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetOutgoingApproval.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetOutgoingApproval proto.InternalMessageInfo + +func (m *MsgSetOutgoingApproval) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetOutgoingApproval) GetApproval() *UserOutgoingApproval { + if m != nil { + return m.Approval + } + return nil +} + +// MsgSetOutgoingApprovalResponse is the response to MsgSetOutgoingApproval. +type MsgSetOutgoingApprovalResponse struct { + Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgSetOutgoingApprovalResponse) Reset() { *m = MsgSetOutgoingApprovalResponse{} } +func (m *MsgSetOutgoingApprovalResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetOutgoingApprovalResponse) ProtoMessage() {} +func (*MsgSetOutgoingApprovalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{26} +} +func (m *MsgSetOutgoingApprovalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetOutgoingApprovalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetOutgoingApprovalResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetOutgoingApprovalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetOutgoingApprovalResponse.Merge(m, src) +} +func (m *MsgSetOutgoingApprovalResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetOutgoingApprovalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetOutgoingApprovalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetOutgoingApprovalResponse proto.InternalMessageInfo + +func (m *MsgSetOutgoingApprovalResponse) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func (m *MsgSetOutgoingApprovalResponse) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *MsgSetOutgoingApprovalResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgDeleteOutgoingApproval is a helper message to delete a single outgoing approval. +type MsgDeleteOutgoingApproval struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // The ID of the approval to delete. + ApprovalId string `protobuf:"bytes,3,opt,name=approvalId,proto3" json:"approvalId,omitempty"` +} + +func (m *MsgDeleteOutgoingApproval) Reset() { *m = MsgDeleteOutgoingApproval{} } +func (m *MsgDeleteOutgoingApproval) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteOutgoingApproval) ProtoMessage() {} +func (*MsgDeleteOutgoingApproval) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{27} +} +func (m *MsgDeleteOutgoingApproval) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteOutgoingApproval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteOutgoingApproval.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDeleteOutgoingApproval) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteOutgoingApproval.Merge(m, src) +} +func (m *MsgDeleteOutgoingApproval) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteOutgoingApproval) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteOutgoingApproval.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteOutgoingApproval proto.InternalMessageInfo + +func (m *MsgDeleteOutgoingApproval) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgDeleteOutgoingApproval) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +// MsgDeleteOutgoingApprovalResponse is the response to MsgDeleteOutgoingApproval. +type MsgDeleteOutgoingApprovalResponse struct { + Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgDeleteOutgoingApprovalResponse) Reset() { *m = MsgDeleteOutgoingApprovalResponse{} } +func (m *MsgDeleteOutgoingApprovalResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteOutgoingApprovalResponse) ProtoMessage() {} +func (*MsgDeleteOutgoingApprovalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{28} +} +func (m *MsgDeleteOutgoingApprovalResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteOutgoingApprovalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteOutgoingApprovalResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDeleteOutgoingApprovalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteOutgoingApprovalResponse.Merge(m, src) +} +func (m *MsgDeleteOutgoingApprovalResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteOutgoingApprovalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteOutgoingApprovalResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteOutgoingApprovalResponse proto.InternalMessageInfo + +func (m *MsgDeleteOutgoingApprovalResponse) GetFound() bool { + if m != nil { + return m.Found + } + return false +} + +func (m *MsgDeleteOutgoingApprovalResponse) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *MsgDeleteOutgoingApprovalResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgPurgeApprovals is a helper message to purge expired approvals. +type MsgPurgeApprovals struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // Whether to purge expired approvals (approvals with no future valid transfer times). + PurgeExpired bool `protobuf:"varint,3,opt,name=purgeExpired,proto3" json:"purgeExpired,omitempty"` + // Address of the user whose approvals to purge. If empty, defaults to creator. + ApproverAddress string `protobuf:"bytes,4,opt,name=approverAddress,proto3" json:"approverAddress,omitempty"` + // Whether to purge counterparty approvals (approvals where the creator is the only initiator). + PurgeCounterpartyApprovals bool `protobuf:"varint,5,opt,name=purgeCounterpartyApprovals,proto3" json:"purgeCounterpartyApprovals,omitempty"` + // Specific approvals to purge. If empty, purges all applicable approvals based on other flags. + ApprovalsToPurge []*ApprovalIdentifierDetails `protobuf:"bytes,6,rep,name=approvalsToPurge,proto3" json:"approvalsToPurge,omitempty"` +} + +func (m *MsgPurgeApprovals) Reset() { *m = MsgPurgeApprovals{} } +func (m *MsgPurgeApprovals) String() string { return proto.CompactTextString(m) } +func (*MsgPurgeApprovals) ProtoMessage() {} +func (*MsgPurgeApprovals) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{29} +} +func (m *MsgPurgeApprovals) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgPurgeApprovals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgPurgeApprovals.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgPurgeApprovals) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgPurgeApprovals.Merge(m, src) +} +func (m *MsgPurgeApprovals) XXX_Size() int { + return m.Size() +} +func (m *MsgPurgeApprovals) XXX_DiscardUnknown() { + xxx_messageInfo_MsgPurgeApprovals.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgPurgeApprovals proto.InternalMessageInfo + +func (m *MsgPurgeApprovals) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgPurgeApprovals) GetPurgeExpired() bool { + if m != nil { + return m.PurgeExpired + } + return false +} + +func (m *MsgPurgeApprovals) GetApproverAddress() string { + if m != nil { + return m.ApproverAddress + } + return "" +} + +func (m *MsgPurgeApprovals) GetPurgeCounterpartyApprovals() bool { + if m != nil { + return m.PurgeCounterpartyApprovals + } + return false +} + +func (m *MsgPurgeApprovals) GetApprovalsToPurge() []*ApprovalIdentifierDetails { + if m != nil { + return m.ApprovalsToPurge + } + return nil +} + +// MsgPurgeApprovalsResponse is the response to MsgPurgeApprovals. +type MsgPurgeApprovalsResponse struct { + // Number of approvals purged. + NumPurged Uint `protobuf:"bytes,1,opt,name=numPurged,proto3,customtype=Uint" json:"numPurged"` + PurgedApprovalIds []string `protobuf:"bytes,2,rep,name=purgedApprovalIds,proto3" json:"purgedApprovalIds,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgPurgeApprovalsResponse) Reset() { *m = MsgPurgeApprovalsResponse{} } +func (m *MsgPurgeApprovalsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgPurgeApprovalsResponse) ProtoMessage() {} +func (*MsgPurgeApprovalsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{30} +} +func (m *MsgPurgeApprovalsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgPurgeApprovalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgPurgeApprovalsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgPurgeApprovalsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgPurgeApprovalsResponse.Merge(m, src) +} +func (m *MsgPurgeApprovalsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgPurgeApprovalsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgPurgeApprovalsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgPurgeApprovalsResponse proto.InternalMessageInfo + +func (m *MsgPurgeApprovalsResponse) GetPurgedApprovalIds() []string { + if m != nil { + return m.PurgedApprovalIds + } + return nil +} + +func (m *MsgPurgeApprovalsResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgCreateDynamicStore is used to create a new dynamic store. +type MsgCreateDynamicStore struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // The default value for uninitialized addresses (true/false). + DefaultValue bool `protobuf:"varint,2,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` + // URI for additional metadata or resources associated with this dynamic store. + Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` + // Custom data field for storing arbitrary data associated with this dynamic store. + CustomData string `protobuf:"bytes,4,opt,name=customData,proto3" json:"customData,omitempty"` +} + +func (m *MsgCreateDynamicStore) Reset() { *m = MsgCreateDynamicStore{} } +func (m *MsgCreateDynamicStore) String() string { return proto.CompactTextString(m) } +func (*MsgCreateDynamicStore) ProtoMessage() {} +func (*MsgCreateDynamicStore) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{31} +} +func (m *MsgCreateDynamicStore) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateDynamicStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateDynamicStore.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateDynamicStore) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateDynamicStore.Merge(m, src) +} +func (m *MsgCreateDynamicStore) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateDynamicStore) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateDynamicStore.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateDynamicStore proto.InternalMessageInfo + +func (m *MsgCreateDynamicStore) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCreateDynamicStore) GetDefaultValue() bool { + if m != nil { + return m.DefaultValue + } + return false +} + +func (m *MsgCreateDynamicStore) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *MsgCreateDynamicStore) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +// MsgCreateDynamicStoreResponse is the response to MsgCreateDynamicStore. +type MsgCreateDynamicStoreResponse struct { + // ID of the dynamic store. + StoreId Uint `protobuf:"bytes,1,opt,name=storeId,proto3,customtype=Uint" json:"storeId"` + ReviewItems []string `protobuf:"bytes,2,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgCreateDynamicStoreResponse) Reset() { *m = MsgCreateDynamicStoreResponse{} } +func (m *MsgCreateDynamicStoreResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateDynamicStoreResponse) ProtoMessage() {} +func (*MsgCreateDynamicStoreResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{32} +} +func (m *MsgCreateDynamicStoreResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCreateDynamicStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCreateDynamicStoreResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCreateDynamicStoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateDynamicStoreResponse.Merge(m, src) +} +func (m *MsgCreateDynamicStoreResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCreateDynamicStoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateDynamicStoreResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCreateDynamicStoreResponse proto.InternalMessageInfo + +func (m *MsgCreateDynamicStoreResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgUpdateDynamicStore is used to update an existing dynamic store. +type MsgUpdateDynamicStore struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the dynamic store to update. + StoreId Uint `protobuf:"bytes,2,opt,name=storeId,proto3,customtype=Uint" json:"storeId"` + // The new default value for uninitialized addresses (true/false). + DefaultValue bool `protobuf:"varint,3,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` + // The global kill switch state (true = enabled, false = disabled/halted). + // Callers should query the current value first if they want to keep it unchanged. + GlobalEnabled bool `protobuf:"varint,4,opt,name=globalEnabled,proto3" json:"globalEnabled,omitempty"` + // URI for additional metadata or resources associated with this dynamic store. + Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` + // Custom data field for storing arbitrary data associated with this dynamic store. + CustomData string `protobuf:"bytes,6,opt,name=customData,proto3" json:"customData,omitempty"` +} + +func (m *MsgUpdateDynamicStore) Reset() { *m = MsgUpdateDynamicStore{} } +func (m *MsgUpdateDynamicStore) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateDynamicStore) ProtoMessage() {} +func (*MsgUpdateDynamicStore) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{33} +} +func (m *MsgUpdateDynamicStore) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateDynamicStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateDynamicStore.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateDynamicStore) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateDynamicStore.Merge(m, src) +} +func (m *MsgUpdateDynamicStore) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateDynamicStore) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateDynamicStore.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateDynamicStore proto.InternalMessageInfo + +func (m *MsgUpdateDynamicStore) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgUpdateDynamicStore) GetDefaultValue() bool { + if m != nil { + return m.DefaultValue + } + return false +} + +func (m *MsgUpdateDynamicStore) GetGlobalEnabled() bool { + if m != nil { + return m.GlobalEnabled + } + return false +} + +func (m *MsgUpdateDynamicStore) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *MsgUpdateDynamicStore) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +// MsgUpdateDynamicStoreResponse is the response to MsgUpdateDynamicStore. +type MsgUpdateDynamicStoreResponse struct { +} + +func (m *MsgUpdateDynamicStoreResponse) Reset() { *m = MsgUpdateDynamicStoreResponse{} } +func (m *MsgUpdateDynamicStoreResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateDynamicStoreResponse) ProtoMessage() {} +func (*MsgUpdateDynamicStoreResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{34} +} +func (m *MsgUpdateDynamicStoreResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateDynamicStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateDynamicStoreResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateDynamicStoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateDynamicStoreResponse.Merge(m, src) +} +func (m *MsgUpdateDynamicStoreResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateDynamicStoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateDynamicStoreResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateDynamicStoreResponse proto.InternalMessageInfo + +// MsgDeleteDynamicStore is used to delete a dynamic store. +type MsgDeleteDynamicStore struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the dynamic store to delete. + StoreId Uint `protobuf:"bytes,2,opt,name=storeId,proto3,customtype=Uint" json:"storeId"` +} + +func (m *MsgDeleteDynamicStore) Reset() { *m = MsgDeleteDynamicStore{} } +func (m *MsgDeleteDynamicStore) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteDynamicStore) ProtoMessage() {} +func (*MsgDeleteDynamicStore) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{35} +} +func (m *MsgDeleteDynamicStore) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteDynamicStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteDynamicStore.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDeleteDynamicStore) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteDynamicStore.Merge(m, src) +} +func (m *MsgDeleteDynamicStore) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteDynamicStore) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteDynamicStore.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteDynamicStore proto.InternalMessageInfo + +func (m *MsgDeleteDynamicStore) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +// MsgDeleteDynamicStoreResponse is the response to MsgDeleteDynamicStore. +type MsgDeleteDynamicStoreResponse struct { +} + +func (m *MsgDeleteDynamicStoreResponse) Reset() { *m = MsgDeleteDynamicStoreResponse{} } +func (m *MsgDeleteDynamicStoreResponse) String() string { return proto.CompactTextString(m) } +func (*MsgDeleteDynamicStoreResponse) ProtoMessage() {} +func (*MsgDeleteDynamicStoreResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{36} +} +func (m *MsgDeleteDynamicStoreResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgDeleteDynamicStoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgDeleteDynamicStoreResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgDeleteDynamicStoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgDeleteDynamicStoreResponse.Merge(m, src) +} +func (m *MsgDeleteDynamicStoreResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgDeleteDynamicStoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgDeleteDynamicStoreResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgDeleteDynamicStoreResponse proto.InternalMessageInfo + +// MsgSetDynamicStoreValue is used to set a boolean value for a specific address in a dynamic store. +type MsgSetDynamicStoreValue struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the dynamic store. + StoreId Uint `protobuf:"bytes,2,opt,name=storeId,proto3,customtype=Uint" json:"storeId"` + // The address for which to set the value. + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + // The boolean value to set (true/false). + Value bool `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *MsgSetDynamicStoreValue) Reset() { *m = MsgSetDynamicStoreValue{} } +func (m *MsgSetDynamicStoreValue) String() string { return proto.CompactTextString(m) } +func (*MsgSetDynamicStoreValue) ProtoMessage() {} +func (*MsgSetDynamicStoreValue) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{37} +} +func (m *MsgSetDynamicStoreValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetDynamicStoreValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetDynamicStoreValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetDynamicStoreValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetDynamicStoreValue.Merge(m, src) +} +func (m *MsgSetDynamicStoreValue) XXX_Size() int { + return m.Size() +} +func (m *MsgSetDynamicStoreValue) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetDynamicStoreValue.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetDynamicStoreValue proto.InternalMessageInfo + +func (m *MsgSetDynamicStoreValue) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetDynamicStoreValue) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *MsgSetDynamicStoreValue) GetValue() bool { + if m != nil { + return m.Value + } + return false +} + +// MsgSetDynamicStoreValueResponse is the response to MsgSetDynamicStoreValue. +type MsgSetDynamicStoreValueResponse struct { + PreviousValue string `protobuf:"bytes,1,opt,name=previousValue,proto3" json:"previousValue,omitempty"` + ReviewItems []string `protobuf:"bytes,2,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgSetDynamicStoreValueResponse) Reset() { *m = MsgSetDynamicStoreValueResponse{} } +func (m *MsgSetDynamicStoreValueResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetDynamicStoreValueResponse) ProtoMessage() {} +func (*MsgSetDynamicStoreValueResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{38} +} +func (m *MsgSetDynamicStoreValueResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetDynamicStoreValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetDynamicStoreValueResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetDynamicStoreValueResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetDynamicStoreValueResponse.Merge(m, src) +} +func (m *MsgSetDynamicStoreValueResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetDynamicStoreValueResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetDynamicStoreValueResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetDynamicStoreValueResponse proto.InternalMessageInfo + +func (m *MsgSetDynamicStoreValueResponse) GetPreviousValue() string { + if m != nil { + return m.PreviousValue + } + return "" +} + +func (m *MsgSetDynamicStoreValueResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgSetValidTokenIds sets the validTokenIds and canUpdateValidTokenIds permission +type MsgSetValidTokenIds struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // New token IDs to add to this collection + ValidTokenIds []*UintRange `protobuf:"bytes,3,rep,name=validTokenIds,proto3" json:"validTokenIds,omitempty"` + // Permission to update valid token IDs + CanUpdateValidTokenIds []*TokenIdsActionPermission `protobuf:"bytes,4,rep,name=canUpdateValidTokenIds,proto3" json:"canUpdateValidTokenIds,omitempty"` +} + +func (m *MsgSetValidTokenIds) Reset() { *m = MsgSetValidTokenIds{} } +func (m *MsgSetValidTokenIds) String() string { return proto.CompactTextString(m) } +func (*MsgSetValidTokenIds) ProtoMessage() {} +func (*MsgSetValidTokenIds) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{39} +} +func (m *MsgSetValidTokenIds) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetValidTokenIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetValidTokenIds.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetValidTokenIds) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetValidTokenIds.Merge(m, src) +} +func (m *MsgSetValidTokenIds) XXX_Size() int { + return m.Size() +} +func (m *MsgSetValidTokenIds) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetValidTokenIds.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetValidTokenIds proto.InternalMessageInfo + +func (m *MsgSetValidTokenIds) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetValidTokenIds) GetValidTokenIds() []*UintRange { + if m != nil { + return m.ValidTokenIds + } + return nil +} + +func (m *MsgSetValidTokenIds) GetCanUpdateValidTokenIds() []*TokenIdsActionPermission { + if m != nil { + return m.CanUpdateValidTokenIds + } + return nil +} + +// MsgSetValidTokenIdsResponse is the response to MsgSetValidTokenIds. +type MsgSetValidTokenIdsResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` +} + +func (m *MsgSetValidTokenIdsResponse) Reset() { *m = MsgSetValidTokenIdsResponse{} } +func (m *MsgSetValidTokenIdsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetValidTokenIdsResponse) ProtoMessage() {} +func (*MsgSetValidTokenIdsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{40} +} +func (m *MsgSetValidTokenIdsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetValidTokenIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetValidTokenIdsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetValidTokenIdsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetValidTokenIdsResponse.Merge(m, src) +} +func (m *MsgSetValidTokenIdsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetValidTokenIdsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetValidTokenIdsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetValidTokenIdsResponse proto.InternalMessageInfo + +// MsgSetManager sets the manager and canUpdateManager permission +type MsgSetManager struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // New manager to set. + Manager string `protobuf:"bytes,3,opt,name=manager,proto3" json:"manager,omitempty"` + // Permission to update manager + CanUpdateManager []*ActionPermission `protobuf:"bytes,4,rep,name=canUpdateManager,proto3" json:"canUpdateManager,omitempty"` +} + +func (m *MsgSetManager) Reset() { *m = MsgSetManager{} } +func (m *MsgSetManager) String() string { return proto.CompactTextString(m) } +func (*MsgSetManager) ProtoMessage() {} +func (*MsgSetManager) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{41} +} +func (m *MsgSetManager) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetManager.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetManager) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetManager.Merge(m, src) +} +func (m *MsgSetManager) XXX_Size() int { + return m.Size() +} +func (m *MsgSetManager) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetManager.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetManager proto.InternalMessageInfo + +func (m *MsgSetManager) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetManager) GetManager() string { + if m != nil { + return m.Manager + } + return "" +} + +func (m *MsgSetManager) GetCanUpdateManager() []*ActionPermission { + if m != nil { + return m.CanUpdateManager + } + return nil +} + +// MsgSetManagerResponse is the response to MsgSetManager. +type MsgSetManagerResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` +} + +func (m *MsgSetManagerResponse) Reset() { *m = MsgSetManagerResponse{} } +func (m *MsgSetManagerResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetManagerResponse) ProtoMessage() {} +func (*MsgSetManagerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{42} +} +func (m *MsgSetManagerResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetManagerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetManagerResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetManagerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetManagerResponse.Merge(m, src) +} +func (m *MsgSetManagerResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetManagerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetManagerResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetManagerResponse proto.InternalMessageInfo + +// MsgSetCollectionMetadata sets the collection metadata and canUpdateCollectionMetadata permission +type MsgSetCollectionMetadata struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // New collection metadata to set. + CollectionMetadata *CollectionMetadata `protobuf:"bytes,3,opt,name=collectionMetadata,proto3" json:"collectionMetadata,omitempty"` + // Permission to update collection metadata + CanUpdateCollectionMetadata []*ActionPermission `protobuf:"bytes,4,rep,name=canUpdateCollectionMetadata,proto3" json:"canUpdateCollectionMetadata,omitempty"` +} + +func (m *MsgSetCollectionMetadata) Reset() { *m = MsgSetCollectionMetadata{} } +func (m *MsgSetCollectionMetadata) String() string { return proto.CompactTextString(m) } +func (*MsgSetCollectionMetadata) ProtoMessage() {} +func (*MsgSetCollectionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{43} +} +func (m *MsgSetCollectionMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCollectionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCollectionMetadata.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetCollectionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCollectionMetadata.Merge(m, src) +} +func (m *MsgSetCollectionMetadata) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCollectionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCollectionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetCollectionMetadata proto.InternalMessageInfo + +func (m *MsgSetCollectionMetadata) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetCollectionMetadata) GetCollectionMetadata() *CollectionMetadata { + if m != nil { + return m.CollectionMetadata + } + return nil +} + +func (m *MsgSetCollectionMetadata) GetCanUpdateCollectionMetadata() []*ActionPermission { + if m != nil { + return m.CanUpdateCollectionMetadata + } + return nil +} + +// MsgSetCollectionMetadataResponse is the response to MsgSetCollectionMetadata. +type MsgSetCollectionMetadataResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` +} + +func (m *MsgSetCollectionMetadataResponse) Reset() { *m = MsgSetCollectionMetadataResponse{} } +func (m *MsgSetCollectionMetadataResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetCollectionMetadataResponse) ProtoMessage() {} +func (*MsgSetCollectionMetadataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{44} +} +func (m *MsgSetCollectionMetadataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCollectionMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCollectionMetadataResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetCollectionMetadataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCollectionMetadataResponse.Merge(m, src) +} +func (m *MsgSetCollectionMetadataResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCollectionMetadataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCollectionMetadataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetCollectionMetadataResponse proto.InternalMessageInfo + +// MsgSetTokenMetadata sets the token metadata and canUpdateTokenMetadata permission +type MsgSetTokenMetadata struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // New token metadata to set. + TokenMetadata []*TokenMetadata `protobuf:"bytes,3,rep,name=tokenMetadata,proto3" json:"tokenMetadata,omitempty"` + // Permission to update token metadata + CanUpdateTokenMetadata []*TokenIdsActionPermission `protobuf:"bytes,4,rep,name=canUpdateTokenMetadata,proto3" json:"canUpdateTokenMetadata,omitempty"` +} + +func (m *MsgSetTokenMetadata) Reset() { *m = MsgSetTokenMetadata{} } +func (m *MsgSetTokenMetadata) String() string { return proto.CompactTextString(m) } +func (*MsgSetTokenMetadata) ProtoMessage() {} +func (*MsgSetTokenMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{45} +} +func (m *MsgSetTokenMetadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetTokenMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetTokenMetadata.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetTokenMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetTokenMetadata.Merge(m, src) +} +func (m *MsgSetTokenMetadata) XXX_Size() int { + return m.Size() +} +func (m *MsgSetTokenMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetTokenMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetTokenMetadata proto.InternalMessageInfo + +func (m *MsgSetTokenMetadata) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetTokenMetadata) GetTokenMetadata() []*TokenMetadata { + if m != nil { + return m.TokenMetadata + } + return nil +} + +func (m *MsgSetTokenMetadata) GetCanUpdateTokenMetadata() []*TokenIdsActionPermission { + if m != nil { + return m.CanUpdateTokenMetadata + } + return nil +} + +// MsgSetTokenMetadataResponse is the response to MsgSetTokenMetadata. +type MsgSetTokenMetadataResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` +} + +func (m *MsgSetTokenMetadataResponse) Reset() { *m = MsgSetTokenMetadataResponse{} } +func (m *MsgSetTokenMetadataResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetTokenMetadataResponse) ProtoMessage() {} +func (*MsgSetTokenMetadataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{46} +} +func (m *MsgSetTokenMetadataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetTokenMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetTokenMetadataResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetTokenMetadataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetTokenMetadataResponse.Merge(m, src) +} +func (m *MsgSetTokenMetadataResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetTokenMetadataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetTokenMetadataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetTokenMetadataResponse proto.InternalMessageInfo + +// MsgSetCustomData sets the custom data and canUpdateCustomData permission +type MsgSetCustomData struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // New custom data to set. + CustomData string `protobuf:"bytes,3,opt,name=customData,proto3" json:"customData,omitempty"` + // Permission to update custom data + CanUpdateCustomData []*ActionPermission `protobuf:"bytes,4,rep,name=canUpdateCustomData,proto3" json:"canUpdateCustomData,omitempty"` +} + +func (m *MsgSetCustomData) Reset() { *m = MsgSetCustomData{} } +func (m *MsgSetCustomData) String() string { return proto.CompactTextString(m) } +func (*MsgSetCustomData) ProtoMessage() {} +func (*MsgSetCustomData) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{47} +} +func (m *MsgSetCustomData) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCustomData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCustomData.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetCustomData) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCustomData.Merge(m, src) +} +func (m *MsgSetCustomData) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCustomData) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCustomData.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetCustomData proto.InternalMessageInfo + +func (m *MsgSetCustomData) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetCustomData) GetCustomData() string { + if m != nil { + return m.CustomData + } + return "" +} + +func (m *MsgSetCustomData) GetCanUpdateCustomData() []*ActionPermission { + if m != nil { + return m.CanUpdateCustomData + } + return nil +} + +// MsgSetCustomDataResponse is the response to MsgSetCustomData. +type MsgSetCustomDataResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` +} + +func (m *MsgSetCustomDataResponse) Reset() { *m = MsgSetCustomDataResponse{} } +func (m *MsgSetCustomDataResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetCustomDataResponse) ProtoMessage() {} +func (*MsgSetCustomDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{48} +} +func (m *MsgSetCustomDataResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCustomDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCustomDataResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetCustomDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCustomDataResponse.Merge(m, src) +} +func (m *MsgSetCustomDataResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCustomDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCustomDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetCustomDataResponse proto.InternalMessageInfo + +// MsgSetStandards sets the standards and canUpdateStandards permission +type MsgSetStandards struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // New standards to set. + Standards []string `protobuf:"bytes,3,rep,name=standards,proto3" json:"standards,omitempty"` + // Permission to update standards + CanUpdateStandards []*ActionPermission `protobuf:"bytes,4,rep,name=canUpdateStandards,proto3" json:"canUpdateStandards,omitempty"` +} + +func (m *MsgSetStandards) Reset() { *m = MsgSetStandards{} } +func (m *MsgSetStandards) String() string { return proto.CompactTextString(m) } +func (*MsgSetStandards) ProtoMessage() {} +func (*MsgSetStandards) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{49} +} +func (m *MsgSetStandards) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetStandards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetStandards.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetStandards) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetStandards.Merge(m, src) +} +func (m *MsgSetStandards) XXX_Size() int { + return m.Size() +} +func (m *MsgSetStandards) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetStandards.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetStandards proto.InternalMessageInfo + +func (m *MsgSetStandards) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetStandards) GetStandards() []string { + if m != nil { + return m.Standards + } + return nil +} + +func (m *MsgSetStandards) GetCanUpdateStandards() []*ActionPermission { + if m != nil { + return m.CanUpdateStandards + } + return nil +} + +// MsgSetStandardsResponse is the response to MsgSetStandards. +type MsgSetStandardsResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` +} + +func (m *MsgSetStandardsResponse) Reset() { *m = MsgSetStandardsResponse{} } +func (m *MsgSetStandardsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetStandardsResponse) ProtoMessage() {} +func (*MsgSetStandardsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{50} +} +func (m *MsgSetStandardsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetStandardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetStandardsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetStandardsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetStandardsResponse.Merge(m, src) +} +func (m *MsgSetStandardsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetStandardsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetStandardsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetStandardsResponse proto.InternalMessageInfo + +// MsgSetCollectionApprovals sets the collection approvals and canUpdateCollectionApprovals permission +type MsgSetCollectionApprovals struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // New collection approvals to set. + CollectionApprovals []*CollectionApproval `protobuf:"bytes,3,rep,name=collectionApprovals,proto3" json:"collectionApprovals,omitempty"` + // Permission to update collection approvals + CanUpdateCollectionApprovals []*CollectionApprovalPermission `protobuf:"bytes,4,rep,name=canUpdateCollectionApprovals,proto3" json:"canUpdateCollectionApprovals,omitempty"` +} + +func (m *MsgSetCollectionApprovals) Reset() { *m = MsgSetCollectionApprovals{} } +func (m *MsgSetCollectionApprovals) String() string { return proto.CompactTextString(m) } +func (*MsgSetCollectionApprovals) ProtoMessage() {} +func (*MsgSetCollectionApprovals) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{51} +} +func (m *MsgSetCollectionApprovals) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCollectionApprovals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCollectionApprovals.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetCollectionApprovals) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCollectionApprovals.Merge(m, src) +} +func (m *MsgSetCollectionApprovals) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCollectionApprovals) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCollectionApprovals.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetCollectionApprovals proto.InternalMessageInfo + +func (m *MsgSetCollectionApprovals) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetCollectionApprovals) GetCollectionApprovals() []*CollectionApproval { + if m != nil { + return m.CollectionApprovals + } + return nil +} + +func (m *MsgSetCollectionApprovals) GetCanUpdateCollectionApprovals() []*CollectionApprovalPermission { + if m != nil { + return m.CanUpdateCollectionApprovals + } + return nil +} + +// MsgSetCollectionApprovalsResponse is the response to MsgSetCollectionApprovals. +type MsgSetCollectionApprovalsResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + ApprovalChanges []*ApprovalChange `protobuf:"bytes,2,rep,name=approvalChanges,proto3" json:"approvalChanges,omitempty"` + ReviewItems []string `protobuf:"bytes,3,rep,name=reviewItems,proto3" json:"reviewItems,omitempty"` +} + +func (m *MsgSetCollectionApprovalsResponse) Reset() { *m = MsgSetCollectionApprovalsResponse{} } +func (m *MsgSetCollectionApprovalsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetCollectionApprovalsResponse) ProtoMessage() {} +func (*MsgSetCollectionApprovalsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{52} +} +func (m *MsgSetCollectionApprovalsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetCollectionApprovalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetCollectionApprovalsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetCollectionApprovalsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetCollectionApprovalsResponse.Merge(m, src) +} +func (m *MsgSetCollectionApprovalsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetCollectionApprovalsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetCollectionApprovalsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetCollectionApprovalsResponse proto.InternalMessageInfo + +func (m *MsgSetCollectionApprovalsResponse) GetApprovalChanges() []*ApprovalChange { + if m != nil { + return m.ApprovalChanges + } + return nil +} + +func (m *MsgSetCollectionApprovalsResponse) GetReviewItems() []string { + if m != nil { + return m.ReviewItems + } + return nil +} + +// MsgSetIsArchived sets the isArchived and canArchiveCollection permission +type MsgSetIsArchived struct { + // Address of the creator. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // ID of the collection. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // New isArchived to set. + IsArchived bool `protobuf:"varint,3,opt,name=isArchived,proto3" json:"isArchived,omitempty"` + // Permission to archive collection + CanArchiveCollection []*ActionPermission `protobuf:"bytes,4,rep,name=canArchiveCollection,proto3" json:"canArchiveCollection,omitempty"` +} + +func (m *MsgSetIsArchived) Reset() { *m = MsgSetIsArchived{} } +func (m *MsgSetIsArchived) String() string { return proto.CompactTextString(m) } +func (*MsgSetIsArchived) ProtoMessage() {} +func (*MsgSetIsArchived) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{53} +} +func (m *MsgSetIsArchived) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetIsArchived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetIsArchived.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetIsArchived) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetIsArchived.Merge(m, src) +} +func (m *MsgSetIsArchived) XXX_Size() int { + return m.Size() +} +func (m *MsgSetIsArchived) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetIsArchived.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetIsArchived proto.InternalMessageInfo + +func (m *MsgSetIsArchived) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgSetIsArchived) GetIsArchived() bool { + if m != nil { + return m.IsArchived + } + return false +} + +func (m *MsgSetIsArchived) GetCanArchiveCollection() []*ActionPermission { + if m != nil { + return m.CanArchiveCollection + } + return nil +} + +// MsgSetIsArchivedResponse is the response to MsgSetIsArchived. +type MsgSetIsArchivedResponse struct { + // ID of the collection. + CollectionId Uint `protobuf:"bytes,1,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` +} + +func (m *MsgSetIsArchivedResponse) Reset() { *m = MsgSetIsArchivedResponse{} } +func (m *MsgSetIsArchivedResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetIsArchivedResponse) ProtoMessage() {} +func (*MsgSetIsArchivedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{54} +} +func (m *MsgSetIsArchivedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetIsArchivedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetIsArchivedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetIsArchivedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetIsArchivedResponse.Merge(m, src) +} +func (m *MsgSetIsArchivedResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetIsArchivedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetIsArchivedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetIsArchivedResponse proto.InternalMessageInfo + +// MsgSetReservedProtocolAddress sets or unsets a reserved protocol address (governance-only). +type MsgSetReservedProtocolAddress struct { + // authority is the address that controls the module (defaults to x/gov unless overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Address to set or unset as reserved protocol address. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Whether the address should be a reserved protocol address (true) or not (false). + IsReservedProtocol bool `protobuf:"varint,3,opt,name=isReservedProtocol,proto3" json:"isReservedProtocol,omitempty"` +} + +func (m *MsgSetReservedProtocolAddress) Reset() { *m = MsgSetReservedProtocolAddress{} } +func (m *MsgSetReservedProtocolAddress) String() string { return proto.CompactTextString(m) } +func (*MsgSetReservedProtocolAddress) ProtoMessage() {} +func (*MsgSetReservedProtocolAddress) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{55} +} +func (m *MsgSetReservedProtocolAddress) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetReservedProtocolAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetReservedProtocolAddress.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetReservedProtocolAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetReservedProtocolAddress.Merge(m, src) +} +func (m *MsgSetReservedProtocolAddress) XXX_Size() int { + return m.Size() +} +func (m *MsgSetReservedProtocolAddress) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetReservedProtocolAddress.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetReservedProtocolAddress proto.InternalMessageInfo + +func (m *MsgSetReservedProtocolAddress) GetAuthority() string { + if m != nil { + return m.Authority + } + return "" +} + +func (m *MsgSetReservedProtocolAddress) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *MsgSetReservedProtocolAddress) GetIsReservedProtocol() bool { + if m != nil { + return m.IsReservedProtocol + } + return false +} + +// MsgSetReservedProtocolAddressResponse is the response to MsgSetReservedProtocolAddress. +type MsgSetReservedProtocolAddressResponse struct { +} + +func (m *MsgSetReservedProtocolAddressResponse) Reset() { *m = MsgSetReservedProtocolAddressResponse{} } +func (m *MsgSetReservedProtocolAddressResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSetReservedProtocolAddressResponse) ProtoMessage() {} +func (*MsgSetReservedProtocolAddressResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{56} +} +func (m *MsgSetReservedProtocolAddressResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSetReservedProtocolAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSetReservedProtocolAddressResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSetReservedProtocolAddressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSetReservedProtocolAddressResponse.Merge(m, src) +} +func (m *MsgSetReservedProtocolAddressResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSetReservedProtocolAddressResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSetReservedProtocolAddressResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSetReservedProtocolAddressResponse proto.InternalMessageInfo + +// MsgCastVote allows a voter to cast or update their vote for a voting challenge. +type MsgCastVote struct { + // The address of the voter casting the vote. + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // The collection ID for the voting challenge. + CollectionId Uint `protobuf:"bytes,2,opt,name=collectionId,proto3,customtype=Uint" json:"collectionId"` + // The approval level ("collection", "incoming", or "outgoing"). + ApprovalLevel string `protobuf:"bytes,3,opt,name=approvalLevel,proto3" json:"approvalLevel,omitempty"` + // The approver address (empty string for collection-level approvals). + ApproverAddress string `protobuf:"bytes,4,opt,name=approverAddress,proto3" json:"approverAddress,omitempty"` + // The approval ID. + ApprovalId string `protobuf:"bytes,5,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + // The proposal ID (challenge ID) from the VotingChallenge. + ProposalId string `protobuf:"bytes,6,opt,name=proposalId,proto3" json:"proposalId,omitempty"` + // The percentage weight (0-100) allocated to "yes" vote. + // The remaining percentage (100 - yesWeight) is allocated to "no" vote. + // Example: yesWeight=70 means 70% yes, 30% no. + YesWeight Uint `protobuf:"bytes,7,opt,name=yesWeight,proto3,customtype=Uint" json:"yesWeight"` +} + +func (m *MsgCastVote) Reset() { *m = MsgCastVote{} } +func (m *MsgCastVote) String() string { return proto.CompactTextString(m) } +func (*MsgCastVote) ProtoMessage() {} +func (*MsgCastVote) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{57} +} +func (m *MsgCastVote) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCastVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCastVote.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCastVote) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCastVote.Merge(m, src) +} +func (m *MsgCastVote) XXX_Size() int { + return m.Size() +} +func (m *MsgCastVote) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCastVote.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCastVote proto.InternalMessageInfo + +func (m *MsgCastVote) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCastVote) GetApprovalLevel() string { + if m != nil { + return m.ApprovalLevel + } + return "" +} + +func (m *MsgCastVote) GetApproverAddress() string { + if m != nil { + return m.ApproverAddress + } + return "" +} + +func (m *MsgCastVote) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *MsgCastVote) GetProposalId() string { + if m != nil { + return m.ProposalId + } + return "" +} + +type MsgCastVoteResponse struct { +} + +func (m *MsgCastVoteResponse) Reset() { *m = MsgCastVoteResponse{} } +func (m *MsgCastVoteResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCastVoteResponse) ProtoMessage() {} +func (*MsgCastVoteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{58} +} +func (m *MsgCastVoteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCastVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCastVoteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgCastVoteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCastVoteResponse.Merge(m, src) +} +func (m *MsgCastVoteResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCastVoteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCastVoteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCastVoteResponse proto.InternalMessageInfo + +// ApprovalUsed represents an approval that was consumed during a transfer. +type ApprovalUsed struct { + ApprovalId string `protobuf:"bytes,1,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + ApprovalLevel string `protobuf:"bytes,2,opt,name=approvalLevel,proto3" json:"approvalLevel,omitempty"` + ApproverAddress string `protobuf:"bytes,3,opt,name=approverAddress,proto3" json:"approverAddress,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` +} + +func (m *ApprovalUsed) Reset() { *m = ApprovalUsed{} } +func (m *ApprovalUsed) String() string { return proto.CompactTextString(m) } +func (*ApprovalUsed) ProtoMessage() {} +func (*ApprovalUsed) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{59} +} +func (m *ApprovalUsed) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApprovalUsed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApprovalUsed.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ApprovalUsed) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApprovalUsed.Merge(m, src) +} +func (m *ApprovalUsed) XXX_Size() int { + return m.Size() +} +func (m *ApprovalUsed) XXX_DiscardUnknown() { + xxx_messageInfo_ApprovalUsed.DiscardUnknown(m) +} + +var xxx_messageInfo_ApprovalUsed proto.InternalMessageInfo + +func (m *ApprovalUsed) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *ApprovalUsed) GetApprovalLevel() string { + if m != nil { + return m.ApprovalLevel + } + return "" +} + +func (m *ApprovalUsed) GetApproverAddress() string { + if m != nil { + return m.ApproverAddress + } + return "" +} + +func (m *ApprovalUsed) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +// CoinTransferProto represents a coin transfer that occurred during a transaction. +type CoinTransferProto struct { + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` + Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` + Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"` + IsProtocolFee bool `protobuf:"varint,5,opt,name=isProtocolFee,proto3" json:"isProtocolFee,omitempty"` +} + +func (m *CoinTransferProto) Reset() { *m = CoinTransferProto{} } +func (m *CoinTransferProto) String() string { return proto.CompactTextString(m) } +func (*CoinTransferProto) ProtoMessage() {} +func (*CoinTransferProto) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{60} +} +func (m *CoinTransferProto) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CoinTransferProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CoinTransferProto.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *CoinTransferProto) XXX_Merge(src proto.Message) { + xxx_messageInfo_CoinTransferProto.Merge(m, src) +} +func (m *CoinTransferProto) XXX_Size() int { + return m.Size() +} +func (m *CoinTransferProto) XXX_DiscardUnknown() { + xxx_messageInfo_CoinTransferProto.DiscardUnknown(m) +} + +var xxx_messageInfo_CoinTransferProto proto.InternalMessageInfo + +func (m *CoinTransferProto) GetFrom() string { + if m != nil { + return m.From + } + return "" +} + +func (m *CoinTransferProto) GetTo() string { + if m != nil { + return m.To + } + return "" +} + +func (m *CoinTransferProto) GetAmount() string { + if m != nil { + return m.Amount + } + return "" +} + +func (m *CoinTransferProto) GetDenom() string { + if m != nil { + return m.Denom + } + return "" +} + +func (m *CoinTransferProto) GetIsProtocolFee() bool { + if m != nil { + return m.IsProtocolFee + } + return false +} + +// ApprovalChange represents a change to an approval (created, edited, or deleted). +type ApprovalChange struct { + ApprovalId string `protobuf:"bytes,1,opt,name=approvalId,proto3" json:"approvalId,omitempty"` + ApprovalLevel string `protobuf:"bytes,2,opt,name=approvalLevel,proto3" json:"approvalLevel,omitempty"` + Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` +} + +func (m *ApprovalChange) Reset() { *m = ApprovalChange{} } +func (m *ApprovalChange) String() string { return proto.CompactTextString(m) } +func (*ApprovalChange) ProtoMessage() {} +func (*ApprovalChange) Descriptor() ([]byte, []int) { + return fileDescriptor_5ff3c354e788fb63, []int{61} +} +func (m *ApprovalChange) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ApprovalChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ApprovalChange.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ApprovalChange) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApprovalChange.Merge(m, src) +} +func (m *ApprovalChange) XXX_Size() int { + return m.Size() +} +func (m *ApprovalChange) XXX_DiscardUnknown() { + xxx_messageInfo_ApprovalChange.DiscardUnknown(m) +} + +var xxx_messageInfo_ApprovalChange proto.InternalMessageInfo + +func (m *ApprovalChange) GetApprovalId() string { + if m != nil { + return m.ApprovalId + } + return "" +} + +func (m *ApprovalChange) GetApprovalLevel() string { + if m != nil { + return m.ApprovalLevel + } + return "" +} + +func (m *ApprovalChange) GetAction() string { + if m != nil { + return m.Action + } + return "" +} + +func (m *ApprovalChange) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func init() { + proto.RegisterType((*TokenizationCustomMsgType)(nil), "tokenization.v29.TokenizationCustomMsgType") + proto.RegisterType((*MsgUpdateParams)(nil), "tokenization.v29.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "tokenization.v29.MsgUpdateParamsResponse") + proto.RegisterType((*CosmosCoinWrapperPathAddObject)(nil), "tokenization.v29.CosmosCoinWrapperPathAddObject") + proto.RegisterType((*AliasPathAddObject)(nil), "tokenization.v29.AliasPathAddObject") + proto.RegisterType((*CosmosCoinBackedPathAddObject)(nil), "tokenization.v29.CosmosCoinBackedPathAddObject") + proto.RegisterType((*InvariantsAddObject)(nil), "tokenization.v29.InvariantsAddObject") + proto.RegisterType((*MsgUniversalUpdateCollection)(nil), "tokenization.v29.MsgUniversalUpdateCollection") + proto.RegisterType((*MsgUniversalUpdateCollectionResponse)(nil), "tokenization.v29.MsgUniversalUpdateCollectionResponse") + proto.RegisterType((*MsgUpdateCollection)(nil), "tokenization.v29.MsgUpdateCollection") + proto.RegisterType((*MsgUpdateCollectionResponse)(nil), "tokenization.v29.MsgUpdateCollectionResponse") + proto.RegisterType((*MsgCreateCollection)(nil), "tokenization.v29.MsgCreateCollection") + proto.RegisterType((*MsgCreateCollectionResponse)(nil), "tokenization.v29.MsgCreateCollectionResponse") + proto.RegisterType((*MsgCreateAddressLists)(nil), "tokenization.v29.MsgCreateAddressLists") + proto.RegisterType((*MsgCreateAddressListsResponse)(nil), "tokenization.v29.MsgCreateAddressListsResponse") + proto.RegisterType((*MsgTransferTokens)(nil), "tokenization.v29.MsgTransferTokens") + proto.RegisterType((*MsgTransferTokensResponse)(nil), "tokenization.v29.MsgTransferTokensResponse") + proto.RegisterType((*MsgDeleteCollection)(nil), "tokenization.v29.MsgDeleteCollection") + proto.RegisterType((*MsgDeleteCollectionResponse)(nil), "tokenization.v29.MsgDeleteCollectionResponse") + proto.RegisterType((*MsgUpdateUserApprovals)(nil), "tokenization.v29.MsgUpdateUserApprovals") + proto.RegisterType((*MsgUpdateUserApprovalsResponse)(nil), "tokenization.v29.MsgUpdateUserApprovalsResponse") + proto.RegisterType((*MsgSetIncomingApproval)(nil), "tokenization.v29.MsgSetIncomingApproval") + proto.RegisterType((*MsgSetIncomingApprovalResponse)(nil), "tokenization.v29.MsgSetIncomingApprovalResponse") + proto.RegisterType((*MsgDeleteIncomingApproval)(nil), "tokenization.v29.MsgDeleteIncomingApproval") + proto.RegisterType((*MsgDeleteIncomingApprovalResponse)(nil), "tokenization.v29.MsgDeleteIncomingApprovalResponse") + proto.RegisterType((*MsgSetOutgoingApproval)(nil), "tokenization.v29.MsgSetOutgoingApproval") + proto.RegisterType((*MsgSetOutgoingApprovalResponse)(nil), "tokenization.v29.MsgSetOutgoingApprovalResponse") + proto.RegisterType((*MsgDeleteOutgoingApproval)(nil), "tokenization.v29.MsgDeleteOutgoingApproval") + proto.RegisterType((*MsgDeleteOutgoingApprovalResponse)(nil), "tokenization.v29.MsgDeleteOutgoingApprovalResponse") + proto.RegisterType((*MsgPurgeApprovals)(nil), "tokenization.v29.MsgPurgeApprovals") + proto.RegisterType((*MsgPurgeApprovalsResponse)(nil), "tokenization.v29.MsgPurgeApprovalsResponse") + proto.RegisterType((*MsgCreateDynamicStore)(nil), "tokenization.v29.MsgCreateDynamicStore") + proto.RegisterType((*MsgCreateDynamicStoreResponse)(nil), "tokenization.v29.MsgCreateDynamicStoreResponse") + proto.RegisterType((*MsgUpdateDynamicStore)(nil), "tokenization.v29.MsgUpdateDynamicStore") + proto.RegisterType((*MsgUpdateDynamicStoreResponse)(nil), "tokenization.v29.MsgUpdateDynamicStoreResponse") + proto.RegisterType((*MsgDeleteDynamicStore)(nil), "tokenization.v29.MsgDeleteDynamicStore") + proto.RegisterType((*MsgDeleteDynamicStoreResponse)(nil), "tokenization.v29.MsgDeleteDynamicStoreResponse") + proto.RegisterType((*MsgSetDynamicStoreValue)(nil), "tokenization.v29.MsgSetDynamicStoreValue") + proto.RegisterType((*MsgSetDynamicStoreValueResponse)(nil), "tokenization.v29.MsgSetDynamicStoreValueResponse") + proto.RegisterType((*MsgSetValidTokenIds)(nil), "tokenization.v29.MsgSetValidTokenIds") + proto.RegisterType((*MsgSetValidTokenIdsResponse)(nil), "tokenization.v29.MsgSetValidTokenIdsResponse") + proto.RegisterType((*MsgSetManager)(nil), "tokenization.v29.MsgSetManager") + proto.RegisterType((*MsgSetManagerResponse)(nil), "tokenization.v29.MsgSetManagerResponse") + proto.RegisterType((*MsgSetCollectionMetadata)(nil), "tokenization.v29.MsgSetCollectionMetadata") + proto.RegisterType((*MsgSetCollectionMetadataResponse)(nil), "tokenization.v29.MsgSetCollectionMetadataResponse") + proto.RegisterType((*MsgSetTokenMetadata)(nil), "tokenization.v29.MsgSetTokenMetadata") + proto.RegisterType((*MsgSetTokenMetadataResponse)(nil), "tokenization.v29.MsgSetTokenMetadataResponse") + proto.RegisterType((*MsgSetCustomData)(nil), "tokenization.v29.MsgSetCustomData") + proto.RegisterType((*MsgSetCustomDataResponse)(nil), "tokenization.v29.MsgSetCustomDataResponse") + proto.RegisterType((*MsgSetStandards)(nil), "tokenization.v29.MsgSetStandards") + proto.RegisterType((*MsgSetStandardsResponse)(nil), "tokenization.v29.MsgSetStandardsResponse") + proto.RegisterType((*MsgSetCollectionApprovals)(nil), "tokenization.v29.MsgSetCollectionApprovals") + proto.RegisterType((*MsgSetCollectionApprovalsResponse)(nil), "tokenization.v29.MsgSetCollectionApprovalsResponse") + proto.RegisterType((*MsgSetIsArchived)(nil), "tokenization.v29.MsgSetIsArchived") + proto.RegisterType((*MsgSetIsArchivedResponse)(nil), "tokenization.v29.MsgSetIsArchivedResponse") + proto.RegisterType((*MsgSetReservedProtocolAddress)(nil), "tokenization.v29.MsgSetReservedProtocolAddress") + proto.RegisterType((*MsgSetReservedProtocolAddressResponse)(nil), "tokenization.v29.MsgSetReservedProtocolAddressResponse") + proto.RegisterType((*MsgCastVote)(nil), "tokenization.v29.MsgCastVote") + proto.RegisterType((*MsgCastVoteResponse)(nil), "tokenization.v29.MsgCastVoteResponse") + proto.RegisterType((*ApprovalUsed)(nil), "tokenization.v29.ApprovalUsed") + proto.RegisterType((*CoinTransferProto)(nil), "tokenization.v29.CoinTransferProto") + proto.RegisterType((*ApprovalChange)(nil), "tokenization.v29.ApprovalChange") +} + +func init() { proto.RegisterFile("tokenization/v29/tx.proto", fileDescriptor_5ff3c354e788fb63) } + +var fileDescriptor_5ff3c354e788fb63 = []byte{ + // 4018 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x3c, 0x4b, 0x6c, 0x1c, 0x47, + 0x76, 0x9a, 0x19, 0x92, 0x9a, 0x79, 0xfc, 0x17, 0x29, 0x7e, 0x46, 0x12, 0x25, 0xb5, 0x29, 0x4b, + 0xa2, 0x6c, 0x8e, 0x44, 0x3b, 0xb2, 0x4d, 0x1b, 0x4e, 0x28, 0x52, 0x82, 0x69, 0x49, 0x16, 0xdd, + 0xfc, 0x08, 0x08, 0x6c, 0x28, 0x3d, 0x33, 0xc5, 0x61, 0xc7, 0x33, 0xdd, 0x93, 0xee, 0x1e, 0x4a, + 0xf4, 0x29, 0x48, 0xe0, 0x24, 0x88, 0x81, 0x24, 0x97, 0x20, 0x09, 0x72, 0xcd, 0x21, 0xb7, 0x28, + 0x40, 0x6e, 0x89, 0x81, 0x2c, 0x16, 0x58, 0x18, 0xd8, 0x8b, 0xb1, 0xa7, 0x5d, 0x1b, 0xf0, 0xee, + 0xda, 0x07, 0x9d, 0x76, 0x2f, 0x7b, 0xd9, 0xdb, 0x2e, 0xba, 0xba, 0xaa, 0x3f, 0xf5, 0x69, 0xf6, + 0x90, 0xc3, 0x5d, 0x78, 0x2f, 0x12, 0xa7, 0xfb, 0x7d, 0xaa, 0x5e, 0xbd, 0x7e, 0xbf, 0x7a, 0x55, + 0x30, 0xeb, 0xd9, 0x1f, 0x61, 0xcb, 0xfc, 0xd8, 0xf0, 0x4c, 0xdb, 0xaa, 0xec, 0x2f, 0xbd, 0x51, + 0xf1, 0x9e, 0x2e, 0xb6, 0x1d, 0xdb, 0xb3, 0xd1, 0x58, 0xfc, 0xd5, 0xe2, 0xfe, 0xd2, 0x1b, 0xe5, + 0x71, 0xa3, 0x65, 0x5a, 0x76, 0x85, 0xfc, 0x1b, 0x00, 0x95, 0xa7, 0x6b, 0xb6, 0xdb, 0xb2, 0xdd, + 0x4a, 0xcb, 0x6d, 0x54, 0xf6, 0x6f, 0xfa, 0xff, 0xd1, 0x17, 0xb3, 0xc1, 0x8b, 0xc7, 0xe4, 0x57, + 0x25, 0xf8, 0x41, 0x5f, 0x4d, 0x36, 0xec, 0x86, 0x1d, 0x3c, 0xf7, 0xff, 0xa2, 0x4f, 0xcf, 0x0b, + 0x23, 0x69, 0x1b, 0x8e, 0xd1, 0x62, 0x48, 0x17, 0xc5, 0x81, 0x3a, 0x86, 0xe5, 0xee, 0x62, 0x87, + 0x41, 0x5c, 0x10, 0x20, 0xaa, 0x46, 0xd3, 0xb0, 0x6a, 0x98, 0x01, 0x68, 0x22, 0x07, 0xec, 0xb4, + 0x4c, 0xd7, 0x35, 0x6d, 0x4b, 0x4d, 0xa4, 0x85, 0x3d, 0xa3, 0x6e, 0x78, 0x86, 0x92, 0x48, 0xcd, + 0x6e, 0x36, 0x71, 0xcd, 0x8b, 0x11, 0x99, 0x17, 0x60, 0x8c, 0x7a, 0xdd, 0xc1, 0xae, 0xfb, 0xb8, + 0x69, 0xba, 0x1e, 0x83, 0xba, 0x2c, 0x40, 0xd5, 0x0f, 0x2c, 0xa3, 0x65, 0xd6, 0x1e, 0xbb, 0x9e, + 0xed, 0x60, 0xf5, 0xc4, 0x8d, 0x76, 0xdb, 0xb1, 0xf7, 0x8d, 0x26, 0x83, 0xb8, 0x26, 0x40, 0x74, + 0x5c, 0xec, 0x3c, 0xa6, 0xb3, 0x0f, 0xa8, 0x51, 0xd0, 0x4b, 0xe2, 0xe8, 0xf7, 0x8c, 0x66, 0x13, + 0x5b, 0x8d, 0x90, 0xdf, 0x1c, 0x5d, 0xd1, 0xaa, 0xe1, 0xe2, 0xca, 0xfe, 0xcd, 0x2a, 0xf6, 0x8c, + 0x9b, 0x95, 0x9a, 0x6d, 0x5a, 0xc1, 0x7b, 0xed, 0x1f, 0x26, 0x60, 0x76, 0x2b, 0x46, 0x65, 0xb5, + 0xe3, 0x7a, 0x76, 0xeb, 0x81, 0xdb, 0xd8, 0x3a, 0x68, 0x63, 0xf4, 0x21, 0x9c, 0xa9, 0x39, 0xd8, + 0xf0, 0xf0, 0x4a, 0x30, 0xe3, 0xfb, 0xfe, 0x84, 0x1f, 0xb8, 0x8d, 0x99, 0xdc, 0xc5, 0xdc, 0xd5, + 0xc1, 0xa5, 0x2b, 0x8b, 0xbc, 0x52, 0x2d, 0x3e, 0x70, 0x1b, 0xab, 0x02, 0x86, 0x2e, 0xa7, 0x82, + 0x1c, 0x38, 0xd7, 0xb1, 0xcc, 0x7d, 0xec, 0xb8, 0x46, 0x73, 0xbb, 0x5d, 0x37, 0x3c, 0xbc, 0x1a, + 0x4a, 0xdf, 0xe7, 0x92, 0x27, 0x5c, 0x16, 0xa5, 0x5c, 0xb6, 0x55, 0x88, 0x7a, 0x2a, 0x4d, 0xf4, + 0x08, 0x26, 0xea, 0xb8, 0x89, 0x79, 0x56, 0x05, 0xc2, 0xea, 0xb2, 0x94, 0xd5, 0x1a, 0x07, 0xaf, + 0xcb, 0x28, 0xa0, 0xf7, 0x61, 0x9c, 0xe9, 0x30, 0x11, 0x28, 0x91, 0x53, 0x1f, 0x21, 0xfb, 0x82, + 0x94, 0xec, 0x56, 0x02, 0x5a, 0x17, 0xb1, 0xd1, 0x9f, 0xc1, 0x54, 0x87, 0x4c, 0x61, 0xdb, 0xc5, + 0xce, 0x0a, 0xd3, 0x13, 0x9f, 0x6e, 0x3f, 0xa1, 0x7b, 0x55, 0x2e, 0x19, 0x11, 0x45, 0x57, 0xd0, + 0xf1, 0xa5, 0xd1, 0x91, 0x08, 0x7e, 0x20, 0x45, 0x1a, 0x82, 0xbc, 0x65, 0x14, 0x7c, 0xc2, 0xc1, + 0x9a, 0x27, 0x09, 0x9f, 0x4e, 0x21, 0xbc, 0xca, 0xc1, 0xeb, 0x32, 0x0a, 0x91, 0x4a, 0xae, 0x05, + 0x9f, 0xd7, 0xa6, 0xff, 0x3d, 0xf8, 0xa4, 0x8b, 0x87, 0xaa, 0x64, 0x1c, 0x43, 0x97, 0x53, 0xf1, + 0xc9, 0x07, 0xd3, 0xe1, 0xc9, 0x97, 0x52, 0xc8, 0x6f, 0x0b, 0x18, 0xba, 0x9c, 0x8a, 0x4f, 0x3e, + 0xd0, 0x1d, 0x9e, 0x3c, 0xa4, 0x90, 0x5f, 0x13, 0x30, 0x74, 0x39, 0x15, 0x54, 0x83, 0x69, 0x17, + 0x7b, 0xf1, 0xa7, 0x3b, 0x46, 0xb3, 0x43, 0x18, 0x0c, 0x12, 0x06, 0xd7, 0xa4, 0x0c, 0x36, 0x25, + 0x38, 0xba, 0x8a, 0x92, 0xaf, 0x95, 0x2e, 0xf6, 0xd6, 0xad, 0x9a, 0xdd, 0x32, 0xad, 0x06, 0x53, + 0x27, 0x9f, 0xc7, 0x48, 0x8a, 0x56, 0x6e, 0x8a, 0x28, 0xba, 0x82, 0x0e, 0x32, 0x61, 0x36, 0x98, + 0x9f, 0x8c, 0xc9, 0x28, 0x61, 0x72, 0x3d, 0x45, 0x52, 0x02, 0x1f, 0x35, 0x35, 0x3a, 0x99, 0x87, + 0x1d, 0xaf, 0x61, 0x73, 0x7c, 0xc6, 0xd2, 0x27, 0xc3, 0xa3, 0xe8, 0x0a, 0x3a, 0xd1, 0x64, 0x64, + 0x4c, 0xc6, 0x0f, 0x9d, 0x8c, 0xc0, 0x47, 0x4d, 0xcd, 0x37, 0x41, 0xed, 0x8e, 0xd3, 0xc0, 0x09, + 0x53, 0x81, 0x52, 0x4c, 0xd0, 0x46, 0x02, 0x5a, 0x17, 0xb1, 0xfd, 0xef, 0xd8, 0xc5, 0xde, 0x8e, + 0xd1, 0x34, 0xeb, 0xc4, 0x2e, 0xad, 0xd7, 0x09, 0xd1, 0x89, 0x94, 0xef, 0x78, 0x93, 0x83, 0xd7, + 0x65, 0x14, 0xd0, 0x1d, 0x18, 0x76, 0xb1, 0xf7, 0xc0, 0xb0, 0x8c, 0x06, 0x76, 0x7c, 0x92, 0x93, + 0x84, 0xe4, 0x05, 0x15, 0x49, 0x0a, 0xa9, 0x27, 0xb1, 0xd0, 0x2e, 0xcc, 0xb8, 0xd8, 0x8b, 0x99, + 0x08, 0xea, 0xdf, 0x7d, 0x8a, 0x67, 0x08, 0xc5, 0x05, 0x15, 0x45, 0x11, 0x49, 0x57, 0xd2, 0xa2, + 0x72, 0x20, 0x13, 0x88, 0xb3, 0x98, 0x4a, 0x97, 0x43, 0x02, 0x5e, 0x97, 0x51, 0x40, 0xef, 0xc1, + 0x98, 0xcf, 0x94, 0xb8, 0xdd, 0x35, 0x4a, 0x75, 0x9a, 0x50, 0xd5, 0x94, 0x03, 0x0f, 0x81, 0x75, + 0x01, 0x17, 0xdd, 0x83, 0x51, 0x17, 0x7b, 0x9b, 0x9e, 0x61, 0xd5, 0x0d, 0x27, 0x58, 0xac, 0x19, + 0x42, 0xee, 0x92, 0x8a, 0x5c, 0x08, 0xab, 0xf3, 0x98, 0xbe, 0xee, 0x26, 0x24, 0x92, 0x50, 0xac, + 0xd9, 0x14, 0xdd, 0xdd, 0x94, 0x62, 0xe9, 0x6a, 0x6a, 0x54, 0x0e, 0xeb, 0xee, 0x8a, 0x53, 0xdb, + 0x33, 0xf7, 0x71, 0xdd, 0xe7, 0x50, 0x4e, 0x97, 0x43, 0x04, 0xac, 0x0b, 0xb8, 0xa8, 0x03, 0xe7, + 0x5d, 0xec, 0xe9, 0xd8, 0xc5, 0xce, 0x3e, 0xae, 0x6f, 0xf8, 0xc1, 0x4e, 0xcd, 0x6e, 0xd2, 0x08, + 0xc4, 0x27, 0x7e, 0x96, 0x10, 0xaf, 0xa8, 0x88, 0x2b, 0x30, 0xf5, 0x74, 0xaa, 0xe8, 0x8f, 0x61, + 0xb0, 0x66, 0xb8, 0xde, 0x8e, 0xed, 0x11, 0xab, 0x7b, 0x8e, 0x30, 0x39, 0x2f, 0x77, 0x4a, 0x14, + 0x4e, 0x8f, 0x63, 0x68, 0xff, 0x9b, 0x83, 0xd1, 0xd0, 0xa5, 0x6c, 0x90, 0x98, 0x19, 0xdd, 0x82, + 0x92, 0xd1, 0xf1, 0xf6, 0x6c, 0xc7, 0xf4, 0x0e, 0x48, 0xe8, 0x55, 0xba, 0x3d, 0xf3, 0xa3, 0xff, + 0x79, 0x79, 0x92, 0xc6, 0xe1, 0x94, 0xfd, 0xa6, 0xe7, 0x98, 0x56, 0x43, 0x8f, 0x40, 0xd1, 0x9b, + 0x30, 0x10, 0x44, 0xdd, 0x34, 0x92, 0x9a, 0x11, 0xc7, 0x11, 0x70, 0xb8, 0x5d, 0xfa, 0xfc, 0xeb, + 0x0b, 0xa7, 0xfe, 0xf3, 0xf9, 0xb3, 0x85, 0x9c, 0x4e, 0x51, 0x96, 0x5f, 0xf9, 0xab, 0xe7, 0xcf, + 0x16, 0x22, 0x62, 0x7f, 0xff, 0xfc, 0xd9, 0x82, 0x18, 0xbc, 0x72, 0x23, 0xd5, 0x66, 0x61, 0x9a, + 0x7b, 0xa4, 0x63, 0xb7, 0x6d, 0x5b, 0x2e, 0xd6, 0x7e, 0x92, 0x87, 0xb9, 0x55, 0x32, 0xe0, 0x55, + 0xdb, 0xb4, 0x1e, 0x39, 0x46, 0xbb, 0x8d, 0x9d, 0x0d, 0xc3, 0xdb, 0x5b, 0xa9, 0xd7, 0x1f, 0x56, + 0xff, 0x1c, 0xd7, 0x3c, 0x34, 0x09, 0xfd, 0x75, 0x6c, 0xd9, 0xad, 0x60, 0x8e, 0x7a, 0xf0, 0x03, + 0xbd, 0x03, 0x50, 0xb3, 0x2d, 0x3f, 0xa2, 0x33, 0x6d, 0x8b, 0xce, 0x44, 0x62, 0x96, 0x57, 0x43, + 0x98, 0x47, 0xa6, 0xb7, 0x67, 0x77, 0xbc, 0x35, 0x1f, 0x5b, 0x8f, 0xe1, 0xa2, 0x29, 0x18, 0x70, + 0x0f, 0x5a, 0x55, 0xbb, 0x49, 0xc2, 0xbd, 0x92, 0x4e, 0x7f, 0xa1, 0x37, 0x01, 0x08, 0xab, 0x6d, + 0xcb, 0xf4, 0xdc, 0x99, 0xbe, 0x8b, 0x85, 0xab, 0x83, 0x4b, 0x67, 0x45, 0x0e, 0x6b, 0x0c, 0x46, + 0x8f, 0x81, 0xa3, 0xbb, 0x30, 0x67, 0x34, 0x9b, 0xf6, 0x93, 0x87, 0xfb, 0xd8, 0x71, 0xcc, 0x3a, + 0xf6, 0xb9, 0xaf, 0x58, 0x07, 0x91, 0xc1, 0x23, 0xc1, 0x5a, 0x51, 0x3f, 0x04, 0x0a, 0x2d, 0x43, + 0x91, 0x25, 0x27, 0x34, 0xfe, 0x9a, 0x93, 0x2d, 0x97, 0xb7, 0x17, 0xda, 0x93, 0x10, 0x5e, 0xfb, + 0x24, 0x0f, 0x68, 0xa5, 0x69, 0x1a, 0xee, 0x1f, 0x80, 0x3c, 0xe3, 0x72, 0xe8, 0xef, 0x52, 0x0e, + 0x1f, 0xc2, 0xf9, 0x48, 0xc5, 0x6e, 0x1b, 0xb5, 0x8f, 0x70, 0x3d, 0x29, 0x91, 0xb7, 0x12, 0x73, + 0x0f, 0xb2, 0x98, 0x73, 0x69, 0x73, 0x8f, 0xcf, 0x57, 0xfb, 0xef, 0x02, 0x4c, 0xac, 0x5b, 0xfb, + 0x86, 0x63, 0x1a, 0x96, 0xe7, 0x46, 0x54, 0x6f, 0xc1, 0x94, 0x65, 0x07, 0x66, 0xf8, 0xe1, 0x13, + 0x0b, 0x3b, 0xee, 0x9e, 0xd9, 0xde, 0x32, 0x5b, 0xd8, 0x25, 0x1c, 0x8a, 0xba, 0xe2, 0x2d, 0x7a, + 0x15, 0x46, 0x5a, 0xc6, 0xd3, 0xcd, 0x4e, 0xbb, 0xdd, 0x3c, 0xd8, 0xc0, 0xce, 0x7a, 0x9d, 0xac, + 0x46, 0xe9, 0xf6, 0x90, 0xff, 0x35, 0x7e, 0xf9, 0xf5, 0x85, 0xbe, 0x6d, 0xd3, 0xf2, 0x74, 0x0e, + 0x06, 0xd5, 0x80, 0x7e, 0xf8, 0xc9, 0x49, 0xd2, 0x14, 0xa6, 0x22, 0x9b, 0x4d, 0x8a, 0x48, 0x74, + 0x29, 0x31, 0xf4, 0x27, 0x70, 0xd6, 0xb2, 0xef, 0xda, 0x4e, 0x0d, 0xef, 0x76, 0x9a, 0x1b, 0xb6, + 0xeb, 0x3d, 0x30, 0x2d, 0x8f, 0x65, 0x2c, 0x2e, 0xc9, 0x6b, 0x8a, 0x7a, 0x1a, 0x08, 0xba, 0x01, + 0x13, 0x75, 0xd3, 0x35, 0xaa, 0x4d, 0xbc, 0x61, 0xdb, 0x4d, 0x12, 0x81, 0xfb, 0x32, 0x0f, 0x3e, + 0x06, 0xd9, 0x2b, 0xb4, 0x09, 0x08, 0xef, 0xb7, 0xde, 0xef, 0x60, 0xe7, 0x60, 0x35, 0xcc, 0x63, + 0x67, 0x06, 0x88, 0xfa, 0x48, 0xe2, 0x97, 0x3b, 0x3b, 0x0f, 0x92, 0xb0, 0xba, 0x04, 0x5d, 0x7b, + 0x36, 0x04, 0xe7, 0xd2, 0xd2, 0x45, 0x34, 0x03, 0xa7, 0x49, 0x2a, 0x60, 0x3b, 0xf4, 0x33, 0x61, + 0x3f, 0xd1, 0x0d, 0x18, 0x8a, 0xaa, 0x01, 0x8a, 0xc5, 0x49, 0x40, 0xa0, 0xfb, 0x30, 0x5a, 0xc7, + 0xbb, 0x46, 0xa7, 0xe9, 0xdd, 0xa6, 0xc5, 0x0a, 0xba, 0x2a, 0x12, 0x1f, 0xe6, 0xe7, 0x62, 0x14, + 0x2a, 0x88, 0xe9, 0x79, 0x54, 0x5f, 0x82, 0x41, 0x16, 0x91, 0x08, 0x9e, 0xa8, 0xec, 0x65, 0xaf, + 0xd0, 0x0a, 0x0c, 0xef, 0x27, 0x60, 0xfb, 0x55, 0xdf, 0x1e, 0x19, 0xbc, 0xe1, 0x0b, 0x2d, 0x89, + 0xe1, 0x2f, 0x3c, 0x9f, 0xcf, 0x6d, 0x44, 0x75, 0x15, 0x62, 0x99, 0x8a, 0x7a, 0x1a, 0x08, 0xc9, + 0xd0, 0xa4, 0xb8, 0xa7, 0x55, 0x39, 0x8e, 0x94, 0x8e, 0x2e, 0xa7, 0x82, 0xe6, 0x61, 0x38, 0xe0, + 0x4e, 0xa3, 0x40, 0x92, 0xf8, 0x15, 0xf5, 0xe4, 0x43, 0x7f, 0x55, 0x5b, 0xf4, 0x7d, 0x29, 0x58, + 0x55, 0xfa, 0x13, 0x2d, 0xc3, 0x8c, 0x90, 0xb0, 0x32, 0x7b, 0x03, 0x84, 0x94, 0xf2, 0x3d, 0xda, + 0x02, 0x54, 0x13, 0xb1, 0x82, 0xd4, 0x6a, 0x3e, 0x6d, 0x5e, 0xa1, 0xad, 0x92, 0xe0, 0x47, 0xeb, + 0x9c, 0x08, 0x0e, 0x67, 0x86, 0xe2, 0xeb, 0x9c, 0x78, 0xe5, 0x07, 0xcf, 0x5e, 0x02, 0x76, 0x98, + 0xac, 0xb3, 0x24, 0x78, 0x4e, 0x46, 0xa0, 0x49, 0x2c, 0xb4, 0x00, 0x63, 0x74, 0xaa, 0x61, 0x08, + 0x49, 0x72, 0xb8, 0xa2, 0x2e, 0x3c, 0x47, 0x73, 0x00, 0xb5, 0x08, 0x6a, 0x94, 0xc8, 0x34, 0xf6, + 0x04, 0xbd, 0x05, 0xb3, 0xbc, 0xd8, 0xc2, 0xf8, 0x8e, 0xe4, 0x52, 0x45, 0x5d, 0x0d, 0x80, 0x76, + 0x60, 0xa2, 0x26, 0xc1, 0x1b, 0x27, 0xd3, 0x4a, 0x95, 0x6c, 0x98, 0x17, 0xc9, 0x08, 0xa0, 0xab, + 0x30, 0x1a, 0x30, 0x0d, 0xc3, 0x5a, 0x92, 0x0f, 0x15, 0x75, 0xfe, 0x31, 0x3a, 0x07, 0x25, 0x37, + 0x84, 0x99, 0xb8, 0x58, 0xb8, 0x5a, 0xd2, 0xa3, 0x07, 0x91, 0xa4, 0xa2, 0x20, 0x93, 0x24, 0x2c, + 0xa1, 0xa4, 0xa2, 0xe7, 0xbe, 0xa4, 0xcc, 0x08, 0xea, 0x0c, 0x81, 0x8a, 0x3d, 0x41, 0x8f, 0x60, + 0xb6, 0x65, 0x5a, 0xde, 0x1d, 0xb7, 0xe6, 0xd8, 0x4f, 0x7c, 0xb3, 0xeb, 0x6e, 0xd9, 0xcc, 0x6c, + 0xce, 0x4c, 0x91, 0x19, 0xcf, 0x2e, 0xd2, 0xd0, 0xae, 0x6a, 0xb8, 0x78, 0x91, 0x96, 0xed, 0x16, + 0x7d, 0x58, 0x5d, 0x8d, 0x8b, 0x1c, 0x38, 0x5b, 0x93, 0x05, 0x58, 0xee, 0x96, 0xbd, 0x52, 0xaf, + 0xcf, 0x4c, 0x13, 0xd2, 0x37, 0xd2, 0xfc, 0x83, 0x2c, 0x2a, 0xd3, 0xd3, 0x88, 0xa2, 0x3b, 0x00, + 0x66, 0xe8, 0x11, 0x69, 0xa6, 0x21, 0x49, 0x87, 0x24, 0x5e, 0x53, 0x8f, 0x21, 0xa2, 0xf7, 0x60, + 0xd4, 0x60, 0xf1, 0x0b, 0x1d, 0xee, 0xac, 0x6a, 0xed, 0xc5, 0x40, 0x47, 0xe7, 0x91, 0x97, 0xdf, + 0xf4, 0x83, 0x57, 0x66, 0xc8, 0xfd, 0xd0, 0x75, 0x41, 0x08, 0x5d, 0x95, 0x1e, 0x41, 0xfb, 0x41, + 0x0e, 0xe6, 0x53, 0x2b, 0x8c, 0x34, 0xa4, 0x15, 0x1c, 0x44, 0xee, 0x50, 0x07, 0xf1, 0x2e, 0x8c, + 0xb2, 0x7a, 0xef, 0xea, 0x9e, 0x41, 0xfc, 0x5b, 0x9e, 0xcc, 0xf3, 0xa2, 0x64, 0x9e, 0x09, 0x40, + 0x9d, 0x47, 0x44, 0x17, 0x61, 0xd0, 0xc1, 0xfb, 0x26, 0x7e, 0xb2, 0xee, 0xe1, 0x96, 0xef, 0x68, + 0x7c, 0x9d, 0x8d, 0x3f, 0xd2, 0xbe, 0x18, 0x84, 0x09, 0x49, 0xc5, 0xae, 0xa7, 0x2e, 0x4f, 0xe1, + 0xa4, 0x0a, 0x5d, 0x38, 0xa9, 0xbe, 0x5e, 0x3b, 0xa9, 0xfe, 0x63, 0x38, 0xa9, 0x81, 0x93, 0x71, + 0x52, 0xa7, 0x0f, 0x71, 0x52, 0xc5, 0xec, 0x4e, 0xaa, 0x74, 0x24, 0x27, 0x05, 0x27, 0xe3, 0xa4, + 0x06, 0xbb, 0x70, 0x52, 0x43, 0x3d, 0x73, 0x52, 0xc3, 0x99, 0x9c, 0xd4, 0x48, 0x77, 0x4e, 0x6a, + 0xf4, 0x88, 0x4e, 0x6a, 0xec, 0x04, 0x9c, 0xd4, 0x78, 0x06, 0x27, 0x85, 0xb2, 0x38, 0xa9, 0x89, + 0x4c, 0x4e, 0x6a, 0xb2, 0x3b, 0x27, 0x75, 0xe6, 0xe4, 0x9c, 0xd4, 0xd4, 0xc9, 0x3b, 0xa9, 0xe9, + 0x1e, 0x3a, 0xa9, 0x99, 0xe3, 0x38, 0xa9, 0x25, 0xde, 0x49, 0x89, 0xfb, 0x79, 0x82, 0x6f, 0xfa, + 0x2c, 0x07, 0x67, 0x65, 0x9b, 0x30, 0xdf, 0x15, 0x97, 0xf4, 0x1f, 0x45, 0xe2, 0x92, 0xf8, 0xbd, + 0x9e, 0x14, 0x97, 0x24, 0xc9, 0xa9, 0xf2, 0x47, 0xcf, 0xa9, 0x04, 0xe7, 0x53, 0xe8, 0xda, 0xf9, + 0x28, 0x5d, 0x47, 0x5f, 0x4f, 0x5c, 0x47, 0xcc, 0x29, 0xf4, 0x27, 0x9d, 0x82, 0xdc, 0xb0, 0x0f, + 0x1c, 0xd3, 0xb0, 0x0b, 0x66, 0xfa, 0xf4, 0x91, 0xcc, 0x74, 0xd2, 0xf4, 0x16, 0x05, 0xd3, 0xab, + 0x30, 0x9e, 0xa5, 0xe3, 0x1a, 0xcf, 0x84, 0x49, 0x04, 0xde, 0x24, 0x26, 0xcd, 0xdc, 0x60, 0x77, + 0x66, 0x6e, 0xe8, 0xe4, 0xcc, 0xdc, 0xf0, 0xc9, 0x9b, 0xb9, 0x91, 0x1e, 0x9a, 0xb9, 0xd1, 0x13, + 0x36, 0x73, 0xbc, 0x39, 0x60, 0x66, 0x4e, 0xd8, 0x12, 0xfe, 0xae, 0x98, 0xb9, 0xff, 0xca, 0xc1, + 0x19, 0x69, 0x2b, 0x44, 0x8a, 0xa1, 0xbb, 0x0b, 0x43, 0x46, 0x0c, 0x92, 0x0e, 0x4f, 0x62, 0xe5, + 0x62, 0xf4, 0xd6, 0xad, 0x76, 0xc7, 0xd3, 0x13, 0x78, 0xcb, 0xaf, 0xf2, 0xf2, 0x7e, 0x41, 0x21, + 0xef, 0xf8, 0xb8, 0xb4, 0x0b, 0x70, 0x5e, 0xde, 0xbb, 0xc1, 0xea, 0xf7, 0x3f, 0xcc, 0xc1, 0xb8, + 0xd0, 0xb5, 0xd0, 0xd3, 0x54, 0xe2, 0x75, 0x28, 0x85, 0x5d, 0x40, 0xd4, 0x2e, 0x97, 0x25, 0x56, + 0x88, 0x82, 0xe8, 0x11, 0xf0, 0xf2, 0x0d, 0x7e, 0xca, 0x62, 0xe3, 0x4f, 0x72, 0xdc, 0xda, 0xbf, + 0xe7, 0x61, 0x56, 0xec, 0xc1, 0x60, 0xea, 0xb5, 0x06, 0xc3, 0x61, 0x5b, 0xce, 0xb6, 0x8b, 0x7d, + 0xfd, 0x2a, 0xc8, 0x0b, 0xd1, 0x4c, 0x55, 0x7c, 0x28, 0x3d, 0x89, 0x84, 0xd6, 0x61, 0xb8, 0x66, + 0x9b, 0x56, 0x54, 0x35, 0xcd, 0xab, 0x4a, 0x99, 0xab, 0x31, 0x30, 0xb2, 0xa9, 0xa4, 0x27, 0x31, + 0xd1, 0x3d, 0x98, 0x60, 0xed, 0x4f, 0xec, 0xa1, 0x83, 0xeb, 0x54, 0x48, 0xb3, 0x22, 0x41, 0xea, + 0xef, 0x74, 0x19, 0x16, 0xaf, 0xbe, 0x7d, 0xa2, 0xfa, 0xfe, 0x73, 0x8e, 0x78, 0x69, 0xbe, 0xf1, + 0xa5, 0x97, 0xab, 0x9d, 0xc5, 0x2c, 0xf0, 0xfc, 0xb5, 0xf3, 0xc4, 0x2a, 0x08, 0xfd, 0x38, 0x4c, + 0x45, 0x7f, 0x59, 0x84, 0x29, 0x79, 0x03, 0x4c, 0x8f, 0xf5, 0x74, 0x3a, 0x88, 0xa7, 0xf9, 0x3d, + 0x78, 0x96, 0xf6, 0xaa, 0x5e, 0xa3, 0x2d, 0x18, 0xb7, 0x05, 0x9c, 0x20, 0xfd, 0x7d, 0x51, 0x1e, + 0xcd, 0x08, 0xdb, 0xff, 0x22, 0x81, 0x68, 0x3c, 0x7c, 0x83, 0x03, 0xcb, 0x84, 0x55, 0xaf, 0xfd, + 0xf1, 0x98, 0x02, 0xce, 0x40, 0xda, 0x78, 0x84, 0xde, 0x0a, 0x91, 0x00, 0xda, 0x83, 0x4a, 0xc0, + 0x70, 0xa5, 0xe3, 0xd9, 0xc1, 0x63, 0xbc, 0x89, 0x9b, 0xbb, 0xeb, 0x96, 0xe9, 0x99, 0x86, 0x87, + 0xeb, 0x6c, 0x52, 0xd1, 0x97, 0x11, 0xa4, 0xc7, 0xdd, 0xa2, 0xa1, 0x0f, 0xe0, 0x9a, 0x91, 0x99, + 0x47, 0x50, 0x27, 0xce, 0x8e, 0x70, 0xf8, 0x3c, 0x98, 0x30, 0x22, 0x1e, 0xa5, 0x2c, 0xf3, 0x10, + 0xd0, 0xd2, 0xe6, 0x21, 0xf2, 0x80, 0xf4, 0x79, 0x88, 0xd4, 0xb7, 0xe0, 0xb2, 0x30, 0xa0, 0x95, + 0x66, 0x53, 0xa4, 0x1c, 0xc4, 0x47, 0xd9, 0x80, 0xd1, 0x3b, 0x70, 0xc1, 0x38, 0x84, 0x5e, 0x50, + 0xc1, 0x3e, 0x0c, 0x0c, 0xbd, 0xca, 0x7a, 0xae, 0x7c, 0x05, 0x8b, 0x07, 0xd4, 0x41, 0x9a, 0x2f, + 0x7f, 0x89, 0xee, 0xc1, 0x68, 0x87, 0x83, 0x1f, 0x51, 0x35, 0x3a, 0x70, 0xb8, 0x3a, 0x8f, 0xb9, + 0xfc, 0x47, 0xbc, 0x31, 0x9a, 0x57, 0xa4, 0x62, 0x09, 0xab, 0xa2, 0x7d, 0x99, 0x83, 0x39, 0x45, + 0xc7, 0x1d, 0x73, 0x25, 0xef, 0xc2, 0x28, 0xfb, 0x42, 0x58, 0xdc, 0x91, 0xcb, 0x1a, 0x77, 0x70, + 0x88, 0x3e, 0x2d, 0xf6, 0xf5, 0x77, 0x1d, 0xc3, 0x70, 0x88, 0x19, 0x62, 0x98, 0x9f, 0xe6, 0x88, + 0x35, 0x95, 0x34, 0x6e, 0xf5, 0xd4, 0x9a, 0xde, 0x86, 0x22, 0x73, 0x9b, 0x74, 0xb3, 0x2c, 0xab, + 0xe9, 0x09, 0xf1, 0xb2, 0x2c, 0x9f, 0x64, 0x1a, 0x9a, 0x47, 0x56, 0x4f, 0xd6, 0x99, 0xc6, 0x56, + 0x6f, 0x0a, 0x06, 0x0c, 0x32, 0x50, 0x3a, 0x4f, 0xfa, 0xcb, 0x17, 0x40, 0x7c, 0x03, 0xbd, 0xa4, + 0xb3, 0x9f, 0x19, 0xe4, 0xfa, 0xbd, 0x1c, 0x09, 0x3d, 0xe4, 0xbd, 0x6a, 0x3d, 0x15, 0xed, 0x1c, + 0x00, 0x13, 0xd1, 0x7a, 0x9d, 0xee, 0xd1, 0xc7, 0x9e, 0x2c, 0xbf, 0xce, 0x8b, 0xed, 0x8a, 0xc2, + 0x05, 0x0b, 0x92, 0xeb, 0xc0, 0x25, 0x75, 0xbb, 0x1d, 0x13, 0xde, 0x24, 0xf4, 0xef, 0xda, 0x1d, + 0xab, 0x4e, 0x77, 0xc1, 0x83, 0x1f, 0xc7, 0x12, 0x5d, 0xa4, 0x92, 0xbc, 0x5f, 0xfc, 0xfd, 0xa8, + 0xa4, 0xe0, 0x9d, 0xbb, 0x55, 0x49, 0x9e, 0x40, 0xa4, 0x92, 0x02, 0xe9, 0xdf, 0x99, 0x4a, 0x9e, + 0xa8, 0x68, 0x7b, 0xa6, 0x92, 0x82, 0xe4, 0xe2, 0x2a, 0xa9, 0x14, 0x5e, 0xef, 0x55, 0xf2, 0xd7, + 0x79, 0x92, 0x16, 0x25, 0x3b, 0x29, 0x7b, 0x2a, 0x32, 0x0d, 0x86, 0x48, 0x5f, 0xe6, 0x9d, 0xa7, + 0x6d, 0x33, 0x08, 0xfa, 0xfd, 0xa1, 0x27, 0x9e, 0xa1, 0xab, 0x2c, 0xbb, 0xc5, 0x0e, 0x4d, 0xde, + 0x48, 0x35, 0xaa, 0xa4, 0xf3, 0x8f, 0xd1, 0xdb, 0x50, 0x26, 0x98, 0xab, 0x76, 0xc7, 0xf2, 0xb0, + 0xd3, 0x36, 0x1c, 0xef, 0x80, 0x8f, 0x17, 0x53, 0x20, 0xd0, 0x23, 0x18, 0x0b, 0xb3, 0x9c, 0x2d, + 0x9b, 0x4c, 0x9b, 0x46, 0x8c, 0xd7, 0xd5, 0x4e, 0x68, 0xbd, 0x8e, 0x2d, 0xcf, 0xdc, 0x35, 0xb1, + 0xb3, 0x86, 0x3d, 0xc3, 0x6c, 0xba, 0xba, 0x40, 0x24, 0x4b, 0x0e, 0x97, 0x14, 0xb2, 0xf6, 0x2f, + 0x81, 0xd6, 0x72, 0x4d, 0xac, 0x6c, 0xa9, 0x17, 0xa0, 0x64, 0x75, 0x5a, 0xe4, 0xa5, 0xbc, 0x3e, + 0x10, 0xbd, 0x46, 0x2f, 0xd1, 0xc6, 0xd9, 0x7a, 0x34, 0xe0, 0xc0, 0xb5, 0x96, 0x74, 0xf1, 0x45, + 0x06, 0xa5, 0xf8, 0x2c, 0x9e, 0xfe, 0xc7, 0x9b, 0xa8, 0x53, 0x14, 0x43, 0x83, 0x21, 0x5a, 0xac, + 0x24, 0x9d, 0xd6, 0x44, 0x31, 0x8a, 0x7a, 0xe2, 0x19, 0x1a, 0x83, 0x42, 0xc7, 0x31, 0xe9, 0x67, + 0xe3, 0xff, 0xc9, 0x95, 0xdd, 0xfa, 0xf8, 0xb2, 0x5b, 0xf6, 0x62, 0x40, 0x7c, 0x94, 0x9a, 0x19, + 0x2b, 0x06, 0x24, 0xfa, 0xce, 0x99, 0x70, 0x5f, 0x84, 0xd3, 0xe4, 0x20, 0x8a, 0xa2, 0xf4, 0xc2, + 0x5e, 0xf2, 0xa2, 0xca, 0x8b, 0xa2, 0xfa, 0x34, 0x4f, 0x44, 0x25, 0xb6, 0xd0, 0xa7, 0x88, 0x2a, + 0xc6, 0x3d, 0x9f, 0xc6, 0x9d, 0x17, 0x69, 0x41, 0x22, 0xd2, 0x79, 0x18, 0x6e, 0x34, 0xed, 0xaa, + 0xd1, 0xbc, 0x63, 0x19, 0xd5, 0x26, 0xae, 0xd3, 0xf6, 0x9a, 0xe4, 0x43, 0x26, 0xf8, 0x7e, 0x95, + 0xe0, 0x07, 0x8e, 0x22, 0x78, 0x71, 0xce, 0xb4, 0x0a, 0x23, 0x39, 0x4f, 0xc0, 0x52, 0xdc, 0x7f, + 0x0c, 0x34, 0x4b, 0x3c, 0x12, 0x70, 0x7c, 0x71, 0x65, 0x19, 0xb2, 0xc8, 0x97, 0x0e, 0x59, 0x72, + 0x46, 0x81, 0x0d, 0xf9, 0xfb, 0x39, 0xd2, 0x14, 0x2a, 0x3b, 0x64, 0xd0, 0x83, 0x35, 0x9e, 0x81, + 0xd3, 0xb4, 0xfa, 0x45, 0x3f, 0x0b, 0xf6, 0xd3, 0xb7, 0xf5, 0xfb, 0x64, 0xd9, 0x83, 0x15, 0x0d, + 0x7e, 0x2c, 0xdf, 0xe2, 0x27, 0x79, 0x59, 0xe6, 0x97, 0x85, 0x91, 0x6a, 0x26, 0x5c, 0x50, 0x9d, + 0x94, 0x60, 0x1f, 0xc5, 0x3c, 0x0c, 0xb7, 0x7d, 0xd5, 0xb6, 0x3b, 0x6e, 0xa0, 0x6f, 0xc1, 0x94, + 0x92, 0x0f, 0x33, 0x7c, 0x12, 0xff, 0x97, 0x27, 0xd5, 0x17, 0xbe, 0x8f, 0xbe, 0xa7, 0x4e, 0xa5, + 0x07, 0xfb, 0x20, 0x55, 0x98, 0xaa, 0x19, 0xd6, 0xb6, 0xb4, 0x43, 0xad, 0x20, 0x6f, 0xbc, 0x67, + 0x10, 0x2b, 0xdc, 0xae, 0x87, 0xae, 0xa0, 0x94, 0xa5, 0x48, 0xc4, 0x8b, 0x49, 0x7b, 0x48, 0x8a, + 0x44, 0xc2, 0x29, 0x84, 0x23, 0x97, 0x8e, 0xb5, 0x5f, 0xe5, 0x60, 0x38, 0x71, 0x08, 0xa1, 0xa7, + 0x2b, 0x11, 0xdb, 0xef, 0x29, 0x24, 0xf7, 0x7b, 0xde, 0x83, 0xb1, 0x50, 0x2c, 0xac, 0x8f, 0xa0, + 0x4f, 0x59, 0x14, 0xe6, 0x45, 0x2a, 0xe0, 0x2e, 0xbf, 0xc4, 0x0b, 0xf3, 0xac, 0x4c, 0x98, 0x14, + 0x5a, 0x5b, 0x27, 0x86, 0x26, 0x76, 0xf2, 0xe2, 0xe8, 0x02, 0xfc, 0x2a, 0x0f, 0x33, 0xaa, 0x33, + 0x17, 0x3d, 0x95, 0xa5, 0x7c, 0x87, 0xac, 0x70, 0xcc, 0x1d, 0xb2, 0x3a, 0x9c, 0x0d, 0x65, 0x29, + 0xe9, 0xc7, 0xc8, 0xbe, 0x24, 0x69, 0x64, 0x96, 0x5f, 0xe3, 0x57, 0xe7, 0x45, 0xd9, 0xea, 0x88, + 0x88, 0xda, 0x16, 0x5c, 0x54, 0x1e, 0x68, 0x39, 0xfa, 0x9a, 0xfd, 0x7f, 0x68, 0x84, 0x92, 0x5d, + 0x1d, 0xbd, 0x5c, 0x2e, 0x61, 0xeb, 0xb1, 0x70, 0xa4, 0xad, 0xc7, 0xb8, 0x21, 0x4a, 0x76, 0xa7, + 0x1c, 0xc7, 0x10, 0x25, 0x28, 0x65, 0x34, 0x44, 0x09, 0x9c, 0xc8, 0x10, 0x25, 0x47, 0x7f, 0xf4, + 0x35, 0xf9, 0x24, 0x0f, 0x63, 0xfc, 0x11, 0xa0, 0x5e, 0x67, 0x67, 0xb1, 0xa0, 0xa6, 0x20, 0x6c, + 0xe2, 0x6e, 0xc1, 0x44, 0xa4, 0xc2, 0xf1, 0xb0, 0x33, 0xeb, 0x17, 0x20, 0x43, 0x5f, 0xae, 0xf0, + 0xb2, 0x9d, 0x93, 0x6a, 0x7e, 0x88, 0xa0, 0xdd, 0x0f, 0xcd, 0x49, 0x74, 0x12, 0xea, 0xe8, 0x52, + 0xfd, 0x4d, 0x70, 0xe2, 0x26, 0x7e, 0x12, 0xaa, 0xa7, 0x42, 0x4d, 0xec, 0x50, 0x17, 0xf8, 0x1d, + 0x6a, 0x1d, 0x50, 0x28, 0x93, 0xa8, 0xff, 0x27, 0xbb, 0x44, 0x25, 0xd8, 0xcb, 0x8b, 0xbc, 0x40, + 0xcf, 0xcb, 0x04, 0x1a, 0xc2, 0x6b, 0xf7, 0x58, 0x80, 0x16, 0x1d, 0x05, 0x3b, 0xba, 0x38, 0x7f, + 0x11, 0xec, 0xac, 0xc9, 0x4f, 0x80, 0xf5, 0x54, 0xb0, 0x8a, 0x96, 0x82, 0xc2, 0x71, 0x5b, 0x0a, + 0x1c, 0x38, 0x27, 0x31, 0xd4, 0xfc, 0x86, 0xcd, 0x62, 0x16, 0x06, 0xb1, 0x85, 0x4a, 0xa5, 0x99, + 0xa5, 0xee, 0x21, 0x97, 0xa8, 0x1f, 0x5e, 0x5f, 0x52, 0x9f, 0xb8, 0xfb, 0xae, 0x6c, 0x98, 0xff, + 0x6d, 0x68, 0xda, 0x62, 0x4d, 0x6a, 0x3d, 0x36, 0x6d, 0xb1, 0x4e, 0x90, 0x82, 0xd0, 0x09, 0xb2, + 0x03, 0x93, 0x35, 0xc3, 0xa2, 0x3f, 0x23, 0x49, 0x76, 0xf1, 0x25, 0x4a, 0xf1, 0x33, 0x1a, 0xb7, + 0x68, 0xd2, 0x91, 0x71, 0x8b, 0x1d, 0x6f, 0x3c, 0xfa, 0xd7, 0xf8, 0xf3, 0x1c, 0x49, 0xcf, 0xd4, + 0x07, 0x1a, 0x8f, 0x7c, 0xb8, 0x30, 0x96, 0x78, 0xe5, 0x93, 0x89, 0xd7, 0x22, 0x20, 0xd3, 0xe5, + 0xd9, 0x51, 0x91, 0x4b, 0xde, 0x2c, 0xbf, 0x2d, 0x9e, 0x34, 0xbc, 0x2e, 0x13, 0x92, 0x62, 0x06, + 0xda, 0x15, 0xb8, 0x9c, 0x7e, 0x66, 0x93, 0x65, 0xa2, 0x5f, 0xe5, 0x61, 0x30, 0x76, 0xf0, 0x12, + 0x2d, 0x71, 0xfa, 0x95, 0x32, 0xf1, 0x63, 0x68, 0xde, 0x7c, 0xd4, 0x4c, 0x70, 0x1f, 0xef, 0x63, + 0x76, 0x58, 0x2e, 0xf9, 0xb0, 0x8b, 0x0a, 0x5e, 0xb2, 0x84, 0xda, 0xcf, 0x97, 0x50, 0xfd, 0xf7, + 0x6d, 0xc7, 0x6e, 0xdb, 0x2e, 0x79, 0x4f, 0x2b, 0x13, 0xd1, 0x13, 0xb4, 0x00, 0xa5, 0x03, 0xec, + 0x3e, 0xc2, 0x66, 0x63, 0xcf, 0x23, 0x1b, 0xaf, 0x42, 0x61, 0x2c, 0x7c, 0xbd, 0xbc, 0xc0, 0x6b, + 0xaf, 0x78, 0xc3, 0x0c, 0x93, 0xa6, 0x76, 0x26, 0xe8, 0xec, 0x63, 0xa7, 0x5a, 0x99, 0xd0, 0xff, + 0x35, 0x07, 0x43, 0xf1, 0x2e, 0x09, 0x6e, 0xfc, 0x39, 0x61, 0xfc, 0x82, 0xbc, 0xf2, 0x19, 0xe5, + 0x55, 0x90, 0xcb, 0x2b, 0x56, 0xdd, 0xed, 0x4b, 0x54, 0x77, 0xb5, 0x4f, 0x73, 0x30, 0x2e, 0xb4, + 0x5e, 0x20, 0x04, 0x7d, 0xbb, 0x4e, 0x78, 0x68, 0x92, 0xfc, 0x8d, 0x46, 0x20, 0xef, 0xd9, 0x74, + 0x20, 0x79, 0xcf, 0x26, 0x45, 0xf8, 0x96, 0xdd, 0xb1, 0x3c, 0x76, 0xf2, 0x31, 0xf8, 0x15, 0x9d, + 0xb8, 0xec, 0x8b, 0x9f, 0xb8, 0x9c, 0x87, 0x61, 0xd3, 0x65, 0x4a, 0x79, 0x17, 0x63, 0x5a, 0x66, + 0x4d, 0x3e, 0xd4, 0xfe, 0x2e, 0x07, 0x23, 0x49, 0x43, 0xda, 0x23, 0x51, 0x45, 0x3b, 0x06, 0x05, + 0xd5, 0x8e, 0x41, 0x52, 0x30, 0x4b, 0xff, 0x36, 0x0d, 0x85, 0x07, 0x6e, 0x03, 0x7d, 0x00, 0x43, + 0x89, 0x83, 0xc8, 0x97, 0x52, 0xae, 0xbf, 0x08, 0x40, 0xca, 0xd7, 0x0e, 0x05, 0x09, 0xad, 0xd9, + 0x5f, 0xe7, 0x60, 0x56, 0x7d, 0x2e, 0xaf, 0xcb, 0x6b, 0x5f, 0xca, 0xb7, 0xba, 0xbc, 0x26, 0x86, + 0x8d, 0xc2, 0x02, 0x24, 0x69, 0xd3, 0xca, 0x7a, 0xb5, 0x4d, 0xb9, 0x92, 0xf5, 0x0e, 0x1c, 0xc6, + 0xaf, 0x0a, 0x23, 0x5c, 0x0f, 0x55, 0x96, 0xeb, 0x61, 0xca, 0xd7, 0xb3, 0xdc, 0x21, 0xc3, 0x78, + 0xfc, 0x05, 0x4c, 0xc8, 0x9a, 0x60, 0x32, 0xdf, 0x17, 0x53, 0xbe, 0x91, 0xf9, 0x66, 0x99, 0x18, + 0x4b, 0xd9, 0x4e, 0x71, 0xe6, 0xcb, 0x40, 0x14, 0x2c, 0xd3, 0x36, 0x67, 0x3f, 0x86, 0x29, 0xc5, + 0x26, 0x6a, 0x37, 0xb7, 0x83, 0x94, 0x5f, 0xe9, 0xe6, 0x2a, 0x91, 0xe4, 0x74, 0x85, 0xad, 0xb2, + 0xcc, 0xd7, 0x85, 0xa8, 0xa7, 0xab, 0xdc, 0xbb, 0x0a, 0xa7, 0x2b, 0x70, 0xed, 0xe6, 0xfe, 0x90, + 0xd4, 0xe9, 0x2a, 0x79, 0x57, 0x61, 0x84, 0xdb, 0xe1, 0xca, 0x72, 0xa1, 0x88, 0x42, 0x69, 0x15, + 0x1b, 0x36, 0x7b, 0x30, 0x26, 0x34, 0x9c, 0x65, 0xbb, 0x90, 0xa9, 0xfc, 0x72, 0xb6, 0x7b, 0x9b, + 0x62, 0x9c, 0x04, 0x73, 0x93, 0xed, 0xb2, 0x23, 0x05, 0x27, 0xa5, 0x71, 0xd9, 0x83, 0x31, 0xa1, + 0xd5, 0x3d, 0xdb, 0xed, 0x47, 0x0a, 0x4e, 0xca, 0x8e, 0xd8, 0xd0, 0x8c, 0x25, 0x36, 0x05, 0xb2, + 0x5e, 0x87, 0x94, 0x6a, 0xc6, 0xa4, 0x3b, 0x40, 0x16, 0x20, 0xc9, 0x9e, 0x4d, 0xd6, 0xfb, 0x91, + 0x14, 0xfc, 0xd4, 0x1b, 0x1f, 0x3e, 0x3f, 0xc9, 0xa6, 0x47, 0xd6, 0x0b, 0x93, 0x14, 0xfc, 0xd4, + 0xbb, 0x16, 0xc8, 0x83, 0x49, 0xe9, 0x8e, 0x45, 0xf6, 0x1b, 0x94, 0xca, 0x37, 0xb3, 0x5f, 0xb6, + 0x14, 0xd3, 0x17, 0xa1, 0xec, 0x9f, 0xed, 0x96, 0x1d, 0x85, 0xbe, 0x28, 0xcb, 0xe0, 0x3b, 0x00, + 0xb1, 0x82, 0xf6, 0x61, 0xd7, 0xee, 0x94, 0xaf, 0x1c, 0x76, 0x2f, 0x0f, 0xa3, 0xfb, 0x04, 0xce, + 0xc8, 0xeb, 0xbc, 0x5d, 0xdc, 0xc3, 0x53, 0x5e, 0xea, 0xe2, 0xce, 0x9e, 0xa4, 0xe8, 0x92, 0xc5, + 0xca, 0x6c, 0x17, 0xf3, 0xa8, 0x45, 0x27, 0x2f, 0xdc, 0x3d, 0x86, 0xe1, 0x64, 0x09, 0x2e, 0xc3, + 0x4d, 0x3d, 0xe5, 0x85, 0x0c, 0xb7, 0xf9, 0x30, 0x06, 0x1f, 0xc0, 0x50, 0xa2, 0x1a, 0x75, 0xf8, + 0xd5, 0x3d, 0xe5, 0x6b, 0x87, 0xdf, 0xee, 0x13, 0xf3, 0x23, 0x8a, 0xe2, 0x4c, 0x37, 0x77, 0xf9, + 0x28, 0xfc, 0xc8, 0x21, 0x65, 0x88, 0x40, 0x74, 0xb1, 0x14, 0x3f, 0xc3, 0xe5, 0x3e, 0x6a, 0xd1, + 0x49, 0x32, 0xe4, 0xbf, 0xc9, 0x41, 0x39, 0x25, 0xd9, 0xed, 0xf6, 0xba, 0x9f, 0xf2, 0x6b, 0xdd, + 0xde, 0x0f, 0xc4, 0x06, 0xb2, 0x01, 0xc5, 0x30, 0xcf, 0x4c, 0xbf, 0xff, 0xa7, 0x7c, 0x39, 0xfd, + 0x7a, 0x20, 0x4a, 0xb1, 0xdc, 0xff, 0x97, 0xcf, 0x9f, 0x2d, 0xe4, 0x6e, 0xef, 0x7c, 0xfe, 0xcd, + 0x5c, 0xee, 0x8b, 0x6f, 0xe6, 0x72, 0x3f, 0xfb, 0x66, 0x2e, 0xf7, 0x4f, 0xdf, 0xce, 0x9d, 0xfa, + 0xe2, 0xdb, 0xb9, 0x53, 0x3f, 0xfe, 0x76, 0xee, 0xd4, 0x9f, 0xbe, 0xd5, 0x30, 0xbd, 0xbd, 0x4e, + 0x75, 0xb1, 0x66, 0xb7, 0x2a, 0x55, 0xd3, 0xab, 0x1a, 0xf5, 0x06, 0x76, 0xa3, 0xbf, 0x6a, 0x7b, + 0x86, 0x69, 0x55, 0x9e, 0x56, 0x12, 0x19, 0x9c, 0x77, 0xd0, 0xc6, 0xae, 0x9f, 0xc7, 0x55, 0x07, + 0xc8, 0x85, 0x90, 0xaf, 0xfc, 0x36, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x67, 0x2b, 0xd9, 0x44, 0x54, + 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + // UpdateParams defines a (governance) operation for updating the module + // parameters. The authority defaults to the x/gov module account. + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + UniversalUpdateCollection(ctx context.Context, in *MsgUniversalUpdateCollection, opts ...grpc.CallOption) (*MsgUniversalUpdateCollectionResponse, error) + CreateAddressLists(ctx context.Context, in *MsgCreateAddressLists, opts ...grpc.CallOption) (*MsgCreateAddressListsResponse, error) + TransferTokens(ctx context.Context, in *MsgTransferTokens, opts ...grpc.CallOption) (*MsgTransferTokensResponse, error) + UpdateUserApprovals(ctx context.Context, in *MsgUpdateUserApprovals, opts ...grpc.CallOption) (*MsgUpdateUserApprovalsResponse, error) + SetIncomingApproval(ctx context.Context, in *MsgSetIncomingApproval, opts ...grpc.CallOption) (*MsgSetIncomingApprovalResponse, error) + DeleteIncomingApproval(ctx context.Context, in *MsgDeleteIncomingApproval, opts ...grpc.CallOption) (*MsgDeleteIncomingApprovalResponse, error) + SetOutgoingApproval(ctx context.Context, in *MsgSetOutgoingApproval, opts ...grpc.CallOption) (*MsgSetOutgoingApprovalResponse, error) + DeleteOutgoingApproval(ctx context.Context, in *MsgDeleteOutgoingApproval, opts ...grpc.CallOption) (*MsgDeleteOutgoingApprovalResponse, error) + PurgeApprovals(ctx context.Context, in *MsgPurgeApprovals, opts ...grpc.CallOption) (*MsgPurgeApprovalsResponse, error) + DeleteCollection(ctx context.Context, in *MsgDeleteCollection, opts ...grpc.CallOption) (*MsgDeleteCollectionResponse, error) + UpdateCollection(ctx context.Context, in *MsgUpdateCollection, opts ...grpc.CallOption) (*MsgUpdateCollectionResponse, error) + CreateCollection(ctx context.Context, in *MsgCreateCollection, opts ...grpc.CallOption) (*MsgCreateCollectionResponse, error) + CreateDynamicStore(ctx context.Context, in *MsgCreateDynamicStore, opts ...grpc.CallOption) (*MsgCreateDynamicStoreResponse, error) + UpdateDynamicStore(ctx context.Context, in *MsgUpdateDynamicStore, opts ...grpc.CallOption) (*MsgUpdateDynamicStoreResponse, error) + DeleteDynamicStore(ctx context.Context, in *MsgDeleteDynamicStore, opts ...grpc.CallOption) (*MsgDeleteDynamicStoreResponse, error) + SetDynamicStoreValue(ctx context.Context, in *MsgSetDynamicStoreValue, opts ...grpc.CallOption) (*MsgSetDynamicStoreValueResponse, error) + // Helper message types for UniversalUpdateCollection subsets + SetValidTokenIds(ctx context.Context, in *MsgSetValidTokenIds, opts ...grpc.CallOption) (*MsgSetValidTokenIdsResponse, error) + SetManager(ctx context.Context, in *MsgSetManager, opts ...grpc.CallOption) (*MsgSetManagerResponse, error) + SetCollectionMetadata(ctx context.Context, in *MsgSetCollectionMetadata, opts ...grpc.CallOption) (*MsgSetCollectionMetadataResponse, error) + SetTokenMetadata(ctx context.Context, in *MsgSetTokenMetadata, opts ...grpc.CallOption) (*MsgSetTokenMetadataResponse, error) + SetCustomData(ctx context.Context, in *MsgSetCustomData, opts ...grpc.CallOption) (*MsgSetCustomDataResponse, error) + SetStandards(ctx context.Context, in *MsgSetStandards, opts ...grpc.CallOption) (*MsgSetStandardsResponse, error) + SetCollectionApprovals(ctx context.Context, in *MsgSetCollectionApprovals, opts ...grpc.CallOption) (*MsgSetCollectionApprovalsResponse, error) + SetIsArchived(ctx context.Context, in *MsgSetIsArchived, opts ...grpc.CallOption) (*MsgSetIsArchivedResponse, error) + SetReservedProtocolAddress(ctx context.Context, in *MsgSetReservedProtocolAddress, opts ...grpc.CallOption) (*MsgSetReservedProtocolAddressResponse, error) + CastVote(ctx context.Context, in *MsgCastVote, opts ...grpc.CallOption) (*MsgCastVoteResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/UpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UniversalUpdateCollection(ctx context.Context, in *MsgUniversalUpdateCollection, opts ...grpc.CallOption) (*MsgUniversalUpdateCollectionResponse, error) { + out := new(MsgUniversalUpdateCollectionResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/UniversalUpdateCollection", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateAddressLists(ctx context.Context, in *MsgCreateAddressLists, opts ...grpc.CallOption) (*MsgCreateAddressListsResponse, error) { + out := new(MsgCreateAddressListsResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/CreateAddressLists", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) TransferTokens(ctx context.Context, in *MsgTransferTokens, opts ...grpc.CallOption) (*MsgTransferTokensResponse, error) { + out := new(MsgTransferTokensResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/TransferTokens", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateUserApprovals(ctx context.Context, in *MsgUpdateUserApprovals, opts ...grpc.CallOption) (*MsgUpdateUserApprovalsResponse, error) { + out := new(MsgUpdateUserApprovalsResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/UpdateUserApprovals", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetIncomingApproval(ctx context.Context, in *MsgSetIncomingApproval, opts ...grpc.CallOption) (*MsgSetIncomingApprovalResponse, error) { + out := new(MsgSetIncomingApprovalResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetIncomingApproval", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DeleteIncomingApproval(ctx context.Context, in *MsgDeleteIncomingApproval, opts ...grpc.CallOption) (*MsgDeleteIncomingApprovalResponse, error) { + out := new(MsgDeleteIncomingApprovalResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/DeleteIncomingApproval", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetOutgoingApproval(ctx context.Context, in *MsgSetOutgoingApproval, opts ...grpc.CallOption) (*MsgSetOutgoingApprovalResponse, error) { + out := new(MsgSetOutgoingApprovalResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetOutgoingApproval", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DeleteOutgoingApproval(ctx context.Context, in *MsgDeleteOutgoingApproval, opts ...grpc.CallOption) (*MsgDeleteOutgoingApprovalResponse, error) { + out := new(MsgDeleteOutgoingApprovalResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/DeleteOutgoingApproval", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) PurgeApprovals(ctx context.Context, in *MsgPurgeApprovals, opts ...grpc.CallOption) (*MsgPurgeApprovalsResponse, error) { + out := new(MsgPurgeApprovalsResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/PurgeApprovals", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DeleteCollection(ctx context.Context, in *MsgDeleteCollection, opts ...grpc.CallOption) (*MsgDeleteCollectionResponse, error) { + out := new(MsgDeleteCollectionResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/DeleteCollection", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateCollection(ctx context.Context, in *MsgUpdateCollection, opts ...grpc.CallOption) (*MsgUpdateCollectionResponse, error) { + out := new(MsgUpdateCollectionResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/UpdateCollection", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateCollection(ctx context.Context, in *MsgCreateCollection, opts ...grpc.CallOption) (*MsgCreateCollectionResponse, error) { + out := new(MsgCreateCollectionResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/CreateCollection", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CreateDynamicStore(ctx context.Context, in *MsgCreateDynamicStore, opts ...grpc.CallOption) (*MsgCreateDynamicStoreResponse, error) { + out := new(MsgCreateDynamicStoreResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/CreateDynamicStore", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) UpdateDynamicStore(ctx context.Context, in *MsgUpdateDynamicStore, opts ...grpc.CallOption) (*MsgUpdateDynamicStoreResponse, error) { + out := new(MsgUpdateDynamicStoreResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/UpdateDynamicStore", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DeleteDynamicStore(ctx context.Context, in *MsgDeleteDynamicStore, opts ...grpc.CallOption) (*MsgDeleteDynamicStoreResponse, error) { + out := new(MsgDeleteDynamicStoreResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/DeleteDynamicStore", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetDynamicStoreValue(ctx context.Context, in *MsgSetDynamicStoreValue, opts ...grpc.CallOption) (*MsgSetDynamicStoreValueResponse, error) { + out := new(MsgSetDynamicStoreValueResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetDynamicStoreValue", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetValidTokenIds(ctx context.Context, in *MsgSetValidTokenIds, opts ...grpc.CallOption) (*MsgSetValidTokenIdsResponse, error) { + out := new(MsgSetValidTokenIdsResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetValidTokenIds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetManager(ctx context.Context, in *MsgSetManager, opts ...grpc.CallOption) (*MsgSetManagerResponse, error) { + out := new(MsgSetManagerResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetManager", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetCollectionMetadata(ctx context.Context, in *MsgSetCollectionMetadata, opts ...grpc.CallOption) (*MsgSetCollectionMetadataResponse, error) { + out := new(MsgSetCollectionMetadataResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetCollectionMetadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetTokenMetadata(ctx context.Context, in *MsgSetTokenMetadata, opts ...grpc.CallOption) (*MsgSetTokenMetadataResponse, error) { + out := new(MsgSetTokenMetadataResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetTokenMetadata", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetCustomData(ctx context.Context, in *MsgSetCustomData, opts ...grpc.CallOption) (*MsgSetCustomDataResponse, error) { + out := new(MsgSetCustomDataResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetCustomData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetStandards(ctx context.Context, in *MsgSetStandards, opts ...grpc.CallOption) (*MsgSetStandardsResponse, error) { + out := new(MsgSetStandardsResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetStandards", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetCollectionApprovals(ctx context.Context, in *MsgSetCollectionApprovals, opts ...grpc.CallOption) (*MsgSetCollectionApprovalsResponse, error) { + out := new(MsgSetCollectionApprovalsResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetCollectionApprovals", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetIsArchived(ctx context.Context, in *MsgSetIsArchived, opts ...grpc.CallOption) (*MsgSetIsArchivedResponse, error) { + out := new(MsgSetIsArchivedResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetIsArchived", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SetReservedProtocolAddress(ctx context.Context, in *MsgSetReservedProtocolAddress, opts ...grpc.CallOption) (*MsgSetReservedProtocolAddressResponse, error) { + out := new(MsgSetReservedProtocolAddressResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/SetReservedProtocolAddress", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) CastVote(ctx context.Context, in *MsgCastVote, opts ...grpc.CallOption) (*MsgCastVoteResponse, error) { + out := new(MsgCastVoteResponse) + err := c.cc.Invoke(ctx, "/tokenization.v29.Msg/CastVote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + // UpdateParams defines a (governance) operation for updating the module + // parameters. The authority defaults to the x/gov module account. + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + UniversalUpdateCollection(context.Context, *MsgUniversalUpdateCollection) (*MsgUniversalUpdateCollectionResponse, error) + CreateAddressLists(context.Context, *MsgCreateAddressLists) (*MsgCreateAddressListsResponse, error) + TransferTokens(context.Context, *MsgTransferTokens) (*MsgTransferTokensResponse, error) + UpdateUserApprovals(context.Context, *MsgUpdateUserApprovals) (*MsgUpdateUserApprovalsResponse, error) + SetIncomingApproval(context.Context, *MsgSetIncomingApproval) (*MsgSetIncomingApprovalResponse, error) + DeleteIncomingApproval(context.Context, *MsgDeleteIncomingApproval) (*MsgDeleteIncomingApprovalResponse, error) + SetOutgoingApproval(context.Context, *MsgSetOutgoingApproval) (*MsgSetOutgoingApprovalResponse, error) + DeleteOutgoingApproval(context.Context, *MsgDeleteOutgoingApproval) (*MsgDeleteOutgoingApprovalResponse, error) + PurgeApprovals(context.Context, *MsgPurgeApprovals) (*MsgPurgeApprovalsResponse, error) + DeleteCollection(context.Context, *MsgDeleteCollection) (*MsgDeleteCollectionResponse, error) + UpdateCollection(context.Context, *MsgUpdateCollection) (*MsgUpdateCollectionResponse, error) + CreateCollection(context.Context, *MsgCreateCollection) (*MsgCreateCollectionResponse, error) + CreateDynamicStore(context.Context, *MsgCreateDynamicStore) (*MsgCreateDynamicStoreResponse, error) + UpdateDynamicStore(context.Context, *MsgUpdateDynamicStore) (*MsgUpdateDynamicStoreResponse, error) + DeleteDynamicStore(context.Context, *MsgDeleteDynamicStore) (*MsgDeleteDynamicStoreResponse, error) + SetDynamicStoreValue(context.Context, *MsgSetDynamicStoreValue) (*MsgSetDynamicStoreValueResponse, error) + // Helper message types for UniversalUpdateCollection subsets + SetValidTokenIds(context.Context, *MsgSetValidTokenIds) (*MsgSetValidTokenIdsResponse, error) + SetManager(context.Context, *MsgSetManager) (*MsgSetManagerResponse, error) + SetCollectionMetadata(context.Context, *MsgSetCollectionMetadata) (*MsgSetCollectionMetadataResponse, error) + SetTokenMetadata(context.Context, *MsgSetTokenMetadata) (*MsgSetTokenMetadataResponse, error) + SetCustomData(context.Context, *MsgSetCustomData) (*MsgSetCustomDataResponse, error) + SetStandards(context.Context, *MsgSetStandards) (*MsgSetStandardsResponse, error) + SetCollectionApprovals(context.Context, *MsgSetCollectionApprovals) (*MsgSetCollectionApprovalsResponse, error) + SetIsArchived(context.Context, *MsgSetIsArchived) (*MsgSetIsArchivedResponse, error) + SetReservedProtocolAddress(context.Context, *MsgSetReservedProtocolAddress) (*MsgSetReservedProtocolAddressResponse, error) + CastVote(context.Context, *MsgCastVote) (*MsgCastVoteResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (*UnimplementedMsgServer) UniversalUpdateCollection(ctx context.Context, req *MsgUniversalUpdateCollection) (*MsgUniversalUpdateCollectionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UniversalUpdateCollection not implemented") +} +func (*UnimplementedMsgServer) CreateAddressLists(ctx context.Context, req *MsgCreateAddressLists) (*MsgCreateAddressListsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateAddressLists not implemented") +} +func (*UnimplementedMsgServer) TransferTokens(ctx context.Context, req *MsgTransferTokens) (*MsgTransferTokensResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferTokens not implemented") +} +func (*UnimplementedMsgServer) UpdateUserApprovals(ctx context.Context, req *MsgUpdateUserApprovals) (*MsgUpdateUserApprovalsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserApprovals not implemented") +} +func (*UnimplementedMsgServer) SetIncomingApproval(ctx context.Context, req *MsgSetIncomingApproval) (*MsgSetIncomingApprovalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetIncomingApproval not implemented") +} +func (*UnimplementedMsgServer) DeleteIncomingApproval(ctx context.Context, req *MsgDeleteIncomingApproval) (*MsgDeleteIncomingApprovalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteIncomingApproval not implemented") +} +func (*UnimplementedMsgServer) SetOutgoingApproval(ctx context.Context, req *MsgSetOutgoingApproval) (*MsgSetOutgoingApprovalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetOutgoingApproval not implemented") +} +func (*UnimplementedMsgServer) DeleteOutgoingApproval(ctx context.Context, req *MsgDeleteOutgoingApproval) (*MsgDeleteOutgoingApprovalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteOutgoingApproval not implemented") +} +func (*UnimplementedMsgServer) PurgeApprovals(ctx context.Context, req *MsgPurgeApprovals) (*MsgPurgeApprovalsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PurgeApprovals not implemented") +} +func (*UnimplementedMsgServer) DeleteCollection(ctx context.Context, req *MsgDeleteCollection) (*MsgDeleteCollectionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteCollection not implemented") +} +func (*UnimplementedMsgServer) UpdateCollection(ctx context.Context, req *MsgUpdateCollection) (*MsgUpdateCollectionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateCollection not implemented") +} +func (*UnimplementedMsgServer) CreateCollection(ctx context.Context, req *MsgCreateCollection) (*MsgCreateCollectionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateCollection not implemented") +} +func (*UnimplementedMsgServer) CreateDynamicStore(ctx context.Context, req *MsgCreateDynamicStore) (*MsgCreateDynamicStoreResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDynamicStore not implemented") +} +func (*UnimplementedMsgServer) UpdateDynamicStore(ctx context.Context, req *MsgUpdateDynamicStore) (*MsgUpdateDynamicStoreResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateDynamicStore not implemented") +} +func (*UnimplementedMsgServer) DeleteDynamicStore(ctx context.Context, req *MsgDeleteDynamicStore) (*MsgDeleteDynamicStoreResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteDynamicStore not implemented") +} +func (*UnimplementedMsgServer) SetDynamicStoreValue(ctx context.Context, req *MsgSetDynamicStoreValue) (*MsgSetDynamicStoreValueResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetDynamicStoreValue not implemented") +} +func (*UnimplementedMsgServer) SetValidTokenIds(ctx context.Context, req *MsgSetValidTokenIds) (*MsgSetValidTokenIdsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetValidTokenIds not implemented") +} +func (*UnimplementedMsgServer) SetManager(ctx context.Context, req *MsgSetManager) (*MsgSetManagerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetManager not implemented") +} +func (*UnimplementedMsgServer) SetCollectionMetadata(ctx context.Context, req *MsgSetCollectionMetadata) (*MsgSetCollectionMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCollectionMetadata not implemented") +} +func (*UnimplementedMsgServer) SetTokenMetadata(ctx context.Context, req *MsgSetTokenMetadata) (*MsgSetTokenMetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetTokenMetadata not implemented") +} +func (*UnimplementedMsgServer) SetCustomData(ctx context.Context, req *MsgSetCustomData) (*MsgSetCustomDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCustomData not implemented") +} +func (*UnimplementedMsgServer) SetStandards(ctx context.Context, req *MsgSetStandards) (*MsgSetStandardsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetStandards not implemented") +} +func (*UnimplementedMsgServer) SetCollectionApprovals(ctx context.Context, req *MsgSetCollectionApprovals) (*MsgSetCollectionApprovalsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetCollectionApprovals not implemented") +} +func (*UnimplementedMsgServer) SetIsArchived(ctx context.Context, req *MsgSetIsArchived) (*MsgSetIsArchivedResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetIsArchived not implemented") +} +func (*UnimplementedMsgServer) SetReservedProtocolAddress(ctx context.Context, req *MsgSetReservedProtocolAddress) (*MsgSetReservedProtocolAddressResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetReservedProtocolAddress not implemented") +} +func (*UnimplementedMsgServer) CastVote(ctx context.Context, req *MsgCastVote) (*MsgCastVoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CastVote not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/UpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UniversalUpdateCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUniversalUpdateCollection) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UniversalUpdateCollection(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/UniversalUpdateCollection", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UniversalUpdateCollection(ctx, req.(*MsgUniversalUpdateCollection)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateAddressLists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateAddressLists) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateAddressLists(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/CreateAddressLists", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateAddressLists(ctx, req.(*MsgCreateAddressLists)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_TransferTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferTokens) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).TransferTokens(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/TransferTokens", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).TransferTokens(ctx, req.(*MsgTransferTokens)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateUserApprovals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateUserApprovals) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateUserApprovals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/UpdateUserApprovals", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateUserApprovals(ctx, req.(*MsgUpdateUserApprovals)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetIncomingApproval_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetIncomingApproval) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetIncomingApproval(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetIncomingApproval", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetIncomingApproval(ctx, req.(*MsgSetIncomingApproval)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DeleteIncomingApproval_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeleteIncomingApproval) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DeleteIncomingApproval(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/DeleteIncomingApproval", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DeleteIncomingApproval(ctx, req.(*MsgDeleteIncomingApproval)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetOutgoingApproval_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetOutgoingApproval) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetOutgoingApproval(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetOutgoingApproval", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetOutgoingApproval(ctx, req.(*MsgSetOutgoingApproval)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DeleteOutgoingApproval_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeleteOutgoingApproval) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DeleteOutgoingApproval(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/DeleteOutgoingApproval", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DeleteOutgoingApproval(ctx, req.(*MsgDeleteOutgoingApproval)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_PurgeApprovals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgPurgeApprovals) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).PurgeApprovals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/PurgeApprovals", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).PurgeApprovals(ctx, req.(*MsgPurgeApprovals)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeleteCollection) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DeleteCollection(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/DeleteCollection", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DeleteCollection(ctx, req.(*MsgDeleteCollection)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateCollection) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateCollection(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/UpdateCollection", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateCollection(ctx, req.(*MsgUpdateCollection)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateCollection) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateCollection(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/CreateCollection", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateCollection(ctx, req.(*MsgCreateCollection)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CreateDynamicStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateDynamicStore) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CreateDynamicStore(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/CreateDynamicStore", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CreateDynamicStore(ctx, req.(*MsgCreateDynamicStore)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_UpdateDynamicStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateDynamicStore) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateDynamicStore(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/UpdateDynamicStore", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateDynamicStore(ctx, req.(*MsgUpdateDynamicStore)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DeleteDynamicStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDeleteDynamicStore) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DeleteDynamicStore(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/DeleteDynamicStore", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DeleteDynamicStore(ctx, req.(*MsgDeleteDynamicStore)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetDynamicStoreValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetDynamicStoreValue) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetDynamicStoreValue(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetDynamicStoreValue", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetDynamicStoreValue(ctx, req.(*MsgSetDynamicStoreValue)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetValidTokenIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetValidTokenIds) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetValidTokenIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetValidTokenIds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetValidTokenIds(ctx, req.(*MsgSetValidTokenIds)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetManager_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetManager) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetManager(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetManager", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetManager(ctx, req.(*MsgSetManager)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetCollectionMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCollectionMetadata) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCollectionMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetCollectionMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCollectionMetadata(ctx, req.(*MsgSetCollectionMetadata)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetTokenMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetTokenMetadata) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetTokenMetadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetTokenMetadata", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetTokenMetadata(ctx, req.(*MsgSetTokenMetadata)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetCustomData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCustomData) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCustomData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetCustomData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCustomData(ctx, req.(*MsgSetCustomData)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetStandards_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetStandards) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetStandards(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetStandards", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetStandards(ctx, req.(*MsgSetStandards)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetCollectionApprovals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetCollectionApprovals) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetCollectionApprovals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetCollectionApprovals", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetCollectionApprovals(ctx, req.(*MsgSetCollectionApprovals)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetIsArchived_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetIsArchived) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetIsArchived(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetIsArchived", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetIsArchived(ctx, req.(*MsgSetIsArchived)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SetReservedProtocolAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSetReservedProtocolAddress) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SetReservedProtocolAddress(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/SetReservedProtocolAddress", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SetReservedProtocolAddress(ctx, req.(*MsgSetReservedProtocolAddress)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_CastVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCastVote) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CastVote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/tokenization.v29.Msg/CastVote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CastVote(ctx, req.(*MsgCastVote)) + } + return interceptor(ctx, in, info, handler) +} + +var Msg_serviceDesc = _Msg_serviceDesc +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "tokenization.v29.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + { + MethodName: "UniversalUpdateCollection", + Handler: _Msg_UniversalUpdateCollection_Handler, + }, + { + MethodName: "CreateAddressLists", + Handler: _Msg_CreateAddressLists_Handler, + }, + { + MethodName: "TransferTokens", + Handler: _Msg_TransferTokens_Handler, + }, + { + MethodName: "UpdateUserApprovals", + Handler: _Msg_UpdateUserApprovals_Handler, + }, + { + MethodName: "SetIncomingApproval", + Handler: _Msg_SetIncomingApproval_Handler, + }, + { + MethodName: "DeleteIncomingApproval", + Handler: _Msg_DeleteIncomingApproval_Handler, + }, + { + MethodName: "SetOutgoingApproval", + Handler: _Msg_SetOutgoingApproval_Handler, + }, + { + MethodName: "DeleteOutgoingApproval", + Handler: _Msg_DeleteOutgoingApproval_Handler, + }, + { + MethodName: "PurgeApprovals", + Handler: _Msg_PurgeApprovals_Handler, + }, + { + MethodName: "DeleteCollection", + Handler: _Msg_DeleteCollection_Handler, + }, + { + MethodName: "UpdateCollection", + Handler: _Msg_UpdateCollection_Handler, + }, + { + MethodName: "CreateCollection", + Handler: _Msg_CreateCollection_Handler, + }, + { + MethodName: "CreateDynamicStore", + Handler: _Msg_CreateDynamicStore_Handler, + }, + { + MethodName: "UpdateDynamicStore", + Handler: _Msg_UpdateDynamicStore_Handler, + }, + { + MethodName: "DeleteDynamicStore", + Handler: _Msg_DeleteDynamicStore_Handler, + }, + { + MethodName: "SetDynamicStoreValue", + Handler: _Msg_SetDynamicStoreValue_Handler, + }, + { + MethodName: "SetValidTokenIds", + Handler: _Msg_SetValidTokenIds_Handler, + }, + { + MethodName: "SetManager", + Handler: _Msg_SetManager_Handler, + }, + { + MethodName: "SetCollectionMetadata", + Handler: _Msg_SetCollectionMetadata_Handler, + }, + { + MethodName: "SetTokenMetadata", + Handler: _Msg_SetTokenMetadata_Handler, + }, + { + MethodName: "SetCustomData", + Handler: _Msg_SetCustomData_Handler, + }, + { + MethodName: "SetStandards", + Handler: _Msg_SetStandards_Handler, + }, + { + MethodName: "SetCollectionApprovals", + Handler: _Msg_SetCollectionApprovals_Handler, + }, + { + MethodName: "SetIsArchived", + Handler: _Msg_SetIsArchived_Handler, + }, + { + MethodName: "SetReservedProtocolAddress", + Handler: _Msg_SetReservedProtocolAddress_Handler, + }, + { + MethodName: "CastVote", + Handler: _Msg_CastVote_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "tokenization/v29/tx.proto", +} + +func (m *TokenizationCustomMsgType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TokenizationCustomMsgType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TokenizationCustomMsgType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.CastVoteMsg != nil { + { + size, err := m.CastVoteMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe2 + } + if m.SetReservedProtocolAddressMsg != nil { + { + size, err := m.SetReservedProtocolAddressMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xda + } + if m.SetIsArchivedMsg != nil { + { + size, err := m.SetIsArchivedMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 + } + if m.SetCollectionApprovalsMsg != nil { + { + size, err := m.SetCollectionApprovalsMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + if m.SetStandardsMsg != nil { + { + size, err := m.SetStandardsMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + } + if m.SetCustomDataMsg != nil { + { + size, err := m.SetCustomDataMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + if m.SetTokenMetadataMsg != nil { + { + size, err := m.SetTokenMetadataMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + if m.SetCollectionMetadataMsg != nil { + { + size, err := m.SetCollectionMetadataMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + if m.SetManagerMsg != nil { + { + size, err := m.SetManagerMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + if m.SetValidTokenIdsMsg != nil { + { + size, err := m.SetValidTokenIdsMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + if m.PurgeApprovalsMsg != nil { + { + size, err := m.PurgeApprovalsMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + if m.DeleteOutgoingApprovalMsg != nil { + { + size, err := m.DeleteOutgoingApprovalMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + if m.SetOutgoingApprovalMsg != nil { + { + size, err := m.SetOutgoingApprovalMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if m.DeleteIncomingApprovalMsg != nil { + { + size, err := m.DeleteIncomingApprovalMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + if m.SetIncomingApprovalMsg != nil { + { + size, err := m.SetIncomingApprovalMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + if m.SetDynamicStoreValueMsg != nil { + { + size, err := m.SetDynamicStoreValueMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + if m.DeleteDynamicStoreMsg != nil { + { + size, err := m.DeleteDynamicStoreMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + if m.UpdateDynamicStoreMsg != nil { + { + size, err := m.UpdateDynamicStoreMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if m.CreateDynamicStoreMsg != nil { + { + size, err := m.CreateDynamicStoreMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.CreateCollectionMsg != nil { + { + size, err := m.CreateCollectionMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.UpdateCollectionMsg != nil { + { + size, err := m.UpdateCollectionMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.UpdateUserApprovalsMsg != nil { + { + size, err := m.UpdateUserApprovalsMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.TransferTokensMsg != nil { + { + size, err := m.TransferTokensMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.DeleteCollectionMsg != nil { + { + size, err := m.DeleteCollectionMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.UniversalUpdateCollectionMsg != nil { + { + size, err := m.UniversalUpdateCollectionMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.CreateAddressListsMsg != nil { + { + size, err := m.CreateAddressListsMsg.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *CosmosCoinWrapperPathAddObject) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CosmosCoinWrapperPathAddObject) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CosmosCoinWrapperPathAddObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.AllowOverrideWithAnyValidToken { + i-- + if m.AllowOverrideWithAnyValidToken { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.DenomUnits) > 0 { + for iNdEx := len(m.DenomUnits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DenomUnits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Symbol) > 0 { + i -= len(m.Symbol) + copy(dAtA[i:], m.Symbol) + i = encodeVarintTx(dAtA, i, uint64(len(m.Symbol))) + i-- + dAtA[i] = 0x1a + } + if m.Conversion != nil { + { + size, err := m.Conversion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AliasPathAddObject) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AliasPathAddObject) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AliasPathAddObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Metadata != nil { + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.DenomUnits) > 0 { + for iNdEx := len(m.DenomUnits) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DenomUnits[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Symbol) > 0 { + i -= len(m.Symbol) + copy(dAtA[i:], m.Symbol) + i = encodeVarintTx(dAtA, i, uint64(len(m.Symbol))) + i-- + dAtA[i] = 0x1a + } + if m.Conversion != nil { + { + size, err := m.Conversion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CosmosCoinBackedPathAddObject) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CosmosCoinBackedPathAddObject) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CosmosCoinBackedPathAddObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Conversion != nil { + { + size, err := m.Conversion.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *InvariantsAddObject) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InvariantsAddObject) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *InvariantsAddObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EvmQueryChallenges) > 0 { + for iNdEx := len(m.EvmQueryChallenges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.EvmQueryChallenges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.DisablePoolCreation { + i-- + if m.DisablePoolCreation { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.NoForcefulPostMintTransfers { + i-- + if m.NoForcefulPostMintTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.CosmosCoinBackedPath != nil { + { + size, err := m.CosmosCoinBackedPath.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + { + size := m.MaxSupplyPerId.Size() + i -= size + if _, err := m.MaxSupplyPerId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.NoCustomOwnershipTimes { + i-- + if m.NoCustomOwnershipTimes { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgUniversalUpdateCollection) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUniversalUpdateCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUniversalUpdateCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AliasPathsToAdd) > 0 { + for iNdEx := len(m.AliasPathsToAdd) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AliasPathsToAdd[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + } + if m.Invariants != nil { + { + size, err := m.Invariants.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + } + if len(m.CosmosCoinWrapperPathsToAdd) > 0 { + for iNdEx := len(m.CosmosCoinWrapperPathsToAdd) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CosmosCoinWrapperPathsToAdd[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + } + if len(m.MintEscrowCoinsToTransfer) > 0 { + for iNdEx := len(m.MintEscrowCoinsToTransfer) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MintEscrowCoinsToTransfer[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + } + if m.UpdateIsArchived { + i-- + if m.UpdateIsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if len(m.Standards) > 0 { + for iNdEx := len(m.Standards) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Standards[iNdEx]) + copy(dAtA[i:], m.Standards[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Standards[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + } + if m.UpdateStandards { + i-- + if m.UpdateStandards { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + if len(m.CollectionApprovals) > 0 { + for iNdEx := len(m.CollectionApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CollectionApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + if m.UpdateCollectionApprovals { + i-- + if m.UpdateCollectionApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintTx(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x7a + } + if m.UpdateCustomData { + i-- + if m.UpdateCustomData { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x70 + } + if len(m.TokenMetadata) > 0 { + for iNdEx := len(m.TokenMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + } + if m.UpdateTokenMetadata { + i-- + if m.UpdateTokenMetadata { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if m.CollectionMetadata != nil { + { + size, err := m.CollectionMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + if m.UpdateCollectionMetadata { + i-- + if m.UpdateCollectionMetadata { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if len(m.Manager) > 0 { + i -= len(m.Manager) + copy(dAtA[i:], m.Manager) + i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) + i-- + dAtA[i] = 0x4a + } + if m.UpdateManager { + i-- + if m.UpdateManager { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.CollectionPermissions != nil { + { + size, err := m.CollectionPermissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.UpdateCollectionPermissions { + i-- + if m.UpdateCollectionPermissions { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if len(m.ValidTokenIds) > 0 { + for iNdEx := len(m.ValidTokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ValidTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.UpdateValidTokenIds { + i-- + if m.UpdateValidTokenIds { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.DefaultBalances != nil { + { + size, err := m.DefaultBalances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUniversalUpdateCollectionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUniversalUpdateCollectionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUniversalUpdateCollectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ApprovalChanges) > 0 { + for iNdEx := len(m.ApprovalChanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ApprovalChanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgUpdateCollection) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AliasPathsToAdd) > 0 { + for iNdEx := len(m.AliasPathsToAdd) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AliasPathsToAdd[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + } + } + if m.Invariants != nil { + { + size, err := m.Invariants.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + if len(m.CosmosCoinWrapperPathsToAdd) > 0 { + for iNdEx := len(m.CosmosCoinWrapperPathsToAdd) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CosmosCoinWrapperPathsToAdd[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + } + if len(m.MintEscrowCoinsToTransfer) > 0 { + for iNdEx := len(m.MintEscrowCoinsToTransfer) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MintEscrowCoinsToTransfer[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if m.UpdateIsArchived { + i-- + if m.UpdateIsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if len(m.Standards) > 0 { + for iNdEx := len(m.Standards) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Standards[iNdEx]) + copy(dAtA[i:], m.Standards[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Standards[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + } + if m.UpdateStandards { + i-- + if m.UpdateStandards { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if len(m.CollectionApprovals) > 0 { + for iNdEx := len(m.CollectionApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CollectionApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if m.UpdateCollectionApprovals { + i-- + if m.UpdateCollectionApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x78 + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintTx(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x72 + } + if m.UpdateCustomData { + i-- + if m.UpdateCustomData { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x68 + } + if len(m.TokenMetadata) > 0 { + for iNdEx := len(m.TokenMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if m.UpdateTokenMetadata { + i-- + if m.UpdateTokenMetadata { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.CollectionMetadata != nil { + { + size, err := m.CollectionMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + if m.UpdateCollectionMetadata { + i-- + if m.UpdateCollectionMetadata { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if len(m.Manager) > 0 { + i -= len(m.Manager) + copy(dAtA[i:], m.Manager) + i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) + i-- + dAtA[i] = 0x42 + } + if m.UpdateManager { + i-- + if m.UpdateManager { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if m.CollectionPermissions != nil { + { + size, err := m.CollectionPermissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.UpdateCollectionPermissions { + i-- + if m.UpdateCollectionPermissions { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.ValidTokenIds) > 0 { + for iNdEx := len(m.ValidTokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ValidTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.UpdateValidTokenIds { + i-- + if m.UpdateValidTokenIds { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateCollectionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateCollectionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateCollectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ApprovalChanges) > 0 { + for iNdEx := len(m.ApprovalChanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ApprovalChanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgCreateCollection) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AliasPathsToAdd) > 0 { + for iNdEx := len(m.AliasPathsToAdd) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AliasPathsToAdd[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + } + if m.Invariants != nil { + { + size, err := m.Invariants.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + if len(m.CosmosCoinWrapperPathsToAdd) > 0 { + for iNdEx := len(m.CosmosCoinWrapperPathsToAdd) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CosmosCoinWrapperPathsToAdd[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + } + if len(m.MintEscrowCoinsToTransfer) > 0 { + for iNdEx := len(m.MintEscrowCoinsToTransfer) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.MintEscrowCoinsToTransfer[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if len(m.Standards) > 0 { + for iNdEx := len(m.Standards) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Standards[iNdEx]) + copy(dAtA[i:], m.Standards[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Standards[iNdEx]))) + i-- + dAtA[i] = 0x52 + } + } + if len(m.CollectionApprovals) > 0 { + for iNdEx := len(m.CollectionApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CollectionApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintTx(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x42 + } + if len(m.TokenMetadata) > 0 { + for iNdEx := len(m.TokenMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if m.CollectionMetadata != nil { + { + size, err := m.CollectionMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.Manager) > 0 { + i -= len(m.Manager) + copy(dAtA[i:], m.Manager) + i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) + i-- + dAtA[i] = 0x2a + } + if m.CollectionPermissions != nil { + { + size, err := m.CollectionPermissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.ValidTokenIds) > 0 { + for iNdEx := len(m.ValidTokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ValidTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.DefaultBalances != nil { + { + size, err := m.DefaultBalances.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateCollectionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateCollectionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateCollectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ApprovalChanges) > 0 { + for iNdEx := len(m.ApprovalChanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ApprovalChanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgCreateAddressLists) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateAddressLists) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateAddressLists) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AddressLists) > 0 { + for iNdEx := len(m.AddressLists) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AddressLists[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateAddressListsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateAddressListsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateAddressListsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgTransferTokens) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferTokens) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferTokens) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Transfers) > 0 { + for iNdEx := len(m.Transfers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Transfers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgTransferTokensResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgTransferTokensResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgTransferTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.BalancesTransferred) > 0 { + for iNdEx := len(m.BalancesTransferred) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BalancesTransferred[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.CoinTransfers) > 0 { + for iNdEx := len(m.CoinTransfers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CoinTransfers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ApprovalsUsed) > 0 { + for iNdEx := len(m.ApprovalsUsed) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ApprovalsUsed[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *MsgDeleteCollection) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeleteCollection) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteCollection) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDeleteCollectionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeleteCollectionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteCollectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgUpdateUserApprovals) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateUserApprovals) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateUserApprovals) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UserPermissions != nil { + { + size, err := m.UserPermissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + if m.UpdateUserPermissions { + i-- + if m.UpdateUserPermissions { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x68 + } + if m.AutoApproveAllIncomingTransfers { + i-- + if m.AutoApproveAllIncomingTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x60 + } + if m.UpdateAutoApproveAllIncomingTransfers { + i-- + if m.UpdateAutoApproveAllIncomingTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x58 + } + if m.AutoApproveSelfInitiatedIncomingTransfers { + i-- + if m.AutoApproveSelfInitiatedIncomingTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + if m.UpdateAutoApproveSelfInitiatedIncomingTransfers { + i-- + if m.UpdateAutoApproveSelfInitiatedIncomingTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.AutoApproveSelfInitiatedOutgoingTransfers { + i-- + if m.AutoApproveSelfInitiatedOutgoingTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if m.UpdateAutoApproveSelfInitiatedOutgoingTransfers { + i-- + if m.UpdateAutoApproveSelfInitiatedOutgoingTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 + } + if len(m.IncomingApprovals) > 0 { + for iNdEx := len(m.IncomingApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IncomingApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.UpdateIncomingApprovals { + i-- + if m.UpdateIncomingApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.OutgoingApprovals) > 0 { + for iNdEx := len(m.OutgoingApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OutgoingApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.UpdateOutgoingApprovals { + i-- + if m.UpdateOutgoingApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateUserApprovalsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateUserApprovalsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateUserApprovalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.OutgoingChanges) > 0 { + for iNdEx := len(m.OutgoingChanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OutgoingChanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.IncomingChanges) > 0 { + for iNdEx := len(m.IncomingChanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IncomingChanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *MsgSetIncomingApproval) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetIncomingApproval) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetIncomingApproval) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Approval != nil { + { + size, err := m.Approval.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetIncomingApprovalResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetIncomingApprovalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetIncomingApprovalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintTx(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + } + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintTx(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDeleteIncomingApproval) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeleteIncomingApproval) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteIncomingApproval) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0x1a + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDeleteIncomingApprovalResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeleteIncomingApprovalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteIncomingApprovalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintTx(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + } + if m.Found { + i-- + if m.Found { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgSetOutgoingApproval) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetOutgoingApproval) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetOutgoingApproval) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Approval != nil { + { + size, err := m.Approval.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetOutgoingApprovalResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetOutgoingApprovalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetOutgoingApprovalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintTx(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + } + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintTx(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDeleteOutgoingApproval) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeleteOutgoingApproval) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteOutgoingApproval) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0x1a + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDeleteOutgoingApprovalResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeleteOutgoingApprovalResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteOutgoingApprovalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintTx(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x12 + } + if m.Found { + i-- + if m.Found { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *MsgPurgeApprovals) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgPurgeApprovals) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgPurgeApprovals) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ApprovalsToPurge) > 0 { + for iNdEx := len(m.ApprovalsToPurge) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ApprovalsToPurge[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if m.PurgeCounterpartyApprovals { + i-- + if m.PurgeCounterpartyApprovals { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.ApproverAddress) > 0 { + i -= len(m.ApproverAddress) + copy(dAtA[i:], m.ApproverAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApproverAddress))) + i-- + dAtA[i] = 0x22 + } + if m.PurgeExpired { + i-- + if m.PurgeExpired { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgPurgeApprovalsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgPurgeApprovalsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgPurgeApprovalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.PurgedApprovalIds) > 0 { + for iNdEx := len(m.PurgedApprovalIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PurgedApprovalIds[iNdEx]) + copy(dAtA[i:], m.PurgedApprovalIds[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.PurgedApprovalIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + { + size := m.NumPurged.Size() + i -= size + if _, err := m.NumPurged.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgCreateDynamicStore) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateDynamicStore) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateDynamicStore) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintTx(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x22 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintTx(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x1a + } + if m.DefaultValue { + i-- + if m.DefaultValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCreateDynamicStoreResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCreateDynamicStoreResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCreateDynamicStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + { + size := m.StoreId.Size() + i -= size + if _, err := m.StoreId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgUpdateDynamicStore) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateDynamicStore) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateDynamicStore) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintTx(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x32 + } + if len(m.Uri) > 0 { + i -= len(m.Uri) + copy(dAtA[i:], m.Uri) + i = encodeVarintTx(dAtA, i, uint64(len(m.Uri))) + i-- + dAtA[i] = 0x2a + } + if m.GlobalEnabled { + i-- + if m.GlobalEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.DefaultValue { + i-- + if m.DefaultValue { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + { + size := m.StoreId.Size() + i -= size + if _, err := m.StoreId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateDynamicStoreResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateDynamicStoreResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateDynamicStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgDeleteDynamicStore) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeleteDynamicStore) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteDynamicStore) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.StoreId.Size() + i -= size + if _, err := m.StoreId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgDeleteDynamicStoreResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgDeleteDynamicStoreResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgDeleteDynamicStoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSetDynamicStoreValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetDynamicStoreValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetDynamicStoreValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value { + i-- + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x1a + } + { + size := m.StoreId.Size() + i -= size + if _, err := m.StoreId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetDynamicStoreValueResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetDynamicStoreValueResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetDynamicStoreValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.PreviousValue) > 0 { + i -= len(m.PreviousValue) + copy(dAtA[i:], m.PreviousValue) + i = encodeVarintTx(dAtA, i, uint64(len(m.PreviousValue))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetValidTokenIds) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetValidTokenIds) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetValidTokenIds) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanUpdateValidTokenIds) > 0 { + for iNdEx := len(m.CanUpdateValidTokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateValidTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.ValidTokenIds) > 0 { + for iNdEx := len(m.ValidTokenIds) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ValidTokenIds[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetValidTokenIdsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetValidTokenIdsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetValidTokenIdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgSetManager) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetManager) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetManager) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanUpdateManager) > 0 { + for iNdEx := len(m.CanUpdateManager) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateManager[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Manager) > 0 { + i -= len(m.Manager) + copy(dAtA[i:], m.Manager) + i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) + i-- + dAtA[i] = 0x1a + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetManagerResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetManagerResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetManagerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgSetCollectionMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetCollectionMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCollectionMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanUpdateCollectionMetadata) > 0 { + for iNdEx := len(m.CanUpdateCollectionMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateCollectionMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.CollectionMetadata != nil { + { + size, err := m.CollectionMetadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetCollectionMetadataResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetCollectionMetadataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCollectionMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgSetTokenMetadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetTokenMetadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetTokenMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanUpdateTokenMetadata) > 0 { + for iNdEx := len(m.CanUpdateTokenMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateTokenMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.TokenMetadata) > 0 { + for iNdEx := len(m.TokenMetadata) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TokenMetadata[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetTokenMetadataResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetTokenMetadataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetTokenMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgSetCustomData) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetCustomData) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCustomData) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanUpdateCustomData) > 0 { + for iNdEx := len(m.CanUpdateCustomData) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateCustomData[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.CustomData) > 0 { + i -= len(m.CustomData) + copy(dAtA[i:], m.CustomData) + i = encodeVarintTx(dAtA, i, uint64(len(m.CustomData))) + i-- + dAtA[i] = 0x1a + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetCustomDataResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetCustomDataResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCustomDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgSetStandards) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetStandards) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetStandards) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanUpdateStandards) > 0 { + for iNdEx := len(m.CanUpdateStandards) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateStandards[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Standards) > 0 { + for iNdEx := len(m.Standards) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Standards[iNdEx]) + copy(dAtA[i:], m.Standards[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Standards[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetStandardsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetStandardsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetStandardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgSetCollectionApprovals) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetCollectionApprovals) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCollectionApprovals) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanUpdateCollectionApprovals) > 0 { + for iNdEx := len(m.CanUpdateCollectionApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanUpdateCollectionApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.CollectionApprovals) > 0 { + for iNdEx := len(m.CollectionApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CollectionApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetCollectionApprovalsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetCollectionApprovalsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetCollectionApprovalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReviewItems) > 0 { + for iNdEx := len(m.ReviewItems) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ReviewItems[iNdEx]) + copy(dAtA[i:], m.ReviewItems[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.ReviewItems[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ApprovalChanges) > 0 { + for iNdEx := len(m.ApprovalChanges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ApprovalChanges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgSetIsArchived) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetIsArchived) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetIsArchived) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.CanArchiveCollection) > 0 { + for iNdEx := len(m.CanArchiveCollection) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.CanArchiveCollection[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetIsArchivedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetIsArchivedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetIsArchivedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *MsgSetReservedProtocolAddress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetReservedProtocolAddress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetReservedProtocolAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsReservedProtocol { + i-- + if m.IsReservedProtocol { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0x12 + } + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgSetReservedProtocolAddressResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSetReservedProtocolAddressResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSetReservedProtocolAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgCastVote) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCastVote) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCastVote) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.YesWeight.Size() + i -= size + if _, err := m.YesWeight.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + if len(m.ProposalId) > 0 { + i -= len(m.ProposalId) + copy(dAtA[i:], m.ProposalId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProposalId))) + i-- + dAtA[i] = 0x32 + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0x2a + } + if len(m.ApproverAddress) > 0 { + i -= len(m.ApproverAddress) + copy(dAtA[i:], m.ApproverAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApproverAddress))) + i-- + dAtA[i] = 0x22 + } + if len(m.ApprovalLevel) > 0 { + i -= len(m.ApprovalLevel) + copy(dAtA[i:], m.ApprovalLevel) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApprovalLevel))) + i-- + dAtA[i] = 0x1a + } + { + size := m.CollectionId.Size() + i -= size + if _, err := m.CollectionId.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgCastVoteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgCastVoteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCastVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *ApprovalUsed) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApprovalUsed) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApprovalUsed) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintTx(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x22 + } + if len(m.ApproverAddress) > 0 { + i -= len(m.ApproverAddress) + copy(dAtA[i:], m.ApproverAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApproverAddress))) + i-- + dAtA[i] = 0x1a + } + if len(m.ApprovalLevel) > 0 { + i -= len(m.ApprovalLevel) + copy(dAtA[i:], m.ApprovalLevel) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApprovalLevel))) + i-- + dAtA[i] = 0x12 + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *CoinTransferProto) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CoinTransferProto) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CoinTransferProto) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsProtocolFee { + i-- + if m.IsProtocolFee { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.Denom) > 0 { + i -= len(m.Denom) + copy(dAtA[i:], m.Denom) + i = encodeVarintTx(dAtA, i, uint64(len(m.Denom))) + i-- + dAtA[i] = 0x22 + } + if len(m.Amount) > 0 { + i -= len(m.Amount) + copy(dAtA[i:], m.Amount) + i = encodeVarintTx(dAtA, i, uint64(len(m.Amount))) + i-- + dAtA[i] = 0x1a + } + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x12 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ApprovalChange) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ApprovalChange) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ApprovalChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Version) > 0 { + i -= len(m.Version) + copy(dAtA[i:], m.Version) + i = encodeVarintTx(dAtA, i, uint64(len(m.Version))) + i-- + dAtA[i] = 0x22 + } + if len(m.Action) > 0 { + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintTx(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0x1a + } + if len(m.ApprovalLevel) > 0 { + i -= len(m.ApprovalLevel) + copy(dAtA[i:], m.ApprovalLevel) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApprovalLevel))) + i-- + dAtA[i] = 0x12 + } + if len(m.ApprovalId) > 0 { + i -= len(m.ApprovalId) + copy(dAtA[i:], m.ApprovalId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ApprovalId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *TokenizationCustomMsgType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CreateAddressListsMsg != nil { + l = m.CreateAddressListsMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.UniversalUpdateCollectionMsg != nil { + l = m.UniversalUpdateCollectionMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.DeleteCollectionMsg != nil { + l = m.DeleteCollectionMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.TransferTokensMsg != nil { + l = m.TransferTokensMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateUserApprovalsMsg != nil { + l = m.UpdateUserApprovalsMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateCollectionMsg != nil { + l = m.UpdateCollectionMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.CreateCollectionMsg != nil { + l = m.CreateCollectionMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.CreateDynamicStoreMsg != nil { + l = m.CreateDynamicStoreMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateDynamicStoreMsg != nil { + l = m.UpdateDynamicStoreMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.DeleteDynamicStoreMsg != nil { + l = m.DeleteDynamicStoreMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.SetDynamicStoreValueMsg != nil { + l = m.SetDynamicStoreValueMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.SetIncomingApprovalMsg != nil { + l = m.SetIncomingApprovalMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.DeleteIncomingApprovalMsg != nil { + l = m.DeleteIncomingApprovalMsg.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.SetOutgoingApprovalMsg != nil { + l = m.SetOutgoingApprovalMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.DeleteOutgoingApprovalMsg != nil { + l = m.DeleteOutgoingApprovalMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.PurgeApprovalsMsg != nil { + l = m.PurgeApprovalsMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.SetValidTokenIdsMsg != nil { + l = m.SetValidTokenIdsMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.SetManagerMsg != nil { + l = m.SetManagerMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.SetCollectionMetadataMsg != nil { + l = m.SetCollectionMetadataMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.SetTokenMetadataMsg != nil { + l = m.SetTokenMetadataMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.SetCustomDataMsg != nil { + l = m.SetCustomDataMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.SetStandardsMsg != nil { + l = m.SetStandardsMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.SetCollectionApprovalsMsg != nil { + l = m.SetCollectionApprovalsMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.SetIsArchivedMsg != nil { + l = m.SetIsArchivedMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.SetReservedProtocolAddressMsg != nil { + l = m.SetReservedProtocolAddressMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + if m.CastVoteMsg != nil { + l = m.CastVoteMsg.Size() + n += 2 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Params.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *CosmosCoinWrapperPathAddObject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Conversion != nil { + l = m.Conversion.Size() + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Symbol) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.DenomUnits) > 0 { + for _, e := range m.DenomUnits { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.AllowOverrideWithAnyValidToken { + n += 2 + } + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *AliasPathAddObject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Conversion != nil { + l = m.Conversion.Size() + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Symbol) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.DenomUnits) > 0 { + for _, e := range m.DenomUnits { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.Metadata != nil { + l = m.Metadata.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *CosmosCoinBackedPathAddObject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Conversion != nil { + l = m.Conversion.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *InvariantsAddObject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.NoCustomOwnershipTimes { + n += 2 + } + l = m.MaxSupplyPerId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.CosmosCoinBackedPath != nil { + l = m.CosmosCoinBackedPath.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.NoForcefulPostMintTransfers { + n += 2 + } + if m.DisablePoolCreation { + n += 2 + } + if len(m.EvmQueryChallenges) > 0 { + for _, e := range m.EvmQueryChallenges { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUniversalUpdateCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.DefaultBalances != nil { + l = m.DefaultBalances.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateValidTokenIds { + n += 2 + } + if len(m.ValidTokenIds) > 0 { + for _, e := range m.ValidTokenIds { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.UpdateCollectionPermissions { + n += 2 + } + if m.CollectionPermissions != nil { + l = m.CollectionPermissions.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateManager { + n += 2 + } + l = len(m.Manager) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateCollectionMetadata { + n += 2 + } + if m.CollectionMetadata != nil { + l = m.CollectionMetadata.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateTokenMetadata { + n += 2 + } + if len(m.TokenMetadata) > 0 { + for _, e := range m.TokenMetadata { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.UpdateCustomData { + n += 2 + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateCollectionApprovals { + n += 3 + } + if len(m.CollectionApprovals) > 0 { + for _, e := range m.CollectionApprovals { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if m.UpdateStandards { + n += 3 + } + if len(m.Standards) > 0 { + for _, s := range m.Standards { + l = len(s) + n += 2 + l + sovTx(uint64(l)) + } + } + if m.UpdateIsArchived { + n += 3 + } + if m.IsArchived { + n += 3 + } + if len(m.MintEscrowCoinsToTransfer) > 0 { + for _, e := range m.MintEscrowCoinsToTransfer { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.CosmosCoinWrapperPathsToAdd) > 0 { + for _, e := range m.CosmosCoinWrapperPathsToAdd { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if m.Invariants != nil { + l = m.Invariants.Size() + n += 2 + l + sovTx(uint64(l)) + } + if len(m.AliasPathsToAdd) > 0 { + for _, e := range m.AliasPathsToAdd { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUniversalUpdateCollectionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.ApprovalChanges) > 0 { + for _, e := range m.ApprovalChanges { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUpdateCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.UpdateValidTokenIds { + n += 2 + } + if len(m.ValidTokenIds) > 0 { + for _, e := range m.ValidTokenIds { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.UpdateCollectionPermissions { + n += 2 + } + if m.CollectionPermissions != nil { + l = m.CollectionPermissions.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateManager { + n += 2 + } + l = len(m.Manager) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateCollectionMetadata { + n += 2 + } + if m.CollectionMetadata != nil { + l = m.CollectionMetadata.Size() + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateTokenMetadata { + n += 2 + } + if len(m.TokenMetadata) > 0 { + for _, e := range m.TokenMetadata { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.UpdateCustomData { + n += 2 + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.UpdateCollectionApprovals { + n += 2 + } + if len(m.CollectionApprovals) > 0 { + for _, e := range m.CollectionApprovals { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if m.UpdateStandards { + n += 3 + } + if len(m.Standards) > 0 { + for _, s := range m.Standards { + l = len(s) + n += 2 + l + sovTx(uint64(l)) + } + } + if m.UpdateIsArchived { + n += 3 + } + if m.IsArchived { + n += 3 + } + if len(m.MintEscrowCoinsToTransfer) > 0 { + for _, e := range m.MintEscrowCoinsToTransfer { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.CosmosCoinWrapperPathsToAdd) > 0 { + for _, e := range m.CosmosCoinWrapperPathsToAdd { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if m.Invariants != nil { + l = m.Invariants.Size() + n += 2 + l + sovTx(uint64(l)) + } + if len(m.AliasPathsToAdd) > 0 { + for _, e := range m.AliasPathsToAdd { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUpdateCollectionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.ApprovalChanges) > 0 { + for _, e := range m.ApprovalChanges { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgCreateCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.DefaultBalances != nil { + l = m.DefaultBalances.Size() + n += 1 + l + sovTx(uint64(l)) + } + if len(m.ValidTokenIds) > 0 { + for _, e := range m.ValidTokenIds { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.CollectionPermissions != nil { + l = m.CollectionPermissions.Size() + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Manager) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.CollectionMetadata != nil { + l = m.CollectionMetadata.Size() + n += 1 + l + sovTx(uint64(l)) + } + if len(m.TokenMetadata) > 0 { + for _, e := range m.TokenMetadata { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.CollectionApprovals) > 0 { + for _, e := range m.CollectionApprovals { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.Standards) > 0 { + for _, s := range m.Standards { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + if m.IsArchived { + n += 2 + } + if len(m.MintEscrowCoinsToTransfer) > 0 { + for _, e := range m.MintEscrowCoinsToTransfer { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.CosmosCoinWrapperPathsToAdd) > 0 { + for _, e := range m.CosmosCoinWrapperPathsToAdd { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.Invariants != nil { + l = m.Invariants.Size() + n += 1 + l + sovTx(uint64(l)) + } + if len(m.AliasPathsToAdd) > 0 { + for _, e := range m.AliasPathsToAdd { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgCreateCollectionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.ApprovalChanges) > 0 { + for _, e := range m.ApprovalChanges { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgCreateAddressLists) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.AddressLists) > 0 { + for _, e := range m.AddressLists { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgCreateAddressListsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgTransferTokens) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.Transfers) > 0 { + for _, e := range m.Transfers { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgTransferTokensResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ApprovalsUsed) > 0 { + for _, e := range m.ApprovalsUsed { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.CoinTransfers) > 0 { + for _, e := range m.CoinTransfers { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.BalancesTransferred) > 0 { + for _, e := range m.BalancesTransferred { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgDeleteCollection) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgDeleteCollectionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgUpdateUserApprovals) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.UpdateOutgoingApprovals { + n += 2 + } + if len(m.OutgoingApprovals) > 0 { + for _, e := range m.OutgoingApprovals { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.UpdateIncomingApprovals { + n += 2 + } + if len(m.IncomingApprovals) > 0 { + for _, e := range m.IncomingApprovals { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if m.UpdateAutoApproveSelfInitiatedOutgoingTransfers { + n += 2 + } + if m.AutoApproveSelfInitiatedOutgoingTransfers { + n += 2 + } + if m.UpdateAutoApproveSelfInitiatedIncomingTransfers { + n += 2 + } + if m.AutoApproveSelfInitiatedIncomingTransfers { + n += 2 + } + if m.UpdateAutoApproveAllIncomingTransfers { + n += 2 + } + if m.AutoApproveAllIncomingTransfers { + n += 2 + } + if m.UpdateUserPermissions { + n += 2 + } + if m.UserPermissions != nil { + l = m.UserPermissions.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateUserApprovalsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.IncomingChanges) > 0 { + for _, e := range m.IncomingChanges { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.OutgoingChanges) > 0 { + for _, e := range m.OutgoingChanges { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetIncomingApproval) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.Approval != nil { + l = m.Approval.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSetIncomingApprovalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Action) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgDeleteIncomingApproval) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDeleteIncomingApprovalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Found { + n += 2 + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetOutgoingApproval) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.Approval != nil { + l = m.Approval.Size() + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgSetOutgoingApprovalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Action) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgDeleteOutgoingApproval) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgDeleteOutgoingApprovalResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Found { + n += 2 + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgPurgeApprovals) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.PurgeExpired { + n += 2 + } + l = len(m.ApproverAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.PurgeCounterpartyApprovals { + n += 2 + } + if len(m.ApprovalsToPurge) > 0 { + for _, e := range m.ApprovalsToPurge { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgPurgeApprovalsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.NumPurged.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.PurgedApprovalIds) > 0 { + for _, s := range m.PurgedApprovalIds { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgCreateDynamicStore) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.DefaultValue { + n += 2 + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCreateDynamicStoreResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.StoreId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgUpdateDynamicStore) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.StoreId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.DefaultValue { + n += 2 + } + if m.GlobalEnabled { + n += 2 + } + l = len(m.Uri) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgUpdateDynamicStoreResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgDeleteDynamicStore) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.StoreId.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgDeleteDynamicStoreResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgSetDynamicStoreValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.StoreId.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.Value { + n += 2 + } + return n +} + +func (m *MsgSetDynamicStoreValueResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PreviousValue) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetValidTokenIds) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.ValidTokenIds) > 0 { + for _, e := range m.ValidTokenIds { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.CanUpdateValidTokenIds) > 0 { + for _, e := range m.CanUpdateValidTokenIds { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetValidTokenIdsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSetManager) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.Manager) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.CanUpdateManager) > 0 { + for _, e := range m.CanUpdateManager { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetManagerResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSetCollectionMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.CollectionMetadata != nil { + l = m.CollectionMetadata.Size() + n += 1 + l + sovTx(uint64(l)) + } + if len(m.CanUpdateCollectionMetadata) > 0 { + for _, e := range m.CanUpdateCollectionMetadata { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetCollectionMetadataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSetTokenMetadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.TokenMetadata) > 0 { + for _, e := range m.TokenMetadata { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.CanUpdateTokenMetadata) > 0 { + for _, e := range m.CanUpdateTokenMetadata { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetTokenMetadataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSetCustomData) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.CustomData) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if len(m.CanUpdateCustomData) > 0 { + for _, e := range m.CanUpdateCustomData { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetCustomDataResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSetStandards) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.Standards) > 0 { + for _, s := range m.Standards { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.CanUpdateStandards) > 0 { + for _, e := range m.CanUpdateStandards { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetStandardsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSetCollectionApprovals) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.CollectionApprovals) > 0 { + for _, e := range m.CollectionApprovals { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.CanUpdateCollectionApprovals) > 0 { + for _, e := range m.CanUpdateCollectionApprovals { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetCollectionApprovalsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if len(m.ApprovalChanges) > 0 { + for _, e := range m.ApprovalChanges { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + if len(m.ReviewItems) > 0 { + for _, s := range m.ReviewItems { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetIsArchived) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + if m.IsArchived { + n += 2 + } + if len(m.CanArchiveCollection) > 0 { + for _, e := range m.CanArchiveCollection { + l = e.Size() + n += 1 + l + sovTx(uint64(l)) + } + } + return n +} + +func (m *MsgSetIsArchivedResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgSetReservedProtocolAddress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.IsReservedProtocol { + n += 2 + } + return n +} + +func (m *MsgSetReservedProtocolAddressResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgCastVote) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.CollectionId.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.ApprovalLevel) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ApproverAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ProposalId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.YesWeight.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgCastVoteResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *ApprovalUsed) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ApprovalLevel) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ApproverAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *CoinTransferProto) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Amount) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Denom) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + if m.IsProtocolFee { + n += 2 + } + return n +} + +func (m *ApprovalChange) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ApprovalId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ApprovalLevel) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Action) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Version) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *TokenizationCustomMsgType) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TokenizationCustomMsgType: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TokenizationCustomMsgType: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateAddressListsMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreateAddressListsMsg == nil { + m.CreateAddressListsMsg = &MsgCreateAddressLists{} + } + if err := m.CreateAddressListsMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UniversalUpdateCollectionMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UniversalUpdateCollectionMsg == nil { + m.UniversalUpdateCollectionMsg = &MsgUniversalUpdateCollection{} + } + if err := m.UniversalUpdateCollectionMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteCollectionMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DeleteCollectionMsg == nil { + m.DeleteCollectionMsg = &MsgDeleteCollection{} + } + if err := m.DeleteCollectionMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferTokensMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TransferTokensMsg == nil { + m.TransferTokensMsg = &MsgTransferTokens{} + } + if err := m.TransferTokensMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateUserApprovalsMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateUserApprovalsMsg == nil { + m.UpdateUserApprovalsMsg = &MsgUpdateUserApprovals{} + } + if err := m.UpdateUserApprovalsMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateCollectionMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateCollectionMsg == nil { + m.UpdateCollectionMsg = &MsgUpdateCollection{} + } + if err := m.UpdateCollectionMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateCollectionMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreateCollectionMsg == nil { + m.CreateCollectionMsg = &MsgCreateCollection{} + } + if err := m.CreateCollectionMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreateDynamicStoreMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreateDynamicStoreMsg == nil { + m.CreateDynamicStoreMsg = &MsgCreateDynamicStore{} + } + if err := m.CreateDynamicStoreMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateDynamicStoreMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UpdateDynamicStoreMsg == nil { + m.UpdateDynamicStoreMsg = &MsgUpdateDynamicStore{} + } + if err := m.UpdateDynamicStoreMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteDynamicStoreMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DeleteDynamicStoreMsg == nil { + m.DeleteDynamicStoreMsg = &MsgDeleteDynamicStore{} + } + if err := m.DeleteDynamicStoreMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetDynamicStoreValueMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetDynamicStoreValueMsg == nil { + m.SetDynamicStoreValueMsg = &MsgSetDynamicStoreValue{} + } + if err := m.SetDynamicStoreValueMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetIncomingApprovalMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetIncomingApprovalMsg == nil { + m.SetIncomingApprovalMsg = &MsgSetIncomingApproval{} + } + if err := m.SetIncomingApprovalMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteIncomingApprovalMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DeleteIncomingApprovalMsg == nil { + m.DeleteIncomingApprovalMsg = &MsgDeleteIncomingApproval{} + } + if err := m.DeleteIncomingApprovalMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetOutgoingApprovalMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetOutgoingApprovalMsg == nil { + m.SetOutgoingApprovalMsg = &MsgSetOutgoingApproval{} + } + if err := m.SetOutgoingApprovalMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteOutgoingApprovalMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DeleteOutgoingApprovalMsg == nil { + m.DeleteOutgoingApprovalMsg = &MsgDeleteOutgoingApproval{} + } + if err := m.DeleteOutgoingApprovalMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PurgeApprovalsMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PurgeApprovalsMsg == nil { + m.PurgeApprovalsMsg = &MsgPurgeApprovals{} + } + if err := m.PurgeApprovalsMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetValidTokenIdsMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetValidTokenIdsMsg == nil { + m.SetValidTokenIdsMsg = &MsgSetValidTokenIds{} + } + if err := m.SetValidTokenIdsMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetManagerMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetManagerMsg == nil { + m.SetManagerMsg = &MsgSetManager{} + } + if err := m.SetManagerMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetCollectionMetadataMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetCollectionMetadataMsg == nil { + m.SetCollectionMetadataMsg = &MsgSetCollectionMetadata{} + } + if err := m.SetCollectionMetadataMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetTokenMetadataMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetTokenMetadataMsg == nil { + m.SetTokenMetadataMsg = &MsgSetTokenMetadata{} + } + if err := m.SetTokenMetadataMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetCustomDataMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetCustomDataMsg == nil { + m.SetCustomDataMsg = &MsgSetCustomData{} + } + if err := m.SetCustomDataMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetStandardsMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetStandardsMsg == nil { + m.SetStandardsMsg = &MsgSetStandards{} + } + if err := m.SetStandardsMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetCollectionApprovalsMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetCollectionApprovalsMsg == nil { + m.SetCollectionApprovalsMsg = &MsgSetCollectionApprovals{} + } + if err := m.SetCollectionApprovalsMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetIsArchivedMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetIsArchivedMsg == nil { + m.SetIsArchivedMsg = &MsgSetIsArchived{} + } + if err := m.SetIsArchivedMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 27: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SetReservedProtocolAddressMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SetReservedProtocolAddressMsg == nil { + m.SetReservedProtocolAddressMsg = &MsgSetReservedProtocolAddress{} + } + if err := m.SetReservedProtocolAddressMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 28: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CastVoteMsg", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CastVoteMsg == nil { + m.CastVoteMsg = &MsgCastVote{} + } + if err := m.CastVoteMsg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CosmosCoinWrapperPathAddObject) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CosmosCoinWrapperPathAddObject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CosmosCoinWrapperPathAddObject: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conversion", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Conversion == nil { + m.Conversion = &ConversionWithoutDenom{} + } + if err := m.Conversion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Symbol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DenomUnits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DenomUnits = append(m.DenomUnits, &DenomUnit{}) + if err := m.DenomUnits[len(m.DenomUnits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowOverrideWithAnyValidToken", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowOverrideWithAnyValidToken = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &PathMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AliasPathAddObject) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AliasPathAddObject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AliasPathAddObject: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conversion", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Conversion == nil { + m.Conversion = &ConversionWithoutDenom{} + } + if err := m.Conversion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Symbol = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DenomUnits", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DenomUnits = append(m.DenomUnits, &DenomUnit{}) + if err := m.DenomUnits[len(m.DenomUnits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Metadata == nil { + m.Metadata = &PathMetadata{} + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CosmosCoinBackedPathAddObject) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CosmosCoinBackedPathAddObject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CosmosCoinBackedPathAddObject: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conversion", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Conversion == nil { + m.Conversion = &Conversion{} + } + if err := m.Conversion.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InvariantsAddObject) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InvariantsAddObject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InvariantsAddObject: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoCustomOwnershipTimes", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoCustomOwnershipTimes = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSupplyPerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxSupplyPerId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosmosCoinBackedPath", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CosmosCoinBackedPath == nil { + m.CosmosCoinBackedPath = &CosmosCoinBackedPathAddObject{} + } + if err := m.CosmosCoinBackedPath.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoForcefulPostMintTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NoForcefulPostMintTransfers = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisablePoolCreation", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DisablePoolCreation = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EvmQueryChallenges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EvmQueryChallenges = append(m.EvmQueryChallenges, &EVMQueryChallenge{}) + if err := m.EvmQueryChallenges[len(m.EvmQueryChallenges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUniversalUpdateCollection) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUniversalUpdateCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUniversalUpdateCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultBalances == nil { + m.DefaultBalances = &UserBalanceStore{} + } + if err := m.DefaultBalances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateValidTokenIds", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateValidTokenIds = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidTokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidTokenIds = append(m.ValidTokenIds, &UintRange{}) + if err := m.ValidTokenIds[len(m.ValidTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateCollectionPermissions", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateCollectionPermissions = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionPermissions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionPermissions == nil { + m.CollectionPermissions = &CollectionPermissions{} + } + if err := m.CollectionPermissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateManager", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateManager = bool(v != 0) + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateCollectionMetadata", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateCollectionMetadata = bool(v != 0) + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionMetadata == nil { + m.CollectionMetadata = &CollectionMetadata{} + } + if err := m.CollectionMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateTokenMetadata", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateTokenMetadata = bool(v != 0) + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenMetadata = append(m.TokenMetadata, &TokenMetadata{}) + if err := m.TokenMetadata[len(m.TokenMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateCustomData", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateCustomData = bool(v != 0) + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateCollectionApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateCollectionApprovals = bool(v != 0) + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CollectionApprovals = append(m.CollectionApprovals, &CollectionApproval{}) + if err := m.CollectionApprovals[len(m.CollectionApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateStandards", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateStandards = bool(v != 0) + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Standards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Standards = append(m.Standards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateIsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateIsArchived = bool(v != 0) + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintEscrowCoinsToTransfer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintEscrowCoinsToTransfer = append(m.MintEscrowCoinsToTransfer, &types.Coin{}) + if err := m.MintEscrowCoinsToTransfer[len(m.MintEscrowCoinsToTransfer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosmosCoinWrapperPathsToAdd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CosmosCoinWrapperPathsToAdd = append(m.CosmosCoinWrapperPathsToAdd, &CosmosCoinWrapperPathAddObject{}) + if err := m.CosmosCoinWrapperPathsToAdd[len(m.CosmosCoinWrapperPathsToAdd)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Invariants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Invariants == nil { + m.Invariants = &InvariantsAddObject{} + } + if err := m.Invariants.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AliasPathsToAdd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AliasPathsToAdd = append(m.AliasPathsToAdd, &AliasPathAddObject{}) + if err := m.AliasPathsToAdd[len(m.AliasPathsToAdd)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUniversalUpdateCollectionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUniversalUpdateCollectionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUniversalUpdateCollectionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalChanges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalChanges = append(m.ApprovalChanges, &ApprovalChange{}) + if err := m.ApprovalChanges[len(m.ApprovalChanges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateCollection) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateValidTokenIds", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateValidTokenIds = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidTokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidTokenIds = append(m.ValidTokenIds, &UintRange{}) + if err := m.ValidTokenIds[len(m.ValidTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateCollectionPermissions", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateCollectionPermissions = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionPermissions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionPermissions == nil { + m.CollectionPermissions = &CollectionPermissions{} + } + if err := m.CollectionPermissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateManager", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateManager = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateCollectionMetadata", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateCollectionMetadata = bool(v != 0) + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionMetadata == nil { + m.CollectionMetadata = &CollectionMetadata{} + } + if err := m.CollectionMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateTokenMetadata", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateTokenMetadata = bool(v != 0) + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenMetadata = append(m.TokenMetadata, &TokenMetadata{}) + if err := m.TokenMetadata[len(m.TokenMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateCustomData", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateCustomData = bool(v != 0) + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 15: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateCollectionApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateCollectionApprovals = bool(v != 0) + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CollectionApprovals = append(m.CollectionApprovals, &CollectionApproval{}) + if err := m.CollectionApprovals[len(m.CollectionApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateStandards", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateStandards = bool(v != 0) + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Standards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Standards = append(m.Standards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateIsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateIsArchived = bool(v != 0) + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintEscrowCoinsToTransfer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintEscrowCoinsToTransfer = append(m.MintEscrowCoinsToTransfer, &types.Coin{}) + if err := m.MintEscrowCoinsToTransfer[len(m.MintEscrowCoinsToTransfer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosmosCoinWrapperPathsToAdd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CosmosCoinWrapperPathsToAdd = append(m.CosmosCoinWrapperPathsToAdd, &CosmosCoinWrapperPathAddObject{}) + if err := m.CosmosCoinWrapperPathsToAdd[len(m.CosmosCoinWrapperPathsToAdd)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Invariants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Invariants == nil { + m.Invariants = &InvariantsAddObject{} + } + if err := m.Invariants.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AliasPathsToAdd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AliasPathsToAdd = append(m.AliasPathsToAdd, &AliasPathAddObject{}) + if err := m.AliasPathsToAdd[len(m.AliasPathsToAdd)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateCollectionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateCollectionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateCollectionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalChanges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalChanges = append(m.ApprovalChanges, &ApprovalChange{}) + if err := m.ApprovalChanges[len(m.ApprovalChanges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateCollection) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultBalances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DefaultBalances == nil { + m.DefaultBalances = &UserBalanceStore{} + } + if err := m.DefaultBalances.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidTokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidTokenIds = append(m.ValidTokenIds, &UintRange{}) + if err := m.ValidTokenIds[len(m.ValidTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionPermissions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionPermissions == nil { + m.CollectionPermissions = &CollectionPermissions{} + } + if err := m.CollectionPermissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionMetadata == nil { + m.CollectionMetadata = &CollectionMetadata{} + } + if err := m.CollectionMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenMetadata = append(m.TokenMetadata, &TokenMetadata{}) + if err := m.TokenMetadata[len(m.TokenMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CollectionApprovals = append(m.CollectionApprovals, &CollectionApproval{}) + if err := m.CollectionApprovals[len(m.CollectionApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Standards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Standards = append(m.Standards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintEscrowCoinsToTransfer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintEscrowCoinsToTransfer = append(m.MintEscrowCoinsToTransfer, &types.Coin{}) + if err := m.MintEscrowCoinsToTransfer[len(m.MintEscrowCoinsToTransfer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CosmosCoinWrapperPathsToAdd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CosmosCoinWrapperPathsToAdd = append(m.CosmosCoinWrapperPathsToAdd, &CosmosCoinWrapperPathAddObject{}) + if err := m.CosmosCoinWrapperPathsToAdd[len(m.CosmosCoinWrapperPathsToAdd)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Invariants", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Invariants == nil { + m.Invariants = &InvariantsAddObject{} + } + if err := m.Invariants.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AliasPathsToAdd", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AliasPathsToAdd = append(m.AliasPathsToAdd, &AliasPathAddObject{}) + if err := m.AliasPathsToAdd[len(m.AliasPathsToAdd)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateCollectionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateCollectionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateCollectionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalChanges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalChanges = append(m.ApprovalChanges, &ApprovalChange{}) + if err := m.ApprovalChanges[len(m.ApprovalChanges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateAddressLists) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateAddressLists: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateAddressLists: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddressLists", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AddressLists = append(m.AddressLists, &AddressListInput{}) + if err := m.AddressLists[len(m.AddressLists)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateAddressListsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateAddressListsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateAddressListsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferTokens) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferTokens: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferTokens: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Transfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Transfers = append(m.Transfers, &Transfer{}) + if err := m.Transfers[len(m.Transfers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgTransferTokensResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgTransferTokensResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgTransferTokensResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalsUsed", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalsUsed = append(m.ApprovalsUsed, &ApprovalUsed{}) + if err := m.ApprovalsUsed[len(m.ApprovalsUsed)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoinTransfers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CoinTransfers = append(m.CoinTransfers, &CoinTransferProto{}) + if err := m.CoinTransfers[len(m.CoinTransfers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BalancesTransferred", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BalancesTransferred = append(m.BalancesTransferred, &Balance{}) + if err := m.BalancesTransferred[len(m.BalancesTransferred)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDeleteCollection) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeleteCollection: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteCollection: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDeleteCollectionResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeleteCollectionResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteCollectionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateUserApprovals) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateUserApprovals: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateUserApprovals: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateOutgoingApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateOutgoingApprovals = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OutgoingApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OutgoingApprovals = append(m.OutgoingApprovals, &UserOutgoingApproval{}) + if err := m.OutgoingApprovals[len(m.OutgoingApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateIncomingApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateIncomingApprovals = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncomingApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncomingApprovals = append(m.IncomingApprovals, &UserIncomingApproval{}) + if err := m.IncomingApprovals[len(m.IncomingApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateAutoApproveSelfInitiatedOutgoingTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateAutoApproveSelfInitiatedOutgoingTransfers = bool(v != 0) + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoApproveSelfInitiatedOutgoingTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AutoApproveSelfInitiatedOutgoingTransfers = bool(v != 0) + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateAutoApproveSelfInitiatedIncomingTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateAutoApproveSelfInitiatedIncomingTransfers = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoApproveSelfInitiatedIncomingTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AutoApproveSelfInitiatedIncomingTransfers = bool(v != 0) + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateAutoApproveAllIncomingTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateAutoApproveAllIncomingTransfers = bool(v != 0) + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoApproveAllIncomingTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AutoApproveAllIncomingTransfers = bool(v != 0) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UpdateUserPermissions", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.UpdateUserPermissions = bool(v != 0) + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserPermissions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserPermissions == nil { + m.UserPermissions = &UserPermissions{} + } + if err := m.UserPermissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateUserApprovalsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateUserApprovalsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateUserApprovalsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncomingChanges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncomingChanges = append(m.IncomingChanges, &ApprovalChange{}) + if err := m.IncomingChanges[len(m.IncomingChanges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OutgoingChanges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OutgoingChanges = append(m.OutgoingChanges, &ApprovalChange{}) + if err := m.OutgoingChanges[len(m.OutgoingChanges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetIncomingApproval) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetIncomingApproval: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetIncomingApproval: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Approval", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Approval == nil { + m.Approval = &UserIncomingApproval{} + } + if err := m.Approval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetIncomingApprovalResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetIncomingApprovalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetIncomingApprovalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDeleteIncomingApproval) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeleteIncomingApproval: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteIncomingApproval: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDeleteIncomingApprovalResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeleteIncomingApprovalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteIncomingApprovalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Found", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Found = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetOutgoingApproval) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetOutgoingApproval: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetOutgoingApproval: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Approval", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Approval == nil { + m.Approval = &UserOutgoingApproval{} + } + if err := m.Approval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetOutgoingApprovalResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetOutgoingApprovalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetOutgoingApprovalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDeleteOutgoingApproval) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeleteOutgoingApproval: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteOutgoingApproval: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDeleteOutgoingApprovalResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeleteOutgoingApprovalResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteOutgoingApprovalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Found", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Found = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgPurgeApprovals) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgPurgeApprovals: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgPurgeApprovals: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PurgeExpired", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PurgeExpired = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproverAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApproverAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PurgeCounterpartyApprovals", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PurgeCounterpartyApprovals = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalsToPurge", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalsToPurge = append(m.ApprovalsToPurge, &ApprovalIdentifierDetails{}) + if err := m.ApprovalsToPurge[len(m.ApprovalsToPurge)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgPurgeApprovalsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgPurgeApprovalsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgPurgeApprovalsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumPurged", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NumPurged.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PurgedApprovalIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PurgedApprovalIds = append(m.PurgedApprovalIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateDynamicStore) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateDynamicStore: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateDynamicStore: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DefaultValue = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCreateDynamicStoreResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCreateDynamicStoreResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCreateDynamicStoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StoreId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateDynamicStore) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateDynamicStore: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateDynamicStore: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StoreId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultValue", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DefaultValue = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.GlobalEnabled = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateDynamicStoreResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateDynamicStoreResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateDynamicStoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDeleteDynamicStore) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeleteDynamicStore: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteDynamicStore: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StoreId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgDeleteDynamicStoreResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgDeleteDynamicStoreResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgDeleteDynamicStoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetDynamicStoreValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetDynamicStoreValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetDynamicStoreValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoreId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StoreId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetDynamicStoreValueResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetDynamicStoreValueResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetDynamicStoreValueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetValidTokenIds) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetValidTokenIds: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetValidTokenIds: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidTokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ValidTokenIds = append(m.ValidTokenIds, &UintRange{}) + if err := m.ValidTokenIds[len(m.ValidTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateValidTokenIds", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateValidTokenIds = append(m.CanUpdateValidTokenIds, &TokenIdsActionPermission{}) + if err := m.CanUpdateValidTokenIds[len(m.CanUpdateValidTokenIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetValidTokenIdsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetValidTokenIdsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetValidTokenIdsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetManager) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetManager: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetManager: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateManager", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateManager = append(m.CanUpdateManager, &ActionPermission{}) + if err := m.CanUpdateManager[len(m.CanUpdateManager)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetManagerResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetManagerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetManagerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetCollectionMetadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetCollectionMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetCollectionMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CollectionMetadata == nil { + m.CollectionMetadata = &CollectionMetadata{} + } + if err := m.CollectionMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateCollectionMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateCollectionMetadata = append(m.CanUpdateCollectionMetadata, &ActionPermission{}) + if err := m.CanUpdateCollectionMetadata[len(m.CanUpdateCollectionMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetCollectionMetadataResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetCollectionMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetCollectionMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetTokenMetadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetTokenMetadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetTokenMetadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TokenMetadata = append(m.TokenMetadata, &TokenMetadata{}) + if err := m.TokenMetadata[len(m.TokenMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateTokenMetadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateTokenMetadata = append(m.CanUpdateTokenMetadata, &TokenIdsActionPermission{}) + if err := m.CanUpdateTokenMetadata[len(m.CanUpdateTokenMetadata)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetTokenMetadataResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetTokenMetadataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetTokenMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetCustomData) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetCustomData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetCustomData: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomData", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CustomData = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateCustomData", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateCustomData = append(m.CanUpdateCustomData, &ActionPermission{}) + if err := m.CanUpdateCustomData[len(m.CanUpdateCustomData)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetCustomDataResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetCustomDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetCustomDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetStandards) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetStandards: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetStandards: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Standards", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Standards = append(m.Standards, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateStandards", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateStandards = append(m.CanUpdateStandards, &ActionPermission{}) + if err := m.CanUpdateStandards[len(m.CanUpdateStandards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetStandardsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetStandardsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetStandardsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetCollectionApprovals) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetCollectionApprovals: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetCollectionApprovals: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CollectionApprovals = append(m.CollectionApprovals, &CollectionApproval{}) + if err := m.CollectionApprovals[len(m.CollectionApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanUpdateCollectionApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanUpdateCollectionApprovals = append(m.CanUpdateCollectionApprovals, &CollectionApprovalPermission{}) + if err := m.CanUpdateCollectionApprovals[len(m.CanUpdateCollectionApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetCollectionApprovalsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetCollectionApprovalsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetCollectionApprovalsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalChanges", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalChanges = append(m.ApprovalChanges, &ApprovalChange{}) + if err := m.ApprovalChanges[len(m.ApprovalChanges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReviewItems", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReviewItems = append(m.ReviewItems, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetIsArchived) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetIsArchived: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetIsArchived: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsArchived = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CanArchiveCollection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CanArchiveCollection = append(m.CanArchiveCollection, &ActionPermission{}) + if err := m.CanArchiveCollection[len(m.CanArchiveCollection)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetIsArchivedResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetIsArchivedResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetIsArchivedResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetReservedProtocolAddress) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetReservedProtocolAddress: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetReservedProtocolAddress: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsReservedProtocol", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsReservedProtocol = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSetReservedProtocolAddressResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSetReservedProtocolAddressResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSetReservedProtocolAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCastVote) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCastVote: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCastVote: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CollectionId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproverAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApproverAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProposalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field YesWeight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.YesWeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgCastVoteResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgCastVoteResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCastVoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApprovalUsed) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApprovalUsed: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApprovalUsed: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApproverAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApproverAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CoinTransferProto) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CoinTransferProto: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CoinTransferProto: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsProtocolFee", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsProtocolFee = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ApprovalChange) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ApprovalChange: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApprovalChange: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ApprovalLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ApprovalLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/tokenization/types/v29/user_balance_store.pb.go b/x/tokenization/types/v29/user_balance_store.pb.go new file mode 100644 index 00000000..6254719f --- /dev/null +++ b/x/tokenization/types/v29/user_balance_store.pb.go @@ -0,0 +1,677 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: tokenization/v29/user_balance_store.proto + +package v29 + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// UserBalanceStore is the store for the user balances for a collection. +// +// It consists of a list of balances, a list of approved outgoing transfers, and a list of approved incoming transfers, +// as well as the permissions for updating the approved incoming/outgoing transfers. +// +// Upon initialization, all fields (minus the balances) are set to the defaults specified by the collection. +// +// The outgoing transfers can be used to allow / disallow transfers which are sent from this user. +// If a transfer has no match, then it is disallowed by default, unless from == initiatedBy (i.e. initiated by this user) +// and autoApproveSelfInitiatedOutgoingTransfers is set to true. +// +// The incoming transfers can be used to allow / disallow transfers which are sent to this user. +// If a transfer has no match, then it is disallowed by default, unless to == initiatedBy (i.e. initiated by this user) +// and autoApproveSelfInitiatedIncomingTransfers is set to true. +// +// Note that the user approved transfers are only checked if the collection approved transfers do not specify to override +// the user approved transfers. +// +// The permissions are used to determine whether the user can update the approved incoming/outgoing transfers and auto approvals. +type UserBalanceStore struct { + // The list of balances associated with this user. + Balances []*Balance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` + // The list of approved outgoing transfers for this user. + OutgoingApprovals []*UserOutgoingApproval `protobuf:"bytes,2,rep,name=outgoingApprovals,proto3" json:"outgoingApprovals,omitempty"` + // The list of approved incoming transfers for this user. + IncomingApprovals []*UserIncomingApproval `protobuf:"bytes,3,rep,name=incomingApprovals,proto3" json:"incomingApprovals,omitempty"` + // Whether to auto-approve self-initiated outgoing transfers for this user (i.e. from == initiatedBy). + AutoApproveSelfInitiatedOutgoingTransfers bool `protobuf:"varint,4,opt,name=autoApproveSelfInitiatedOutgoingTransfers,proto3" json:"autoApproveSelfInitiatedOutgoingTransfers,omitempty"` + // Whether to auto-approve self-initiated incoming transfers for this user (i.e. to == initiatedBy). + AutoApproveSelfInitiatedIncomingTransfers bool `protobuf:"varint,5,opt,name=autoApproveSelfInitiatedIncomingTransfers,proto3" json:"autoApproveSelfInitiatedIncomingTransfers,omitempty"` + // Whether to auto-approve all incoming transfers by default. + // This is just shorthand for adding an accept everything incoming approval + // with no restrictions. + AutoApproveAllIncomingTransfers bool `protobuf:"varint,6,opt,name=autoApproveAllIncomingTransfers,proto3" json:"autoApproveAllIncomingTransfers,omitempty"` + // The permissions for this user's actions and transfers. + UserPermissions *UserPermissions `protobuf:"bytes,7,opt,name=userPermissions,proto3" json:"userPermissions,omitempty"` +} + +func (m *UserBalanceStore) Reset() { *m = UserBalanceStore{} } +func (m *UserBalanceStore) String() string { return proto.CompactTextString(m) } +func (*UserBalanceStore) ProtoMessage() {} +func (*UserBalanceStore) Descriptor() ([]byte, []int) { + return fileDescriptor_780c01e9fda131c4, []int{0} +} +func (m *UserBalanceStore) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserBalanceStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UserBalanceStore.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *UserBalanceStore) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserBalanceStore.Merge(m, src) +} +func (m *UserBalanceStore) XXX_Size() int { + return m.Size() +} +func (m *UserBalanceStore) XXX_DiscardUnknown() { + xxx_messageInfo_UserBalanceStore.DiscardUnknown(m) +} + +var xxx_messageInfo_UserBalanceStore proto.InternalMessageInfo + +func (m *UserBalanceStore) GetBalances() []*Balance { + if m != nil { + return m.Balances + } + return nil +} + +func (m *UserBalanceStore) GetOutgoingApprovals() []*UserOutgoingApproval { + if m != nil { + return m.OutgoingApprovals + } + return nil +} + +func (m *UserBalanceStore) GetIncomingApprovals() []*UserIncomingApproval { + if m != nil { + return m.IncomingApprovals + } + return nil +} + +func (m *UserBalanceStore) GetAutoApproveSelfInitiatedOutgoingTransfers() bool { + if m != nil { + return m.AutoApproveSelfInitiatedOutgoingTransfers + } + return false +} + +func (m *UserBalanceStore) GetAutoApproveSelfInitiatedIncomingTransfers() bool { + if m != nil { + return m.AutoApproveSelfInitiatedIncomingTransfers + } + return false +} + +func (m *UserBalanceStore) GetAutoApproveAllIncomingTransfers() bool { + if m != nil { + return m.AutoApproveAllIncomingTransfers + } + return false +} + +func (m *UserBalanceStore) GetUserPermissions() *UserPermissions { + if m != nil { + return m.UserPermissions + } + return nil +} + +func init() { + proto.RegisterType((*UserBalanceStore)(nil), "tokenization.v29.UserBalanceStore") +} + +func init() { + proto.RegisterFile("tokenization/v29/user_balance_store.proto", fileDescriptor_780c01e9fda131c4) +} + +var fileDescriptor_780c01e9fda131c4 = []byte{ + // 378 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x31, 0x4f, 0xf2, 0x40, + 0x18, 0xc7, 0xe9, 0x0b, 0x2f, 0x2f, 0x39, 0x86, 0x17, 0x1b, 0x87, 0xca, 0x50, 0x2a, 0x83, 0x81, + 0xa5, 0x4d, 0x6a, 0x1c, 0x48, 0x5c, 0x60, 0x92, 0x38, 0x68, 0x0a, 0x3a, 0x18, 0x13, 0x72, 0x2d, + 0x47, 0xb9, 0x58, 0xee, 0x9a, 0xbb, 0x2b, 0x51, 0x3f, 0x85, 0x1f, 0x8b, 0x91, 0xd1, 0xd1, 0xc0, + 0x17, 0x31, 0x2d, 0xad, 0x40, 0xcf, 0xa0, 0xdb, 0x93, 0xf6, 0xf7, 0xff, 0x3d, 0x4f, 0x2e, 0x7f, + 0xd0, 0x16, 0xf4, 0x09, 0x11, 0xfc, 0x0a, 0x05, 0xa6, 0xc4, 0x9a, 0xdb, 0x1d, 0x2b, 0xe2, 0x88, + 0x8d, 0x5c, 0x18, 0x40, 0xe2, 0xa1, 0x11, 0x17, 0x94, 0x21, 0x33, 0x64, 0x54, 0x50, 0xb5, 0xb6, + 0x8b, 0x9a, 0x73, 0xbb, 0x53, 0x3f, 0xf6, 0xa9, 0x4f, 0x93, 0x9f, 0x56, 0x3c, 0x6d, 0xb8, 0x7a, + 0x43, 0x52, 0xa6, 0x36, 0x9e, 0x02, 0x4d, 0x09, 0x08, 0x11, 0x9b, 0x61, 0xce, 0x31, 0x25, 0x19, + 0x63, 0x48, 0x0c, 0x0c, 0x43, 0x46, 0xe7, 0x30, 0x48, 0x89, 0xe6, 0xa2, 0x04, 0x6a, 0x77, 0x1c, + 0xb1, 0xde, 0x46, 0x3e, 0x88, 0x2f, 0x55, 0x2f, 0x40, 0x25, 0x5b, 0xa6, 0x29, 0x46, 0xb1, 0x55, + 0xb5, 0x4f, 0xcc, 0xfc, 0xd9, 0x66, 0x9a, 0x70, 0xbe, 0x50, 0x75, 0x08, 0x8e, 0x68, 0x24, 0x7c, + 0x8a, 0x89, 0xdf, 0xcd, 0xd6, 0x68, 0x7f, 0x92, 0xfc, 0x99, 0x9c, 0x8f, 0xb7, 0xde, 0xe4, 0x70, + 0x47, 0x16, 0xc4, 0x56, 0x4c, 0x3c, 0x3a, 0xdb, 0xb3, 0x16, 0x0f, 0x59, 0xfb, 0x39, 0xdc, 0x91, + 0x05, 0xea, 0x23, 0x68, 0xc3, 0x48, 0xd0, 0xcd, 0x07, 0x34, 0x40, 0xc1, 0xa4, 0x4f, 0xb0, 0xc0, + 0x50, 0xa0, 0x71, 0x76, 0xd4, 0x90, 0x41, 0xc2, 0x27, 0x88, 0x71, 0xad, 0x64, 0x28, 0xad, 0x8a, + 0xf3, 0xfb, 0xc0, 0x21, 0x7b, 0x76, 0xdc, 0xd6, 0xfe, 0xf7, 0xb0, 0x5d, 0x0a, 0xa8, 0x57, 0xa0, + 0xb1, 0x03, 0x77, 0x83, 0x40, 0x76, 0x96, 0x13, 0xe7, 0x4f, 0x98, 0x7a, 0x0d, 0xfe, 0xc7, 0x45, + 0xbd, 0xdd, 0x16, 0x47, 0xfb, 0x67, 0x28, 0xad, 0xaa, 0x7d, 0xfa, 0xfd, 0xcb, 0xee, 0x80, 0x4e, + 0x3e, 0xd9, 0xbb, 0x5f, 0xac, 0x74, 0x65, 0xb9, 0xd2, 0x95, 0x8f, 0x95, 0xae, 0xbc, 0xad, 0xf5, + 0xc2, 0x72, 0xad, 0x17, 0xde, 0xd7, 0x7a, 0xe1, 0xe1, 0xd2, 0xc7, 0x62, 0x1a, 0xb9, 0xa6, 0x47, + 0x67, 0x96, 0x8b, 0x85, 0x0b, 0xc7, 0x3e, 0xe2, 0xdb, 0xc9, 0x9b, 0x42, 0x4c, 0xac, 0x67, 0x6b, + 0xaf, 0xac, 0xe2, 0x25, 0x44, 0x3c, 0xae, 0xac, 0x5b, 0x4e, 0x9a, 0x7a, 0xfe, 0x19, 0x00, 0x00, + 0xff, 0xff, 0xce, 0x5c, 0x43, 0x57, 0x65, 0x03, 0x00, 0x00, +} + +func (m *UserBalanceStore) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserBalanceStore) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserBalanceStore) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.UserPermissions != nil { + { + size, err := m.UserPermissions.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUserBalanceStore(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.AutoApproveAllIncomingTransfers { + i-- + if m.AutoApproveAllIncomingTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.AutoApproveSelfInitiatedIncomingTransfers { + i-- + if m.AutoApproveSelfInitiatedIncomingTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.AutoApproveSelfInitiatedOutgoingTransfers { + i-- + if m.AutoApproveSelfInitiatedOutgoingTransfers { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.IncomingApprovals) > 0 { + for iNdEx := len(m.IncomingApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.IncomingApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUserBalanceStore(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.OutgoingApprovals) > 0 { + for iNdEx := len(m.OutgoingApprovals) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OutgoingApprovals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUserBalanceStore(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Balances) > 0 { + for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintUserBalanceStore(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintUserBalanceStore(dAtA []byte, offset int, v uint64) int { + offset -= sovUserBalanceStore(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *UserBalanceStore) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Balances) > 0 { + for _, e := range m.Balances { + l = e.Size() + n += 1 + l + sovUserBalanceStore(uint64(l)) + } + } + if len(m.OutgoingApprovals) > 0 { + for _, e := range m.OutgoingApprovals { + l = e.Size() + n += 1 + l + sovUserBalanceStore(uint64(l)) + } + } + if len(m.IncomingApprovals) > 0 { + for _, e := range m.IncomingApprovals { + l = e.Size() + n += 1 + l + sovUserBalanceStore(uint64(l)) + } + } + if m.AutoApproveSelfInitiatedOutgoingTransfers { + n += 2 + } + if m.AutoApproveSelfInitiatedIncomingTransfers { + n += 2 + } + if m.AutoApproveAllIncomingTransfers { + n += 2 + } + if m.UserPermissions != nil { + l = m.UserPermissions.Size() + n += 1 + l + sovUserBalanceStore(uint64(l)) + } + return n +} + +func sovUserBalanceStore(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozUserBalanceStore(x uint64) (n int) { + return sovUserBalanceStore(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *UserBalanceStore) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserBalanceStore: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserBalanceStore: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUserBalanceStore + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUserBalanceStore + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Balances = append(m.Balances, &Balance{}) + if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OutgoingApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUserBalanceStore + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUserBalanceStore + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OutgoingApprovals = append(m.OutgoingApprovals, &UserOutgoingApproval{}) + if err := m.OutgoingApprovals[len(m.OutgoingApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IncomingApprovals", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUserBalanceStore + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUserBalanceStore + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IncomingApprovals = append(m.IncomingApprovals, &UserIncomingApproval{}) + if err := m.IncomingApprovals[len(m.IncomingApprovals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoApproveSelfInitiatedOutgoingTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AutoApproveSelfInitiatedOutgoingTransfers = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoApproveSelfInitiatedIncomingTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AutoApproveSelfInitiatedIncomingTransfers = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutoApproveAllIncomingTransfers", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AutoApproveAllIncomingTransfers = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserPermissions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthUserBalanceStore + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthUserBalanceStore + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UserPermissions == nil { + m.UserPermissions = &UserPermissions{} + } + if err := m.UserPermissions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipUserBalanceStore(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthUserBalanceStore + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipUserBalanceStore(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowUserBalanceStore + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthUserBalanceStore + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupUserBalanceStore + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthUserBalanceStore + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthUserBalanceStore = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowUserBalanceStore = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupUserBalanceStore = fmt.Errorf("proto: unexpected end of group") +)