diff --git a/api/poktroll/migration/genesis.pulsar.go b/api/poktroll/migration/genesis.pulsar.go index afcb86517..ee10a0299 100644 --- a/api/poktroll/migration/genesis.pulsar.go +++ b/api/poktroll/migration/genesis.pulsar.go @@ -656,34 +656,33 @@ var file_poktroll_migration_genesis_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x30, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0xbc, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x6d, 0x0a, 0x19, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, - 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, - 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, - 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x19, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, - 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x73, - 0x74, 0x42, 0xb8, 0x01, 0xd8, 0xe2, 0x1e, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, + 0x1a, 0x26, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x5f, 0x6f, 0x6e, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x6e, + 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x6f, 0x6b, 0x74, + 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x6d, 0x0a, 0x19, 0x6d, 0x6f, 0x72, 0x73, + 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x4d, 0x58, 0xaa, 0x02, 0x12, 0x50, 0x6f, - 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0xca, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x1e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, - 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, - 0x6c, 0x3a, 0x3a, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x19, 0x6d, 0x6f, + 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb8, 0x01, 0xd8, 0xe2, 0x1e, 0x01, 0x0a, 0x16, + 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x4d, + 0x58, 0xaa, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x4d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x1e, 0x50, 0x6f, + 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x50, + 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -720,7 +719,7 @@ func file_poktroll_migration_genesis_proto_init() { return } file_poktroll_migration_params_proto_init() - file_poktroll_migration_morse_claimable_account_proto_init() + file_poktroll_migration_morse_onchain_proto_init() if !protoimpl.UnsafeEnabled { file_poktroll_migration_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { diff --git a/api/poktroll/migration/morse_claimable_account.pulsar.go b/api/poktroll/migration/morse_claimable_account.pulsar.go deleted file mode 100644 index a33026fe5..000000000 --- a/api/poktroll/migration/morse_claimable_account.pulsar.go +++ /dev/null @@ -1,782 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package migration - -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_MorseClaimableAccount protoreflect.MessageDescriptor - fd_MorseClaimableAccount_address protoreflect.FieldDescriptor - fd_MorseClaimableAccount_publicKey protoreflect.FieldDescriptor - fd_MorseClaimableAccount_totalTokens protoreflect.FieldDescriptor - fd_MorseClaimableAccount_claimed protoreflect.FieldDescriptor -) - -func init() { - file_poktroll_migration_morse_claimable_account_proto_init() - md_MorseClaimableAccount = File_poktroll_migration_morse_claimable_account_proto.Messages().ByName("MorseClaimableAccount") - fd_MorseClaimableAccount_address = md_MorseClaimableAccount.Fields().ByName("address") - fd_MorseClaimableAccount_publicKey = md_MorseClaimableAccount.Fields().ByName("publicKey") - fd_MorseClaimableAccount_totalTokens = md_MorseClaimableAccount.Fields().ByName("totalTokens") - fd_MorseClaimableAccount_claimed = md_MorseClaimableAccount.Fields().ByName("claimed") -} - -var _ protoreflect.Message = (*fastReflection_MorseClaimableAccount)(nil) - -type fastReflection_MorseClaimableAccount MorseClaimableAccount - -func (x *MorseClaimableAccount) ProtoReflect() protoreflect.Message { - return (*fastReflection_MorseClaimableAccount)(x) -} - -func (x *MorseClaimableAccount) slowProtoReflect() protoreflect.Message { - mi := &file_poktroll_migration_morse_claimable_account_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_MorseClaimableAccount_messageType fastReflection_MorseClaimableAccount_messageType -var _ protoreflect.MessageType = fastReflection_MorseClaimableAccount_messageType{} - -type fastReflection_MorseClaimableAccount_messageType struct{} - -func (x fastReflection_MorseClaimableAccount_messageType) Zero() protoreflect.Message { - return (*fastReflection_MorseClaimableAccount)(nil) -} -func (x fastReflection_MorseClaimableAccount_messageType) New() protoreflect.Message { - return new(fastReflection_MorseClaimableAccount) -} -func (x fastReflection_MorseClaimableAccount_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MorseClaimableAccount -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MorseClaimableAccount) Descriptor() protoreflect.MessageDescriptor { - return md_MorseClaimableAccount -} - -// 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_MorseClaimableAccount) Type() protoreflect.MessageType { - return _fastReflection_MorseClaimableAccount_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MorseClaimableAccount) New() protoreflect.Message { - return new(fastReflection_MorseClaimableAccount) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MorseClaimableAccount) Interface() protoreflect.ProtoMessage { - return (*MorseClaimableAccount)(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_MorseClaimableAccount) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_MorseClaimableAccount_address, value) { - return - } - } - if x.PublicKey != "" { - value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_MorseClaimableAccount_publicKey, value) { - return - } - } - if x.TotalTokens != "" { - value := protoreflect.ValueOfString(x.TotalTokens) - if !f(fd_MorseClaimableAccount_totalTokens, value) { - return - } - } - if x.Claimed != false { - value := protoreflect.ValueOfBool(x.Claimed) - if !f(fd_MorseClaimableAccount_claimed, 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_MorseClaimableAccount) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "poktroll.migration.MorseClaimableAccount.address": - return x.Address != "" - case "poktroll.migration.MorseClaimableAccount.publicKey": - return x.PublicKey != "" - case "poktroll.migration.MorseClaimableAccount.totalTokens": - return x.TotalTokens != "" - case "poktroll.migration.MorseClaimableAccount.claimed": - return x.Claimed != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) - } - panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount 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_MorseClaimableAccount) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "poktroll.migration.MorseClaimableAccount.address": - x.Address = "" - case "poktroll.migration.MorseClaimableAccount.publicKey": - x.PublicKey = "" - case "poktroll.migration.MorseClaimableAccount.totalTokens": - x.TotalTokens = "" - case "poktroll.migration.MorseClaimableAccount.claimed": - x.Claimed = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) - } - panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount 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_MorseClaimableAccount) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "poktroll.migration.MorseClaimableAccount.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "poktroll.migration.MorseClaimableAccount.publicKey": - value := x.PublicKey - return protoreflect.ValueOfString(value) - case "poktroll.migration.MorseClaimableAccount.totalTokens": - value := x.TotalTokens - return protoreflect.ValueOfString(value) - case "poktroll.migration.MorseClaimableAccount.claimed": - value := x.Claimed - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) - } - panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount 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_MorseClaimableAccount) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "poktroll.migration.MorseClaimableAccount.address": - x.Address = value.Interface().(string) - case "poktroll.migration.MorseClaimableAccount.publicKey": - x.PublicKey = value.Interface().(string) - case "poktroll.migration.MorseClaimableAccount.totalTokens": - x.TotalTokens = value.Interface().(string) - case "poktroll.migration.MorseClaimableAccount.claimed": - x.Claimed = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) - } - panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount 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_MorseClaimableAccount) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "poktroll.migration.MorseClaimableAccount.address": - panic(fmt.Errorf("field address of message poktroll.migration.MorseClaimableAccount is not mutable")) - case "poktroll.migration.MorseClaimableAccount.publicKey": - panic(fmt.Errorf("field publicKey of message poktroll.migration.MorseClaimableAccount is not mutable")) - case "poktroll.migration.MorseClaimableAccount.totalTokens": - panic(fmt.Errorf("field totalTokens of message poktroll.migration.MorseClaimableAccount is not mutable")) - case "poktroll.migration.MorseClaimableAccount.claimed": - panic(fmt.Errorf("field claimed of message poktroll.migration.MorseClaimableAccount is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) - } - panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount 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_MorseClaimableAccount) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "poktroll.migration.MorseClaimableAccount.address": - return protoreflect.ValueOfString("") - case "poktroll.migration.MorseClaimableAccount.publicKey": - return protoreflect.ValueOfString("") - case "poktroll.migration.MorseClaimableAccount.totalTokens": - return protoreflect.ValueOfString("") - case "poktroll.migration.MorseClaimableAccount.claimed": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) - } - panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount 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_MorseClaimableAccount) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in poktroll.migration.MorseClaimableAccount", 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_MorseClaimableAccount) 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_MorseClaimableAccount) 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_MorseClaimableAccount) 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_MorseClaimableAccount) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MorseClaimableAccount) - 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.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.PublicKey) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.TotalTokens) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Claimed { - 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().(*MorseClaimableAccount) - 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.Claimed { - i-- - if x.Claimed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(x.TotalTokens) > 0 { - i -= len(x.TotalTokens) - copy(dAtA[i:], x.TotalTokens) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalTokens))) - i-- - dAtA[i] = 0x1a - } - if len(x.PublicKey) > 0 { - i -= len(x.PublicKey) - copy(dAtA[i:], x.PublicKey) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKey))) - i-- - dAtA[i] = 0x12 - } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - 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().(*MorseClaimableAccount) - 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: MorseClaimableAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MorseClaimableAccount: 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 Address", 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.Address = 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 PublicKey", 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.PublicKey = 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 TotalTokens", 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.TotalTokens = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Claimed", 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.Claimed = 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, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: poktroll/migration/morse_claimable_account.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 MorseClaimableAccount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` - TotalTokens string `protobuf:"bytes,3,opt,name=totalTokens,proto3" json:"totalTokens,omitempty"` - Claimed bool `protobuf:"varint,4,opt,name=claimed,proto3" json:"claimed,omitempty"` -} - -func (x *MorseClaimableAccount) Reset() { - *x = MorseClaimableAccount{} - if protoimpl.UnsafeEnabled { - mi := &file_poktroll_migration_morse_claimable_account_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MorseClaimableAccount) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MorseClaimableAccount) ProtoMessage() {} - -// Deprecated: Use MorseClaimableAccount.ProtoReflect.Descriptor instead. -func (*MorseClaimableAccount) Descriptor() ([]byte, []int) { - return file_poktroll_migration_morse_claimable_account_proto_rawDescGZIP(), []int{0} -} - -func (x *MorseClaimableAccount) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *MorseClaimableAccount) GetPublicKey() string { - if x != nil { - return x.PublicKey - } - return "" -} - -func (x *MorseClaimableAccount) GetTotalTokens() string { - if x != nil { - return x.TotalTokens - } - return "" -} - -func (x *MorseClaimableAccount) GetClaimed() bool { - if x != nil { - return x.Claimed - } - return false -} - -var File_poktroll_migration_morse_claimable_account_proto protoreflect.FileDescriptor - -var file_poktroll_migration_morse_claimable_account_proto_rawDesc = []byte{ - 0x0a, 0x30, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x12, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8b, 0x01, 0x0a, 0x15, 0x4d, 0x6f, 0x72, 0x73, 0x65, - 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, - 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, - 0x61, 0x69, 0x6d, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x63, 0x6c, 0x61, - 0x69, 0x6d, 0x65, 0x64, 0x42, 0xc2, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, - 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0x1a, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x4d, 0x58, 0xaa, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, - 0x6f, 0x6c, 0x6c, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x12, - 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0xe2, 0x02, 0x1e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_poktroll_migration_morse_claimable_account_proto_rawDescOnce sync.Once - file_poktroll_migration_morse_claimable_account_proto_rawDescData = file_poktroll_migration_morse_claimable_account_proto_rawDesc -) - -func file_poktroll_migration_morse_claimable_account_proto_rawDescGZIP() []byte { - file_poktroll_migration_morse_claimable_account_proto_rawDescOnce.Do(func() { - file_poktroll_migration_morse_claimable_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_poktroll_migration_morse_claimable_account_proto_rawDescData) - }) - return file_poktroll_migration_morse_claimable_account_proto_rawDescData -} - -var file_poktroll_migration_morse_claimable_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_poktroll_migration_morse_claimable_account_proto_goTypes = []interface{}{ - (*MorseClaimableAccount)(nil), // 0: poktroll.migration.MorseClaimableAccount -} -var file_poktroll_migration_morse_claimable_account_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_poktroll_migration_morse_claimable_account_proto_init() } -func file_poktroll_migration_morse_claimable_account_proto_init() { - if File_poktroll_migration_morse_claimable_account_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_poktroll_migration_morse_claimable_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MorseClaimableAccount); 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_poktroll_migration_morse_claimable_account_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_poktroll_migration_morse_claimable_account_proto_goTypes, - DependencyIndexes: file_poktroll_migration_morse_claimable_account_proto_depIdxs, - MessageInfos: file_poktroll_migration_morse_claimable_account_proto_msgTypes, - }.Build() - File_poktroll_migration_morse_claimable_account_proto = out.File - file_poktroll_migration_morse_claimable_account_proto_rawDesc = nil - file_poktroll_migration_morse_claimable_account_proto_goTypes = nil - file_poktroll_migration_morse_claimable_account_proto_depIdxs = nil -} diff --git a/api/poktroll/migration/morse_offchain.pulsar.go b/api/poktroll/migration/morse_offchain.pulsar.go index 7c367778c..e62081937 100644 --- a/api/poktroll/migration/morse_offchain.pulsar.go +++ b/api/poktroll/migration/morse_offchain.pulsar.go @@ -2,7 +2,9 @@ package migration import ( + v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" 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" @@ -4394,6 +4396,1067 @@ func (x *fastReflection_MorseValidator) ProtoMethods() *protoiface.Methods { } } +var _ protoreflect.List = (*_MorseAccount_3_list)(nil) + +type _MorseAccount_3_list struct { + list *[]*v1beta1.Coin +} + +func (x *_MorseAccount_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MorseAccount_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MorseAccount_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) + (*x.list)[i] = concreteValue +} + +func (x *_MorseAccount_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MorseAccount_3_list) AppendMutable() protoreflect.Value { + v := new(v1beta1.Coin) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MorseAccount_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MorseAccount_3_list) NewElement() protoreflect.Value { + v := new(v1beta1.Coin) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MorseAccount_3_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MorseAccount protoreflect.MessageDescriptor + fd_MorseAccount_address protoreflect.FieldDescriptor + fd_MorseAccount_pub_key protoreflect.FieldDescriptor + fd_MorseAccount_coins protoreflect.FieldDescriptor +) + +func init() { + file_poktroll_migration_morse_offchain_proto_init() + md_MorseAccount = File_poktroll_migration_morse_offchain_proto.Messages().ByName("MorseAccount") + fd_MorseAccount_address = md_MorseAccount.Fields().ByName("address") + fd_MorseAccount_pub_key = md_MorseAccount.Fields().ByName("pub_key") + fd_MorseAccount_coins = md_MorseAccount.Fields().ByName("coins") +} + +var _ protoreflect.Message = (*fastReflection_MorseAccount)(nil) + +type fastReflection_MorseAccount MorseAccount + +func (x *MorseAccount) ProtoReflect() protoreflect.Message { + return (*fastReflection_MorseAccount)(x) +} + +func (x *MorseAccount) slowProtoReflect() protoreflect.Message { + mi := &file_poktroll_migration_morse_offchain_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_MorseAccount_messageType fastReflection_MorseAccount_messageType +var _ protoreflect.MessageType = fastReflection_MorseAccount_messageType{} + +type fastReflection_MorseAccount_messageType struct{} + +func (x fastReflection_MorseAccount_messageType) Zero() protoreflect.Message { + return (*fastReflection_MorseAccount)(nil) +} +func (x fastReflection_MorseAccount_messageType) New() protoreflect.Message { + return new(fastReflection_MorseAccount) +} +func (x fastReflection_MorseAccount_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MorseAccount +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MorseAccount) Descriptor() protoreflect.MessageDescriptor { + return md_MorseAccount +} + +// 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_MorseAccount) Type() protoreflect.MessageType { + return _fastReflection_MorseAccount_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MorseAccount) New() protoreflect.Message { + return new(fastReflection_MorseAccount) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MorseAccount) Interface() protoreflect.ProtoMessage { + return (*MorseAccount)(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_MorseAccount) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Address) != 0 { + value := protoreflect.ValueOfBytes(x.Address) + if !f(fd_MorseAccount_address, value) { + return + } + } + if x.PubKey != nil { + value := protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) + if !f(fd_MorseAccount_pub_key, value) { + return + } + } + if len(x.Coins) != 0 { + value := protoreflect.ValueOfList(&_MorseAccount_3_list{list: &x.Coins}) + if !f(fd_MorseAccount_coins, 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_MorseAccount) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "poktroll.migration.MorseAccount.address": + return len(x.Address) != 0 + case "poktroll.migration.MorseAccount.pub_key": + return x.PubKey != nil + case "poktroll.migration.MorseAccount.coins": + return len(x.Coins) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + } + panic(fmt.Errorf("message poktroll.migration.MorseAccount 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_MorseAccount) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "poktroll.migration.MorseAccount.address": + x.Address = nil + case "poktroll.migration.MorseAccount.pub_key": + x.PubKey = nil + case "poktroll.migration.MorseAccount.coins": + x.Coins = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + } + panic(fmt.Errorf("message poktroll.migration.MorseAccount 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_MorseAccount) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "poktroll.migration.MorseAccount.address": + value := x.Address + return protoreflect.ValueOfBytes(value) + case "poktroll.migration.MorseAccount.pub_key": + value := x.PubKey + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "poktroll.migration.MorseAccount.coins": + if len(x.Coins) == 0 { + return protoreflect.ValueOfList(&_MorseAccount_3_list{}) + } + listValue := &_MorseAccount_3_list{list: &x.Coins} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + } + panic(fmt.Errorf("message poktroll.migration.MorseAccount 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_MorseAccount) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "poktroll.migration.MorseAccount.address": + x.Address = value.Bytes() + case "poktroll.migration.MorseAccount.pub_key": + x.PubKey = value.Message().Interface().(*MorsePublicKey) + case "poktroll.migration.MorseAccount.coins": + lv := value.List() + clv := lv.(*_MorseAccount_3_list) + x.Coins = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + } + panic(fmt.Errorf("message poktroll.migration.MorseAccount 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_MorseAccount) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "poktroll.migration.MorseAccount.pub_key": + if x.PubKey == nil { + x.PubKey = new(MorsePublicKey) + } + return protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) + case "poktroll.migration.MorseAccount.coins": + if x.Coins == nil { + x.Coins = []*v1beta1.Coin{} + } + value := &_MorseAccount_3_list{list: &x.Coins} + return protoreflect.ValueOfList(value) + case "poktroll.migration.MorseAccount.address": + panic(fmt.Errorf("field address of message poktroll.migration.MorseAccount is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + } + panic(fmt.Errorf("message poktroll.migration.MorseAccount 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_MorseAccount) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "poktroll.migration.MorseAccount.address": + return protoreflect.ValueOfBytes(nil) + case "poktroll.migration.MorseAccount.pub_key": + m := new(MorsePublicKey) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "poktroll.migration.MorseAccount.coins": + list := []*v1beta1.Coin{} + return protoreflect.ValueOfList(&_MorseAccount_3_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + } + panic(fmt.Errorf("message poktroll.migration.MorseAccount 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_MorseAccount) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in poktroll.migration.MorseAccount", 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_MorseAccount) 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_MorseAccount) 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_MorseAccount) 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_MorseAccount) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MorseAccount) + 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.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.PubKey != nil { + l = options.Size(x.PubKey) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Coins) > 0 { + for _, e := range x.Coins { + 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().(*MorseAccount) + 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.Coins) > 0 { + for iNdEx := len(x.Coins) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Coins[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 x.PubKey != nil { + encoded, err := options.Marshal(x.PubKey) + 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.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + 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().(*MorseAccount) + 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: MorseAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MorseAccount: 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 Address", wireType) + } + var byteLen 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.Address = append(x.Address[:0], dAtA[iNdEx:postIndex]...) + if x.Address == nil { + x.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PubKey", 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.PubKey == nil { + x.PubKey = &MorsePublicKey{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PubKey); 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 Coins", 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.Coins = append(x.Coins, &v1beta1.Coin{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Coins[len(x.Coins)-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 ( + md_MorsePublicKey protoreflect.MessageDescriptor + fd_MorsePublicKey_value protoreflect.FieldDescriptor +) + +func init() { + file_poktroll_migration_morse_offchain_proto_init() + md_MorsePublicKey = File_poktroll_migration_morse_offchain_proto.Messages().ByName("MorsePublicKey") + fd_MorsePublicKey_value = md_MorsePublicKey.Fields().ByName("value") +} + +var _ protoreflect.Message = (*fastReflection_MorsePublicKey)(nil) + +type fastReflection_MorsePublicKey MorsePublicKey + +func (x *MorsePublicKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_MorsePublicKey)(x) +} + +func (x *MorsePublicKey) slowProtoReflect() protoreflect.Message { + mi := &file_poktroll_migration_morse_offchain_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_MorsePublicKey_messageType fastReflection_MorsePublicKey_messageType +var _ protoreflect.MessageType = fastReflection_MorsePublicKey_messageType{} + +type fastReflection_MorsePublicKey_messageType struct{} + +func (x fastReflection_MorsePublicKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_MorsePublicKey)(nil) +} +func (x fastReflection_MorsePublicKey_messageType) New() protoreflect.Message { + return new(fastReflection_MorsePublicKey) +} +func (x fastReflection_MorsePublicKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MorsePublicKey +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MorsePublicKey) Descriptor() protoreflect.MessageDescriptor { + return md_MorsePublicKey +} + +// 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_MorsePublicKey) Type() protoreflect.MessageType { + return _fastReflection_MorsePublicKey_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MorsePublicKey) New() protoreflect.Message { + return new(fastReflection_MorsePublicKey) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MorsePublicKey) Interface() protoreflect.ProtoMessage { + return (*MorsePublicKey)(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_MorsePublicKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Value) != 0 { + value := protoreflect.ValueOfBytes(x.Value) + if !f(fd_MorsePublicKey_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_MorsePublicKey) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "poktroll.migration.MorsePublicKey.value": + return len(x.Value) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) + } + panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "poktroll.migration.MorsePublicKey.value": + x.Value = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) + } + panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "poktroll.migration.MorsePublicKey.value": + value := x.Value + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) + } + panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "poktroll.migration.MorsePublicKey.value": + x.Value = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) + } + panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "poktroll.migration.MorsePublicKey.value": + panic(fmt.Errorf("field value of message poktroll.migration.MorsePublicKey is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) + } + panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "poktroll.migration.MorsePublicKey.value": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) + } + panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in poktroll.migration.MorsePublicKey", 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_MorsePublicKey) 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_MorsePublicKey) 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_MorsePublicKey) 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_MorsePublicKey) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MorsePublicKey) + 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.Value) + 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().(*MorsePublicKey) + 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.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 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().(*MorsePublicKey) + 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: MorsePublicKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MorsePublicKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 byteLen 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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 = append(x.Value[:0], dAtA[iNdEx:postIndex]...) + if x.Value == nil { + x.Value = []byte{} + } + 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 @@ -4848,6 +5911,101 @@ func (x *MorseValidator) GetStakedTokens() string { return "" } +// MorseAccount is an analog of the Morse ProtoBaseAccount type. +// It encapsulates the minimum information required to import accounts. +// +// See: https://github.com/pokt-network/pocket-core/blob/staging/proto/x/auth/auth.proto#L14. +type MorseAccount struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A hex-encoded representation of the address corresponding to a Morse application's ed25519 public key. + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // The ed25519 public key of the account. + PubKey *MorsePublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` + // The account balance; this does not include any actor stakes. + Coins []*v1beta1.Coin `protobuf:"bytes,3,rep,name=coins,proto3" json:"coins,omitempty"` +} + +func (x *MorseAccount) Reset() { + *x = MorseAccount{} + if protoimpl.UnsafeEnabled { + mi := &file_poktroll_migration_morse_offchain_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MorseAccount) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MorseAccount) ProtoMessage() {} + +// Deprecated: Use MorseAccount.ProtoReflect.Descriptor instead. +func (*MorseAccount) Descriptor() ([]byte, []int) { + return file_poktroll_migration_morse_offchain_proto_rawDescGZIP(), []int{8} +} + +func (x *MorseAccount) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + +func (x *MorseAccount) GetPubKey() *MorsePublicKey { + if x != nil { + return x.PubKey + } + return nil +} + +func (x *MorseAccount) GetCoins() []*v1beta1.Coin { + if x != nil { + return x.Coins + } + return nil +} + +// MorsePublicKey is required to conform to the encoding of the Morse state export. +// NB: All Morse account public keys will be ed25519 keys by definition. +type MorsePublicKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *MorsePublicKey) Reset() { + *x = MorsePublicKey{} + if protoimpl.UnsafeEnabled { + mi := &file_poktroll_migration_morse_offchain_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MorsePublicKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MorsePublicKey) ProtoMessage() {} + +// Deprecated: Use MorsePublicKey.ProtoReflect.Descriptor instead. +func (*MorsePublicKey) Descriptor() ([]byte, []int) { + return file_poktroll_migration_morse_offchain_proto_rawDescGZIP(), []int{9} +} + +func (x *MorsePublicKey) GetValue() []byte { + if x != nil { + return x.Value + } + return nil +} + var File_poktroll_migration_morse_offchain_proto protoreflect.FileDescriptor var file_poktroll_migration_morse_offchain_proto_rawDesc = []byte{ @@ -4856,115 +6014,141 @@ var file_poktroll_migration_morse_offchain_proto_rawDesc = []byte{ 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x5f, 0x6f, 0x6e, - 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x10, - 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x12, 0x27, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x0c, 0xea, 0xde, 0x1f, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, - 0x52, 0x07, 0x61, 0x70, 0x70, 0x48, 0x61, 0x73, 0x68, 0x12, 0x57, 0x0a, 0x09, 0x61, 0x70, 0x70, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x70, - 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, - 0x74, 0x41, 0x70, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x61, - 0x70, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x52, 0x08, 0x61, 0x70, 0x70, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x22, 0xe9, 0x01, 0x0a, 0x17, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x54, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x58, - 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x0f, 0xea, 0xde, 0x1f, 0x0b, - 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, - 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, - 0x65, 0x41, 0x75, 0x74, 0x68, 0x42, 0x08, 0xea, 0xde, 0x1f, 0x04, 0x61, 0x75, 0x74, 0x68, 0x52, - 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x37, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x50, 0x6f, 0x73, - 0x42, 0x07, 0xea, 0xde, 0x1f, 0x03, 0x70, 0x6f, 0x73, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x22, 0x6f, - 0x0a, 0x11, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x5a, 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x6f, 0x6b, 0x74, - 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, - 0x6f, 0x72, 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0x10, 0xea, 0xde, 0x1f, 0x0c, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x0c, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0x5b, 0x0a, 0x09, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x75, 0x74, 0x68, 0x12, 0x4e, 0x0a, 0x08, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, + 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, 0x1e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, + 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x5f, 0x6f, 0x6e, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x10, 0x4d, 0x6f, 0x72, 0x73, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x27, 0x0a, 0x08, 0x61, + 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0c, 0xea, + 0xde, 0x1f, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x52, 0x07, 0x61, 0x70, 0x70, + 0x48, 0x61, 0x73, 0x68, 0x12, 0x57, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, + 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, + 0x73, 0x65, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x41, 0x70, 0x70, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x42, 0x0d, 0xea, 0xde, 0x1f, 0x09, 0x61, 0x70, 0x70, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x08, 0x61, 0x70, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xe9, 0x01, + 0x0a, 0x17, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x74, 0x41, 0x70, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x75, 0x74, 0x68, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x0c, 0xea, 0xde, 0x1f, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x73, 0x0a, 0x10, - 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x75, 0x74, 0x68, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x1c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, - 0xea, 0xde, 0x1f, 0x04, 0x74, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x41, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x0f, 0xea, 0xde, 0x1f, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x75, 0x74, 0x68, + 0x42, 0x08, 0xea, 0xde, 0x1f, 0x04, 0x61, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, + 0x12, 0x37, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, - 0x09, 0xea, 0xde, 0x1f, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x5e, 0x0a, 0x08, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x12, 0x52, 0x0a, - 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x0e, 0xea, 0xde, 0x1f, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x73, 0x22, 0xe3, 0x02, 0x0a, 0x10, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x66, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x4c, 0xea, 0xde, 0x1f, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x0e, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xfa, 0xde, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x6f, - 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x42, - 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x42, 0x23, 0xea, 0xde, 0x1f, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, - 0x65, 0x79, 0xf2, 0xde, 0x1f, 0x11, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, - 0x65, 0x79, 0x12, 0x33, 0x0a, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x42, 0x1b, 0xea, 0xde, 0x1f, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0xf2, 0xde, - 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x22, 0x52, - 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x1b, 0xea, 0xde, 0x1f, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x22, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x0a, 0x0d, - 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x0a, 0xea, 0xde, 0x1f, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, - 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x3a, 0x08, 0x88, - 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xc3, 0x02, 0x0a, 0x0e, 0x4d, 0x6f, 0x72, 0x73, - 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x66, 0x0a, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x4c, 0xea, 0xde, 0x1f, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x0e, 0x79, 0x61, 0x6d, 0x6c, - 0x3a, 0x22, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xfa, 0xde, 0x1f, 0x2b, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, - 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x42, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x23, 0xea, 0xde, 0x1f, 0x0a, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0xf2, 0xde, 0x1f, 0x11, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x52, 0x09, 0x70, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x0a, 0xea, 0xde, 0x1f, 0x06, 0x6a, 0x61, 0x69, 0x6c, - 0x65, 0x64, 0x52, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x0a, 0xea, 0xde, 0x1f, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, - 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xea, 0xde, 0x1f, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x73, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x3a, - 0x0c, 0x88, 0xa0, 0x1f, 0x00, 0x98, 0xa0, 0x1f, 0x01, 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xbe, 0x01, - 0xd8, 0xe2, 0x1e, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, - 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x4d, 0x6f, - 0x72, 0x73, 0x65, 0x4f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x4d, 0x58, 0xaa, 0x02, 0x12, - 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0xca, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x1e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, - 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72, - 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x42, 0x07, 0xea, 0xde, 0x1f, + 0x03, 0x70, 0x6f, 0x73, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x22, 0x6f, 0x0a, 0x11, 0x4d, 0x6f, 0x72, + 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5a, + 0x0a, 0x0c, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x10, 0xea, 0xde, 0x1f, 0x0c, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0c, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x5b, 0x0a, 0x09, 0x4d, 0x6f, + 0x72, 0x73, 0x65, 0x41, 0x75, 0x74, 0x68, 0x12, 0x4e, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x6f, 0x6b, 0x74, + 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, + 0x6f, 0x72, 0x73, 0x65, 0x41, 0x75, 0x74, 0x68, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, + 0x0c, 0xea, 0xde, 0x1f, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x08, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x73, 0x0a, 0x10, 0x4d, 0x6f, 0x72, 0x73, 0x65, + 0x41, 0x75, 0x74, 0x68, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xea, 0xde, 0x1f, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, + 0x72, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x09, 0xea, 0xde, 0x1f, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5e, 0x0a, 0x08, + 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x12, 0x52, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, + 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x42, 0x0e, 0xea, 0xde, 0x1f, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, + 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x22, 0xe3, 0x02, 0x0a, + 0x10, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x66, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x42, 0x4c, 0xea, 0xde, 0x1f, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xf2, + 0xde, 0x1f, 0x0e, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x22, 0xfa, 0xde, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, + 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x42, 0x0a, 0x0a, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x23, 0xea, + 0xde, 0x1f, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0xf2, 0xde, 0x1f, + 0x11, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, + 0x79, 0x22, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x33, 0x0a, + 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x1b, 0xea, + 0xde, 0x1f, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0xf2, 0xde, 0x1f, 0x0d, 0x79, 0x61, 0x6d, + 0x6c, 0x3a, 0x22, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x22, 0x52, 0x06, 0x6a, 0x61, 0x69, 0x6c, + 0x65, 0x64, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x42, 0x1b, 0xea, 0xde, 0x1f, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0xf2, 0xde, + 0x1f, 0x0d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6b, 0x65, + 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, + 0xea, 0xde, 0x1f, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6b, + 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x3a, 0x08, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, + 0x1f, 0x01, 0x22, 0xc3, 0x02, 0x0a, 0x0e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x66, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x4c, 0xea, 0xde, 0x1f, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x0e, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0xfa, 0xde, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x6f, 0x6d, + 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x42, 0x0a, + 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x42, 0x23, 0xea, 0xde, 0x1f, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, + 0x79, 0xf2, 0xde, 0x1f, 0x11, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, + 0x79, 0x12, 0x22, 0x0a, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x42, 0x0a, 0xea, 0xde, 0x1f, 0x06, 0x6a, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x06, 0x6a, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x0a, 0xea, 0xde, 0x1f, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x0a, 0x0d, 0x73, 0x74, 0x61, + 0x6b, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x0a, 0xea, 0xde, 0x1f, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x52, 0x0c, 0x73, 0x74, + 0x61, 0x6b, 0x65, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x3a, 0x0c, 0x88, 0xa0, 0x1f, 0x00, + 0x98, 0xa0, 0x1f, 0x01, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x9f, 0x02, 0x0a, 0x0c, 0x4d, 0x6f, 0x72, + 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x54, 0x0a, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x3a, 0xea, 0xde, 0x1f, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xfa, 0xde, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, + 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x60, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x4b, 0x65, 0x79, 0x42, 0x23, 0xea, 0xde, 0x1f, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x5f, 0x6b, 0x65, 0x79, 0xf2, 0xde, 0x1f, 0x11, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, + 0x79, 0x12, 0x3e, 0x0a, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x0d, 0xc8, 0xde, 0x1f, + 0x00, 0xea, 0xde, 0x1f, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x05, 0x63, 0x6f, 0x69, 0x6e, + 0x73, 0x3a, 0x17, 0x88, 0xa0, 0x1f, 0x00, 0x98, 0xa0, 0x1f, 0x01, 0x88, 0xa2, 0x1f, 0x01, 0xca, + 0xb4, 0x2d, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x44, 0x0a, 0x0e, 0x4d, 0x6f, + 0x72, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x1c, 0xfa, 0xde, 0x1f, + 0x18, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x2e, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x42, 0xbe, 0x01, 0xd8, 0xe2, 0x1e, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, + 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x12, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x4f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, + 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x4d, 0x58, + 0xaa, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x4d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, + 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x1e, 0x50, 0x6f, 0x6b, + 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x50, 0x6f, + 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4979,7 +6163,7 @@ func file_poktroll_migration_morse_offchain_proto_rawDescGZIP() []byte { return file_poktroll_migration_morse_offchain_proto_rawDescData } -var file_poktroll_migration_morse_offchain_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_poktroll_migration_morse_offchain_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_poktroll_migration_morse_offchain_proto_goTypes = []interface{}{ (*MorseStateExport)(nil), // 0: poktroll.migration.MorseStateExport (*MorseTendermintAppState)(nil), // 1: poktroll.migration.MorseTendermintAppState @@ -4990,21 +6174,25 @@ var file_poktroll_migration_morse_offchain_proto_goTypes = []interface{}{ (*MorseApplication)(nil), // 6: poktroll.migration.MorseApplication (*MorseValidator)(nil), // 7: poktroll.migration.MorseValidator (*MorseAccount)(nil), // 8: poktroll.migration.MorseAccount + (*MorsePublicKey)(nil), // 9: poktroll.migration.MorsePublicKey + (*v1beta1.Coin)(nil), // 10: cosmos.base.v1beta1.Coin } var file_poktroll_migration_morse_offchain_proto_depIdxs = []int32{ - 1, // 0: poktroll.migration.MorseStateExport.app_state:type_name -> poktroll.migration.MorseTendermintAppState - 2, // 1: poktroll.migration.MorseTendermintAppState.application:type_name -> poktroll.migration.MorseApplications - 3, // 2: poktroll.migration.MorseTendermintAppState.auth:type_name -> poktroll.migration.MorseAuth - 5, // 3: poktroll.migration.MorseTendermintAppState.pos:type_name -> poktroll.migration.MorsePos - 6, // 4: poktroll.migration.MorseApplications.applications:type_name -> poktroll.migration.MorseApplication - 4, // 5: poktroll.migration.MorseAuth.accounts:type_name -> poktroll.migration.MorseAuthAccount - 8, // 6: poktroll.migration.MorseAuthAccount.value:type_name -> poktroll.migration.MorseAccount - 7, // 7: poktroll.migration.MorsePos.validators:type_name -> poktroll.migration.MorseValidator - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name + 1, // 0: poktroll.migration.MorseStateExport.app_state:type_name -> poktroll.migration.MorseTendermintAppState + 2, // 1: poktroll.migration.MorseTendermintAppState.application:type_name -> poktroll.migration.MorseApplications + 3, // 2: poktroll.migration.MorseTendermintAppState.auth:type_name -> poktroll.migration.MorseAuth + 5, // 3: poktroll.migration.MorseTendermintAppState.pos:type_name -> poktroll.migration.MorsePos + 6, // 4: poktroll.migration.MorseApplications.applications:type_name -> poktroll.migration.MorseApplication + 4, // 5: poktroll.migration.MorseAuth.accounts:type_name -> poktroll.migration.MorseAuthAccount + 8, // 6: poktroll.migration.MorseAuthAccount.value:type_name -> poktroll.migration.MorseAccount + 7, // 7: poktroll.migration.MorsePos.validators:type_name -> poktroll.migration.MorseValidator + 9, // 8: poktroll.migration.MorseAccount.pub_key:type_name -> poktroll.migration.MorsePublicKey + 10, // 9: poktroll.migration.MorseAccount.coins:type_name -> cosmos.base.v1beta1.Coin + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_poktroll_migration_morse_offchain_proto_init() } @@ -5110,6 +6298,30 @@ func file_poktroll_migration_morse_offchain_proto_init() { return nil } } + file_poktroll_migration_morse_offchain_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MorseAccount); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_poktroll_migration_morse_offchain_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MorsePublicKey); 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{ @@ -5117,7 +6329,7 @@ func file_poktroll_migration_morse_offchain_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_poktroll_migration_morse_offchain_proto_rawDesc, NumEnums: 0, - NumMessages: 8, + NumMessages: 10, NumExtensions: 0, NumServices: 0, }, diff --git a/api/poktroll/migration/morse_onchain.pulsar.go b/api/poktroll/migration/morse_onchain.pulsar.go index 2f450abb1..1c0b06ace 100644 --- a/api/poktroll/migration/morse_onchain.pulsar.go +++ b/api/poktroll/migration/morse_onchain.pulsar.go @@ -12,96 +12,13 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" reflect "reflect" - sort "sort" sync "sync" ) -var _ protoreflect.Map = (*_MorseAccountState_1_map)(nil) - -type _MorseAccountState_1_map struct { - m *map[string]uint64 -} - -func (x *_MorseAccountState_1_map) Len() int { - if x.m == nil { - return 0 - } - return len(*x.m) -} - -func (x *_MorseAccountState_1_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) { - if x.m == nil { - return - } - for k, v := range *x.m { - mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k)) - mapValue := protoreflect.ValueOfUint64(v) - if !f(mapKey, mapValue) { - break - } - } -} - -func (x *_MorseAccountState_1_map) Has(key protoreflect.MapKey) bool { - if x.m == nil { - return false - } - keyUnwrapped := key.String() - concreteValue := keyUnwrapped - _, ok := (*x.m)[concreteValue] - return ok -} - -func (x *_MorseAccountState_1_map) Clear(key protoreflect.MapKey) { - if x.m == nil { - return - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - delete(*x.m, concreteKey) -} - -func (x *_MorseAccountState_1_map) Get(key protoreflect.MapKey) protoreflect.Value { - if x.m == nil { - return protoreflect.Value{} - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - v, ok := (*x.m)[concreteKey] - if !ok { - return protoreflect.Value{} - } - return protoreflect.ValueOfUint64(v) -} - -func (x *_MorseAccountState_1_map) Set(key protoreflect.MapKey, value protoreflect.Value) { - if !key.IsValid() || !value.IsValid() { - panic("invalid key or value provided") - } - keyUnwrapped := key.String() - concreteKey := keyUnwrapped - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.m)[concreteKey] = concreteValue -} - -func (x *_MorseAccountState_1_map) Mutable(key protoreflect.MapKey) protoreflect.Value { - panic("should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message") -} - -func (x *_MorseAccountState_1_map) NewValue() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_MorseAccountState_1_map) IsValid() bool { - return x.m != nil -} - var _ protoreflect.List = (*_MorseAccountState_2_list)(nil) type _MorseAccountState_2_list struct { - list *[]*MorseAccount + list *[]*MorseClaimableAccount } func (x *_MorseAccountState_2_list) Len() int { @@ -117,18 +34,18 @@ func (x *_MorseAccountState_2_list) Get(i int) protoreflect.Value { func (x *_MorseAccountState_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MorseAccount) + concreteValue := valueUnwrapped.Interface().(*MorseClaimableAccount) (*x.list)[i] = concreteValue } func (x *_MorseAccountState_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*MorseAccount) + concreteValue := valueUnwrapped.Interface().(*MorseClaimableAccount) *x.list = append(*x.list, concreteValue) } func (x *_MorseAccountState_2_list) AppendMutable() protoreflect.Value { - v := new(MorseAccount) + v := new(MorseClaimableAccount) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -141,7 +58,7 @@ func (x *_MorseAccountState_2_list) Truncate(n int) { } func (x *_MorseAccountState_2_list) NewElement() protoreflect.Value { - v := new(MorseAccount) + v := new(MorseClaimableAccount) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -150,15 +67,13 @@ func (x *_MorseAccountState_2_list) IsValid() bool { } var ( - md_MorseAccountState protoreflect.MessageDescriptor - fd_MorseAccountState_accounts_idx_by_address protoreflect.FieldDescriptor - fd_MorseAccountState_accounts protoreflect.FieldDescriptor + md_MorseAccountState protoreflect.MessageDescriptor + fd_MorseAccountState_accounts protoreflect.FieldDescriptor ) func init() { file_poktroll_migration_morse_onchain_proto_init() md_MorseAccountState = File_poktroll_migration_morse_onchain_proto.Messages().ByName("MorseAccountState") - fd_MorseAccountState_accounts_idx_by_address = md_MorseAccountState.Fields().ByName("accounts_idx_by_address") fd_MorseAccountState_accounts = md_MorseAccountState.Fields().ByName("accounts") } @@ -227,12 +142,6 @@ func (x *fastReflection_MorseAccountState) Interface() protoreflect.ProtoMessage // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MorseAccountState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.AccountsIdxByAddress) != 0 { - value := protoreflect.ValueOfMap(&_MorseAccountState_1_map{m: &x.AccountsIdxByAddress}) - if !f(fd_MorseAccountState_accounts_idx_by_address, value) { - return - } - } if len(x.Accounts) != 0 { value := protoreflect.ValueOfList(&_MorseAccountState_2_list{list: &x.Accounts}) if !f(fd_MorseAccountState_accounts, value) { @@ -254,8 +163,6 @@ func (x *fastReflection_MorseAccountState) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_MorseAccountState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "poktroll.migration.MorseAccountState.accounts_idx_by_address": - return len(x.AccountsIdxByAddress) != 0 case "poktroll.migration.MorseAccountState.accounts": return len(x.Accounts) != 0 default: @@ -274,8 +181,6 @@ func (x *fastReflection_MorseAccountState) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MorseAccountState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "poktroll.migration.MorseAccountState.accounts_idx_by_address": - x.AccountsIdxByAddress = nil case "poktroll.migration.MorseAccountState.accounts": x.Accounts = nil default: @@ -294,12 +199,6 @@ func (x *fastReflection_MorseAccountState) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MorseAccountState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "poktroll.migration.MorseAccountState.accounts_idx_by_address": - if len(x.AccountsIdxByAddress) == 0 { - return protoreflect.ValueOfMap(&_MorseAccountState_1_map{}) - } - mapValue := &_MorseAccountState_1_map{m: &x.AccountsIdxByAddress} - return protoreflect.ValueOfMap(mapValue) case "poktroll.migration.MorseAccountState.accounts": if len(x.Accounts) == 0 { return protoreflect.ValueOfList(&_MorseAccountState_2_list{}) @@ -326,10 +225,6 @@ func (x *fastReflection_MorseAccountState) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MorseAccountState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "poktroll.migration.MorseAccountState.accounts_idx_by_address": - mv := value.Map() - cmv := mv.(*_MorseAccountState_1_map) - x.AccountsIdxByAddress = *cmv.m case "poktroll.migration.MorseAccountState.accounts": lv := value.List() clv := lv.(*_MorseAccountState_2_list) @@ -354,15 +249,9 @@ func (x *fastReflection_MorseAccountState) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MorseAccountState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "poktroll.migration.MorseAccountState.accounts_idx_by_address": - if x.AccountsIdxByAddress == nil { - x.AccountsIdxByAddress = make(map[string]uint64) - } - value := &_MorseAccountState_1_map{m: &x.AccountsIdxByAddress} - return protoreflect.ValueOfMap(value) case "poktroll.migration.MorseAccountState.accounts": if x.Accounts == nil { - x.Accounts = []*MorseAccount{} + x.Accounts = []*MorseClaimableAccount{} } value := &_MorseAccountState_2_list{list: &x.Accounts} return protoreflect.ValueOfList(value) @@ -379,11 +268,8 @@ func (x *fastReflection_MorseAccountState) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MorseAccountState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "poktroll.migration.MorseAccountState.accounts_idx_by_address": - m := make(map[string]uint64) - return protoreflect.ValueOfMap(&_MorseAccountState_1_map{m: &m}) case "poktroll.migration.MorseAccountState.accounts": - list := []*MorseAccount{} + list := []*MorseClaimableAccount{} return protoreflect.ValueOfList(&_MorseAccountState_2_list{list: &list}) default: if fd.IsExtension() { @@ -454,27 +340,6 @@ func (x *fastReflection_MorseAccountState) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if len(x.AccountsIdxByAddress) > 0 { - SiZeMaP := func(k string, v uint64) { - mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + 1 + runtime.Sov(uint64(v)) - n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize)) - } - if options.Deterministic { - sortme := make([]string, 0, len(x.AccountsIdxByAddress)) - for k := range x.AccountsIdxByAddress { - sortme = append(sortme, k) - } - sort.Strings(sortme) - for _, k := range sortme { - v := x.AccountsIdxByAddress[k] - SiZeMaP(k, v) - } - } else { - for k, v := range x.AccountsIdxByAddress { - SiZeMaP(k, v) - } - } - } if len(x.Accounts) > 0 { for _, e := range x.Accounts { l = options.Size(e) @@ -526,47 +391,6 @@ func (x *fastReflection_MorseAccountState) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x12 } } - if len(x.AccountsIdxByAddress) > 0 { - MaRsHaLmAp := func(k string, v uint64) (protoiface.MarshalOutput, error) { - baseI := i - i = runtime.EncodeVarint(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(k) - copy(dAtA[i:], k) - i = runtime.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - return protoiface.MarshalOutput{}, nil - } - if options.Deterministic { - keysForAccountsIdxByAddress := make([]string, 0, len(x.AccountsIdxByAddress)) - for k := range x.AccountsIdxByAddress { - keysForAccountsIdxByAddress = append(keysForAccountsIdxByAddress, string(k)) - } - sort.Slice(keysForAccountsIdxByAddress, func(i, j int) bool { - return keysForAccountsIdxByAddress[i] < keysForAccountsIdxByAddress[j] - }) - for iNdEx := len(keysForAccountsIdxByAddress) - 1; iNdEx >= 0; iNdEx-- { - v := x.AccountsIdxByAddress[string(keysForAccountsIdxByAddress[iNdEx])] - out, err := MaRsHaLmAp(keysForAccountsIdxByAddress[iNdEx], v) - if err != nil { - return out, err - } - } - } else { - for k := range x.AccountsIdxByAddress { - v := x.AccountsIdxByAddress[k] - out, err := MaRsHaLmAp(k, v) - if err != nil { - return out, err - } - } - } - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -616,119 +440,6 @@ func (x *fastReflection_MorseAccountState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MorseAccountState: 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 AccountsIdxByAddress", 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.AccountsIdxByAddress == nil { - x.AccountsIdxByAddress = make(map[string]uint64) - } - var mapkey string - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := 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) - if fieldNum == 1 { - var stringLenmapkey 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++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postStringIndexmapkey > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - 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++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - 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) > postIndex { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - x.AccountsIdxByAddress[mapkey] = mapvalue - iNdEx = postIndex case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) @@ -758,7 +469,7 @@ func (x *fastReflection_MorseAccountState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Accounts = append(x.Accounts, &MorseAccount{}) + x.Accounts = append(x.Accounts, &MorseClaimableAccount{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Accounts[len(x.Accounts)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -798,81 +509,32 @@ func (x *fastReflection_MorseAccountState) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_MorseAccount_3_list)(nil) - -type _MorseAccount_3_list struct { - list *[]*v1beta1.Coin -} - -func (x *_MorseAccount_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MorseAccount_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MorseAccount_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - (*x.list)[i] = concreteValue -} - -func (x *_MorseAccount_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MorseAccount_3_list) AppendMutable() protoreflect.Value { - v := new(v1beta1.Coin) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MorseAccount_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MorseAccount_3_list) NewElement() protoreflect.Value { - v := new(v1beta1.Coin) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MorseAccount_3_list) IsValid() bool { - return x.list != nil -} - var ( - md_MorseAccount protoreflect.MessageDescriptor - fd_MorseAccount_address protoreflect.FieldDescriptor - fd_MorseAccount_pub_key protoreflect.FieldDescriptor - fd_MorseAccount_coins protoreflect.FieldDescriptor + md_MorseClaimableAccount protoreflect.MessageDescriptor + fd_MorseClaimableAccount_address protoreflect.FieldDescriptor + fd_MorseClaimableAccount_public_key protoreflect.FieldDescriptor + fd_MorseClaimableAccount_total_tokens protoreflect.FieldDescriptor + fd_MorseClaimableAccount_claimed_at_height protoreflect.FieldDescriptor ) func init() { file_poktroll_migration_morse_onchain_proto_init() - md_MorseAccount = File_poktroll_migration_morse_onchain_proto.Messages().ByName("MorseAccount") - fd_MorseAccount_address = md_MorseAccount.Fields().ByName("address") - fd_MorseAccount_pub_key = md_MorseAccount.Fields().ByName("pub_key") - fd_MorseAccount_coins = md_MorseAccount.Fields().ByName("coins") + md_MorseClaimableAccount = File_poktroll_migration_morse_onchain_proto.Messages().ByName("MorseClaimableAccount") + fd_MorseClaimableAccount_address = md_MorseClaimableAccount.Fields().ByName("address") + fd_MorseClaimableAccount_public_key = md_MorseClaimableAccount.Fields().ByName("public_key") + fd_MorseClaimableAccount_total_tokens = md_MorseClaimableAccount.Fields().ByName("total_tokens") + fd_MorseClaimableAccount_claimed_at_height = md_MorseClaimableAccount.Fields().ByName("claimed_at_height") } -var _ protoreflect.Message = (*fastReflection_MorseAccount)(nil) +var _ protoreflect.Message = (*fastReflection_MorseClaimableAccount)(nil) -type fastReflection_MorseAccount MorseAccount +type fastReflection_MorseClaimableAccount MorseClaimableAccount -func (x *MorseAccount) ProtoReflect() protoreflect.Message { - return (*fastReflection_MorseAccount)(x) +func (x *MorseClaimableAccount) ProtoReflect() protoreflect.Message { + return (*fastReflection_MorseClaimableAccount)(x) } -func (x *MorseAccount) slowProtoReflect() protoreflect.Message { +func (x *MorseClaimableAccount) slowProtoReflect() protoreflect.Message { mi := &file_poktroll_migration_morse_onchain_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -884,43 +546,43 @@ func (x *MorseAccount) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MorseAccount_messageType fastReflection_MorseAccount_messageType -var _ protoreflect.MessageType = fastReflection_MorseAccount_messageType{} +var _fastReflection_MorseClaimableAccount_messageType fastReflection_MorseClaimableAccount_messageType +var _ protoreflect.MessageType = fastReflection_MorseClaimableAccount_messageType{} -type fastReflection_MorseAccount_messageType struct{} +type fastReflection_MorseClaimableAccount_messageType struct{} -func (x fastReflection_MorseAccount_messageType) Zero() protoreflect.Message { - return (*fastReflection_MorseAccount)(nil) +func (x fastReflection_MorseClaimableAccount_messageType) Zero() protoreflect.Message { + return (*fastReflection_MorseClaimableAccount)(nil) } -func (x fastReflection_MorseAccount_messageType) New() protoreflect.Message { - return new(fastReflection_MorseAccount) +func (x fastReflection_MorseClaimableAccount_messageType) New() protoreflect.Message { + return new(fastReflection_MorseClaimableAccount) } -func (x fastReflection_MorseAccount_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MorseAccount +func (x fastReflection_MorseClaimableAccount_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MorseClaimableAccount } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MorseAccount) Descriptor() protoreflect.MessageDescriptor { - return md_MorseAccount +func (x *fastReflection_MorseClaimableAccount) Descriptor() protoreflect.MessageDescriptor { + return md_MorseClaimableAccount } // 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_MorseAccount) Type() protoreflect.MessageType { - return _fastReflection_MorseAccount_messageType +func (x *fastReflection_MorseClaimableAccount) Type() protoreflect.MessageType { + return _fastReflection_MorseClaimableAccount_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MorseAccount) New() protoreflect.Message { - return new(fastReflection_MorseAccount) +func (x *fastReflection_MorseClaimableAccount) New() protoreflect.Message { + return new(fastReflection_MorseClaimableAccount) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MorseAccount) Interface() protoreflect.ProtoMessage { - return (*MorseAccount)(x) +func (x *fastReflection_MorseClaimableAccount) Interface() protoreflect.ProtoMessage { + return (*MorseClaimableAccount)(x) } // Range iterates over every populated field in an undefined order, @@ -928,22 +590,28 @@ func (x *fastReflection_MorseAccount) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MorseAccount) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MorseClaimableAccount) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Address) != 0 { value := protoreflect.ValueOfBytes(x.Address) - if !f(fd_MorseAccount_address, value) { + if !f(fd_MorseClaimableAccount_address, value) { return } } - if x.PubKey != nil { - value := protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) - if !f(fd_MorseAccount_pub_key, value) { + if len(x.PublicKey) != 0 { + value := protoreflect.ValueOfBytes(x.PublicKey) + if !f(fd_MorseClaimableAccount_public_key, value) { return } } - if len(x.Coins) != 0 { - value := protoreflect.ValueOfList(&_MorseAccount_3_list{list: &x.Coins}) - if !f(fd_MorseAccount_coins, value) { + if x.TotalTokens != nil { + value := protoreflect.ValueOfMessage(x.TotalTokens.ProtoReflect()) + if !f(fd_MorseClaimableAccount_total_tokens, value) { + return + } + } + if x.ClaimedAtHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.ClaimedAtHeight) + if !f(fd_MorseClaimableAccount_claimed_at_height, value) { return } } @@ -960,19 +628,21 @@ func (x *fastReflection_MorseAccount) Range(f func(protoreflect.FieldDescriptor, // 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_MorseAccount) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MorseClaimableAccount) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "poktroll.migration.MorseAccount.address": + case "poktroll.migration.MorseClaimableAccount.address": return len(x.Address) != 0 - case "poktroll.migration.MorseAccount.pub_key": - return x.PubKey != nil - case "poktroll.migration.MorseAccount.coins": - return len(x.Coins) != 0 + case "poktroll.migration.MorseClaimableAccount.public_key": + return len(x.PublicKey) != 0 + case "poktroll.migration.MorseClaimableAccount.total_tokens": + return x.TotalTokens != nil + case "poktroll.migration.MorseClaimableAccount.claimed_at_height": + return x.ClaimedAtHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) } - panic(fmt.Errorf("message poktroll.migration.MorseAccount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount does not contain field %s", fd.FullName())) } } @@ -982,19 +652,21 @@ func (x *fastReflection_MorseAccount) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MorseAccount) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MorseClaimableAccount) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "poktroll.migration.MorseAccount.address": + case "poktroll.migration.MorseClaimableAccount.address": x.Address = nil - case "poktroll.migration.MorseAccount.pub_key": - x.PubKey = nil - case "poktroll.migration.MorseAccount.coins": - x.Coins = nil + case "poktroll.migration.MorseClaimableAccount.public_key": + x.PublicKey = nil + case "poktroll.migration.MorseClaimableAccount.total_tokens": + x.TotalTokens = nil + case "poktroll.migration.MorseClaimableAccount.claimed_at_height": + x.ClaimedAtHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) } - panic(fmt.Errorf("message poktroll.migration.MorseAccount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount does not contain field %s", fd.FullName())) } } @@ -1004,25 +676,25 @@ func (x *fastReflection_MorseAccount) Clear(fd protoreflect.FieldDescriptor) { // 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_MorseAccount) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MorseClaimableAccount) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "poktroll.migration.MorseAccount.address": + case "poktroll.migration.MorseClaimableAccount.address": value := x.Address return protoreflect.ValueOfBytes(value) - case "poktroll.migration.MorseAccount.pub_key": - value := x.PubKey + case "poktroll.migration.MorseClaimableAccount.public_key": + value := x.PublicKey + return protoreflect.ValueOfBytes(value) + case "poktroll.migration.MorseClaimableAccount.total_tokens": + value := x.TotalTokens return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "poktroll.migration.MorseAccount.coins": - if len(x.Coins) == 0 { - return protoreflect.ValueOfList(&_MorseAccount_3_list{}) - } - listValue := &_MorseAccount_3_list{list: &x.Coins} - return protoreflect.ValueOfList(listValue) + case "poktroll.migration.MorseClaimableAccount.claimed_at_height": + value := x.ClaimedAtHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) } - panic(fmt.Errorf("message poktroll.migration.MorseAccount does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount does not contain field %s", descriptor.FullName())) } } @@ -1036,21 +708,21 @@ func (x *fastReflection_MorseAccount) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MorseAccount) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MorseClaimableAccount) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "poktroll.migration.MorseAccount.address": + case "poktroll.migration.MorseClaimableAccount.address": x.Address = value.Bytes() - case "poktroll.migration.MorseAccount.pub_key": - x.PubKey = value.Message().Interface().(*MorsePublicKey) - case "poktroll.migration.MorseAccount.coins": - lv := value.List() - clv := lv.(*_MorseAccount_3_list) - x.Coins = *clv.list + case "poktroll.migration.MorseClaimableAccount.public_key": + x.PublicKey = value.Bytes() + case "poktroll.migration.MorseClaimableAccount.total_tokens": + x.TotalTokens = value.Message().Interface().(*v1beta1.Coin) + case "poktroll.migration.MorseClaimableAccount.claimed_at_height": + x.ClaimedAtHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) } - panic(fmt.Errorf("message poktroll.migration.MorseAccount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount does not contain field %s", fd.FullName())) } } @@ -1064,57 +736,56 @@ func (x *fastReflection_MorseAccount) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MorseAccount) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MorseClaimableAccount) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "poktroll.migration.MorseAccount.pub_key": - if x.PubKey == nil { - x.PubKey = new(MorsePublicKey) - } - return protoreflect.ValueOfMessage(x.PubKey.ProtoReflect()) - case "poktroll.migration.MorseAccount.coins": - if x.Coins == nil { - x.Coins = []*v1beta1.Coin{} - } - value := &_MorseAccount_3_list{list: &x.Coins} - return protoreflect.ValueOfList(value) - case "poktroll.migration.MorseAccount.address": - panic(fmt.Errorf("field address of message poktroll.migration.MorseAccount is not mutable")) + case "poktroll.migration.MorseClaimableAccount.total_tokens": + if x.TotalTokens == nil { + x.TotalTokens = new(v1beta1.Coin) + } + return protoreflect.ValueOfMessage(x.TotalTokens.ProtoReflect()) + case "poktroll.migration.MorseClaimableAccount.address": + panic(fmt.Errorf("field address of message poktroll.migration.MorseClaimableAccount is not mutable")) + case "poktroll.migration.MorseClaimableAccount.public_key": + panic(fmt.Errorf("field public_key of message poktroll.migration.MorseClaimableAccount is not mutable")) + case "poktroll.migration.MorseClaimableAccount.claimed_at_height": + panic(fmt.Errorf("field claimed_at_height of message poktroll.migration.MorseClaimableAccount is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) } - panic(fmt.Errorf("message poktroll.migration.MorseAccount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount 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_MorseAccount) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MorseClaimableAccount) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "poktroll.migration.MorseAccount.address": + case "poktroll.migration.MorseClaimableAccount.address": return protoreflect.ValueOfBytes(nil) - case "poktroll.migration.MorseAccount.pub_key": - m := new(MorsePublicKey) + case "poktroll.migration.MorseClaimableAccount.public_key": + return protoreflect.ValueOfBytes(nil) + case "poktroll.migration.MorseClaimableAccount.total_tokens": + m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "poktroll.migration.MorseAccount.coins": - list := []*v1beta1.Coin{} - return protoreflect.ValueOfList(&_MorseAccount_3_list{list: &list}) + case "poktroll.migration.MorseClaimableAccount.claimed_at_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseAccount")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorseClaimableAccount")) } - panic(fmt.Errorf("message poktroll.migration.MorseAccount does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.migration.MorseClaimableAccount 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_MorseAccount) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MorseClaimableAccount) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in poktroll.migration.MorseAccount", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in poktroll.migration.MorseClaimableAccount", d.FullName())) } panic("unreachable") } @@ -1122,7 +793,7 @@ func (x *fastReflection_MorseAccount) WhichOneof(d protoreflect.OneofDescriptor) // 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_MorseAccount) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MorseClaimableAccount) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1133,7 +804,7 @@ func (x *fastReflection_MorseAccount) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MorseAccount) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MorseClaimableAccount) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1145,7 +816,7 @@ func (x *fastReflection_MorseAccount) SetUnknown(fields protoreflect.RawFields) // 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_MorseAccount) IsValid() bool { +func (x *fastReflection_MorseClaimableAccount) IsValid() bool { return x != nil } @@ -1155,9 +826,9 @@ func (x *fastReflection_MorseAccount) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MorseClaimableAccount) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MorseAccount) + x := input.Message.Interface().(*MorseClaimableAccount) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1173,15 +844,16 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.PubKey != nil { - l = options.Size(x.PubKey) + l = len(x.PublicKey) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TotalTokens != nil { + l = options.Size(x.TotalTokens) n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.Coins) > 0 { - for _, e := range x.Coins { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.ClaimedAtHeight != 0 { + n += 1 + runtime.Sov(uint64(x.ClaimedAtHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -1193,7 +865,7 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MorseAccount) + x := input.Message.Interface().(*MorseClaimableAccount) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1212,24 +884,13 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Coins) > 0 { - for iNdEx := len(x.Coins) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Coins[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 x.ClaimedAtHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ClaimedAtHeight)) + i-- + dAtA[i] = 0x20 } - if x.PubKey != nil { - encoded, err := options.Marshal(x.PubKey) + if x.TotalTokens != nil { + encoded, err := options.Marshal(x.TotalTokens) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1240,6 +901,13 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- + dAtA[i] = 0x1a + } + if len(x.PublicKey) > 0 { + i -= len(x.PublicKey) + copy(dAtA[i:], x.PublicKey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKey))) + i-- dAtA[i] = 0x12 } if len(x.Address) > 0 { @@ -1260,7 +928,7 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MorseAccount) + x := input.Message.Interface().(*MorseClaimableAccount) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1292,10 +960,10 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MorseAccount: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MorseClaimableAccount: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MorseAccount: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MorseClaimableAccount: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1334,9 +1002,9 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1346,31 +1014,29 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen 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.PubKey == nil { - x.PubKey = &MorsePublicKey{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PubKey); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + x.PublicKey = append(x.PublicKey[:0], dAtA[iNdEx:postIndex]...) + if x.PublicKey == nil { + x.PublicKey = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalTokens", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1397,11 +1063,32 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Coins = append(x.Coins, &v1beta1.Coin{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Coins[len(x.Coins)-1]); err != nil { + if x.TotalTokens == nil { + x.TotalTokens = &v1beta1.Coin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TotalTokens); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClaimedAtHeight", wireType) + } + x.ClaimedAtHeight = 0 + 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++ + x.ClaimedAtHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1437,581 +1124,121 @@ func (x *fastReflection_MorseAccount) ProtoMethods() *protoiface.Methods { } } -var ( - md_MorsePublicKey protoreflect.MessageDescriptor - fd_MorsePublicKey_value protoreflect.FieldDescriptor -) - -func init() { - file_poktroll_migration_morse_onchain_proto_init() - md_MorsePublicKey = File_poktroll_migration_morse_onchain_proto.Messages().ByName("MorsePublicKey") - fd_MorsePublicKey_value = md_MorsePublicKey.Fields().ByName("value") -} +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: poktroll/migration/morse_onchain.proto -var _ protoreflect.Message = (*fastReflection_MorsePublicKey)(nil) +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 fastReflection_MorsePublicKey MorsePublicKey +// MorseAccountState is the onchain representation of all account state to be migrated from Morse. +// It is NEVER persisted onchain but is a dependency of the MsgImportMorseClaimableAccount handler. +// It's main purpose is to expose the #GetHash() method for verifying the integrity of all MorseClaimableAccounts. +type MorseAccountState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *MorsePublicKey) ProtoReflect() protoreflect.Message { - return (*fastReflection_MorsePublicKey)(x) + Accounts []*MorseClaimableAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` } -func (x *MorsePublicKey) slowProtoReflect() protoreflect.Message { - mi := &file_poktroll_migration_morse_onchain_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { +func (x *MorseAccountState) Reset() { + *x = MorseAccountState{} + if protoimpl.UnsafeEnabled { + mi := &file_poktroll_migration_morse_onchain_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + ms.StoreMessageInfo(mi) } - return mi.MessageOf(x) } -var _fastReflection_MorsePublicKey_messageType fastReflection_MorsePublicKey_messageType -var _ protoreflect.MessageType = fastReflection_MorsePublicKey_messageType{} +func (x *MorseAccountState) String() string { + return protoimpl.X.MessageStringOf(x) +} -type fastReflection_MorsePublicKey_messageType struct{} +func (*MorseAccountState) ProtoMessage() {} -func (x fastReflection_MorsePublicKey_messageType) Zero() protoreflect.Message { - return (*fastReflection_MorsePublicKey)(nil) +// Deprecated: Use MorseAccountState.ProtoReflect.Descriptor instead. +func (*MorseAccountState) Descriptor() ([]byte, []int) { + return file_poktroll_migration_morse_onchain_proto_rawDescGZIP(), []int{0} } -func (x fastReflection_MorsePublicKey_messageType) New() protoreflect.Message { - return new(fastReflection_MorsePublicKey) + +func (x *MorseAccountState) GetAccounts() []*MorseClaimableAccount { + if x != nil { + return x.Accounts + } + return nil } -func (x fastReflection_MorsePublicKey_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MorsePublicKey + +// MorseClaimableAccount is the onchain (persisted) representation of a Morse +// account which is claimable as part of the Morse -> Shannon migration. +// They are intended to be created during MorseAccountState import (see: MsgImportMorseClaimableAccount). +type MorseClaimableAccount struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A hex-encoded representation of the address corresponding to a Morse application's ed25519 public key. + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // The ed25519 public key of the account. + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + // The total amount of uPOKT owned by the account; this is a sum of the balance and any actor stakes. + // NB: The default stake/balance proportion is derived from Morse query response(s) at the time of claiming. + TotalTokens *v1beta1.Coin `protobuf:"bytes,3,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"` + ClaimedAtHeight int64 `protobuf:"varint,4,opt,name=claimed_at_height,json=claimedAtHeight,proto3" json:"claimed_at_height,omitempty"` } -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MorsePublicKey) Descriptor() protoreflect.MessageDescriptor { - return md_MorsePublicKey +func (x *MorseClaimableAccount) Reset() { + *x = MorseClaimableAccount{} + if protoimpl.UnsafeEnabled { + mi := &file_poktroll_migration_morse_onchain_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// 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_MorsePublicKey) Type() protoreflect.MessageType { - return _fastReflection_MorsePublicKey_messageType +func (x *MorseClaimableAccount) String() string { + return protoimpl.X.MessageStringOf(x) } -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MorsePublicKey) New() protoreflect.Message { - return new(fastReflection_MorsePublicKey) +func (*MorseClaimableAccount) ProtoMessage() {} + +// Deprecated: Use MorseClaimableAccount.ProtoReflect.Descriptor instead. +func (*MorseClaimableAccount) Descriptor() ([]byte, []int) { + return file_poktroll_migration_morse_onchain_proto_rawDescGZIP(), []int{1} } -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MorsePublicKey) Interface() protoreflect.ProtoMessage { - return (*MorsePublicKey)(x) +func (x *MorseClaimableAccount) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil } -// 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_MorsePublicKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Value) != 0 { - value := protoreflect.ValueOfBytes(x.Value) - if !f(fd_MorsePublicKey_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_MorsePublicKey) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "poktroll.migration.MorsePublicKey.value": - return len(x.Value) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) - } - panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "poktroll.migration.MorsePublicKey.value": - x.Value = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) - } - panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "poktroll.migration.MorsePublicKey.value": - value := x.Value - return protoreflect.ValueOfBytes(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) - } - panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "poktroll.migration.MorsePublicKey.value": - x.Value = value.Bytes() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) - } - panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "poktroll.migration.MorsePublicKey.value": - panic(fmt.Errorf("field value of message poktroll.migration.MorsePublicKey is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) - } - panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "poktroll.migration.MorsePublicKey.value": - return protoreflect.ValueOfBytes(nil) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.migration.MorsePublicKey")) - } - panic(fmt.Errorf("message poktroll.migration.MorsePublicKey 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_MorsePublicKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in poktroll.migration.MorsePublicKey", 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_MorsePublicKey) 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_MorsePublicKey) 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_MorsePublicKey) 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_MorsePublicKey) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MorsePublicKey) - 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.Value) - 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().(*MorsePublicKey) - 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.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 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().(*MorsePublicKey) - 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: MorsePublicKey: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MorsePublicKey: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - 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 byteLen 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++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + byteLen - 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 = append(x.Value[:0], dAtA[iNdEx:postIndex]...) - if x.Value == nil { - x.Value = []byte{} - } - 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: poktroll/migration/morse_onchain.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) -) - -// MorseAccountState is the onchain representation of the imported account state from Morse. -// -// TODO_UPNEXT(@bryanchriswhite): Decompose this on-chain structure. -type MorseAccountState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AccountsIdxByAddress map[string]uint64 `protobuf:"bytes,1,rep,name=accounts_idx_by_address,json=accountsIdxByAddress,proto3" json:"accounts_idx_by_address,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - Accounts []*MorseAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` -} - -func (x *MorseAccountState) Reset() { - *x = MorseAccountState{} - if protoimpl.UnsafeEnabled { - mi := &file_poktroll_migration_morse_onchain_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MorseAccountState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MorseAccountState) ProtoMessage() {} - -// Deprecated: Use MorseAccountState.ProtoReflect.Descriptor instead. -func (*MorseAccountState) Descriptor() ([]byte, []int) { - return file_poktroll_migration_morse_onchain_proto_rawDescGZIP(), []int{0} -} - -func (x *MorseAccountState) GetAccountsIdxByAddress() map[string]uint64 { - if x != nil { - return x.AccountsIdxByAddress - } - return nil -} - -func (x *MorseAccountState) GetAccounts() []*MorseAccount { - if x != nil { - return x.Accounts - } - return nil -} - -// MorseAccount is an analog of the Morse ProtoBaseAccount type. -// It encapsulates the minimum information required to import accounts. -// -// See: https://github.com/pokt-network/pocket-core/blob/staging/proto/x/auth/auth.proto#L14. -type MorseAccount struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A hex-encoded representation of the address corresponding to a Morse application's ed25519 public key. - Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - // The ed25519 public key of the account. - PubKey *MorsePublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` - // The total amount of uPOKT owned by the account; this is a sum of the balance and any actor stakes. - // NB: The default stake/balance proportion is derived from Morse query response(s) at the time of claiming. - Coins []*v1beta1.Coin `protobuf:"bytes,3,rep,name=coins,proto3" json:"coins,omitempty"` -} - -func (x *MorseAccount) Reset() { - *x = MorseAccount{} - if protoimpl.UnsafeEnabled { - mi := &file_poktroll_migration_morse_onchain_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MorseAccount) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MorseAccount) ProtoMessage() {} - -// Deprecated: Use MorseAccount.ProtoReflect.Descriptor instead. -func (*MorseAccount) Descriptor() ([]byte, []int) { - return file_poktroll_migration_morse_onchain_proto_rawDescGZIP(), []int{1} -} - -func (x *MorseAccount) GetAddress() []byte { +func (x *MorseClaimableAccount) GetPublicKey() []byte { if x != nil { - return x.Address + return x.PublicKey } return nil } -func (x *MorseAccount) GetPubKey() *MorsePublicKey { +func (x *MorseClaimableAccount) GetTotalTokens() *v1beta1.Coin { if x != nil { - return x.PubKey + return x.TotalTokens } return nil } -func (x *MorseAccount) GetCoins() []*v1beta1.Coin { +func (x *MorseClaimableAccount) GetClaimedAtHeight() int64 { if x != nil { - return x.Coins + return x.ClaimedAtHeight } - return nil -} - -// MorsePublicKey is required to conform to the encoding of the Morse state export. -// NB: All Morse account public keys will be ed25519 keys by definition. -type MorsePublicKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *MorsePublicKey) Reset() { - *x = MorsePublicKey{} - if protoimpl.UnsafeEnabled { - mi := &file_poktroll_migration_morse_onchain_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MorsePublicKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MorsePublicKey) ProtoMessage() {} - -// Deprecated: Use MorsePublicKey.ProtoReflect.Descriptor instead. -func (*MorsePublicKey) Descriptor() ([]byte, []int) { - return file_poktroll_migration_morse_onchain_proto_rawDescGZIP(), []int{2} -} - -func (x *MorsePublicKey) GetValue() []byte { - if x != nil { - return x.Value - } - return nil + return 0 } var File_poktroll_migration_morse_onchain_proto protoreflect.FileDescriptor @@ -2025,66 +1252,46 @@ var file_poktroll_migration_morse_onchain_proto_rawDesc = []byte{ 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 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, 0xf3, 0x02, - 0x0a, 0x11, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0xb5, 0x01, 0x0a, 0x17, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, - 0x5f, 0x69, 0x64, 0x78, 0x5f, 0x62, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, - 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x49, 0x64, 0x78, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x3d, 0xea, 0xde, 0x1f, 0x17, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x73, 0x5f, 0x69, 0x64, 0x78, 0x5f, 0x62, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0xf2, 0xde, 0x1f, 0x1e, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5f, 0x69, 0x64, 0x78, 0x5f, 0x62, 0x79, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x22, 0x52, 0x14, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x49, - 0x64, 0x78, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x5d, 0x0a, 0x08, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a, + 0x11, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x66, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, + 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x1f, 0xea, 0xde, 0x1f, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0xf2, 0xde, 0x1f, 0x0f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, - 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x1a, 0x47, 0x0a, 0x19, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x49, 0x64, 0x78, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 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, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x9f, 0x02, 0x0a, 0x0c, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x41, 0x63, 0x63, + 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0xa3, 0x02, 0x0a, 0x15, 0x4d, + 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x54, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x3a, 0xea, 0xde, 0x1f, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0xfa, 0xde, 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x65, 0x74, 0x62, 0x66, 0x74, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x60, 0x0a, 0x07, 0x70, 0x75, - 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x6f, - 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, - 0x23, 0xea, 0xde, 0x1f, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0xf2, - 0xde, 0x1f, 0x11, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, - 0x6b, 0x65, 0x79, 0x22, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x3e, 0x0a, 0x05, - 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x05, - 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x3a, 0x17, 0x88, 0xa0, - 0x1f, 0x00, 0x98, 0xa0, 0x1f, 0x01, 0x88, 0xa2, 0x1f, 0x01, 0xca, 0xb4, 0x2d, 0x07, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x44, 0x0a, 0x0e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x1c, 0xfa, 0xde, 0x1f, 0x18, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x6f, 0x2f, 0x65, 0x64, 0x32, 0x35, 0x35, 0x31, 0x39, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x4b, 0x65, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xbd, 0x01, 0xd8, 0xe2, - 0x1e, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, - 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x11, 0x4d, 0x6f, 0x72, 0x73, - 0x65, 0x4f, 0x6e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x4d, 0x58, 0xaa, 0x02, 0x12, 0x50, 0x6f, 0x6b, - 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, - 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x1e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, - 0x3a, 0x3a, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x0a, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x1c, + 0xfa, 0xde, 0x1f, 0x18, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x2f, 0x65, 0x64, 0x32, 0x35, 0x35, + 0x31, 0x39, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x0d, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, + 0x1f, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x65, 0x64, 0x41, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x42, 0xbd, 0x01, 0xd8, 0xe2, 0x1e, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, + 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0x11, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x4f, 0x6e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x4d, 0x58, 0xaa, + 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, + 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x1e, 0x50, 0x6f, 0x6b, 0x74, + 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x50, 0x6f, 0x6b, + 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2099,24 +1306,20 @@ func file_poktroll_migration_morse_onchain_proto_rawDescGZIP() []byte { return file_poktroll_migration_morse_onchain_proto_rawDescData } -var file_poktroll_migration_morse_onchain_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_poktroll_migration_morse_onchain_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_poktroll_migration_morse_onchain_proto_goTypes = []interface{}{ - (*MorseAccountState)(nil), // 0: poktroll.migration.MorseAccountState - (*MorseAccount)(nil), // 1: poktroll.migration.MorseAccount - (*MorsePublicKey)(nil), // 2: poktroll.migration.MorsePublicKey - nil, // 3: poktroll.migration.MorseAccountState.AccountsIdxByAddressEntry - (*v1beta1.Coin)(nil), // 4: cosmos.base.v1beta1.Coin + (*MorseAccountState)(nil), // 0: poktroll.migration.MorseAccountState + (*MorseClaimableAccount)(nil), // 1: poktroll.migration.MorseClaimableAccount + (*v1beta1.Coin)(nil), // 2: cosmos.base.v1beta1.Coin } var file_poktroll_migration_morse_onchain_proto_depIdxs = []int32{ - 3, // 0: poktroll.migration.MorseAccountState.accounts_idx_by_address:type_name -> poktroll.migration.MorseAccountState.AccountsIdxByAddressEntry - 1, // 1: poktroll.migration.MorseAccountState.accounts:type_name -> poktroll.migration.MorseAccount - 2, // 2: poktroll.migration.MorseAccount.pub_key:type_name -> poktroll.migration.MorsePublicKey - 4, // 3: poktroll.migration.MorseAccount.coins:type_name -> cosmos.base.v1beta1.Coin - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 1, // 0: poktroll.migration.MorseAccountState.accounts:type_name -> poktroll.migration.MorseClaimableAccount + 2, // 1: poktroll.migration.MorseClaimableAccount.total_tokens:type_name -> cosmos.base.v1beta1.Coin + 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_poktroll_migration_morse_onchain_proto_init() } @@ -2138,19 +1341,7 @@ func file_poktroll_migration_morse_onchain_proto_init() { } } file_poktroll_migration_morse_onchain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MorseAccount); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_poktroll_migration_morse_onchain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MorsePublicKey); i { + switch v := v.(*MorseClaimableAccount); i { case 0: return &v.state case 1: @@ -2168,7 +1359,7 @@ func file_poktroll_migration_morse_onchain_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_poktroll_migration_morse_onchain_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 2, NumExtensions: 0, NumServices: 0, }, diff --git a/api/poktroll/migration/query.pulsar.go b/api/poktroll/migration/query.pulsar.go index c0ac775b4..2ad17a178 100644 --- a/api/poktroll/migration/query.pulsar.go +++ b/api/poktroll/migration/query.pulsar.go @@ -2910,99 +2910,98 @@ var file_poktroll_migration_query_proto_rawDesc = []byte{ 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, + 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x72, - 0x73, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 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, 0x54, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, - 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x25, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, - 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x65, 0x0a, 0x15, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, - 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, - 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x15, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, - 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x6e, 0x0a, 0x24, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, - 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xd7, 0x01, 0x0a, 0x25, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, - 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x15, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, - 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, - 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x15, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, - 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x32, 0xc3, 0x04, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x8a, 0x01, - 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, - 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x27, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x29, 0x12, 0x27, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xd8, 0x01, 0x0a, 0x15, 0x4d, - 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x38, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, + 0x73, 0x65, 0x5f, 0x6f, 0x6e, 0x63, 0x68, 0x61, 0x69, 0x6e, 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, 0x54, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, + 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 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, 0x24, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, + 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x8e, + 0x01, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x73, 0x65, + 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x15, 0x6d, 0x6f, 0x72, 0x73, + 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, + 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, 0x72, + 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x43, + 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, + 0x6e, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4d, 0x6f, 0x72, 0x73, 0x65, + 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0xd7, 0x01, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4d, 0x6f, 0x72, 0x73, + 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x15, 0x6d, 0x6f, 0x72, + 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x6f, + 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x6d, 0x6f, 0x72, 0x73, 0x65, + 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xc3, 0x04, 0x0a, 0x05, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x8a, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, + 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0xd8, 0x01, 0x0a, 0x15, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, + 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x38, 0x2e, 0x70, 0x6f, 0x6b, + 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, + 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, - 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x73, - 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x44, 0x12, 0x42, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2f, 0x7b, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xd1, 0x01, 0x0a, 0x18, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, - 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, - 0x6c, 0x6c, 0x12, 0x38, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x4a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x12, 0x42, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x5f, + 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xd1, 0x01, 0x0a, 0x18, + 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x38, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, + 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x70, - 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4d, 0x6f, 0x72, 0x73, 0x65, 0x43, - 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, - 0x38, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x2d, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x6c, + 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, + 0xb6, 0x01, 0xd8, 0xe2, 0x1e, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, + 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0a, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x6d, 0x6f, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0xb6, 0x01, 0xd8, 0xe2, 0x1e, 0x01, - 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, - 0x6c, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x4d, - 0x58, 0xaa, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, - 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x1e, 0x50, 0x6f, - 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x50, - 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x4d, 0x58, 0xaa, 0x02, 0x12, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, + 0x6c, 0x6c, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x12, 0x50, + 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0xe2, 0x02, 0x1e, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x4d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x13, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3055,7 +3054,7 @@ func file_poktroll_migration_query_proto_init() { return } file_poktroll_migration_params_proto_init() - file_poktroll_migration_morse_claimable_account_proto_init() + file_poktroll_migration_morse_onchain_proto_init() if !protoimpl.UnsafeEnabled { file_poktroll_migration_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsRequest); i { diff --git a/cmd/poktrolld/cmd/migrate/migrate_test.go b/cmd/poktrolld/cmd/migrate/migrate_test.go index 63f8f8f8b..203501abf 100644 --- a/cmd/poktrolld/cmd/migrate/migrate_test.go +++ b/cmd/poktrolld/cmd/migrate/migrate_test.go @@ -96,7 +96,7 @@ func TestNewTestMorseStateExport(t *testing.T) { require.Equal(t, uint64(i), morseWorkspace.numSuppliers) morseAccounts := morseWorkspace.accountState.Accounts[i-1] - require.Equal(t, expectedShannonAccountBalance, morseAccounts.Coins[0].Amount.String()) + require.Equal(t, expectedShannonAccountBalance, morseAccounts.TotalTokens.Amount.String()) require.Equal(t, expectedShannonTotalAppStake, morseWorkspace.accumulatedTotalAppStake.String()) require.Equal(t, expectedShannonTotalSupplierStake, morseWorkspace.accumulatedTotalSupplierStake.String()) }) @@ -139,8 +139,7 @@ func newMorseStateExportAndAccountState( } morseAccountState := &migrationtypes.MorseAccountState{ - AccountsIdxByAddress: make(map[string]uint64), - Accounts: make([]*migrationtypes.MorseAccount, numAccounts), + Accounts: make([]*migrationtypes.MorseClaimableAccount, numAccounts), } for i := 1; i < numAccounts+1; i++ { @@ -194,16 +193,11 @@ func newMorseStateExportAndAccountState( ) // Add the account to the morseAccountState. - morseAccountState.Accounts[i-1] = &migrationtypes.MorseAccount{ - Address: pubKey.Address(), - Coins: cosmostypes.NewCoins(cosmostypes.NewInt64Coin(volatile.DenomuPOKT, sumAmount)), - PubKey: &migrationtypes.MorsePublicKey{ - Value: pubKey.Bytes(), - }, + morseAccountState.Accounts[i-1] = &migrationtypes.MorseClaimableAccount{ + Address: pubKey.Address(), + TotalTokens: cosmostypes.NewInt64Coin(volatile.DenomuPOKT, sumAmount), + PublicKey: pubKey.Bytes(), } - - // Add the account index to the morseAccountState. - morseAccountState.AccountsIdxByAddress[pubKey.Address().String()] = uint64(i - 1) } var err error diff --git a/cmd/poktrolld/cmd/migrate/types.go b/cmd/poktrolld/cmd/migrate/types.go index ad563ce3d..8ca3b2453 100644 --- a/cmd/poktrolld/cmd/migrate/types.go +++ b/cmd/poktrolld/cmd/migrate/types.go @@ -13,9 +13,9 @@ import ( // newMorseImportWorkspace returns a new morseImportWorkspace with fields initialized to their zero values. func newMorseImportWorkspace() *morseImportWorkspace { return &morseImportWorkspace{ + accountIdxByAddress: make(map[string]uint64), accountState: &migrationtypes.MorseAccountState{ - AccountsIdxByAddress: make(map[string]uint64), - Accounts: make([]*migrationtypes.MorseAccount, 0), + Accounts: make([]*migrationtypes.MorseClaimableAccount, 0), }, accumulatedTotalBalance: cosmosmath.ZeroInt(), accumulatedTotalAppStake: cosmosmath.ZeroInt(), @@ -26,6 +26,9 @@ func newMorseImportWorkspace() *morseImportWorkspace { // morseImportWorkspace is a helper struct that is used to consolidate the Morse account balance, // application stake, and supplier stake for each account as an entry in the resulting MorseAccountState. type morseImportWorkspace struct { + // accountIdxByAddress is a map from the Shannon bech32 address to the index of the + // corresponding MorseAccount in the accounts slice. + accountIdxByAddress map[string]uint64 // accountState is the final MorseAccountState that will be imported into Shannon. // It includes a slice of MorseAccount objects which are populated, by transforming // the input MorseStateExport into the output MorseAccountState. @@ -54,8 +57,8 @@ func (miw *morseImportWorkspace) nextIdx() int64 { // getAccount returns the MorseAccount for the given address and its index, // if present, in the accountState accounts slice. // If the given address is not present, it returns nil, -1. -func (miw *morseImportWorkspace) getAccount(addr string) (*migrationtypes.MorseAccount, int64) { - accountIdx, ok := miw.accountState.AccountsIdxByAddress[addr] +func (miw *morseImportWorkspace) getAccount(addr string) (*migrationtypes.MorseClaimableAccount, int64) { + accountIdx, ok := miw.accountIdxByAddress[addr] if !ok { return nil, -1 } @@ -104,7 +107,7 @@ func (miw *morseImportWorkspace) accumulatedTotalsSum() cosmosmath.Int { } // addAccount adds the account with the given address to the accounts slice and -// its corresponding address is in the addressToIdx map. +// its corresponding address is in the accountIdxByAddress map. // If the address is already present, an error is returned. func (miw *morseImportWorkspace) addAccount( addr string, @@ -120,13 +123,13 @@ func (miw *morseImportWorkspace) addAccount( } accountIdx = miw.nextIdx() - importAccount := &migrationtypes.MorseAccount{ - Address: exportAccount.Value.Address, - PubKey: exportAccount.Value.PubKey, - Coins: cosmostypes.Coins{balance}, + importAccount := &migrationtypes.MorseClaimableAccount{ + Address: exportAccount.Value.Address, + PublicKey: exportAccount.Value.PubKey.Value, + TotalTokens: cosmostypes.NewInt64Coin(volatile.DenomuPOKT, 0), } miw.accountState.Accounts = append(miw.accountState.Accounts, importAccount) - miw.accountState.AccountsIdxByAddress[addr] = uint64(accountIdx) + miw.accountIdxByAddress[addr] = uint64(accountIdx) return accountIdx, balance, nil } @@ -138,21 +141,13 @@ func (miw *morseImportWorkspace) addUpokt(addr string, amount cosmosmath.Int) er return ErrMorseStateTransform.Wrapf("account %q not found", addr) } - if len(account.Coins) != 1 { - return ErrMorseStateTransform.Wrapf( - "account %q has %d token denominations, expected upokt only: %s", - addr, len(account.Coins), account.Coins, - ) - } - - upoktCoins := account.Coins[0] - if upoktCoins.Denom != volatile.DenomuPOKT { + if account.TotalTokens.Denom != volatile.DenomuPOKT { return fmt.Errorf( "account %q has %s token denomination, expected upokt only: %s", - addr, upoktCoins.Denom, account.Coins, + addr, account.TotalTokens.Denom, account.TotalTokens, ) } - account.Coins[0].Amount = account.Coins[0].Amount.Add(amount) + account.TotalTokens.Amount = account.TotalTokens.Amount.Add(amount) return nil } diff --git a/go.mod b/go.mod index 162807307..6deefaa2e 100644 --- a/go.mod +++ b/go.mod @@ -71,7 +71,7 @@ require ( golang.org/x/sync v0.10.0 golang.org/x/text v0.21.0 golang.org/x/tools v0.23.0 - google.golang.org/genproto/googleapis/api v0.0.0-20240709173604-40e1e62336c5 + google.golang.org/genproto/googleapis/api v0.0.0-20240709173604-40e1e62336c5 // indirect google.golang.org/grpc v1.65.0 google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.4.0 google.golang.org/protobuf v1.34.2 diff --git a/proto/poktroll/migration/genesis.proto b/proto/poktroll/migration/genesis.proto index e46687280..14ca9a81d 100644 --- a/proto/poktroll/migration/genesis.proto +++ b/proto/poktroll/migration/genesis.proto @@ -5,7 +5,7 @@ package poktroll.migration; import "amino/amino.proto"; import "gogoproto/gogo.proto"; import "poktroll/migration/params.proto"; -import "poktroll/migration/morse_claimable_account.proto"; +import "poktroll/migration/morse_onchain.proto"; option go_package = "github.com/pokt-network/poktroll/x/migration/types"; option (gogoproto.stable_marshaler_all) = true; diff --git a/proto/poktroll/migration/morse_claimable_account.proto b/proto/poktroll/migration/morse_claimable_account.proto deleted file mode 100644 index 053905efd..000000000 --- a/proto/poktroll/migration/morse_claimable_account.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; -package poktroll.migration; - -option go_package = "github.com/pokt-network/poktroll/x/migration/types"; - -message MorseClaimableAccount { - string address = 1; - string publicKey = 2; - string totalTokens = 3; - bool claimed = 4; - -} - diff --git a/proto/poktroll/migration/morse_offchain.proto b/proto/poktroll/migration/morse_offchain.proto index 2db801988..08bfd9337 100644 --- a/proto/poktroll/migration/morse_offchain.proto +++ b/proto/poktroll/migration/morse_offchain.proto @@ -22,6 +22,8 @@ syntax = "proto3"; package poktroll.migration; import "gogoproto/gogo.proto"; +import "cosmos_proto/cosmos.proto"; +import "cosmos/base/v1beta1/coin.proto"; import "poktroll/migration/morse_onchain.proto"; option go_package = "github.com/pokt-network/poktroll/x/migration/types"; @@ -122,3 +124,29 @@ message MorseValidator { // The string representation of the BigInt amount of upokt. string staked_tokens = 7 [(gogoproto.jsontag) = "tokens"]; } + +// MorseAccount is an analog of the Morse ProtoBaseAccount type. +// It encapsulates the minimum information required to import accounts. +// +// See: https://github.com/pokt-network/pocket-core/blob/staging/proto/x/auth/auth.proto#L14. +message MorseAccount { + option (gogoproto.messagename) = true; + option (gogoproto.goproto_getters) = false; + option (gogoproto.goproto_stringer) = true; + option (cosmos_proto.implements_interface) = "Account"; + + // A hex-encoded representation of the address corresponding to a Morse application's ed25519 public key. + bytes address = 1 [(gogoproto.jsontag) = "address", (gogoproto.casttype) = "github.com/cometbft/cometbft/crypto.Address"]; + + // The ed25519 public key of the account. + MorsePublicKey pub_key = 2 [(gogoproto.jsontag) = "public_key", (gogoproto.moretags) = "yaml:\"public_key\""]; + + // The account balance; this does not include any actor stakes. + repeated cosmos.base.v1beta1.Coin coins = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "coins"]; +} + +// MorsePublicKey is required to conform to the encoding of the Morse state export. +// NB: All Morse account public keys will be ed25519 keys by definition. +message MorsePublicKey { + bytes value = 2 [(gogoproto.casttype) = "crypto/ed25519.PublicKey"]; +} diff --git a/proto/poktroll/migration/morse_onchain.proto b/proto/poktroll/migration/morse_onchain.proto index 2e2352b10..84218320c 100644 --- a/proto/poktroll/migration/morse_onchain.proto +++ b/proto/poktroll/migration/morse_onchain.proto @@ -9,37 +9,28 @@ import "gogoproto/gogo.proto"; option go_package = "github.com/pokt-network/poktroll/x/migration/types"; option (gogoproto.stable_marshaler_all) = true; -// MorseAccountState is the onchain representation of the imported account state from Morse. -// -// TODO_UPNEXT(@bryanchriswhite): Decompose this on-chain structure. +// MorseAccountState is the onchain representation of all account state to be migrated from Morse. +// It is NEVER persisted onchain but is a dependency of the MsgImportMorseClaimableAccount handler. +// It's main purpose is to expose the #GetHash() method for verifying the integrity of all MorseClaimableAccounts. message MorseAccountState { - map accounts_idx_by_address = 1 [(gogoproto.jsontag) = "accounts_idx_by_address", (gogoproto.moretags) = "yaml:\"accounts_idx_by_address\""]; - repeated MorseAccount accounts = 2 [(gogoproto.jsontag) = "accounts", (gogoproto.moretags) = "yaml:\"accounts\""]; + repeated MorseClaimableAccount accounts = 2 [(gogoproto.jsontag) = "accounts", (gogoproto.moretags) = "yaml:\"accounts\""]; } -// MorseAccount is an analog of the Morse ProtoBaseAccount type. -// It encapsulates the minimum information required to import accounts. -// -// See: https://github.com/pokt-network/pocket-core/blob/staging/proto/x/auth/auth.proto#L14. -message MorseAccount { - option (gogoproto.messagename) = true; - option (gogoproto.goproto_getters) = false; - option (gogoproto.goproto_stringer) = true; - option (cosmos_proto.implements_interface) = "Account"; - +// MorseClaimableAccount is the onchain (persisted) representation of a Morse +// account which is claimable as part of the Morse -> Shannon migration. +// They are intended to be created during MorseAccountState import (see: MsgImportMorseClaimableAccount). +message MorseClaimableAccount { // A hex-encoded representation of the address corresponding to a Morse application's ed25519 public key. bytes address = 1 [(gogoproto.jsontag) = "address", (gogoproto.casttype) = "github.com/cometbft/cometbft/crypto.Address"]; // The ed25519 public key of the account. - MorsePublicKey pub_key = 2 [(gogoproto.jsontag) = "public_key", (gogoproto.moretags) = "yaml:\"public_key\""]; + bytes public_key = 2 [(gogoproto.casttype) = "crypto/ed25519.PublicKey"]; // The total amount of uPOKT owned by the account; this is a sum of the balance and any actor stakes. // NB: The default stake/balance proportion is derived from Morse query response(s) at the time of claiming. - repeated cosmos.base.v1beta1.Coin coins = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "coins"]; -} + cosmos.base.v1beta1.Coin total_tokens = 3 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "coins"]; + + int64 claimed_at_height = 4; -// MorsePublicKey is required to conform to the encoding of the Morse state export. -// NB: All Morse account public keys will be ed25519 keys by definition. -message MorsePublicKey { - bytes value = 2 [(gogoproto.casttype) = "crypto/ed25519.PublicKey"]; } + diff --git a/proto/poktroll/migration/query.proto b/proto/poktroll/migration/query.proto index 7dfc6bfa5..3f4005692 100644 --- a/proto/poktroll/migration/query.proto +++ b/proto/poktroll/migration/query.proto @@ -7,7 +7,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "poktroll/migration/params.proto"; -import "poktroll/migration/morse_claimable_account.proto"; +import "poktroll/migration/morse_onchain.proto"; option go_package = "github.com/pokt-network/poktroll/x/migration/types"; option (gogoproto.stable_marshaler_all) = true; diff --git a/testutil/sample/sample.go b/testutil/sample/sample.go index 085c63599..563efe2cb 100644 --- a/testutil/sample/sample.go +++ b/testutil/sample/sample.go @@ -66,3 +66,9 @@ func AccAddressFromConsBech32(consBech32 string) string { accAddr, _ := cosmostypes.AccAddressFromHexUnsafe(hex.EncodeToString(consAccAddr.Bytes())) return accAddr.String() } + +// MorseAddressHex returns the hex-encoded string representation of the address +// corresponding to a random Morse (ed25519) keypair. +func MorseAddressHex() string { + return hex.EncodeToString(ConsAddress().Bytes()) +} diff --git a/x/migration/keeper/morse_claimable_account.go b/x/migration/keeper/morse_claimable_account.go index 5dff190f6..81cdb09b5 100644 --- a/x/migration/keeper/morse_claimable_account.go +++ b/x/migration/keeper/morse_claimable_account.go @@ -6,6 +6,7 @@ import ( "cosmossdk.io/store/prefix" storetypes "cosmossdk.io/store/types" "github.com/cosmos/cosmos-sdk/runtime" + "github.com/pokt-network/poktroll/x/migration/types" ) @@ -15,7 +16,7 @@ func (k Keeper) SetMorseClaimableAccount(ctx context.Context, morseClaimableAcco store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.MorseClaimableAccountKeyPrefix)) b := k.cdc.MustMarshal(&morseClaimableAccount) store.Set(types.MorseClaimableAccountKey( - morseClaimableAccount.Address, + morseClaimableAccount.Address.String(), ), b) } diff --git a/x/migration/keeper/morse_claimable_account_test.go b/x/migration/keeper/morse_claimable_account_test.go index 55e2f5267..51b493302 100644 --- a/x/migration/keeper/morse_claimable_account_test.go +++ b/x/migration/keeper/morse_claimable_account_test.go @@ -5,11 +5,13 @@ import ( "strconv" "testing" + "github.com/stretchr/testify/require" + keepertest "github.com/pokt-network/poktroll/testutil/keeper" "github.com/pokt-network/poktroll/testutil/nullify" + "github.com/pokt-network/poktroll/testutil/sample" "github.com/pokt-network/poktroll/x/migration/keeper" "github.com/pokt-network/poktroll/x/migration/types" - "github.com/stretchr/testify/require" ) // Prevent strconv unused error @@ -18,7 +20,7 @@ var _ = strconv.IntSize func createNMorseClaimableAccount(keeper keeper.Keeper, ctx context.Context, n int) []types.MorseClaimableAccount { items := make([]types.MorseClaimableAccount, n) for i := range items { - items[i].Address = strconv.Itoa(i) + items[i].Address = []byte(sample.MorseAddressHex()) keeper.SetMorseClaimableAccount(ctx, items[i]) } @@ -30,7 +32,7 @@ func TestMorseClaimableAccountGet(t *testing.T) { items := createNMorseClaimableAccount(keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetMorseClaimableAccount(ctx, - item.Address, + item.Address.String(), ) require.True(t, found) require.Equal(t, @@ -44,10 +46,10 @@ func TestMorseClaimableAccountRemove(t *testing.T) { items := createNMorseClaimableAccount(keeper, ctx, 10) for _, item := range items { keeper.RemoveMorseClaimableAccount(ctx, - item.Address, + item.Address.String(), ) _, found := keeper.GetMorseClaimableAccount(ctx, - item.Address, + item.Address.String(), ) require.False(t, found) } diff --git a/x/migration/keeper/query_morse_claimable_account_test.go b/x/migration/keeper/query_morse_claimable_account_test.go index b2bb9767b..b76dc0c67 100644 --- a/x/migration/keeper/query_morse_claimable_account_test.go +++ b/x/migration/keeper/query_morse_claimable_account_test.go @@ -29,14 +29,14 @@ func TestMorseClaimableAccountQuerySingle(t *testing.T) { { desc: "First", request: &types.QueryGetMorseClaimableAccountRequest{ - Address: msgs[0].Address, + Address: msgs[0].Address.String(), }, response: &types.QueryGetMorseClaimableAccountResponse{MorseClaimableAccount: msgs[0]}, }, { desc: "Second", request: &types.QueryGetMorseClaimableAccountRequest{ - Address: msgs[1].Address, + Address: msgs[1].Address.String(), }, response: &types.QueryGetMorseClaimableAccountResponse{MorseClaimableAccount: msgs[1]}, }, diff --git a/x/migration/module/genesis_test.go b/x/migration/module/genesis_test.go index c76d2b4a8..b4486cd3d 100644 --- a/x/migration/module/genesis_test.go +++ b/x/migration/module/genesis_test.go @@ -3,11 +3,13 @@ package migration_test import ( "testing" + "github.com/stretchr/testify/require" + keepertest "github.com/pokt-network/poktroll/testutil/keeper" "github.com/pokt-network/poktroll/testutil/nullify" + "github.com/pokt-network/poktroll/testutil/sample" migration "github.com/pokt-network/poktroll/x/migration/module" "github.com/pokt-network/poktroll/x/migration/types" - "github.com/stretchr/testify/require" ) func TestGenesis(t *testing.T) { @@ -16,10 +18,10 @@ func TestGenesis(t *testing.T) { MorseClaimableAccountList: []types.MorseClaimableAccount{ { - Address: "0", + Address: []byte(sample.MorseAddressHex()), }, { - Address: "1", + Address: []byte(sample.MorseAddressHex()), }, }, // this line is used by starport scaffolding # genesis/test/state diff --git a/x/migration/types/genesis.go b/x/migration/types/genesis.go index 623533dab..0ad17b97d 100644 --- a/x/migration/types/genesis.go +++ b/x/migration/types/genesis.go @@ -23,7 +23,7 @@ func (gs GenesisState) Validate() error { morseClaimableAccountIndexMap := make(map[string]struct{}) for _, elem := range gs.MorseClaimableAccountList { - index := string(MorseClaimableAccountKey(elem.Address)) + index := string(MorseClaimableAccountKey(elem.Address.String())) if _, ok := morseClaimableAccountIndexMap[index]; ok { return fmt.Errorf("duplicated index for morseClaimableAccount") } diff --git a/x/migration/types/genesis.pb.go b/x/migration/types/genesis.pb.go index 3c86a15fc..327312467 100644 --- a/x/migration/types/genesis.pb.go +++ b/x/migration/types/genesis.pb.go @@ -87,19 +87,19 @@ var fileDescriptor_c544bf46e8dacb64 = []byte{ 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xa9, 0xd0, 0x83, 0xab, 0x90, 0x12, 0x4c, 0xcc, 0xcd, 0xcc, 0xcb, 0xd7, 0x07, 0x93, 0x10, 0x65, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0xa6, 0x3e, 0x88, 0x05, 0x15, 0x95, 0xc7, 0x62, 0x7c, 0x41, - 0x62, 0x51, 0x62, 0x2e, 0xd4, 0x74, 0x29, 0x03, 0x2c, 0x0a, 0x72, 0xf3, 0x8b, 0x8a, 0x53, 0xe3, - 0x93, 0x73, 0x12, 0x33, 0x73, 0x13, 0x93, 0x72, 0x52, 0xe3, 0x13, 0x93, 0x93, 0xf3, 0x4b, 0xf3, - 0x4a, 0x20, 0x3a, 0x94, 0xf6, 0x30, 0x72, 0xf1, 0xb8, 0x43, 0x5c, 0x18, 0x5c, 0x92, 0x58, 0x92, - 0x2a, 0x64, 0xcb, 0xc5, 0x06, 0x31, 0x52, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x4a, 0x0f, - 0xd3, 0xc5, 0x7a, 0x01, 0x60, 0x15, 0x4e, 0x9c, 0x27, 0xee, 0xc9, 0x33, 0xac, 0x78, 0xbe, 0x41, - 0x8b, 0x31, 0x08, 0xaa, 0x49, 0x28, 0x97, 0x4b, 0x12, 0x6c, 0xa1, 0x33, 0xcc, 0x3e, 0x47, 0x88, - 0x75, 0x3e, 0x99, 0xc5, 0x25, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0x9a, 0xd8, 0x4c, 0xf4, - 0xc5, 0xa6, 0xc9, 0x89, 0x05, 0x64, 0x41, 0x10, 0x6e, 0x13, 0x9d, 0x02, 0x4e, 0x3c, 0x92, 0x63, - 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc6, 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, 0x7d, 0x90, 0x9d, 0xba, 0x79, 0xa9, 0x25, 0xe5, 0xf9, 0x45, - 0xd9, 0xfa, 0xf0, 0x60, 0xaa, 0x40, 0x0a, 0xa8, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, - 0xb8, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xce, 0xcc, 0x06, 0x78, 0xcb, 0x01, 0x00, 0x00, + 0x62, 0x51, 0x62, 0x2e, 0xd4, 0x74, 0x29, 0x35, 0x2c, 0x0a, 0x72, 0xf3, 0x8b, 0x8a, 0x53, 0xe3, + 0xf3, 0xf3, 0x92, 0x33, 0x12, 0x33, 0xf3, 0x20, 0xea, 0x94, 0xf6, 0x30, 0x72, 0xf1, 0xb8, 0x43, + 0xdc, 0x15, 0x5c, 0x92, 0x58, 0x92, 0x2a, 0x64, 0xcb, 0xc5, 0x06, 0x31, 0x48, 0x82, 0x51, 0x81, + 0x51, 0x83, 0xdb, 0x48, 0x4a, 0x0f, 0xd3, 0x9d, 0x7a, 0x01, 0x60, 0x15, 0x4e, 0x9c, 0x27, 0xee, + 0xc9, 0x33, 0xac, 0x78, 0xbe, 0x41, 0x8b, 0x31, 0x08, 0xaa, 0x49, 0x28, 0x97, 0x4b, 0x12, 0x6c, + 0x8d, 0x73, 0x4e, 0x62, 0x66, 0x6e, 0x62, 0x52, 0x4e, 0xaa, 0x63, 0x72, 0x72, 0x7e, 0x69, 0x5e, + 0x89, 0x4f, 0x66, 0x71, 0x89, 0x04, 0x93, 0x02, 0xb3, 0x06, 0xb7, 0x91, 0x26, 0x36, 0x13, 0x7d, + 0xb1, 0x69, 0x72, 0x62, 0x01, 0x59, 0x10, 0x84, 0xdb, 0x44, 0xa7, 0x80, 0x13, 0x8f, 0xe4, 0x18, + 0x2f, 0x3c, 0x92, 0x63, 0xbc, 0xf1, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, + 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x28, 0x3d, 0xb3, 0x24, 0xa3, + 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x64, 0xa7, 0x6e, 0x5e, 0x6a, 0x49, 0x79, 0x7e, 0x51, + 0xb6, 0x3e, 0x3c, 0x70, 0x2a, 0x90, 0x82, 0xa7, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, + 0x2e, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x84, 0xae, 0x41, 0xc1, 0xc1, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/migration/types/genesis_test.go b/x/migration/types/genesis_test.go index 8bd586d14..33d880d9e 100644 --- a/x/migration/types/genesis_test.go +++ b/x/migration/types/genesis_test.go @@ -3,11 +3,15 @@ package types_test import ( "testing" - "github.com/pokt-network/poktroll/x/migration/types" "github.com/stretchr/testify/require" + + "github.com/pokt-network/poktroll/testutil/sample" + "github.com/pokt-network/poktroll/x/migration/types" ) func TestGenesisState_Validate(t *testing.T) { + duplicateMorseAddress := []byte(sample.MorseAddressHex()) + tests := []struct { desc string genState *types.GenesisState @@ -24,10 +28,10 @@ func TestGenesisState_Validate(t *testing.T) { MorseClaimableAccountList: []types.MorseClaimableAccount{ { - Address: "0", + Address: []byte(sample.MorseAddressHex()), }, { - Address: "1", + Address: []byte(sample.MorseAddressHex()), }, }, // this line is used by starport scaffolding # types/genesis/validField @@ -39,10 +43,10 @@ func TestGenesisState_Validate(t *testing.T) { genState: &types.GenesisState{ MorseClaimableAccountList: []types.MorseClaimableAccount{ { - Address: "0", + Address: duplicateMorseAddress, }, { - Address: "0", + Address: duplicateMorseAddress, }, }, }, diff --git a/x/migration/types/morse_claimable_account.pb.go b/x/migration/types/morse_claimable_account.pb.go deleted file mode 100644 index 5d98c5f36..000000000 --- a/x/migration/types/morse_claimable_account.pb.go +++ /dev/null @@ -1,464 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: poktroll/migration/morse_claimable_account.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 MorseClaimableAccount struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` - TotalTokens string `protobuf:"bytes,3,opt,name=totalTokens,proto3" json:"totalTokens,omitempty"` - Claimed bool `protobuf:"varint,4,opt,name=claimed,proto3" json:"claimed,omitempty"` -} - -func (m *MorseClaimableAccount) Reset() { *m = MorseClaimableAccount{} } -func (m *MorseClaimableAccount) String() string { return proto.CompactTextString(m) } -func (*MorseClaimableAccount) ProtoMessage() {} -func (*MorseClaimableAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_69f06675521e5355, []int{0} -} -func (m *MorseClaimableAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MorseClaimableAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MorseClaimableAccount.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 *MorseClaimableAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_MorseClaimableAccount.Merge(m, src) -} -func (m *MorseClaimableAccount) XXX_Size() int { - return m.Size() -} -func (m *MorseClaimableAccount) XXX_DiscardUnknown() { - xxx_messageInfo_MorseClaimableAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_MorseClaimableAccount proto.InternalMessageInfo - -func (m *MorseClaimableAccount) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *MorseClaimableAccount) GetPublicKey() string { - if m != nil { - return m.PublicKey - } - return "" -} - -func (m *MorseClaimableAccount) GetTotalTokens() string { - if m != nil { - return m.TotalTokens - } - return "" -} - -func (m *MorseClaimableAccount) GetClaimed() bool { - if m != nil { - return m.Claimed - } - return false -} - -func init() { - proto.RegisterType((*MorseClaimableAccount)(nil), "poktroll.migration.MorseClaimableAccount") -} - -func init() { - proto.RegisterFile("poktroll/migration/morse_claimable_account.proto", fileDescriptor_69f06675521e5355) -} - -var fileDescriptor_69f06675521e5355 = []byte{ - // 237 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x28, 0xc8, 0xcf, 0x2e, - 0x29, 0xca, 0xcf, 0xc9, 0xd1, 0xcf, 0xcd, 0x4c, 0x2f, 0x4a, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0xcf, - 0xcd, 0x2f, 0x2a, 0x4e, 0x8d, 0x4f, 0xce, 0x49, 0xcc, 0xcc, 0x4d, 0x4c, 0xca, 0x49, 0x8d, 0x4f, - 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xe9, - 0xd0, 0x83, 0xeb, 0x50, 0xea, 0x66, 0xe4, 0x12, 0xf5, 0x05, 0xe9, 0x72, 0x86, 0x69, 0x72, 0x84, - 0xe8, 0x11, 0x92, 0xe0, 0x62, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60, 0x54, 0x60, - 0xd4, 0xe0, 0x0c, 0x82, 0x71, 0x85, 0x64, 0xb8, 0x38, 0x0b, 0x4a, 0x93, 0x72, 0x32, 0x93, 0xbd, - 0x53, 0x2b, 0x25, 0x98, 0xc0, 0x72, 0x08, 0x01, 0x21, 0x05, 0x2e, 0xee, 0x92, 0xfc, 0x92, 0xc4, - 0x9c, 0x90, 0xfc, 0xec, 0xd4, 0xbc, 0x62, 0x09, 0x66, 0xb0, 0x3c, 0xb2, 0x10, 0xc8, 0x64, 0xb0, - 0x13, 0x53, 0x53, 0x24, 0x58, 0x14, 0x18, 0x35, 0x38, 0x82, 0x60, 0x5c, 0x27, 0x9f, 0x13, 0x8f, - 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, - 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0x32, 0x4a, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, - 0x4b, 0xce, 0xcf, 0xd5, 0x07, 0x79, 0x43, 0x37, 0x2f, 0xb5, 0xa4, 0x3c, 0xbf, 0x28, 0x5b, 0x1f, - 0x1e, 0x0a, 0x15, 0x48, 0xe1, 0x50, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0xf6, 0xb6, 0x31, - 0x20, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x94, 0x98, 0xbb, 0x2a, 0x01, 0x00, 0x00, -} - -func (m *MorseClaimableAccount) 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 *MorseClaimableAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MorseClaimableAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Claimed { - i-- - if m.Claimed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.TotalTokens) > 0 { - i -= len(m.TotalTokens) - copy(dAtA[i:], m.TotalTokens) - i = encodeVarintMorseClaimableAccount(dAtA, i, uint64(len(m.TotalTokens))) - i-- - dAtA[i] = 0x1a - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintMorseClaimableAccount(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0x12 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintMorseClaimableAccount(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintMorseClaimableAccount(dAtA []byte, offset int, v uint64) int { - offset -= sovMorseClaimableAccount(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MorseClaimableAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovMorseClaimableAccount(uint64(l)) - } - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovMorseClaimableAccount(uint64(l)) - } - l = len(m.TotalTokens) - if l > 0 { - n += 1 + l + sovMorseClaimableAccount(uint64(l)) - } - if m.Claimed { - n += 2 - } - return n -} - -func sovMorseClaimableAccount(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMorseClaimableAccount(x uint64) (n int) { - return sovMorseClaimableAccount(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MorseClaimableAccount) 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 ErrIntOverflowMorseClaimableAccount - } - 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: MorseClaimableAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MorseClaimableAccount: 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 ErrIntOverflowMorseClaimableAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMorseClaimableAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMorseClaimableAccount - } - 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 PublicKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMorseClaimableAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMorseClaimableAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMorseClaimableAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalTokens", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMorseClaimableAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMorseClaimableAccount - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMorseClaimableAccount - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TotalTokens = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Claimed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMorseClaimableAccount - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Claimed = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMorseClaimableAccount(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMorseClaimableAccount - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMorseClaimableAccount(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, ErrIntOverflowMorseClaimableAccount - } - 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, ErrIntOverflowMorseClaimableAccount - } - 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, ErrIntOverflowMorseClaimableAccount - } - 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, ErrInvalidLengthMorseClaimableAccount - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMorseClaimableAccount - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMorseClaimableAccount - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMorseClaimableAccount = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMorseClaimableAccount = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMorseClaimableAccount = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/migration/types/morse_offchain.pb.go b/x/migration/types/morse_offchain.pb.go index 09cd6657f..cf84cb76e 100644 --- a/x/migration/types/morse_offchain.pb.go +++ b/x/migration/types/morse_offchain.pb.go @@ -25,8 +25,11 @@ package types import ( bytes "bytes" + crypto_ed25519 "crypto/ed25519" fmt "fmt" github_com_cometbft_cometbft_crypto "github.com/cometbft/cometbft/crypto" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" io "io" @@ -436,6 +439,94 @@ func (m *MorseValidator) XXX_DiscardUnknown() { var xxx_messageInfo_MorseValidator proto.InternalMessageInfo +// MorseAccount is an analog of the Morse ProtoBaseAccount type. +// It encapsulates the minimum information required to import accounts. +// +// See: https://github.com/pokt-network/pocket-core/blob/staging/proto/x/auth/auth.proto#L14. +type MorseAccount struct { + // A hex-encoded representation of the address corresponding to a Morse application's ed25519 public key. + Address github_com_cometbft_cometbft_crypto.Address `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cometbft/cometbft/crypto.Address" json:"address"` + // The ed25519 public key of the account. + PubKey *MorsePublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"public_key" yaml:"public_key"` + // The account balance; this does not include any actor stakes. + Coins []types.Coin `protobuf:"bytes,3,rep,name=coins,proto3" json:"coins"` +} + +func (m *MorseAccount) Reset() { *m = MorseAccount{} } +func (m *MorseAccount) String() string { return proto.CompactTextString(m) } +func (*MorseAccount) ProtoMessage() {} +func (*MorseAccount) Descriptor() ([]byte, []int) { + return fileDescriptor_a3da515ab792a974, []int{8} +} +func (m *MorseAccount) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MorseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *MorseAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_MorseAccount.Merge(m, src) +} +func (m *MorseAccount) XXX_Size() int { + return m.Size() +} +func (m *MorseAccount) XXX_DiscardUnknown() { + xxx_messageInfo_MorseAccount.DiscardUnknown(m) +} + +var xxx_messageInfo_MorseAccount proto.InternalMessageInfo + +func (*MorseAccount) XXX_MessageName() string { + return "poktroll.migration.MorseAccount" +} + +// MorsePublicKey is required to conform to the encoding of the Morse state export. +// NB: All Morse account public keys will be ed25519 keys by definition. +type MorsePublicKey struct { + Value crypto_ed25519.PublicKey `protobuf:"bytes,2,opt,name=value,proto3,casttype=crypto/ed25519.PublicKey" json:"value,omitempty"` +} + +func (m *MorsePublicKey) Reset() { *m = MorsePublicKey{} } +func (m *MorsePublicKey) String() string { return proto.CompactTextString(m) } +func (*MorsePublicKey) ProtoMessage() {} +func (*MorsePublicKey) Descriptor() ([]byte, []int) { + return fileDescriptor_a3da515ab792a974, []int{9} +} +func (m *MorsePublicKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MorsePublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *MorsePublicKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_MorsePublicKey.Merge(m, src) +} +func (m *MorsePublicKey) XXX_Size() int { + return m.Size() +} +func (m *MorsePublicKey) XXX_DiscardUnknown() { + xxx_messageInfo_MorsePublicKey.DiscardUnknown(m) +} + +var xxx_messageInfo_MorsePublicKey proto.InternalMessageInfo + +func (m *MorsePublicKey) GetValue() crypto_ed25519.PublicKey { + if m != nil { + return m.Value + } + return nil +} + func init() { proto.RegisterType((*MorseStateExport)(nil), "poktroll.migration.MorseStateExport") proto.RegisterType((*MorseTendermintAppState)(nil), "poktroll.migration.MorseTendermintAppState") @@ -445,6 +536,8 @@ func init() { proto.RegisterType((*MorsePos)(nil), "poktroll.migration.MorsePos") proto.RegisterType((*MorseApplication)(nil), "poktroll.migration.MorseApplication") proto.RegisterType((*MorseValidator)(nil), "poktroll.migration.MorseValidator") + proto.RegisterType((*MorseAccount)(nil), "poktroll.migration.MorseAccount") + proto.RegisterType((*MorsePublicKey)(nil), "poktroll.migration.MorsePublicKey") } func init() { @@ -452,53 +545,62 @@ func init() { } var fileDescriptor_a3da515ab792a974 = []byte{ - // 721 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0x4b, 0x6b, 0xdb, 0x4a, - 0x14, 0xb6, 0xf2, 0xb2, 0x3d, 0x76, 0x72, 0x13, 0x71, 0xe1, 0x9a, 0xdc, 0x5c, 0x8f, 0x99, 0xdb, - 0x36, 0x86, 0x50, 0x1b, 0x9c, 0x45, 0x21, 0x5d, 0x59, 0x50, 0x28, 0xf4, 0x41, 0x98, 0x86, 0xb6, - 0xa4, 0x50, 0x33, 0xb6, 0x65, 0x4b, 0xb5, 0xac, 0x19, 0x34, 0xa3, 0x34, 0xfe, 0x07, 0x5d, 0x76, - 0xd1, 0x45, 0x97, 0xf9, 0x2f, 0xdd, 0x74, 0x99, 0x65, 0x56, 0xa2, 0xd8, 0x9b, 0x56, 0xcb, 0x2c, - 0xbb, 0x2a, 0x33, 0x92, 0x6c, 0x25, 0x41, 0x34, 0xdb, 0x6e, 0x46, 0x73, 0xce, 0x7c, 0xdf, 0x79, - 0x7c, 0x3a, 0xc3, 0x80, 0x5d, 0x46, 0x47, 0xc2, 0xa3, 0x8e, 0xd3, 0x1c, 0xdb, 0x43, 0x8f, 0x08, - 0x9b, 0xba, 0xcd, 0x31, 0xf5, 0xb8, 0xd9, 0xa1, 0x83, 0x41, 0xcf, 0x22, 0xb6, 0xdb, 0x60, 0x1e, - 0x15, 0x54, 0xd7, 0x13, 0x60, 0x63, 0x0e, 0xdc, 0xfe, 0x7b, 0x48, 0x87, 0x54, 0x1d, 0x37, 0xe5, - 0x2e, 0x42, 0x6e, 0xdf, 0xcb, 0x0e, 0xe9, 0xa6, 0x22, 0xa2, 0x4f, 0x1a, 0xd8, 0x7c, 0x26, 0xfd, - 0x2f, 0x04, 0x11, 0xe6, 0xa3, 0x53, 0x46, 0x3d, 0xa1, 0xef, 0x82, 0x02, 0x61, 0xac, 0x63, 0x11, - 0x6e, 0x55, 0xb4, 0x9a, 0x56, 0x2f, 0x1a, 0xe5, 0x30, 0x80, 0x73, 0x1f, 0xce, 0x13, 0xc6, 0x1e, - 0x13, 0x6e, 0xe9, 0xaf, 0x40, 0x51, 0x3a, 0xb9, 0xe4, 0x56, 0x96, 0x6a, 0x5a, 0xbd, 0xd4, 0xda, - 0x6b, 0xdc, 0xac, 0xb1, 0xa1, 0x32, 0x1c, 0x99, 0x6e, 0xdf, 0xf4, 0xc6, 0xb6, 0x2b, 0xda, 0x8c, - 0xa9, 0x74, 0xc6, 0x7a, 0x18, 0xc0, 0x45, 0x04, 0x2c, 0x33, 0xa8, 0x03, 0xf4, 0x43, 0x03, 0xff, - 0x64, 0x90, 0xf4, 0xd7, 0xa0, 0x44, 0x18, 0x73, 0xec, 0x9e, 0x8a, 0xad, 0x0a, 0x2c, 0xb5, 0xee, - 0x66, 0xa6, 0x6d, 0x2f, 0xb0, 0xdc, 0xf8, 0x2b, 0x0c, 0x60, 0x9a, 0x8d, 0xd3, 0x86, 0xfe, 0x10, - 0xac, 0x10, 0x5f, 0x58, 0x71, 0x27, 0xff, 0x65, 0x87, 0xf4, 0x85, 0x65, 0x14, 0xc2, 0x00, 0x2a, - 0x38, 0x56, 0xab, 0xfe, 0x00, 0x2c, 0x33, 0xca, 0x2b, 0xcb, 0x8a, 0xbb, 0x93, 0xc9, 0x3d, 0xa4, - 0xdc, 0xc8, 0x87, 0x01, 0x94, 0x60, 0x2c, 0x17, 0x44, 0xc1, 0xd6, 0x8d, 0x42, 0xf5, 0x63, 0x50, - 0x4e, 0x55, 0xc6, 0x2b, 0x5a, 0x6d, 0xb9, 0x5e, 0x6a, 0xdd, 0xb9, 0x4d, 0x97, 0xc6, 0x66, 0x18, - 0xc0, 0x2b, 0x6c, 0x7c, 0xc5, 0x42, 0x6f, 0x40, 0x71, 0xde, 0x86, 0xfe, 0x1c, 0x14, 0x48, 0xaf, - 0x47, 0x7d, 0x57, 0xdc, 0x22, 0x89, 0x2f, 0xac, 0x76, 0x04, 0x8e, 0x27, 0x22, 0x66, 0xe2, 0xf9, - 0x0e, 0xf1, 0x78, 0x9e, 0x52, 0x58, 0x7d, 0x07, 0xac, 0x88, 0x09, 0x33, 0xe3, 0x59, 0x52, 0xc2, - 0x49, 0x1b, 0xab, 0x55, 0x6f, 0x83, 0xd5, 0x13, 0xe2, 0xf8, 0xc9, 0x00, 0xd5, 0xb2, 0xd3, 0xc7, - 0xa9, 0x8b, 0x61, 0x00, 0x23, 0x0a, 0x8e, 0x3e, 0xe8, 0x2d, 0x28, 0x24, 0xe2, 0xea, 0x18, 0x80, - 0x13, 0xe2, 0xd8, 0x7d, 0x22, 0xa8, 0x97, 0xb4, 0x84, 0x32, 0x63, 0xbe, 0x4c, 0xa0, 0xc6, 0x46, - 0x18, 0xc0, 0x14, 0x13, 0xa7, 0xf6, 0x68, 0xb6, 0x94, 0x74, 0x95, 0x9a, 0x96, 0x01, 0xc8, 0x93, - 0x7e, 0xdf, 0x33, 0x39, 0x57, 0x8d, 0x95, 0x8d, 0xa7, 0x61, 0x00, 0x13, 0xd7, 0x65, 0x00, 0x37, - 0x26, 0x64, 0xec, 0x1c, 0xa0, 0xd8, 0x81, 0x7e, 0x06, 0x70, 0x6f, 0x68, 0x0b, 0xcb, 0xef, 0x36, - 0x7a, 0x74, 0xdc, 0xec, 0xd1, 0xb1, 0x29, 0xba, 0x03, 0x91, 0xda, 0x78, 0x13, 0x26, 0x68, 0xa3, - 0x1d, 0xe1, 0x71, 0x12, 0x49, 0x37, 0x00, 0x60, 0x7e, 0xd7, 0xb1, 0x7b, 0x9d, 0x91, 0x39, 0x51, - 0x22, 0x95, 0x8d, 0xff, 0x65, 0xb1, 0x0b, 0xef, 0x65, 0x00, 0xb7, 0xa2, 0x6c, 0x0b, 0x1f, 0xc2, - 0xc5, 0xc8, 0x78, 0x62, 0x4e, 0xf4, 0x7d, 0xb0, 0xf6, 0x8e, 0xd8, 0x8e, 0xd9, 0x57, 0xf3, 0x59, - 0x30, 0xfe, 0x0d, 0x03, 0x18, 0x7b, 0x2e, 0x03, 0xb8, 0x1e, 0x71, 0x23, 0x1b, 0xe1, 0xf8, 0x40, - 0x92, 0xe4, 0xbd, 0xf4, 0x79, 0x65, 0xa5, 0xa6, 0xd5, 0x57, 0x23, 0x52, 0xe4, 0x59, 0x90, 0x22, - 0x1b, 0xe1, 0xf8, 0x40, 0x6f, 0x82, 0x75, 0x2e, 0xc8, 0xc8, 0xec, 0x77, 0x04, 0x1d, 0x99, 0x2e, - 0xaf, 0xac, 0xa9, 0x9f, 0x0e, 0x24, 0x37, 0xf2, 0xe0, 0x72, 0x04, 0x38, 0x52, 0xd6, 0x41, 0xe1, - 0xc3, 0x19, 0xcc, 0x7d, 0x3f, 0x83, 0x1a, 0xfa, 0xb2, 0x04, 0x36, 0xae, 0xfe, 0x94, 0x3f, 0x4a, - 0x63, 0x74, 0x4d, 0x63, 0xb0, 0xd0, 0x78, 0x2e, 0x29, 0xba, 0x26, 0x29, 0x58, 0x48, 0x9a, 0xad, - 0x60, 0xfe, 0x37, 0x0a, 0x96, 0xa5, 0x82, 0x9f, 0xcf, 0xa0, 0x26, 0x55, 0x34, 0x0e, 0xbf, 0x4e, - 0xab, 0xda, 0xf9, 0xb4, 0xaa, 0x5d, 0x4c, 0xab, 0xda, 0xb7, 0x69, 0x55, 0xfb, 0x38, 0xab, 0xe6, - 0xce, 0x67, 0xd5, 0xdc, 0xc5, 0xac, 0x9a, 0x3b, 0x6e, 0xa5, 0xe4, 0x91, 0x77, 0xe2, 0xbe, 0x6b, - 0x8a, 0xf7, 0xd4, 0x1b, 0x35, 0xe7, 0xef, 0xc5, 0x69, 0xea, 0xc5, 0x90, 0xf7, 0x93, 0x77, 0xd7, - 0xd4, 0x53, 0xb1, 0xff, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x66, 0x0b, 0xd9, 0xa7, 0x06, 0x00, - 0x00, + // 879 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xf7, 0xe6, 0x9f, 0xed, 0x89, 0x13, 0xda, 0x11, 0x52, 0xdd, 0x10, 0x3c, 0xd6, 0xf0, 0xa7, + 0x91, 0xaa, 0xee, 0x2a, 0xae, 0x2a, 0x44, 0x90, 0x90, 0xbc, 0x80, 0x84, 0xc4, 0x1f, 0x45, 0x43, + 0x04, 0xa8, 0x48, 0x98, 0xf1, 0x7a, 0x13, 0x2f, 0xb6, 0x77, 0x46, 0x3b, 0xb3, 0xa1, 0xfe, 0x06, + 0x3d, 0x72, 0xe0, 0xc0, 0x8d, 0x88, 0xcf, 0xc0, 0x37, 0xe0, 0x52, 0x71, 0xea, 0xb1, 0xa7, 0x15, + 0x8a, 0x2f, 0xb0, 0xc7, 0x1c, 0x7b, 0x42, 0x33, 0xb3, 0xbb, 0xde, 0xa4, 0x5a, 0x88, 0xb8, 0xf5, + 0xb2, 0x9e, 0xf7, 0xe6, 0xf7, 0x9b, 0xf7, 0xde, 0xcf, 0x6f, 0xe6, 0x81, 0x3b, 0x9c, 0x4d, 0x64, + 0xc4, 0xa6, 0x53, 0x67, 0x16, 0x9c, 0x44, 0x54, 0x06, 0x2c, 0x74, 0x66, 0x2c, 0x12, 0xfe, 0x80, + 0x1d, 0x1f, 0x7b, 0x63, 0x1a, 0x84, 0x36, 0x8f, 0x98, 0x64, 0x10, 0xe6, 0x40, 0xbb, 0x00, 0xee, + 0xbc, 0x7a, 0xc2, 0x4e, 0x98, 0xde, 0x76, 0xd4, 0xca, 0x20, 0x77, 0x6e, 0x7b, 0x4c, 0xcc, 0x98, + 0x18, 0x98, 0x0d, 0x63, 0x64, 0x5b, 0x1d, 0x63, 0x39, 0x43, 0x2a, 0x7c, 0xe7, 0x74, 0x7f, 0xe8, + 0x4b, 0xba, 0xef, 0x78, 0x2c, 0x0f, 0xb2, 0xf3, 0x76, 0x75, 0x36, 0x61, 0x29, 0x19, 0xfc, 0x93, + 0x05, 0x6e, 0x7c, 0xa6, 0xfc, 0x5f, 0x48, 0x2a, 0xfd, 0x8f, 0x1e, 0x71, 0x16, 0x49, 0x78, 0x07, + 0x34, 0x28, 0xe7, 0x83, 0x31, 0x15, 0xe3, 0xb6, 0xd5, 0xb5, 0xf6, 0x9a, 0x6e, 0x2b, 0x4d, 0x50, + 0xe1, 0x23, 0x75, 0xca, 0xf9, 0xc7, 0x54, 0x8c, 0xe1, 0x57, 0xa0, 0xa9, 0x9c, 0x42, 0x71, 0xdb, + 0x2b, 0x5d, 0x6b, 0x6f, 0xb3, 0x77, 0xd7, 0x7e, 0xb1, 0x3c, 0x5b, 0x47, 0x38, 0xf2, 0xc3, 0x91, + 0x1f, 0xcd, 0x82, 0x50, 0xf6, 0x39, 0xd7, 0xe1, 0xdc, 0xad, 0x34, 0x41, 0xcb, 0x13, 0x88, 0x8a, + 0xa0, 0x37, 0xf0, 0xdf, 0x16, 0xb8, 0x55, 0x41, 0x82, 0x5f, 0x83, 0x4d, 0xca, 0xf9, 0x34, 0xf0, + 0xf4, 0xd9, 0x3a, 0xc1, 0xcd, 0xde, 0x5b, 0x95, 0x61, 0xfb, 0x4b, 0xac, 0x70, 0x5f, 0x49, 0x13, + 0x54, 0x66, 0x93, 0xb2, 0x01, 0xdf, 0x03, 0x6b, 0x34, 0x96, 0xe3, 0xac, 0x92, 0xd7, 0xab, 0x8f, + 0x8c, 0xe5, 0xd8, 0x6d, 0xa4, 0x09, 0xd2, 0x70, 0xa2, 0xbf, 0xf0, 0x1d, 0xb0, 0xca, 0x99, 0x68, + 0xaf, 0x6a, 0xee, 0x6e, 0x25, 0xf7, 0x90, 0x09, 0xb7, 0x9e, 0x26, 0x48, 0x81, 0x89, 0xfa, 0x60, + 0x06, 0x6e, 0xbe, 0x90, 0x28, 0x7c, 0x08, 0x5a, 0xa5, 0xcc, 0x44, 0xdb, 0xea, 0xae, 0xee, 0x6d, + 0xf6, 0xde, 0xbc, 0x4e, 0x95, 0xee, 0x8d, 0x34, 0x41, 0x97, 0xd8, 0xe4, 0x92, 0x85, 0xbf, 0x01, + 0xcd, 0xa2, 0x0c, 0xf8, 0x39, 0x68, 0x50, 0xcf, 0x63, 0x71, 0x28, 0xaf, 0x11, 0x24, 0x96, 0xe3, + 0xbe, 0x01, 0x67, 0x1d, 0x91, 0x31, 0x49, 0xb1, 0xc2, 0x22, 0xeb, 0xa7, 0x12, 0x16, 0xee, 0x82, + 0x35, 0x39, 0xe7, 0x7e, 0xd6, 0x4b, 0x5a, 0x38, 0x65, 0x13, 0xfd, 0x85, 0x7d, 0xb0, 0x7e, 0x4a, + 0xa7, 0x71, 0xde, 0x40, 0xdd, 0xea, 0xf0, 0x59, 0xe8, 0x66, 0x9a, 0x20, 0x43, 0x21, 0xe6, 0x07, + 0x7f, 0x0b, 0x1a, 0xb9, 0xb8, 0x90, 0x00, 0x70, 0x4a, 0xa7, 0xc1, 0x88, 0x4a, 0x16, 0xe5, 0x25, + 0xe1, 0xca, 0x33, 0xbf, 0xcc, 0xa1, 0xee, 0x76, 0x9a, 0xa0, 0x12, 0x93, 0x94, 0xd6, 0x78, 0xb1, + 0x92, 0x57, 0x55, 0xea, 0x96, 0x63, 0x50, 0xa7, 0xa3, 0x51, 0xe4, 0x0b, 0xa1, 0x0b, 0x6b, 0xb9, + 0x9f, 0xa6, 0x09, 0xca, 0x5d, 0x17, 0x09, 0xda, 0x9e, 0xd3, 0xd9, 0xf4, 0x00, 0x67, 0x0e, 0xfc, + 0x3c, 0x41, 0x77, 0x4f, 0x02, 0x39, 0x8e, 0x87, 0xb6, 0xc7, 0x66, 0x8e, 0xc7, 0x66, 0xbe, 0x1c, + 0x1e, 0xcb, 0xd2, 0x22, 0x9a, 0x73, 0xc9, 0xec, 0xbe, 0xc1, 0x93, 0xfc, 0x24, 0xe8, 0x02, 0xc0, + 0xe3, 0xe1, 0x34, 0xf0, 0x06, 0x13, 0x7f, 0xae, 0x45, 0x6a, 0xb9, 0x6f, 0xa8, 0x64, 0x97, 0xde, + 0x8b, 0x04, 0xdd, 0x34, 0xd1, 0x96, 0x3e, 0x4c, 0x9a, 0xc6, 0xf8, 0xc4, 0x9f, 0xc3, 0xfb, 0x60, + 0xe3, 0x7b, 0x1a, 0x4c, 0xfd, 0x91, 0xee, 0xcf, 0x86, 0xfb, 0x5a, 0x9a, 0xa0, 0xcc, 0x73, 0x91, + 0xa0, 0x2d, 0xc3, 0x35, 0x36, 0x26, 0xd9, 0x86, 0x22, 0xa9, 0x7b, 0x19, 0x8b, 0xf6, 0x5a, 0xd7, + 0xda, 0x5b, 0x37, 0x24, 0xe3, 0x59, 0x92, 0x8c, 0x8d, 0x49, 0xb6, 0x01, 0x1d, 0xb0, 0x25, 0x24, + 0x9d, 0xf8, 0xa3, 0x81, 0x64, 0x13, 0x3f, 0x14, 0xed, 0x0d, 0xfd, 0xa7, 0x03, 0xc5, 0x35, 0x1e, + 0xd2, 0x32, 0x80, 0x23, 0x6d, 0x1d, 0x34, 0x1e, 0x9f, 0xa1, 0xda, 0x5f, 0x67, 0xc8, 0xc2, 0xbf, + 0xaf, 0x80, 0xed, 0xcb, 0x7f, 0xca, 0x4b, 0xa5, 0x31, 0xbe, 0xa2, 0x31, 0x58, 0x6a, 0x5c, 0x48, + 0x8a, 0xaf, 0x48, 0x0a, 0x96, 0x92, 0x56, 0x2b, 0x58, 0xff, 0x0f, 0x05, 0x5b, 0x4a, 0xc1, 0x9f, + 0xcf, 0x90, 0xa5, 0x55, 0xfc, 0x65, 0x05, 0xb4, 0xca, 0xd7, 0x05, 0x1e, 0x5d, 0xd5, 0xf0, 0xa0, + 0xa4, 0xe1, 0xff, 0x56, 0xec, 0x3b, 0x50, 0xe7, 0xf1, 0xb0, 0x90, 0xeb, 0xdf, 0xee, 0xd8, 0x61, + 0x2e, 0xd1, 0xf5, 0x24, 0xdd, 0xe0, 0xf1, 0x50, 0xe9, 0xf9, 0x3e, 0x58, 0x57, 0x03, 0x4d, 0x3d, + 0xa9, 0xea, 0x0e, 0xdf, 0xb6, 0xb3, 0x01, 0xa8, 0x46, 0x9e, 0x9d, 0x8d, 0x3c, 0xfb, 0x03, 0x16, + 0x84, 0xee, 0xd6, 0x93, 0x04, 0xd5, 0xd4, 0xa3, 0xa0, 0xf1, 0xc4, 0xfc, 0x1c, 0xdc, 0xca, 0x65, + 0x79, 0xfc, 0x2b, 0xb2, 0xfe, 0xf8, 0xed, 0x5e, 0x3d, 0x13, 0x04, 0x7f, 0x98, 0xb5, 0x59, 0x91, + 0x17, 0xec, 0x95, 0x9f, 0xa0, 0x96, 0xbb, 0xfb, 0x3c, 0x41, 0x6d, 0x53, 0xb8, 0xe3, 0x8f, 0x7a, + 0x0f, 0x1e, 0xec, 0xbf, 0x6b, 0x17, 0xe0, 0xec, 0xcd, 0x71, 0x0f, 0x9f, 0x9c, 0x77, 0xac, 0xa7, + 0xe7, 0x1d, 0xeb, 0xd9, 0x79, 0xc7, 0xfa, 0xf3, 0xbc, 0x63, 0xfd, 0xb8, 0xe8, 0xd4, 0x9e, 0x2e, + 0x3a, 0xb5, 0x67, 0x8b, 0x4e, 0xed, 0x61, 0xaf, 0x24, 0xaa, 0xd2, 0xe5, 0x5e, 0xe8, 0xcb, 0x1f, + 0x58, 0x34, 0x71, 0x8a, 0xb9, 0xfc, 0xa8, 0x34, 0x99, 0xd5, 0x3b, 0x28, 0x86, 0x1b, 0x7a, 0x24, + 0xdf, 0xff, 0x27, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x7e, 0xfe, 0x4e, 0x4a, 0x08, 0x00, 0x00, } func (this *MorseApplication) Equal(that interface{}) bool { @@ -945,6 +1047,92 @@ func (m *MorseValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *MorseAccount) 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 *MorseAccount) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MorseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + 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 = encodeVarintMorseOffchain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.PubKey != nil { + { + size, err := m.PubKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMorseOffchain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintMorseOffchain(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MorsePublicKey) 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 *MorsePublicKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MorsePublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintMorseOffchain(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + func encodeVarintMorseOffchain(dAtA []byte, offset int, v uint64) int { offset -= sovMorseOffchain(v) base := offset @@ -1110,6 +1298,42 @@ func (m *MorseValidator) Size() (n int) { return n } +func (m *MorseAccount) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovMorseOffchain(uint64(l)) + } + if m.PubKey != nil { + l = m.PubKey.Size() + n += 1 + l + sovMorseOffchain(uint64(l)) + } + if len(m.Coins) > 0 { + for _, e := range m.Coins { + l = e.Size() + n += 1 + l + sovMorseOffchain(uint64(l)) + } + } + return n +} + +func (m *MorsePublicKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Value) + if l > 0 { + n += 1 + l + sovMorseOffchain(uint64(l)) + } + return n +} + func sovMorseOffchain(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -2140,6 +2364,244 @@ func (m *MorseValidator) Unmarshal(dAtA []byte) error { } return nil } +func (m *MorseAccount) 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 ErrIntOverflowMorseOffchain + } + 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: MorseAccount: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MorseAccount: 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 byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMorseOffchain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMorseOffchain + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMorseOffchain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMorseOffchain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMorseOffchain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMorseOffchain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PubKey == nil { + m.PubKey = &MorsePublicKey{} + } + if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 ErrIntOverflowMorseOffchain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMorseOffchain + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMorseOffchain + } + 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 + default: + iNdEx = preIndex + skippy, err := skipMorseOffchain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMorseOffchain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MorsePublicKey) 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 ErrIntOverflowMorseOffchain + } + 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: MorsePublicKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MorsePublicKey: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMorseOffchain + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMorseOffchain + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMorseOffchain + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMorseOffchain(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMorseOffchain + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipMorseOffchain(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/migration/types/morse_onchain.pb.go b/x/migration/types/morse_onchain.pb.go index 3b3d7421e..b141dae2d 100644 --- a/x/migration/types/morse_onchain.pb.go +++ b/x/migration/types/morse_onchain.pb.go @@ -11,7 +11,6 @@ import ( types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" - github_com_cosmos_gogoproto_sortkeys "github.com/cosmos/gogoproto/sortkeys" io "io" math "math" math_bits "math/bits" @@ -28,12 +27,11 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// MorseAccountState is the onchain representation of the imported account state from Morse. -// -// TODO_UPNEXT(@bryanchriswhite): Decompose this on-chain structure. +// MorseAccountState is the onchain representation of all account state to be migrated from Morse. +// It is NEVER persisted onchain but is a dependency of the MsgImportMorseClaimableAccount handler. +// It's main purpose is to expose the #GetHash() method for verifying the integrity of all MorseClaimableAccounts. type MorseAccountState struct { - AccountsIdxByAddress map[string]uint64 `protobuf:"bytes,1,rep,name=accounts_idx_by_address,json=accountsIdxByAddress,proto3" json:"accounts_idx_by_address" yaml:"accounts_idx_by_address" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - Accounts []*MorseAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts" yaml:"accounts"` + Accounts []*MorseClaimableAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts" yaml:"accounts"` } func (m *MorseAccountState) Reset() { *m = MorseAccountState{} } @@ -65,44 +63,37 @@ func (m *MorseAccountState) XXX_DiscardUnknown() { var xxx_messageInfo_MorseAccountState proto.InternalMessageInfo -func (m *MorseAccountState) GetAccountsIdxByAddress() map[string]uint64 { - if m != nil { - return m.AccountsIdxByAddress - } - return nil -} - -func (m *MorseAccountState) GetAccounts() []*MorseAccount { +func (m *MorseAccountState) GetAccounts() []*MorseClaimableAccount { if m != nil { return m.Accounts } return nil } -// MorseAccount is an analog of the Morse ProtoBaseAccount type. -// It encapsulates the minimum information required to import accounts. -// -// See: https://github.com/pokt-network/pocket-core/blob/staging/proto/x/auth/auth.proto#L14. -type MorseAccount struct { +// MorseClaimableAccount is the onchain (persisted) representation of a Morse +// account which is claimable as part of the Morse -> Shannon migration. +// They are intended to be created during MorseAccountState import (see: MsgImportMorseClaimableAccount). +type MorseClaimableAccount struct { // A hex-encoded representation of the address corresponding to a Morse application's ed25519 public key. Address github_com_cometbft_cometbft_crypto.Address `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cometbft/cometbft/crypto.Address" json:"address"` // The ed25519 public key of the account. - PubKey *MorsePublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"public_key" yaml:"public_key"` + PublicKey crypto_ed25519.PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3,casttype=crypto/ed25519.PublicKey" json:"public_key,omitempty"` // The total amount of uPOKT owned by the account; this is a sum of the balance and any actor stakes. // NB: The default stake/balance proportion is derived from Morse query response(s) at the time of claiming. - Coins []types.Coin `protobuf:"bytes,3,rep,name=coins,proto3" json:"coins"` + TotalTokens types.Coin `protobuf:"bytes,3,opt,name=total_tokens,json=totalTokens,proto3" json:"coins"` + ClaimedAtHeight int64 `protobuf:"varint,4,opt,name=claimed_at_height,json=claimedAtHeight,proto3" json:"claimed_at_height,omitempty"` } -func (m *MorseAccount) Reset() { *m = MorseAccount{} } -func (m *MorseAccount) String() string { return proto.CompactTextString(m) } -func (*MorseAccount) ProtoMessage() {} -func (*MorseAccount) Descriptor() ([]byte, []int) { +func (m *MorseClaimableAccount) Reset() { *m = MorseClaimableAccount{} } +func (m *MorseClaimableAccount) String() string { return proto.CompactTextString(m) } +func (*MorseClaimableAccount) ProtoMessage() {} +func (*MorseClaimableAccount) Descriptor() ([]byte, []int) { return fileDescriptor_e74ea76a959fdb61, []int{1} } -func (m *MorseAccount) XXX_Unmarshal(b []byte) error { +func (m *MorseClaimableAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MorseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MorseClaimableAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { @@ -110,69 +101,49 @@ func (m *MorseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) } return b[:n], nil } -func (m *MorseAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_MorseAccount.Merge(m, src) +func (m *MorseClaimableAccount) XXX_Merge(src proto.Message) { + xxx_messageInfo_MorseClaimableAccount.Merge(m, src) } -func (m *MorseAccount) XXX_Size() int { +func (m *MorseClaimableAccount) XXX_Size() int { return m.Size() } -func (m *MorseAccount) XXX_DiscardUnknown() { - xxx_messageInfo_MorseAccount.DiscardUnknown(m) +func (m *MorseClaimableAccount) XXX_DiscardUnknown() { + xxx_messageInfo_MorseClaimableAccount.DiscardUnknown(m) } -var xxx_messageInfo_MorseAccount proto.InternalMessageInfo +var xxx_messageInfo_MorseClaimableAccount proto.InternalMessageInfo -func (*MorseAccount) XXX_MessageName() string { - return "poktroll.migration.MorseAccount" +func (m *MorseClaimableAccount) GetAddress() github_com_cometbft_cometbft_crypto.Address { + if m != nil { + return m.Address + } + return nil } -// MorsePublicKey is required to conform to the encoding of the Morse state export. -// NB: All Morse account public keys will be ed25519 keys by definition. -type MorsePublicKey struct { - Value crypto_ed25519.PublicKey `protobuf:"bytes,2,opt,name=value,proto3,casttype=crypto/ed25519.PublicKey" json:"value,omitempty"` +func (m *MorseClaimableAccount) GetPublicKey() crypto_ed25519.PublicKey { + if m != nil { + return m.PublicKey + } + return nil } -func (m *MorsePublicKey) Reset() { *m = MorsePublicKey{} } -func (m *MorsePublicKey) String() string { return proto.CompactTextString(m) } -func (*MorsePublicKey) ProtoMessage() {} -func (*MorsePublicKey) Descriptor() ([]byte, []int) { - return fileDescriptor_e74ea76a959fdb61, []int{2} -} -func (m *MorsePublicKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MorsePublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (m *MorseClaimableAccount) GetTotalTokens() types.Coin { + if m != nil { + return m.TotalTokens } - return b[:n], nil -} -func (m *MorsePublicKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_MorsePublicKey.Merge(m, src) -} -func (m *MorsePublicKey) XXX_Size() int { - return m.Size() -} -func (m *MorsePublicKey) XXX_DiscardUnknown() { - xxx_messageInfo_MorsePublicKey.DiscardUnknown(m) + return types.Coin{} } -var xxx_messageInfo_MorsePublicKey proto.InternalMessageInfo - -func (m *MorsePublicKey) GetValue() crypto_ed25519.PublicKey { +func (m *MorseClaimableAccount) GetClaimedAtHeight() int64 { if m != nil { - return m.Value + return m.ClaimedAtHeight } - return nil + return 0 } func init() { proto.RegisterType((*MorseAccountState)(nil), "poktroll.migration.MorseAccountState") - proto.RegisterMapType((map[string]uint64)(nil), "poktroll.migration.MorseAccountState.AccountsIdxByAddressEntry") - proto.RegisterType((*MorseAccount)(nil), "poktroll.migration.MorseAccount") - proto.RegisterType((*MorsePublicKey)(nil), "poktroll.migration.MorsePublicKey") + proto.RegisterType((*MorseClaimableAccount)(nil), "poktroll.migration.MorseClaimableAccount") } func init() { @@ -180,42 +151,35 @@ func init() { } var fileDescriptor_e74ea76a959fdb61 = []byte{ - // 555 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xcf, 0x8b, 0xd3, 0x40, - 0x14, 0xee, 0xb4, 0xee, 0x56, 0x67, 0xeb, 0x8f, 0x0d, 0x85, 0x4d, 0x8b, 0x64, 0x4a, 0x04, 0x29, - 0xc8, 0x4e, 0x68, 0x65, 0x41, 0x0b, 0x2a, 0x1b, 0x15, 0x91, 0x45, 0x58, 0xa2, 0x27, 0x41, 0x62, - 0x92, 0x8e, 0xdd, 0xd0, 0x26, 0x13, 0x32, 0x93, 0xb5, 0xf9, 0x0f, 0xf6, 0xe8, 0xd1, 0x9b, 0x8b, - 0x7f, 0x83, 0xfe, 0x0f, 0x8b, 0xa7, 0x3d, 0xee, 0x69, 0x90, 0xf6, 0xd6, 0x63, 0xbd, 0xed, 0x49, - 0xd2, 0x49, 0xbb, 0x5d, 0xd6, 0xe2, 0x29, 0xef, 0x7d, 0xf9, 0xde, 0x7b, 0xdf, 0x7c, 0xbc, 0x07, - 0xef, 0x47, 0xb4, 0xcf, 0x63, 0x3a, 0x18, 0x18, 0x81, 0xdf, 0x8b, 0x1d, 0xee, 0xd3, 0xd0, 0x08, - 0x68, 0xcc, 0x88, 0x4d, 0x43, 0xef, 0xc0, 0xf1, 0x43, 0x1c, 0xc5, 0x94, 0x53, 0x45, 0x99, 0xf3, - 0xf0, 0x82, 0x57, 0xaf, 0x79, 0x94, 0x05, 0x94, 0xd9, 0x33, 0x86, 0x21, 0x13, 0x49, 0xaf, 0x6b, - 0x32, 0x33, 0x5c, 0x87, 0x11, 0xe3, 0xb0, 0xe5, 0x12, 0xee, 0xb4, 0x0c, 0x8f, 0xce, 0xdb, 0xd5, - 0xab, 0x3d, 0xda, 0xa3, 0xb2, 0x2e, 0x8b, 0x24, 0xaa, 0xff, 0x29, 0xc2, 0xcd, 0x37, 0xd9, 0xf0, - 0x5d, 0xcf, 0xa3, 0x49, 0xc8, 0xdf, 0x72, 0x87, 0x13, 0xe5, 0x27, 0x80, 0x5b, 0x8e, 0x04, 0x98, - 0xed, 0x77, 0x87, 0xb6, 0x9b, 0xda, 0x4e, 0xb7, 0x1b, 0x13, 0xc6, 0x54, 0xd0, 0x28, 0x35, 0x37, - 0xda, 0xcf, 0xf0, 0x55, 0x75, 0xf8, 0x4a, 0x23, 0x9c, 0x27, 0xec, 0x75, 0x77, 0x68, 0xa6, 0xbb, - 0xb2, 0xc3, 0xcb, 0x90, 0xc7, 0xa9, 0xf9, 0x64, 0x22, 0xd0, 0xaa, 0x19, 0x53, 0x81, 0xb4, 0xd4, - 0x09, 0x06, 0x1d, 0x7d, 0x05, 0x41, 0xb7, 0xaa, 0xce, 0x3f, 0x3a, 0x2b, 0x1f, 0xe0, 0xf5, 0x39, - 0xae, 0x16, 0x67, 0x3a, 0x1b, 0xff, 0xd3, 0x69, 0xa2, 0x89, 0x40, 0x8b, 0xaa, 0xa9, 0x40, 0xb7, - 0x2f, 0x4f, 0xd6, 0xad, 0xc5, 0xcf, 0xfa, 0x2b, 0x58, 0x5b, 0xf9, 0x20, 0xe5, 0x0e, 0x2c, 0xf5, - 0x49, 0xaa, 0x82, 0x06, 0x68, 0xde, 0xb0, 0xb2, 0x50, 0xa9, 0xc2, 0xb5, 0x43, 0x67, 0x90, 0x10, - 0xb5, 0xd8, 0x00, 0xcd, 0x6b, 0x96, 0x4c, 0x3a, 0xc5, 0x47, 0x40, 0xff, 0x56, 0x84, 0x95, 0x65, - 0x11, 0xca, 0x3b, 0x58, 0xbe, 0xf0, 0x17, 0x34, 0x2b, 0x66, 0x67, 0x22, 0xd0, 0x1c, 0x3a, 0x17, - 0xe8, 0x41, 0xcf, 0xe7, 0x07, 0x89, 0x8b, 0x3d, 0x1a, 0x18, 0x1e, 0x0d, 0x08, 0x77, 0x3f, 0xf1, - 0xa5, 0x20, 0x4e, 0x23, 0x4e, 0x71, 0x2e, 0xc7, 0x9a, 0xd7, 0x29, 0x1f, 0x61, 0x39, 0x4a, 0x5c, - 0x3b, 0x93, 0x95, 0x49, 0xd8, 0x68, 0xeb, 0x2b, 0xdd, 0xd8, 0x4f, 0xdc, 0x81, 0xef, 0xed, 0x91, - 0xd4, 0xbc, 0x37, 0x11, 0x08, 0x46, 0xb3, 0x34, 0xab, 0x9c, 0x0a, 0xb4, 0x29, 0x1d, 0xb9, 0xc0, - 0x74, 0x6b, 0x3d, 0x4a, 0xdc, 0x3d, 0x92, 0x2a, 0x4f, 0xe1, 0x5a, 0xb6, 0x62, 0x4c, 0x2d, 0xcd, - 0xdc, 0xae, 0xe1, 0x7c, 0x25, 0xb3, 0x25, 0xc4, 0xf9, 0x12, 0xe2, 0xe7, 0xd4, 0x0f, 0xcd, 0x9b, - 0x27, 0x02, 0x15, 0x26, 0x02, 0x49, 0xbe, 0x25, 0x3f, 0x9d, 0xad, 0xa3, 0x63, 0x54, 0xf8, 0x7a, - 0x8c, 0xc0, 0xd1, 0x77, 0x04, 0x7e, 0xfd, 0xd8, 0x2e, 0xe7, 0x86, 0xe8, 0x2f, 0xe0, 0xad, 0xcb, - 0xba, 0x94, 0xf6, 0xb2, 0x9b, 0x15, 0xf3, 0xee, 0xb9, 0x40, 0xaa, 0x7c, 0xb8, 0x41, 0xba, 0xed, - 0x9d, 0x9d, 0xd6, 0x63, 0xbc, 0x20, 0xe7, 0x5e, 0x9b, 0xfb, 0x27, 0x23, 0x0d, 0x9c, 0x8e, 0x34, - 0x70, 0x36, 0xd2, 0xc0, 0xef, 0x91, 0x06, 0xbe, 0x8c, 0xb5, 0xc2, 0xe9, 0x58, 0x2b, 0x9c, 0x8d, - 0xb5, 0xc2, 0xfb, 0xf6, 0x92, 0xa9, 0x99, 0x2f, 0xdb, 0x21, 0xe1, 0x9f, 0x69, 0xdc, 0x37, 0x16, - 0x07, 0x3a, 0x5c, 0x3a, 0x51, 0x9e, 0x46, 0x84, 0xb9, 0xeb, 0xb3, 0xb3, 0x79, 0xf8, 0x37, 0x00, - 0x00, 0xff, 0xff, 0x74, 0x88, 0x66, 0xee, 0xc5, 0x03, 0x00, 0x00, + // 446 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x52, 0x4d, 0x6b, 0xdb, 0x40, + 0x10, 0xb5, 0xec, 0x7e, 0xae, 0x53, 0x42, 0x44, 0x0b, 0x8a, 0x29, 0x92, 0xf1, 0xa1, 0xb8, 0x2d, + 0xdd, 0xc5, 0x2e, 0x39, 0x34, 0x3d, 0xd9, 0xb9, 0x14, 0x42, 0x21, 0xa8, 0x39, 0xf5, 0x22, 0x56, + 0xeb, 0x8d, 0x2c, 0x2c, 0x69, 0x84, 0x76, 0xdc, 0x56, 0xf4, 0x4f, 0xf4, 0x3f, 0xf4, 0xcf, 0xe4, + 0x98, 0x63, 0x4e, 0xa2, 0xd8, 0x37, 0x1f, 0x7b, 0xcc, 0xa9, 0x68, 0xd7, 0x32, 0x86, 0xe6, 0x36, + 0xf3, 0xe6, 0xbd, 0x27, 0xed, 0xbc, 0x21, 0xaf, 0x72, 0x58, 0x60, 0x01, 0x49, 0xc2, 0xd2, 0x38, + 0x2a, 0x38, 0xc6, 0x90, 0xb1, 0x14, 0x0a, 0x25, 0x03, 0xc8, 0xc4, 0x9c, 0xc7, 0x19, 0xcd, 0x0b, + 0x40, 0xb0, 0xed, 0x86, 0x47, 0x77, 0xbc, 0xde, 0xb1, 0x00, 0x95, 0x82, 0x0a, 0x34, 0x83, 0x99, + 0xc6, 0xd0, 0x7b, 0xae, 0xe9, 0x58, 0xc8, 0x95, 0x64, 0xdf, 0x46, 0xa1, 0x44, 0x3e, 0x62, 0x02, + 0x1a, 0xbb, 0xde, 0xf3, 0x08, 0x22, 0x30, 0xba, 0xba, 0x32, 0xe8, 0xe0, 0x27, 0x39, 0xfa, 0x5c, + 0x7f, 0x7b, 0x22, 0x04, 0x2c, 0x33, 0xfc, 0x82, 0x1c, 0xa5, 0x7d, 0x45, 0x9e, 0x70, 0xd3, 0x2b, + 0xa7, 0xdd, 0xef, 0x0c, 0xbb, 0xe3, 0xd7, 0xf4, 0xff, 0x9f, 0xa1, 0x5a, 0x78, 0x96, 0xf0, 0x38, + 0xe5, 0x61, 0xd2, 0x38, 0x4c, 0xbd, 0x4d, 0xe5, 0xed, 0xe4, 0x7f, 0x2b, 0xef, 0xb0, 0xe4, 0x69, + 0x72, 0x3a, 0x68, 0x90, 0x81, 0xbf, 0x1b, 0x0e, 0x7e, 0xb7, 0xc9, 0x8b, 0x7b, 0x4d, 0xec, 0x4b, + 0xf2, 0x98, 0xcf, 0x66, 0x85, 0x54, 0xca, 0xb1, 0xfa, 0xd6, 0xf0, 0x60, 0x7a, 0xba, 0xa9, 0xbc, + 0x06, 0xba, 0xab, 0xbc, 0xb7, 0x51, 0x8c, 0xf3, 0x65, 0x48, 0x05, 0xa4, 0x4c, 0x40, 0x2a, 0x31, + 0xbc, 0xc2, 0xbd, 0xa2, 0x28, 0x73, 0x04, 0x3a, 0x31, 0x74, 0xbf, 0xd1, 0xd9, 0x1f, 0x09, 0xc9, + 0x97, 0x61, 0x12, 0x8b, 0x60, 0x21, 0x4b, 0xa7, 0xad, 0x8d, 0x5f, 0xde, 0x55, 0x9e, 0x63, 0x04, + 0x4c, 0xce, 0xc6, 0x27, 0x27, 0xa3, 0x0f, 0xf4, 0x42, 0x93, 0xce, 0x65, 0xe9, 0x3f, 0xcd, 0x9b, + 0xd2, 0x3e, 0x27, 0x07, 0x08, 0xc8, 0x93, 0x00, 0x61, 0x21, 0x33, 0xe5, 0x74, 0xfa, 0xd6, 0xb0, + 0x3b, 0x3e, 0xa6, 0xdb, 0x10, 0xea, 0xb5, 0xd3, 0xed, 0xda, 0xe9, 0x19, 0xc4, 0xd9, 0xf4, 0xd9, + 0x75, 0xe5, 0xb5, 0x36, 0x95, 0xf7, 0xb0, 0x0e, 0x41, 0xf9, 0x5d, 0xad, 0xbe, 0xd4, 0x62, 0xfb, + 0x0d, 0x39, 0x12, 0xf5, 0x9b, 0xe5, 0x2c, 0xe0, 0x18, 0xcc, 0x65, 0x1c, 0xcd, 0xd1, 0x79, 0xd0, + 0xb7, 0x86, 0x1d, 0xff, 0x70, 0x3b, 0x98, 0xe0, 0x27, 0x0d, 0x4f, 0x2f, 0xae, 0x57, 0xae, 0x75, + 0xb3, 0x72, 0xad, 0xdb, 0x95, 0x6b, 0xfd, 0x59, 0xb9, 0xd6, 0xaf, 0xb5, 0xdb, 0xba, 0x59, 0xbb, + 0xad, 0xdb, 0xb5, 0xdb, 0xfa, 0x3a, 0xde, 0xdb, 0x44, 0x9d, 0xd1, 0xbb, 0x4c, 0xe2, 0x77, 0x28, + 0x16, 0x6c, 0x77, 0x65, 0x3f, 0xf6, 0xee, 0x0c, 0xcb, 0x5c, 0xaa, 0xf0, 0x91, 0xce, 0xfe, 0xfd, + 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4a, 0xe0, 0x91, 0xc2, 0x8a, 0x02, 0x00, 0x00, } func (m *MorseAccountState) Marshal() (dAtA []byte, err error) { @@ -252,32 +216,10 @@ func (m *MorseAccountState) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x12 } } - if len(m.AccountsIdxByAddress) > 0 { - keysForAccountsIdxByAddress := make([]string, 0, len(m.AccountsIdxByAddress)) - for k := range m.AccountsIdxByAddress { - keysForAccountsIdxByAddress = append(keysForAccountsIdxByAddress, string(k)) - } - github_com_cosmos_gogoproto_sortkeys.Strings(keysForAccountsIdxByAddress) - for iNdEx := len(keysForAccountsIdxByAddress) - 1; iNdEx >= 0; iNdEx-- { - v := m.AccountsIdxByAddress[string(keysForAccountsIdxByAddress[iNdEx])] - baseI := i - i = encodeVarintMorseOnchain(dAtA, i, uint64(v)) - i-- - dAtA[i] = 0x10 - i -= len(keysForAccountsIdxByAddress[iNdEx]) - copy(dAtA[i:], keysForAccountsIdxByAddress[iNdEx]) - i = encodeVarintMorseOnchain(dAtA, i, uint64(len(keysForAccountsIdxByAddress[iNdEx]))) - i-- - dAtA[i] = 0xa - i = encodeVarintMorseOnchain(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } return len(dAtA) - i, nil } -func (m *MorseAccount) Marshal() (dAtA []byte, err error) { +func (m *MorseClaimableAccount) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -287,39 +229,35 @@ func (m *MorseAccount) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MorseAccount) MarshalTo(dAtA []byte) (int, error) { +func (m *MorseClaimableAccount) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MorseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MorseClaimableAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - 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 = encodeVarintMorseOnchain(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } + if m.ClaimedAtHeight != 0 { + i = encodeVarintMorseOnchain(dAtA, i, uint64(m.ClaimedAtHeight)) + i-- + dAtA[i] = 0x20 } - if m.PubKey != nil { - { - size, err := m.PubKey.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMorseOnchain(dAtA, i, uint64(size)) + { + size, err := m.TotalTokens.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = encodeVarintMorseOnchain(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.PublicKey) > 0 { + i -= len(m.PublicKey) + copy(dAtA[i:], m.PublicKey) + i = encodeVarintMorseOnchain(dAtA, i, uint64(len(m.PublicKey))) i-- dAtA[i] = 0x12 } @@ -333,36 +271,6 @@ func (m *MorseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MorsePublicKey) 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 *MorsePublicKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MorsePublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Value) > 0 { - i -= len(m.Value) - copy(dAtA[i:], m.Value) - i = encodeVarintMorseOnchain(dAtA, i, uint64(len(m.Value))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} - func encodeVarintMorseOnchain(dAtA []byte, offset int, v uint64) int { offset -= sovMorseOnchain(v) base := offset @@ -380,14 +288,6 @@ func (m *MorseAccountState) Size() (n int) { } var l int _ = l - if len(m.AccountsIdxByAddress) > 0 { - for k, v := range m.AccountsIdxByAddress { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovMorseOnchain(uint64(len(k))) + 1 + sovMorseOnchain(uint64(v)) - n += mapEntrySize + 1 + sovMorseOnchain(uint64(mapEntrySize)) - } - } if len(m.Accounts) > 0 { for _, e := range m.Accounts { l = e.Size() @@ -397,7 +297,7 @@ func (m *MorseAccountState) Size() (n int) { return n } -func (m *MorseAccount) Size() (n int) { +func (m *MorseClaimableAccount) Size() (n int) { if m == nil { return 0 } @@ -407,29 +307,15 @@ func (m *MorseAccount) Size() (n int) { if l > 0 { n += 1 + l + sovMorseOnchain(uint64(l)) } - if m.PubKey != nil { - l = m.PubKey.Size() - n += 1 + l + sovMorseOnchain(uint64(l)) - } - if len(m.Coins) > 0 { - for _, e := range m.Coins { - l = e.Size() - n += 1 + l + sovMorseOnchain(uint64(l)) - } - } - return n -} - -func (m *MorsePublicKey) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Value) + l = len(m.PublicKey) if l > 0 { n += 1 + l + sovMorseOnchain(uint64(l)) } + l = m.TotalTokens.Size() + n += 1 + l + sovMorseOnchain(uint64(l)) + if m.ClaimedAtHeight != 0 { + n += 1 + sovMorseOnchain(uint64(m.ClaimedAtHeight)) + } return n } @@ -468,119 +354,6 @@ func (m *MorseAccountState) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: MorseAccountState: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountsIdxByAddress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMorseOnchain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMorseOnchain - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMorseOnchain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AccountsIdxByAddress == nil { - m.AccountsIdxByAddress = make(map[string]uint64) - } - var mapkey string - var mapvalue uint64 - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMorseOnchain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMorseOnchain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthMorseOnchain - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthMorseOnchain - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMorseOnchain - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - } else { - iNdEx = entryPreIndex - skippy, err := skipMorseOnchain(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMorseOnchain - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.AccountsIdxByAddress[mapkey] = mapvalue - iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) @@ -610,7 +383,7 @@ func (m *MorseAccountState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Accounts = append(m.Accounts, &MorseAccount{}) + m.Accounts = append(m.Accounts, &MorseClaimableAccount{}) if err := m.Accounts[len(m.Accounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -636,7 +409,7 @@ func (m *MorseAccountState) Unmarshal(dAtA []byte) error { } return nil } -func (m *MorseAccount) Unmarshal(dAtA []byte) error { +func (m *MorseClaimableAccount) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -659,10 +432,10 @@ func (m *MorseAccount) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MorseAccount: wiretype end group for non-group") + return fmt.Errorf("proto: MorseClaimableAccount: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MorseAccount: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MorseClaimableAccount: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -701,9 +474,9 @@ func (m *MorseAccount) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PubKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowMorseOnchain @@ -713,31 +486,29 @@ func (m *MorseAccount) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthMorseOnchain } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthMorseOnchain } if postIndex > l { return io.ErrUnexpectedEOF } - if m.PubKey == nil { - m.PubKey = &MorsePublicKey{} - } - if err := m.PubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) + if m.PublicKey == nil { + m.PublicKey = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TotalTokens", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -764,66 +535,15 @@ func (m *MorseAccount) Unmarshal(dAtA []byte) error { 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 { + if err := m.TotalTokens.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMorseOnchain(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMorseOnchain - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MorsePublicKey) 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 ErrIntOverflowMorseOnchain - } - 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: MorsePublicKey: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MorsePublicKey: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClaimedAtHeight", wireType) } - var byteLen int + m.ClaimedAtHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowMorseOnchain @@ -833,26 +553,11 @@ func (m *MorsePublicKey) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.ClaimedAtHeight |= int64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthMorseOnchain - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMorseOnchain - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) - if m.Value == nil { - m.Value = []byte{} - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMorseOnchain(dAtA[iNdEx:]) diff --git a/x/migration/types/query.pb.go b/x/migration/types/query.pb.go index 218d42f0b..511b63dd0 100644 --- a/x/migration/types/query.pb.go +++ b/x/migration/types/query.pb.go @@ -286,42 +286,42 @@ func init() { func init() { proto.RegisterFile("poktroll/migration/query.proto", fileDescriptor_524460f9291c42e8) } var fileDescriptor_524460f9291c42e8 = []byte{ - // 549 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x6b, 0xd4, 0x40, - 0x14, 0xde, 0xa9, 0x75, 0xa5, 0xe3, 0xc9, 0xb1, 0x85, 0x25, 0x48, 0x2a, 0x41, 0xbb, 0xb6, 0x60, - 0xc6, 0xae, 0x97, 0x2a, 0x08, 0xdd, 0x55, 0x2c, 0x08, 0xc2, 0x1a, 0x3c, 0x79, 0x29, 0x93, 0x74, - 0x88, 0xa1, 0x49, 0x5e, 0x9a, 0x99, 0x55, 0x8b, 0x78, 0xf1, 0xe8, 0x41, 0x04, 0xff, 0x09, 0x8f, - 0xfe, 0x0f, 0x5e, 0x7a, 0xac, 0x78, 0x70, 0x4f, 0x22, 0xbb, 0x82, 0xff, 0x86, 0x64, 0x66, 0xa2, - 0x5b, 0x9a, 0x6c, 0xa0, 0x78, 0x59, 0x66, 0x67, 0xde, 0xf7, 0xbe, 0xef, 0x7b, 0x3f, 0x82, 0xed, - 0x0c, 0xf6, 0x65, 0x0e, 0x71, 0x4c, 0x93, 0x28, 0xcc, 0x99, 0x8c, 0x20, 0xa5, 0x07, 0x23, 0x9e, - 0x1f, 0xba, 0x59, 0x0e, 0x12, 0x08, 0x29, 0xdf, 0xdd, 0xbf, 0xef, 0xd6, 0x25, 0x96, 0x44, 0x29, - 0x50, 0xf5, 0xab, 0xc3, 0xac, 0xe5, 0x10, 0x42, 0x50, 0x47, 0x5a, 0x9c, 0xcc, 0xed, 0x95, 0x10, - 0x20, 0x8c, 0x39, 0x65, 0x59, 0x44, 0x59, 0x9a, 0x82, 0x54, 0x78, 0x61, 0x5e, 0x37, 0x02, 0x10, - 0x09, 0x08, 0xea, 0x33, 0xc1, 0x35, 0x27, 0x7d, 0xb1, 0xe9, 0x73, 0xc9, 0x36, 0x69, 0xc6, 0xc2, - 0x28, 0x55, 0xc1, 0x26, 0x76, 0xb5, 0x42, 0x66, 0xc6, 0x72, 0x96, 0x94, 0xc9, 0x6e, 0x55, 0x04, - 0x24, 0x90, 0x0b, 0xbe, 0x1b, 0xc4, 0x2c, 0x4a, 0x98, 0x1f, 0xf3, 0x5d, 0x16, 0x04, 0x30, 0x4a, - 0xa5, 0x46, 0x38, 0xcb, 0x98, 0x3c, 0x29, 0x48, 0x87, 0x2a, 0x8d, 0xc7, 0x0f, 0x46, 0x5c, 0x48, - 0xe7, 0x29, 0xbe, 0x7c, 0xe2, 0x56, 0x64, 0x90, 0x0a, 0x4e, 0xee, 0xe1, 0xb6, 0xa6, 0xeb, 0xa0, - 0xab, 0xe8, 0xc6, 0xc5, 0x9e, 0xe5, 0x9e, 0xae, 0x8b, 0xab, 0x31, 0x83, 0xa5, 0xa3, 0x1f, 0xab, - 0xad, 0x4f, 0xbf, 0x3f, 0x6f, 0x20, 0xcf, 0x80, 0x9c, 0x6d, 0x7c, 0x4d, 0x65, 0xdd, 0xe1, 0xf2, - 0x71, 0x21, 0xea, 0x7e, 0xa9, 0xa9, 0xaf, 0x25, 0x19, 0x76, 0xd2, 0xc1, 0x17, 0xd8, 0xde, 0x5e, - 0xce, 0x85, 0xe6, 0x59, 0xf2, 0xca, 0xbf, 0xce, 0x7b, 0x84, 0xaf, 0x37, 0xa4, 0x30, 0x52, 0x39, - 0x5e, 0x49, 0xaa, 0x02, 0x8c, 0xf2, 0xf5, 0x2a, 0xe5, 0x95, 0x19, 0x07, 0x8b, 0x85, 0x11, 0xaf, - 0x3a, 0x9b, 0x93, 0x1a, 0x4b, 0xfd, 0x38, 0x9e, 0x6b, 0xe9, 0x21, 0xc6, 0xff, 0xba, 0x69, 0x34, - 0xac, 0xb9, 0xba, 0xf5, 0x6e, 0xd1, 0x7a, 0x57, 0x8f, 0x9b, 0x69, 0xbd, 0x3b, 0x64, 0x21, 0x37, - 0x58, 0x6f, 0x06, 0xe9, 0x7c, 0x2f, 0x0b, 0x50, 0x4f, 0xd8, 0x5c, 0x80, 0x73, 0xff, 0xaf, 0x00, - 0x64, 0xe7, 0x84, 0xb1, 0x05, 0x65, 0xac, 0xdb, 0x68, 0x4c, 0x6b, 0x9c, 0x75, 0xd6, 0xfb, 0xb2, - 0x88, 0xcf, 0x2b, 0x67, 0xe4, 0x1d, 0xc2, 0x6d, 0x3d, 0x44, 0x64, 0xad, 0x4a, 0xe5, 0xe9, 0x79, - 0xb5, 0xba, 0x8d, 0x71, 0x9a, 0xd1, 0xa1, 0x6f, 0xbf, 0xfd, 0xfa, 0xb8, 0xb0, 0x4e, 0xba, 0xb4, - 0x00, 0xdc, 0x4c, 0xb9, 0x7c, 0x09, 0xf9, 0x3e, 0xad, 0xdd, 0x2b, 0x32, 0x46, 0x78, 0xa5, 0xb2, - 0x2c, 0x64, 0xab, 0x96, 0xb3, 0x61, 0xbe, 0xad, 0x3b, 0x67, 0x40, 0x1a, 0xfd, 0x8f, 0x94, 0xfe, - 0x07, 0x64, 0xd0, 0xa8, 0xbf, 0x66, 0xed, 0xe9, 0x6b, 0xb3, 0x4b, 0x6f, 0xc8, 0x57, 0x84, 0x3b, - 0x95, 0x6c, 0xfd, 0x38, 0x9e, 0xe3, 0xae, 0x61, 0xd4, 0xe7, 0xb8, 0x6b, 0x9a, 0x59, 0x67, 0x5b, - 0xb9, 0xbb, 0x4b, 0xb6, 0xce, 0xea, 0x6e, 0x30, 0x3c, 0x9a, 0xd8, 0xe8, 0x78, 0x62, 0xa3, 0xf1, - 0xc4, 0x46, 0x3f, 0x27, 0x36, 0xfa, 0x30, 0xb5, 0x5b, 0xc7, 0x53, 0xbb, 0x35, 0x9e, 0xda, 0xad, - 0x67, 0xbd, 0x30, 0x92, 0xcf, 0x47, 0xbe, 0x1b, 0x40, 0x52, 0xc3, 0xf0, 0x6a, 0x86, 0x43, 0x1e, - 0x66, 0x5c, 0xf8, 0x6d, 0xf5, 0x9d, 0xbc, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0x38, 0x77, 0x5e, - 0xc1, 0x23, 0x06, 0x00, 0x00, + // 552 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4f, 0x6b, 0xd4, 0x40, + 0x14, 0xdf, 0xa9, 0xb5, 0xd2, 0xf1, 0xe4, 0xd8, 0xc2, 0xb2, 0x48, 0x2a, 0x41, 0x77, 0x6d, 0xc1, + 0x0c, 0x5d, 0x2f, 0x55, 0x10, 0xba, 0xab, 0x58, 0x10, 0x84, 0x35, 0x78, 0xf2, 0x52, 0x26, 0xe9, + 0x90, 0x86, 0x26, 0xf3, 0xd2, 0xcc, 0xac, 0x5a, 0xc4, 0x8b, 0x47, 0x0f, 0x22, 0xf8, 0x25, 0x3c, + 0xfa, 0x1d, 0xbc, 0xf4, 0x58, 0xf1, 0xe0, 0x9e, 0x44, 0x76, 0x05, 0xbf, 0x86, 0x64, 0x66, 0xa2, + 0x5b, 0x9a, 0xdd, 0x40, 0xf1, 0xb2, 0x64, 0x33, 0xef, 0xf7, 0xef, 0xbd, 0x37, 0xc1, 0x4e, 0x06, + 0x07, 0x2a, 0x87, 0x24, 0xa1, 0x69, 0x1c, 0xe5, 0x4c, 0xc5, 0x20, 0xe8, 0xe1, 0x90, 0xe7, 0x47, + 0x5e, 0x96, 0x83, 0x02, 0x42, 0xca, 0x73, 0xef, 0xef, 0x79, 0xeb, 0x0a, 0x4b, 0x63, 0x01, 0x54, + 0xff, 0x9a, 0xb2, 0xd6, 0x4a, 0x04, 0x11, 0xe8, 0x47, 0x5a, 0x3c, 0xd9, 0xb7, 0xd7, 0x22, 0x80, + 0x28, 0xe1, 0x94, 0x65, 0x31, 0x65, 0x42, 0x80, 0xd2, 0x78, 0x69, 0x4f, 0x37, 0x42, 0x90, 0x29, + 0x48, 0x1a, 0x30, 0xc9, 0x8d, 0x26, 0x7d, 0xb1, 0x19, 0x70, 0xc5, 0x36, 0x69, 0xc6, 0xa2, 0x58, + 0xe8, 0x62, 0x5b, 0xbb, 0x56, 0x61, 0x33, 0x63, 0x39, 0x4b, 0x4b, 0xb2, 0x76, 0x45, 0x41, 0x0a, + 0xb9, 0xe4, 0xbb, 0x20, 0xc2, 0x7d, 0x16, 0x5b, 0x22, 0x77, 0x05, 0x93, 0xa7, 0x85, 0xd4, 0x40, + 0x83, 0x7d, 0x7e, 0x38, 0xe4, 0x52, 0xb9, 0xcf, 0xf0, 0xd5, 0x53, 0x6f, 0x65, 0x06, 0x42, 0x72, + 0x72, 0x1f, 0x2f, 0x19, 0x91, 0x26, 0xba, 0x8e, 0x6e, 0x5d, 0xee, 0xb6, 0xbc, 0xb3, 0xdd, 0xf0, + 0x0c, 0xa6, 0xbf, 0x7c, 0xfc, 0x63, 0xad, 0xf1, 0xe9, 0xf7, 0xe7, 0x0d, 0xe4, 0x5b, 0x90, 0xbb, + 0x8d, 0x6f, 0x68, 0xd6, 0x1d, 0xae, 0x9e, 0x14, 0x56, 0x1e, 0x24, 0x2c, 0x4e, 0x59, 0x90, 0xf0, + 0x5e, 0x18, 0xc2, 0x50, 0x28, 0xab, 0x4e, 0x9a, 0xf8, 0x12, 0xdb, 0xdb, 0xcb, 0xb9, 0x34, 0x3a, + 0xcb, 0x7e, 0xf9, 0xd7, 0x7d, 0x8f, 0xf0, 0xcd, 0x1a, 0x0a, 0x6b, 0x95, 0xe3, 0xd5, 0xb4, 0xaa, + 0xc0, 0x3a, 0x5f, 0xaf, 0x72, 0x5e, 0xc9, 0xd8, 0x5f, 0x2c, 0x82, 0xf8, 0xd5, 0x6c, 0xae, 0xb0, + 0x91, 0x7a, 0x49, 0x32, 0x37, 0xd2, 0x23, 0x8c, 0xff, 0xcd, 0xd0, 0x7a, 0x68, 0x7b, 0x66, 0xe0, + 0x5e, 0x31, 0x70, 0xcf, 0x2c, 0x99, 0x1d, 0xb8, 0x37, 0x60, 0x11, 0xb7, 0x58, 0x7f, 0x0a, 0xe9, + 0x7e, 0x2f, 0x1b, 0x30, 0x5b, 0xb0, 0xbe, 0x01, 0x17, 0xfe, 0x5f, 0x03, 0xc8, 0xce, 0xa9, 0x60, + 0x0b, 0x3a, 0x58, 0xa7, 0x36, 0x98, 0xf1, 0x38, 0x9d, 0xac, 0xfb, 0x65, 0x11, 0x5f, 0xd4, 0xc9, + 0xc8, 0x3b, 0x84, 0x97, 0xcc, 0x12, 0x91, 0x76, 0x95, 0xcb, 0xb3, 0xfb, 0xda, 0xea, 0xd4, 0xd6, + 0x19, 0x45, 0x97, 0xbe, 0xfd, 0xf6, 0xeb, 0xe3, 0xc2, 0x3a, 0xe9, 0xd0, 0x02, 0x70, 0x5b, 0x70, + 0xf5, 0x12, 0xf2, 0x03, 0x3a, 0xf3, 0x36, 0x91, 0x11, 0xc2, 0xab, 0x95, 0x6d, 0x21, 0x5b, 0x33, + 0x35, 0x6b, 0xf6, 0xbb, 0x75, 0xf7, 0x1c, 0x48, 0xeb, 0xff, 0xb1, 0xf6, 0xff, 0x90, 0xf4, 0x6b, + 0xfd, 0x9b, 0xcb, 0x1e, 0x96, 0x44, 0xbb, 0xcc, 0x30, 0xd1, 0xd7, 0xf6, 0x2e, 0xbd, 0x21, 0x5f, + 0x11, 0x6e, 0x56, 0xaa, 0xf5, 0x92, 0x64, 0x4e, 0xba, 0x9a, 0x55, 0x9f, 0x93, 0xae, 0x6e, 0x67, + 0xdd, 0x6d, 0x9d, 0xee, 0x1e, 0xd9, 0x3a, 0x6f, 0xba, 0xfe, 0xe0, 0x78, 0xec, 0xa0, 0x93, 0xb1, + 0x83, 0x46, 0x63, 0x07, 0xfd, 0x1c, 0x3b, 0xe8, 0xc3, 0xc4, 0x69, 0x9c, 0x4c, 0x9c, 0xc6, 0x68, + 0xe2, 0x34, 0x9e, 0x77, 0xa3, 0x58, 0xed, 0x0f, 0x03, 0x2f, 0x84, 0x74, 0x86, 0xc2, 0xab, 0x29, + 0x0d, 0x75, 0x94, 0x71, 0x19, 0x2c, 0xe9, 0xef, 0xe4, 0x9d, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x91, 0x06, 0x9f, 0xe7, 0x19, 0x06, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used.