From c1e516740972485e194cd505f2ab4e17a4538fc2 Mon Sep 17 00:00:00 2001 From: Redouane Lakrache Date: Mon, 23 Sep 2024 13:18:23 +0200 Subject: [PATCH 1/2] [Docs] Add operations documentation about proof submission fee (#806) ## Summary Add documentation about payable proof submissions to the `relayminer_config` doc. ## Issue Now that proof submission is a payable message. The `Supplier` operators need to be aware that they have to have enough funds to cover for proof submission. - #758 ## Type of change Select one or more from the following: - [ ] New feature, functionality or library - [ ] Consensus breaking; add the `consensus-breaking` label if so. See #791 for details - [ ] Bug fix - [ ] Code health or cleanup - [x] Documentation - [ ] Other (specify) ## Testing - [x] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [ ] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable --- .../docs/operate/configs/relayminer_config.md | 82 ++++++++++++++++++- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/docusaurus/docs/operate/configs/relayminer_config.md b/docusaurus/docs/operate/configs/relayminer_config.md index 1c9d4f6ec..8931d03c2 100644 --- a/docusaurus/docs/operate/configs/relayminer_config.md +++ b/docusaurus/docs/operate/configs/relayminer_config.md @@ -40,6 +40,10 @@ You can find a fully featured example configuration at [relayminer_config_full_e - [Configuring Signing Keys](#configuring-signing-keys) - [Example Configuration](#example-configuration) - [Supported server types](#supported-server-types) +- [Payable Proof Submissions](#payable-proof-submissions) + - [Overview](#overview) + - [Key Requirements for Operators](#key-requirements-for-operators) + - [Recommendations for Supplier Operators](#recommendations-for-supplier-operators) ## Introduction @@ -115,8 +119,9 @@ smt_store_path: _`Required`_ if `suppliers.*.signing_key_names` is not specified. This configuration option specifies a list of key names from the keyring that the -`RelayMiner` will use to sign transactions. These key names are used to derive the public -key and the corresponding address, which are essential for interacting with POKT. +`RelayMiner` will use to sign transactions (i.e. `SupplierOperator`). +These key names are used to derive the public key and the corresponding address, +which are essential for interacting with POKT. Each key name listed here must be present in the keyring used to start the `RelayMiner` instance. @@ -451,3 +456,76 @@ flowchart ## Supported server types The list of supported server types can be found at [pkg/relayer/config/types.go](https://github.com/pokt-network/poktroll/tree/main/pkg/relayer/config/types.go#L8) + +## Payable Proof Submissions + +### Overview + +Submitting `Proofs` requires the payment of a fee, which is defined by the +`proof_submission_fee` governance parameter. + +This fee mechanism is designed to prevent spam attacks (e.g., Sybil bloat attacks) +by discouraging invalid or unnecessary `Proofs`. + +Since `Proofs` are the most block space-consuming primitive in the Pocket Network, +this fee plays a crucial role in maintaining the integrity of the network. + + + +### Key Requirements for Operators + +Due to the probabilistic nature of the `Proof` requirement, `Supplier` operators must +ensure that they maintain sufficient funds to cover the submission fees for all +`Proof`s associated with the `Claim`s they plan to submit. + +Failure to maintain adequate funds can result in missed submissions, which can +result in `Supplier` slashing if the `Proof` is required. + +### Recommendations for Supplier Operators + +- **Sufficient Balance**: Operators should regularly check their account balance +and ensure they have enough funds to cover the submission fees for `Proofs`. + +The following command can be used to check the balance of a `Supplier` operator: +```bash +poktrolld query bank balance upokt --node https://shannon-testnet-grove-seed-rpc.poktroll.com +``` +Which output would look like: +```yaml +balance: + amount: "109999000" + denom: upokt +``` + +- **Automated Monitoring**: It is highly recommended to implement balance monitoring +or alert systems to avoid running out of funds during critical periods. + + + +- **Cost Awareness**: Operators should familiarize themselves with the current +`proof_submission_fee` and plan their funding accordingly, especially if they +anticipate submitting a higher volume of `Proofs`. + +The following command can be used to check the current `proof_submission_fee`: +```bash +poktrolld query proof params --node https://shannon-testnet-grove-seed-rpc.poktroll.com +``` +Which output would look like: +```yaml + proof_submission_fee: + amount: "1000000" + denom: upokt +``` + +The list of `Proof` governance parameters can be found at [proto/proof/params.proto](https://github.com/pokt-network/poktroll/blob/main/proto/poktroll/proof/params.proto) + +:::warning + +If you submit a claim but do not submit its corresponding proof, this could result in SLASHING! + +Having insufficient funds could lead to rejected `Proof` submissions . This +can disrupt the operator’s participation in the Pocket Network. To maintain a +smooth operation, avoid being slashed, and earn your rewards, operators must plan +and manage their account balance as part of their operational procedures. + +::: \ No newline at end of file From 1cf73caa860b3fc5600a352be3e2eef51d9d6644 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Mon, 23 Sep 2024 14:25:13 +0200 Subject: [PATCH 2/2] [Code Health] refactor: rename `ApplicationTransfer` msgs (#788) ## Summary - Renaming the application module `TransferApplicationStake` messages to `TransferApplication` ## Depends on - #743 ## Dependents - #789 ## Issue - #657 ## Type of change Select one or more: - [ ] New feature, functionality or library - [ ] Bug fix - [x] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing - [ ] **Documentation**: `make docusaurus_start`; only needed if you make doc changes - [ ] **Unit Tests**: `make go_develop_and_test` - [ ] **LocalNet E2E Tests**: `make test_e2e` - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. ## Sanity Checklist - [x] I have tested my changes using the available tooling - [ ] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable --------- Co-authored-by: Daniel Olshansky --- api/poktroll/application/tx.pulsar.go | 493 +++++++++--------- api/poktroll/application/tx_grpc.pb.go | 40 +- e2e/tests/stake_app_transfer.feature | 2 +- proto/poktroll/application/tx.proto | 6 +- .../msg_server_transfer_application_stake.go | 10 +- ..._server_transfer_application_stake_test.go | 20 +- x/application/module/autocli.go | 4 +- x/application/module/simulation.go | 20 +- .../simulation/transfer_application_stake.go | 8 +- x/application/types/codec.go | 2 +- .../message_transfer_application_stake.go | 8 +- ...message_transfer_application_stake_test.go | 12 +- x/application/types/tx.pb.go | 218 ++++---- x/tokenomics/types/tx.pb.go | 1 + 14 files changed, 422 insertions(+), 422 deletions(-) diff --git a/api/poktroll/application/tx.pulsar.go b/api/poktroll/application/tx.pulsar.go index 4806798f4..2f0cbcda3 100644 --- a/api/poktroll/application/tx.pulsar.go +++ b/api/poktroll/application/tx.pulsar.go @@ -4323,27 +4323,27 @@ func (x *fastReflection_MsgUndelegateFromGatewayResponse) ProtoMethods() *protoi } var ( - md_MsgTransferApplicationStake protoreflect.MessageDescriptor - fd_MsgTransferApplicationStake_source_address protoreflect.FieldDescriptor - fd_MsgTransferApplicationStake_destination_address protoreflect.FieldDescriptor + md_MsgTransferApplication protoreflect.MessageDescriptor + fd_MsgTransferApplication_source_address protoreflect.FieldDescriptor + fd_MsgTransferApplication_destination_address protoreflect.FieldDescriptor ) func init() { file_poktroll_application_tx_proto_init() - md_MsgTransferApplicationStake = File_poktroll_application_tx_proto.Messages().ByName("MsgTransferApplicationStake") - fd_MsgTransferApplicationStake_source_address = md_MsgTransferApplicationStake.Fields().ByName("source_address") - fd_MsgTransferApplicationStake_destination_address = md_MsgTransferApplicationStake.Fields().ByName("destination_address") + md_MsgTransferApplication = File_poktroll_application_tx_proto.Messages().ByName("MsgTransferApplication") + fd_MsgTransferApplication_source_address = md_MsgTransferApplication.Fields().ByName("source_address") + fd_MsgTransferApplication_destination_address = md_MsgTransferApplication.Fields().ByName("destination_address") } -var _ protoreflect.Message = (*fastReflection_MsgTransferApplicationStake)(nil) +var _ protoreflect.Message = (*fastReflection_MsgTransferApplication)(nil) -type fastReflection_MsgTransferApplicationStake MsgTransferApplicationStake +type fastReflection_MsgTransferApplication MsgTransferApplication -func (x *MsgTransferApplicationStake) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgTransferApplicationStake)(x) +func (x *MsgTransferApplication) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgTransferApplication)(x) } -func (x *MsgTransferApplicationStake) slowProtoReflect() protoreflect.Message { +func (x *MsgTransferApplication) slowProtoReflect() protoreflect.Message { mi := &file_poktroll_application_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4355,43 +4355,43 @@ func (x *MsgTransferApplicationStake) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgTransferApplicationStake_messageType fastReflection_MsgTransferApplicationStake_messageType -var _ protoreflect.MessageType = fastReflection_MsgTransferApplicationStake_messageType{} +var _fastReflection_MsgTransferApplication_messageType fastReflection_MsgTransferApplication_messageType +var _ protoreflect.MessageType = fastReflection_MsgTransferApplication_messageType{} -type fastReflection_MsgTransferApplicationStake_messageType struct{} +type fastReflection_MsgTransferApplication_messageType struct{} -func (x fastReflection_MsgTransferApplicationStake_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgTransferApplicationStake)(nil) +func (x fastReflection_MsgTransferApplication_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgTransferApplication)(nil) } -func (x fastReflection_MsgTransferApplicationStake_messageType) New() protoreflect.Message { - return new(fastReflection_MsgTransferApplicationStake) +func (x fastReflection_MsgTransferApplication_messageType) New() protoreflect.Message { + return new(fastReflection_MsgTransferApplication) } -func (x fastReflection_MsgTransferApplicationStake_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTransferApplicationStake +func (x fastReflection_MsgTransferApplication_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferApplication } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgTransferApplicationStake) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTransferApplicationStake +func (x *fastReflection_MsgTransferApplication) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferApplication } // 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_MsgTransferApplicationStake) Type() protoreflect.MessageType { - return _fastReflection_MsgTransferApplicationStake_messageType +func (x *fastReflection_MsgTransferApplication) Type() protoreflect.MessageType { + return _fastReflection_MsgTransferApplication_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgTransferApplicationStake) New() protoreflect.Message { - return new(fastReflection_MsgTransferApplicationStake) +func (x *fastReflection_MsgTransferApplication) New() protoreflect.Message { + return new(fastReflection_MsgTransferApplication) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgTransferApplicationStake) Interface() protoreflect.ProtoMessage { - return (*MsgTransferApplicationStake)(x) +func (x *fastReflection_MsgTransferApplication) Interface() protoreflect.ProtoMessage { + return (*MsgTransferApplication)(x) } // Range iterates over every populated field in an undefined order, @@ -4399,16 +4399,16 @@ func (x *fastReflection_MsgTransferApplicationStake) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgTransferApplicationStake) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgTransferApplication) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.SourceAddress != "" { value := protoreflect.ValueOfString(x.SourceAddress) - if !f(fd_MsgTransferApplicationStake_source_address, value) { + if !f(fd_MsgTransferApplication_source_address, value) { return } } if x.DestinationAddress != "" { value := protoreflect.ValueOfString(x.DestinationAddress) - if !f(fd_MsgTransferApplicationStake_destination_address, value) { + if !f(fd_MsgTransferApplication_destination_address, value) { return } } @@ -4425,17 +4425,17 @@ func (x *fastReflection_MsgTransferApplicationStake) Range(f func(protoreflect.F // 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_MsgTransferApplicationStake) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgTransferApplication) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStake.source_address": + case "poktroll.application.MsgTransferApplication.source_address": return x.SourceAddress != "" - case "poktroll.application.MsgTransferApplicationStake.destination_address": + case "poktroll.application.MsgTransferApplication.destination_address": return x.DestinationAddress != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplication")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplication does not contain field %s", fd.FullName())) } } @@ -4445,17 +4445,17 @@ func (x *fastReflection_MsgTransferApplicationStake) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferApplicationStake) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgTransferApplication) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStake.source_address": + case "poktroll.application.MsgTransferApplication.source_address": x.SourceAddress = "" - case "poktroll.application.MsgTransferApplicationStake.destination_address": + case "poktroll.application.MsgTransferApplication.destination_address": x.DestinationAddress = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplication")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplication does not contain field %s", fd.FullName())) } } @@ -4465,19 +4465,19 @@ func (x *fastReflection_MsgTransferApplicationStake) Clear(fd protoreflect.Field // 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_MsgTransferApplicationStake) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferApplication) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "poktroll.application.MsgTransferApplicationStake.source_address": + case "poktroll.application.MsgTransferApplication.source_address": value := x.SourceAddress return protoreflect.ValueOfString(value) - case "poktroll.application.MsgTransferApplicationStake.destination_address": + case "poktroll.application.MsgTransferApplication.destination_address": value := x.DestinationAddress return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplication")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStake does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplication does not contain field %s", descriptor.FullName())) } } @@ -4491,17 +4491,17 @@ func (x *fastReflection_MsgTransferApplicationStake) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferApplicationStake) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgTransferApplication) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStake.source_address": + case "poktroll.application.MsgTransferApplication.source_address": x.SourceAddress = value.Interface().(string) - case "poktroll.application.MsgTransferApplicationStake.destination_address": + case "poktroll.application.MsgTransferApplication.destination_address": x.DestinationAddress = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplication")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplication does not contain field %s", fd.FullName())) } } @@ -4515,44 +4515,44 @@ func (x *fastReflection_MsgTransferApplicationStake) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferApplicationStake) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferApplication) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStake.source_address": - panic(fmt.Errorf("field source_address of message poktroll.application.MsgTransferApplicationStake is not mutable")) - case "poktroll.application.MsgTransferApplicationStake.destination_address": - panic(fmt.Errorf("field destination_address of message poktroll.application.MsgTransferApplicationStake is not mutable")) + case "poktroll.application.MsgTransferApplication.source_address": + panic(fmt.Errorf("field source_address of message poktroll.application.MsgTransferApplication is not mutable")) + case "poktroll.application.MsgTransferApplication.destination_address": + panic(fmt.Errorf("field destination_address of message poktroll.application.MsgTransferApplication is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplication")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplication 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_MsgTransferApplicationStake) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferApplication) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStake.source_address": + case "poktroll.application.MsgTransferApplication.source_address": return protoreflect.ValueOfString("") - case "poktroll.application.MsgTransferApplicationStake.destination_address": + case "poktroll.application.MsgTransferApplication.destination_address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplication")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplication 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_MsgTransferApplicationStake) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgTransferApplication) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgTransferApplicationStake", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgTransferApplication", d.FullName())) } panic("unreachable") } @@ -4560,7 +4560,7 @@ func (x *fastReflection_MsgTransferApplicationStake) WhichOneof(d protoreflect.O // 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_MsgTransferApplicationStake) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgTransferApplication) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4571,7 +4571,7 @@ func (x *fastReflection_MsgTransferApplicationStake) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferApplicationStake) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgTransferApplication) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4583,7 +4583,7 @@ func (x *fastReflection_MsgTransferApplicationStake) SetUnknown(fields protorefl // 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_MsgTransferApplicationStake) IsValid() bool { +func (x *fastReflection_MsgTransferApplication) IsValid() bool { return x != nil } @@ -4593,9 +4593,9 @@ func (x *fastReflection_MsgTransferApplicationStake) 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_MsgTransferApplicationStake) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgTransferApplication) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgTransferApplicationStake) + x := input.Message.Interface().(*MsgTransferApplication) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4625,7 +4625,7 @@ func (x *fastReflection_MsgTransferApplicationStake) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgTransferApplicationStake) + x := input.Message.Interface().(*MsgTransferApplication) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4669,7 +4669,7 @@ func (x *fastReflection_MsgTransferApplicationStake) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgTransferApplicationStake) + x := input.Message.Interface().(*MsgTransferApplication) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4701,10 +4701,10 @@ func (x *fastReflection_MsgTransferApplicationStake) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferApplicationStake: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferApplication: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferApplicationStake: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferApplication: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4807,25 +4807,25 @@ func (x *fastReflection_MsgTransferApplicationStake) ProtoMethods() *protoiface. } var ( - md_MsgTransferApplicationStakeResponse protoreflect.MessageDescriptor - fd_MsgTransferApplicationStakeResponse_application protoreflect.FieldDescriptor + md_MsgTransferApplicationResponse protoreflect.MessageDescriptor + fd_MsgTransferApplicationResponse_application protoreflect.FieldDescriptor ) func init() { file_poktroll_application_tx_proto_init() - md_MsgTransferApplicationStakeResponse = File_poktroll_application_tx_proto.Messages().ByName("MsgTransferApplicationStakeResponse") - fd_MsgTransferApplicationStakeResponse_application = md_MsgTransferApplicationStakeResponse.Fields().ByName("application") + md_MsgTransferApplicationResponse = File_poktroll_application_tx_proto.Messages().ByName("MsgTransferApplicationResponse") + fd_MsgTransferApplicationResponse_application = md_MsgTransferApplicationResponse.Fields().ByName("application") } -var _ protoreflect.Message = (*fastReflection_MsgTransferApplicationStakeResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgTransferApplicationResponse)(nil) -type fastReflection_MsgTransferApplicationStakeResponse MsgTransferApplicationStakeResponse +type fastReflection_MsgTransferApplicationResponse MsgTransferApplicationResponse -func (x *MsgTransferApplicationStakeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgTransferApplicationStakeResponse)(x) +func (x *MsgTransferApplicationResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgTransferApplicationResponse)(x) } -func (x *MsgTransferApplicationStakeResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgTransferApplicationResponse) slowProtoReflect() protoreflect.Message { mi := &file_poktroll_application_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4837,43 +4837,43 @@ func (x *MsgTransferApplicationStakeResponse) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_MsgTransferApplicationStakeResponse_messageType fastReflection_MsgTransferApplicationStakeResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgTransferApplicationStakeResponse_messageType{} +var _fastReflection_MsgTransferApplicationResponse_messageType fastReflection_MsgTransferApplicationResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgTransferApplicationResponse_messageType{} -type fastReflection_MsgTransferApplicationStakeResponse_messageType struct{} +type fastReflection_MsgTransferApplicationResponse_messageType struct{} -func (x fastReflection_MsgTransferApplicationStakeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgTransferApplicationStakeResponse)(nil) +func (x fastReflection_MsgTransferApplicationResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgTransferApplicationResponse)(nil) } -func (x fastReflection_MsgTransferApplicationStakeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgTransferApplicationStakeResponse) +func (x fastReflection_MsgTransferApplicationResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgTransferApplicationResponse) } -func (x fastReflection_MsgTransferApplicationStakeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTransferApplicationStakeResponse +func (x fastReflection_MsgTransferApplicationResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferApplicationResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgTransferApplicationStakeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgTransferApplicationStakeResponse +func (x *fastReflection_MsgTransferApplicationResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgTransferApplicationResponse } // 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_MsgTransferApplicationStakeResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgTransferApplicationStakeResponse_messageType +func (x *fastReflection_MsgTransferApplicationResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgTransferApplicationResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgTransferApplicationStakeResponse) New() protoreflect.Message { - return new(fastReflection_MsgTransferApplicationStakeResponse) +func (x *fastReflection_MsgTransferApplicationResponse) New() protoreflect.Message { + return new(fastReflection_MsgTransferApplicationResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgTransferApplicationStakeResponse) Interface() protoreflect.ProtoMessage { - return (*MsgTransferApplicationStakeResponse)(x) +func (x *fastReflection_MsgTransferApplicationResponse) Interface() protoreflect.ProtoMessage { + return (*MsgTransferApplicationResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4881,10 +4881,10 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgTransferApplicationStakeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgTransferApplicationResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Application != nil { value := protoreflect.ValueOfMessage(x.Application.ProtoReflect()) - if !f(fd_MsgTransferApplicationStakeResponse_application, value) { + if !f(fd_MsgTransferApplicationResponse_application, value) { return } } @@ -4901,15 +4901,15 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) Range(f func(protor // 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_MsgTransferApplicationStakeResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgTransferApplicationResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStakeResponse.application": + case "poktroll.application.MsgTransferApplicationResponse.application": return x.Application != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationResponse")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationResponse does not contain field %s", fd.FullName())) } } @@ -4919,15 +4919,15 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferApplicationStakeResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgTransferApplicationResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStakeResponse.application": + case "poktroll.application.MsgTransferApplicationResponse.application": x.Application = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationResponse")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationResponse does not contain field %s", fd.FullName())) } } @@ -4937,16 +4937,16 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) Clear(fd protorefle // 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_MsgTransferApplicationStakeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferApplicationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "poktroll.application.MsgTransferApplicationStakeResponse.application": + case "poktroll.application.MsgTransferApplicationResponse.application": value := x.Application return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationResponse")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationResponse does not contain field %s", descriptor.FullName())) } } @@ -4960,15 +4960,15 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferApplicationStakeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgTransferApplicationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStakeResponse.application": + case "poktroll.application.MsgTransferApplicationResponse.application": x.Application = value.Message().Interface().(*Application) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationResponse")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationResponse does not contain field %s", fd.FullName())) } } @@ -4982,44 +4982,44 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferApplicationStakeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferApplicationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStakeResponse.application": + case "poktroll.application.MsgTransferApplicationResponse.application": if x.Application == nil { x.Application = new(Application) } return protoreflect.ValueOfMessage(x.Application.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationResponse")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationResponse 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_MsgTransferApplicationStakeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgTransferApplicationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "poktroll.application.MsgTransferApplicationStakeResponse.application": + case "poktroll.application.MsgTransferApplicationResponse.application": m := new(Application) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: poktroll.application.MsgTransferApplicationResponse")) } - panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message poktroll.application.MsgTransferApplicationResponse 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_MsgTransferApplicationStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgTransferApplicationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgTransferApplicationStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in poktroll.application.MsgTransferApplicationResponse", d.FullName())) } panic("unreachable") } @@ -5027,7 +5027,7 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) WhichOneof(d protor // 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_MsgTransferApplicationStakeResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgTransferApplicationResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5038,7 +5038,7 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgTransferApplicationStakeResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgTransferApplicationResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5050,7 +5050,7 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) SetUnknown(fields p // 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_MsgTransferApplicationStakeResponse) IsValid() bool { +func (x *fastReflection_MsgTransferApplicationResponse) IsValid() bool { return x != nil } @@ -5060,9 +5060,9 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) 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_MsgTransferApplicationStakeResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgTransferApplicationResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgTransferApplicationStakeResponse) + x := input.Message.Interface().(*MsgTransferApplicationResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5088,7 +5088,7 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgTransferApplicationStakeResponse) + x := input.Message.Interface().(*MsgTransferApplicationResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5132,7 +5132,7 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgTransferApplicationStakeResponse) + x := input.Message.Interface().(*MsgTransferApplicationResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5164,10 +5164,10 @@ func (x *fastReflection_MsgTransferApplicationStakeResponse) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferApplicationStakeResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferApplicationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferApplicationStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgTransferApplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5605,7 +5605,7 @@ func (*MsgUndelegateFromGatewayResponse) Descriptor() ([]byte, []int) { return file_poktroll_application_tx_proto_rawDescGZIP(), []int{9} } -type MsgTransferApplicationStake struct { +type MsgTransferApplication struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -5614,8 +5614,8 @@ type MsgTransferApplicationStake struct { DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"` } -func (x *MsgTransferApplicationStake) Reset() { - *x = MsgTransferApplicationStake{} +func (x *MsgTransferApplication) Reset() { + *x = MsgTransferApplication{} if protoimpl.UnsafeEnabled { mi := &file_poktroll_application_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5623,32 +5623,32 @@ func (x *MsgTransferApplicationStake) Reset() { } } -func (x *MsgTransferApplicationStake) String() string { +func (x *MsgTransferApplication) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgTransferApplicationStake) ProtoMessage() {} +func (*MsgTransferApplication) ProtoMessage() {} -// Deprecated: Use MsgTransferApplicationStake.ProtoReflect.Descriptor instead. -func (*MsgTransferApplicationStake) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgTransferApplication.ProtoReflect.Descriptor instead. +func (*MsgTransferApplication) Descriptor() ([]byte, []int) { return file_poktroll_application_tx_proto_rawDescGZIP(), []int{10} } -func (x *MsgTransferApplicationStake) GetSourceAddress() string { +func (x *MsgTransferApplication) GetSourceAddress() string { if x != nil { return x.SourceAddress } return "" } -func (x *MsgTransferApplicationStake) GetDestinationAddress() string { +func (x *MsgTransferApplication) GetDestinationAddress() string { if x != nil { return x.DestinationAddress } return "" } -type MsgTransferApplicationStakeResponse struct { +type MsgTransferApplicationResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -5656,8 +5656,8 @@ type MsgTransferApplicationStakeResponse struct { Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"` } -func (x *MsgTransferApplicationStakeResponse) Reset() { - *x = MsgTransferApplicationStakeResponse{} +func (x *MsgTransferApplicationResponse) Reset() { + *x = MsgTransferApplicationResponse{} if protoimpl.UnsafeEnabled { mi := &file_poktroll_application_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5665,18 +5665,18 @@ func (x *MsgTransferApplicationStakeResponse) Reset() { } } -func (x *MsgTransferApplicationStakeResponse) String() string { +func (x *MsgTransferApplicationResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgTransferApplicationStakeResponse) ProtoMessage() {} +func (*MsgTransferApplicationResponse) ProtoMessage() {} -// Deprecated: Use MsgTransferApplicationStakeResponse.ProtoReflect.Descriptor instead. -func (*MsgTransferApplicationStakeResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgTransferApplicationResponse.ProtoReflect.Descriptor instead. +func (*MsgTransferApplicationResponse) Descriptor() ([]byte, []int) { return file_poktroll_application_tx_proto_rawDescGZIP(), []int{11} } -func (x *MsgTransferApplicationStakeResponse) GetApplication() *Application { +func (x *MsgTransferApplicationResponse) GetApplication() *Application { if x != nil { return x.Application } @@ -5764,84 +5764,83 @@ var file_poktroll_application_tx_proto_rawDesc = []byte{ 0x3a, 0x10, 0x82, 0xe7, 0xb0, 0x2a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x22, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xbe, 0x01, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x54, 0x72, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x01, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x3f, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, - 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x49, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, - 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x3a, 0x13, 0x82, 0xe7, 0xb0, 0x2a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6a, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, - 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x32, 0xdd, 0x05, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x64, 0x0a, 0x0c, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x6f, - 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x1a, 0x2d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x70, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, - 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, - 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x1a, 0x31, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x12, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x70, 0x6f, 0x6b, 0x74, + 0x6e, 0x12, 0x3f, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x49, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x12, 0x64, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x13, 0x82, + 0xe7, 0xb0, 0x2a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x22, 0x65, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, + 0x72, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x33, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xcd, 0x05, 0x0a, 0x03, 0x4d, 0x73, + 0x67, 0x12, 0x64, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x70, 0x6f, + 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x31, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x11, 0x44, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, - 0x12, 0x2a, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x65, 0x54, 0x6f, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x1a, 0x32, 0x2e, 0x70, + 0x67, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x12, 0x55, 0x6e, 0x73, + 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x2b, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, + 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x33, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x54, - 0x6f, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x7f, 0x0a, 0x15, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x46, 0x72, - 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x2e, 0x2e, 0x70, 0x6f, 0x6b, 0x74, - 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x46, 0x72, - 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x1a, 0x36, 0x2e, 0x70, 0x6f, 0x6b, 0x74, - 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x46, 0x72, - 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x88, 0x01, 0x0a, 0x18, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x41, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x31, + 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x41, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x73, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x47, + 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, 0x2a, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, + 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x47, 0x61, 0x74, 0x65, 0x77, + 0x61, 0x79, 0x1a, 0x32, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, 0x15, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x12, + 0x2e, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x1a, + 0x36, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x6b, - 0x65, 0x1a, 0x39, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, - 0xb0, 0x2a, 0x01, 0x42, 0xbf, 0x01, 0xd8, 0xe2, 0x1e, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, - 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x25, 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, 0x61, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, 0x41, 0x58, 0xaa, 0x02, 0x14, 0x50, - 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xe2, 0x02, 0x20, 0x50, 0x6f, 0x6b, - 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, - 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x34, 0x2e, 0x70, + 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x73, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x41, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xbf, 0x01, 0xd8, 0xe2, 0x1e, 0x01, + 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x25, 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, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x50, + 0x41, 0x58, 0xaa, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x2e, 0x41, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x14, 0x50, 0x6f, 0x6b, 0x74, + 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0xe2, 0x02, 0x20, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x5c, 0x41, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x50, 0x6f, 0x6b, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x3a, 0x3a, + 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -5858,40 +5857,40 @@ func file_poktroll_application_tx_proto_rawDescGZIP() []byte { var file_poktroll_application_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_poktroll_application_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: poktroll.application.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: poktroll.application.MsgUpdateParamsResponse - (*MsgStakeApplication)(nil), // 2: poktroll.application.MsgStakeApplication - (*MsgStakeApplicationResponse)(nil), // 3: poktroll.application.MsgStakeApplicationResponse - (*MsgUnstakeApplication)(nil), // 4: poktroll.application.MsgUnstakeApplication - (*MsgUnstakeApplicationResponse)(nil), // 5: poktroll.application.MsgUnstakeApplicationResponse - (*MsgDelegateToGateway)(nil), // 6: poktroll.application.MsgDelegateToGateway - (*MsgDelegateToGatewayResponse)(nil), // 7: poktroll.application.MsgDelegateToGatewayResponse - (*MsgUndelegateFromGateway)(nil), // 8: poktroll.application.MsgUndelegateFromGateway - (*MsgUndelegateFromGatewayResponse)(nil), // 9: poktroll.application.MsgUndelegateFromGatewayResponse - (*MsgTransferApplicationStake)(nil), // 10: poktroll.application.MsgTransferApplicationStake - (*MsgTransferApplicationStakeResponse)(nil), // 11: poktroll.application.MsgTransferApplicationStakeResponse - (*Params)(nil), // 12: poktroll.application.Params - (*v1beta1.Coin)(nil), // 13: cosmos.base.v1beta1.Coin - (*shared.ApplicationServiceConfig)(nil), // 14: poktroll.shared.ApplicationServiceConfig - (*Application)(nil), // 15: poktroll.application.Application + (*MsgUpdateParams)(nil), // 0: poktroll.application.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 1: poktroll.application.MsgUpdateParamsResponse + (*MsgStakeApplication)(nil), // 2: poktroll.application.MsgStakeApplication + (*MsgStakeApplicationResponse)(nil), // 3: poktroll.application.MsgStakeApplicationResponse + (*MsgUnstakeApplication)(nil), // 4: poktroll.application.MsgUnstakeApplication + (*MsgUnstakeApplicationResponse)(nil), // 5: poktroll.application.MsgUnstakeApplicationResponse + (*MsgDelegateToGateway)(nil), // 6: poktroll.application.MsgDelegateToGateway + (*MsgDelegateToGatewayResponse)(nil), // 7: poktroll.application.MsgDelegateToGatewayResponse + (*MsgUndelegateFromGateway)(nil), // 8: poktroll.application.MsgUndelegateFromGateway + (*MsgUndelegateFromGatewayResponse)(nil), // 9: poktroll.application.MsgUndelegateFromGatewayResponse + (*MsgTransferApplication)(nil), // 10: poktroll.application.MsgTransferApplication + (*MsgTransferApplicationResponse)(nil), // 11: poktroll.application.MsgTransferApplicationResponse + (*Params)(nil), // 12: poktroll.application.Params + (*v1beta1.Coin)(nil), // 13: cosmos.base.v1beta1.Coin + (*shared.ApplicationServiceConfig)(nil), // 14: poktroll.shared.ApplicationServiceConfig + (*Application)(nil), // 15: poktroll.application.Application } var file_poktroll_application_tx_proto_depIdxs = []int32{ 12, // 0: poktroll.application.MsgUpdateParams.params:type_name -> poktroll.application.Params 13, // 1: poktroll.application.MsgStakeApplication.stake:type_name -> cosmos.base.v1beta1.Coin 14, // 2: poktroll.application.MsgStakeApplication.services:type_name -> poktroll.shared.ApplicationServiceConfig - 15, // 3: poktroll.application.MsgTransferApplicationStakeResponse.application:type_name -> poktroll.application.Application + 15, // 3: poktroll.application.MsgTransferApplicationResponse.application:type_name -> poktroll.application.Application 0, // 4: poktroll.application.Msg.UpdateParams:input_type -> poktroll.application.MsgUpdateParams 2, // 5: poktroll.application.Msg.StakeApplication:input_type -> poktroll.application.MsgStakeApplication 4, // 6: poktroll.application.Msg.UnstakeApplication:input_type -> poktroll.application.MsgUnstakeApplication 6, // 7: poktroll.application.Msg.DelegateToGateway:input_type -> poktroll.application.MsgDelegateToGateway 8, // 8: poktroll.application.Msg.UndelegateFromGateway:input_type -> poktroll.application.MsgUndelegateFromGateway - 10, // 9: poktroll.application.Msg.TransferApplicationStake:input_type -> poktroll.application.MsgTransferApplicationStake + 10, // 9: poktroll.application.Msg.TransferApplication:input_type -> poktroll.application.MsgTransferApplication 1, // 10: poktroll.application.Msg.UpdateParams:output_type -> poktroll.application.MsgUpdateParamsResponse 3, // 11: poktroll.application.Msg.StakeApplication:output_type -> poktroll.application.MsgStakeApplicationResponse 5, // 12: poktroll.application.Msg.UnstakeApplication:output_type -> poktroll.application.MsgUnstakeApplicationResponse 7, // 13: poktroll.application.Msg.DelegateToGateway:output_type -> poktroll.application.MsgDelegateToGatewayResponse 9, // 14: poktroll.application.Msg.UndelegateFromGateway:output_type -> poktroll.application.MsgUndelegateFromGatewayResponse - 11, // 15: poktroll.application.Msg.TransferApplicationStake:output_type -> poktroll.application.MsgTransferApplicationStakeResponse + 11, // 15: poktroll.application.Msg.TransferApplication:output_type -> poktroll.application.MsgTransferApplicationResponse 10, // [10:16] is the sub-list for method output_type 4, // [4:10] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -6028,7 +6027,7 @@ func file_poktroll_application_tx_proto_init() { } } file_poktroll_application_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgTransferApplicationStake); i { + switch v := v.(*MsgTransferApplication); i { case 0: return &v.state case 1: @@ -6040,7 +6039,7 @@ func file_poktroll_application_tx_proto_init() { } } file_poktroll_application_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgTransferApplicationStakeResponse); i { + switch v := v.(*MsgTransferApplicationResponse); i { case 0: return &v.state case 1: diff --git a/api/poktroll/application/tx_grpc.pb.go b/api/poktroll/application/tx_grpc.pb.go index 9fb5ba7e6..b0d0aa03d 100644 --- a/api/poktroll/application/tx_grpc.pb.go +++ b/api/poktroll/application/tx_grpc.pb.go @@ -19,12 +19,12 @@ import ( const _ = grpc.SupportPackageIsVersion8 const ( - Msg_UpdateParams_FullMethodName = "/poktroll.application.Msg/UpdateParams" - Msg_StakeApplication_FullMethodName = "/poktroll.application.Msg/StakeApplication" - Msg_UnstakeApplication_FullMethodName = "/poktroll.application.Msg/UnstakeApplication" - Msg_DelegateToGateway_FullMethodName = "/poktroll.application.Msg/DelegateToGateway" - Msg_UndelegateFromGateway_FullMethodName = "/poktroll.application.Msg/UndelegateFromGateway" - Msg_TransferApplicationStake_FullMethodName = "/poktroll.application.Msg/TransferApplicationStake" + Msg_UpdateParams_FullMethodName = "/poktroll.application.Msg/UpdateParams" + Msg_StakeApplication_FullMethodName = "/poktroll.application.Msg/StakeApplication" + Msg_UnstakeApplication_FullMethodName = "/poktroll.application.Msg/UnstakeApplication" + Msg_DelegateToGateway_FullMethodName = "/poktroll.application.Msg/DelegateToGateway" + Msg_UndelegateFromGateway_FullMethodName = "/poktroll.application.Msg/UndelegateFromGateway" + Msg_TransferApplication_FullMethodName = "/poktroll.application.Msg/TransferApplication" ) // MsgClient is the client API for Msg service. @@ -40,7 +40,7 @@ type MsgClient interface { UnstakeApplication(ctx context.Context, in *MsgUnstakeApplication, opts ...grpc.CallOption) (*MsgUnstakeApplicationResponse, error) DelegateToGateway(ctx context.Context, in *MsgDelegateToGateway, opts ...grpc.CallOption) (*MsgDelegateToGatewayResponse, error) UndelegateFromGateway(ctx context.Context, in *MsgUndelegateFromGateway, opts ...grpc.CallOption) (*MsgUndelegateFromGatewayResponse, error) - TransferApplicationStake(ctx context.Context, in *MsgTransferApplicationStake, opts ...grpc.CallOption) (*MsgTransferApplicationStakeResponse, error) + TransferApplication(ctx context.Context, in *MsgTransferApplication, opts ...grpc.CallOption) (*MsgTransferApplicationResponse, error) } type msgClient struct { @@ -101,10 +101,10 @@ func (c *msgClient) UndelegateFromGateway(ctx context.Context, in *MsgUndelegate return out, nil } -func (c *msgClient) TransferApplicationStake(ctx context.Context, in *MsgTransferApplicationStake, opts ...grpc.CallOption) (*MsgTransferApplicationStakeResponse, error) { +func (c *msgClient) TransferApplication(ctx context.Context, in *MsgTransferApplication, opts ...grpc.CallOption) (*MsgTransferApplicationResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(MsgTransferApplicationStakeResponse) - err := c.cc.Invoke(ctx, Msg_TransferApplicationStake_FullMethodName, in, out, cOpts...) + out := new(MsgTransferApplicationResponse) + err := c.cc.Invoke(ctx, Msg_TransferApplication_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -124,7 +124,7 @@ type MsgServer interface { UnstakeApplication(context.Context, *MsgUnstakeApplication) (*MsgUnstakeApplicationResponse, error) DelegateToGateway(context.Context, *MsgDelegateToGateway) (*MsgDelegateToGatewayResponse, error) UndelegateFromGateway(context.Context, *MsgUndelegateFromGateway) (*MsgUndelegateFromGatewayResponse, error) - TransferApplicationStake(context.Context, *MsgTransferApplicationStake) (*MsgTransferApplicationStakeResponse, error) + TransferApplication(context.Context, *MsgTransferApplication) (*MsgTransferApplicationResponse, error) mustEmbedUnimplementedMsgServer() } @@ -147,8 +147,8 @@ func (UnimplementedMsgServer) DelegateToGateway(context.Context, *MsgDelegateToG func (UnimplementedMsgServer) UndelegateFromGateway(context.Context, *MsgUndelegateFromGateway) (*MsgUndelegateFromGatewayResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UndelegateFromGateway not implemented") } -func (UnimplementedMsgServer) TransferApplicationStake(context.Context, *MsgTransferApplicationStake) (*MsgTransferApplicationStakeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TransferApplicationStake not implemented") +func (UnimplementedMsgServer) TransferApplication(context.Context, *MsgTransferApplication) (*MsgTransferApplicationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferApplication not implemented") } func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} @@ -253,20 +253,20 @@ func _Msg_UndelegateFromGateway_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } -func _Msg_TransferApplicationStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgTransferApplicationStake) +func _Msg_TransferApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferApplication) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).TransferApplicationStake(ctx, in) + return srv.(MsgServer).TransferApplication(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_TransferApplicationStake_FullMethodName, + FullMethod: Msg_TransferApplication_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).TransferApplicationStake(ctx, req.(*MsgTransferApplicationStake)) + return srv.(MsgServer).TransferApplication(ctx, req.(*MsgTransferApplication)) } return interceptor(ctx, in, info, handler) } @@ -299,8 +299,8 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ Handler: _Msg_UndelegateFromGateway_Handler, }, { - MethodName: "TransferApplicationStake", - Handler: _Msg_TransferApplicationStake_Handler, + MethodName: "TransferApplication", + Handler: _Msg_TransferApplication_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/e2e/tests/stake_app_transfer.feature b/e2e/tests/stake_app_transfer.feature index 34cf38d82..7f3b6de22 100644 --- a/e2e/tests/stake_app_transfer.feature +++ b/e2e/tests/stake_app_transfer.feature @@ -14,7 +14,7 @@ Feature: App Stake Transfer Namespace Then the user should be able to see standard output containing "txhash:" And the user should be able to see standard output containing "code: 0" And the pocketd binary should exit without error - And the user should wait for the "application" module "TransferApplicationStake" message to be submitted + And the user should wait for the "application" module "TransferApplication" message to be submitted And the "application" for account "app3" is staked with "1000070" uPOKT And the account balance of "app3" should be "0" uPOKT "less" than before And the user verifies the "application" for account "app2" is not staked diff --git a/proto/poktroll/application/tx.proto b/proto/poktroll/application/tx.proto index 3d5256237..73ce11d30 100644 --- a/proto/poktroll/application/tx.proto +++ b/proto/poktroll/application/tx.proto @@ -25,7 +25,7 @@ service Msg { rpc UnstakeApplication (MsgUnstakeApplication) returns (MsgUnstakeApplicationResponse); rpc DelegateToGateway (MsgDelegateToGateway) returns (MsgDelegateToGatewayResponse); rpc UndelegateFromGateway (MsgUndelegateFromGateway) returns (MsgUndelegateFromGatewayResponse); - rpc TransferApplicationStake (MsgTransferApplicationStake) returns (MsgTransferApplicationStakeResponse); + rpc TransferApplication (MsgTransferApplication) returns (MsgTransferApplicationResponse); } // MsgUpdateParams is the Msg/UpdateParams request type. message MsgUpdateParams { @@ -83,13 +83,13 @@ message MsgUndelegateFromGateway { message MsgUndelegateFromGatewayResponse {} -message MsgTransferApplicationStake { +message MsgTransferApplication { option (cosmos.msg.v1.signer) = "source_address"; string source_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string destination_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } -message MsgTransferApplicationStakeResponse { +message MsgTransferApplicationResponse { poktroll.application.Application application = 1; } diff --git a/x/application/keeper/msg_server_transfer_application_stake.go b/x/application/keeper/msg_server_transfer_application_stake.go index 63e3cae03..b7292f786 100644 --- a/x/application/keeper/msg_server_transfer_application_stake.go +++ b/x/application/keeper/msg_server_transfer_application_stake.go @@ -8,9 +8,9 @@ import ( "github.com/pokt-network/poktroll/x/application/types" ) -// TransferApplicationStake transfers the stake (held in escrow in the application +// TransferApplication transfers the stake (held in escrow in the application // module account) from a source to a (new) destination application account . -func (k msgServer) TransferApplicationStake(ctx context.Context, msg *types.MsgTransferApplicationStake) (*types.MsgTransferApplicationStakeResponse, error) { +func (k msgServer) TransferApplication(ctx context.Context, msg *types.MsgTransferApplication) (*types.MsgTransferApplicationResponse, error) { isSuccessful := false defer telemetry.EventSuccessCounter( "transfer_application_stake", @@ -18,7 +18,7 @@ func (k msgServer) TransferApplicationStake(ctx context.Context, msg *types.MsgT func() bool { return isSuccessful }, ) - logger := k.Logger().With("method", "TransferApplicationStake") + logger := k.Logger().With("method", "TransferApplication") if err := msg.ValidateBasic(); err != nil { return nil, err @@ -62,7 +62,7 @@ func (k msgServer) TransferApplicationStake(ctx context.Context, msg *types.MsgT isSuccessful = true - return &types.MsgTransferApplicationStakeResponse{ - Application: &dstApp, + return &types.MsgTransferApplicationResponse{ + Application: &srcApp, }, nil } diff --git a/x/application/keeper/msg_server_transfer_application_stake_test.go b/x/application/keeper/msg_server_transfer_application_stake_test.go index 2ef04012e..b3b47bf3b 100644 --- a/x/application/keeper/msg_server_transfer_application_stake_test.go +++ b/x/application/keeper/msg_server_transfer_application_stake_test.go @@ -14,7 +14,7 @@ import ( sharedtypes "github.com/pokt-network/poktroll/x/shared/types" ) -func TestMsgServer_TransferApplicationStake_Success(t *testing.T) { +func TestMsgServer_TransferApplication_Success(t *testing.T) { k, ctx := keepertest.ApplicationKeeper(t) srv := appkeeper.NewMsgServerImpl(k) @@ -52,29 +52,29 @@ func TestMsgServer_TransferApplicationStake_Success(t *testing.T) { require.Equal(t, "svc1", srcApp.ServiceConfigs[0].ServiceId) // Transfer the application stake from the source to the destination application address. - transferStakeMsg := apptypes.NewMsgTransferApplicationStake(srcAddr, dstAddr) + transferStakeMsg := apptypes.NewMsgTransferApplication(srcAddr, dstAddr) - transferAppStakeRes, stakeTransferErr := srv.TransferApplicationStake(ctx, transferStakeMsg) + transferAppStakeRes, stakeTransferErr := srv.TransferApplication(ctx, transferStakeMsg) require.NoError(t, stakeTransferErr) // Verify that the destination app was created with the correct state. - srcApp, isSrcFound = k.GetApplication(ctx, dstAddr) - require.True(t, isSrcFound) - dstApp, isDstFound := k.GetApplication(ctx, dstAddr) require.True(t, isDstFound) require.Equal(t, dstAddr, dstApp.Address) require.Equal(t, expectedAppStake, dstApp.Stake) require.Len(t, dstApp.ServiceConfigs, 1) + require.EqualValues(t, &srcApp, transferAppStakeRes.Application) + + srcApp.Address = "" + dstApp.Address = "" require.EqualValues(t, srcApp, dstApp) - require.EqualValues(t, &dstApp, transferAppStakeRes.Application) // Verify that the source app was unstaked. srcApp, isSrcFound = k.GetApplication(ctx, srcAddr) require.False(t, isSrcFound) } -func TestMsgServer_TransferApplicationStake_Error_DestinationExists(t *testing.T) { +func TestMsgServer_TransferApplication_Error_DestinationExists(t *testing.T) { k, ctx := keepertest.ApplicationKeeper(t) srv := appkeeper.NewMsgServerImpl(k) @@ -120,9 +120,9 @@ func TestMsgServer_TransferApplicationStake_Error_DestinationExists(t *testing.T require.NoError(t, err) // Attempt to transfer the source application stake to the destination. - transferStakeMsg := apptypes.NewMsgTransferApplicationStake(srcAddr, dstAddr) + transferStakeMsg := apptypes.NewMsgTransferApplication(srcAddr, dstAddr) - _, err = srv.TransferApplicationStake(ctx, transferStakeMsg) + _, err = srv.TransferApplication(ctx, transferStakeMsg) require.ErrorContains(t, err, apptypes.ErrAppDuplicateAddress.Wrapf("destination application (%q) exists", dstAddr).Error()) // Verify that the original application still exists. diff --git a/x/application/module/autocli.go b/x/application/module/autocli.go index e49c32622..a39b9694c 100644 --- a/x/application/module/autocli.go +++ b/x/application/module/autocli.go @@ -98,9 +98,9 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { // PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "gateway_address"}}, // }, { - RpcMethod: "TransferApplicationStake", + RpcMethod: "TransferApplication", Use: "transfer [source app address] [destination app address]", - Short: "Transfer the application stake from [source app address] to [destination app address] and unstake the source application", + Short: "Transfer the application from [source app address] to [destination app address] and remove the source application", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "source_address"}, {ProtoField: "destination_address"}}, }, // this line is used by ignite scaffolding # autocli/tx diff --git a/x/application/module/simulation.go b/x/application/module/simulation.go index 77dd39ddb..b1dabfa2d 100644 --- a/x/application/module/simulation.go +++ b/x/application/module/simulation.go @@ -39,9 +39,9 @@ const ( // TODO: Determine the simulation weight value defaultWeightMsgUndelegateFromGateway int = 100 - opWeightMsgTransferApplicationStake = "op_weight_msg_transfer_application_stake" + opWeightMsgTransferApplication = "op_weight_msg_transfer_application" // TODO: Determine the simulation weight value - defaultWeightMsgTransferApplicationStake int = 100 + defaultWeightMsgTransferApplication int = 100 // this line is used by starport scaffolding # simapp/module/const ) @@ -115,15 +115,15 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp applicationsimulation.SimulateMsgUndelegateFromGateway(am.accountKeeper, am.bankKeeper, am.applicationKeeper), )) - var weightMsgTransferApplicationStake int - simState.AppParams.GetOrGenerate(opWeightMsgTransferApplicationStake, &weightMsgTransferApplicationStake, nil, + var weightMsgTransferApplication int + simState.AppParams.GetOrGenerate(opWeightMsgTransferApplication, &weightMsgTransferApplication, nil, func(_ *rand.Rand) { - weightMsgTransferApplicationStake = defaultWeightMsgTransferApplicationStake + weightMsgTransferApplication = defaultWeightMsgTransferApplication }, ) operations = append(operations, simulation.NewWeightedOperation( - weightMsgTransferApplicationStake, - applicationsimulation.SimulateMsgTransferApplicationStake(am.accountKeeper, am.bankKeeper, am.applicationKeeper), + weightMsgTransferApplication, + applicationsimulation.SimulateMsgTransferApplication(am.accountKeeper, am.bankKeeper, am.applicationKeeper), )) // this line is used by starport scaffolding # simapp/module/operation @@ -167,10 +167,10 @@ func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.Wei }, ), simulation.NewWeightedProposalMsg( - opWeightMsgTransferApplicationStake, - defaultWeightMsgTransferApplicationStake, + opWeightMsgTransferApplication, + defaultWeightMsgTransferApplication, func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg { - applicationsimulation.SimulateMsgTransferApplicationStake(am.accountKeeper, am.bankKeeper, am.applicationKeeper) + applicationsimulation.SimulateMsgTransferApplication(am.accountKeeper, am.bankKeeper, am.applicationKeeper) return nil }, ), diff --git a/x/application/simulation/transfer_application_stake.go b/x/application/simulation/transfer_application_stake.go index 878cee4f4..ddd37d19c 100644 --- a/x/application/simulation/transfer_application_stake.go +++ b/x/application/simulation/transfer_application_stake.go @@ -11,7 +11,7 @@ import ( "github.com/pokt-network/poktroll/x/application/types" ) -func SimulateMsgTransferApplicationStake( +func SimulateMsgTransferApplication( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, @@ -20,13 +20,13 @@ func SimulateMsgTransferApplicationStake( ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { simSrcAppAccount, _ := simtypes.RandomAcc(r, accs) simDstAppAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgTransferApplicationStake{ + msg := &types.MsgTransferApplication{ SourceAddress: simSrcAppAccount.Address.String(), DestinationAddress: simDstAppAccount.Address.String(), } - // TODO: Handling the TransferApplicationStake simulation + // TODO: Handling the TransferApplication simulation - return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "TransferApplicationStake simulation not implemented"), nil, nil + return simtypes.NoOpMsg(types.ModuleName, sdk.MsgTypeURL(msg), "TransferApplication simulation not implemented"), nil, nil } } diff --git a/x/application/types/codec.go b/x/application/types/codec.go index d6496aa97..bdbcdde42 100644 --- a/x/application/types/codec.go +++ b/x/application/types/codec.go @@ -21,7 +21,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgUndelegateFromGateway{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgTransferApplicationStake{}, + &MsgTransferApplication{}, ) // this line is used by starport scaffolding # 3 diff --git a/x/application/types/message_transfer_application_stake.go b/x/application/types/message_transfer_application_stake.go index d8c49b17d..37d82891a 100644 --- a/x/application/types/message_transfer_application_stake.go +++ b/x/application/types/message_transfer_application_stake.go @@ -4,16 +4,16 @@ import ( cosmostypes "github.com/cosmos/cosmos-sdk/types" ) -var _ cosmostypes.Msg = (*MsgTransferApplicationStake)(nil) +var _ cosmostypes.Msg = (*MsgTransferApplication)(nil) -func NewMsgTransferApplicationStake(srcAddr string, dstAddr string) *MsgTransferApplicationStake { - return &MsgTransferApplicationStake{ +func NewMsgTransferApplication(srcAddr string, dstAddr string) *MsgTransferApplication { + return &MsgTransferApplication{ SourceAddress: srcAddr, DestinationAddress: dstAddr, } } -func (msg *MsgTransferApplicationStake) ValidateBasic() error { +func (msg *MsgTransferApplication) ValidateBasic() error { if msg.GetSourceAddress() == "" { return ErrAppInvalidAddress.Wrap("empty source application address") } diff --git a/x/application/types/message_transfer_application_stake_test.go b/x/application/types/message_transfer_application_stake_test.go index 3fe9a122c..a2426549f 100644 --- a/x/application/types/message_transfer_application_stake_test.go +++ b/x/application/types/message_transfer_application_stake_test.go @@ -9,17 +9,17 @@ import ( "github.com/pokt-network/poktroll/testutil/sample" ) -func TestMsgTransferApplicationStake_ValidateBasic(t *testing.T) { +func TestMsgTransferApplication_ValidateBasic(t *testing.T) { dupAddr := sample.AccAddress() tests := []struct { name string - msg MsgTransferApplicationStake + msg MsgTransferApplication err error }{ { name: "invalid duplicate source address", - msg: MsgTransferApplicationStake{ + msg: MsgTransferApplication{ SourceAddress: dupAddr, DestinationAddress: dupAddr, }, @@ -27,7 +27,7 @@ func TestMsgTransferApplicationStake_ValidateBasic(t *testing.T) { }, { name: "invalid bech32 source address", - msg: MsgTransferApplicationStake{ + msg: MsgTransferApplication{ SourceAddress: "invalid_address", DestinationAddress: sample.AccAddress(), }, @@ -35,7 +35,7 @@ func TestMsgTransferApplicationStake_ValidateBasic(t *testing.T) { }, { name: "invalid bech32 destination address", - msg: MsgTransferApplicationStake{ + msg: MsgTransferApplication{ SourceAddress: sample.AccAddress(), DestinationAddress: "invalid_address", }, @@ -43,7 +43,7 @@ func TestMsgTransferApplicationStake_ValidateBasic(t *testing.T) { }, { name: "valid source and destination addresses", - msg: MsgTransferApplicationStake{ + msg: MsgTransferApplication{ SourceAddress: sample.AccAddress(), DestinationAddress: sample.AccAddress(), }, diff --git a/x/application/types/tx.pb.go b/x/application/types/tx.pb.go index 849eaa17d..7a9b0cefa 100644 --- a/x/application/types/tx.pb.go +++ b/x/application/types/tx.pb.go @@ -439,21 +439,21 @@ func (m *MsgUndelegateFromGatewayResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUndelegateFromGatewayResponse proto.InternalMessageInfo -type MsgTransferApplicationStake struct { +type MsgTransferApplication struct { SourceAddress string `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"` } -func (m *MsgTransferApplicationStake) Reset() { *m = MsgTransferApplicationStake{} } -func (m *MsgTransferApplicationStake) String() string { return proto.CompactTextString(m) } -func (*MsgTransferApplicationStake) ProtoMessage() {} -func (*MsgTransferApplicationStake) Descriptor() ([]byte, []int) { +func (m *MsgTransferApplication) Reset() { *m = MsgTransferApplication{} } +func (m *MsgTransferApplication) String() string { return proto.CompactTextString(m) } +func (*MsgTransferApplication) ProtoMessage() {} +func (*MsgTransferApplication) Descriptor() ([]byte, []int) { return fileDescriptor_bed224e38ab1cc6d, []int{10} } -func (m *MsgTransferApplicationStake) XXX_Unmarshal(b []byte) error { +func (m *MsgTransferApplication) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgTransferApplicationStake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgTransferApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { @@ -461,46 +461,46 @@ func (m *MsgTransferApplicationStake) XXX_Marshal(b []byte, deterministic bool) } return b[:n], nil } -func (m *MsgTransferApplicationStake) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgTransferApplicationStake.Merge(m, src) +func (m *MsgTransferApplication) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferApplication.Merge(m, src) } -func (m *MsgTransferApplicationStake) XXX_Size() int { +func (m *MsgTransferApplication) XXX_Size() int { return m.Size() } -func (m *MsgTransferApplicationStake) XXX_DiscardUnknown() { - xxx_messageInfo_MsgTransferApplicationStake.DiscardUnknown(m) +func (m *MsgTransferApplication) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferApplication.DiscardUnknown(m) } -var xxx_messageInfo_MsgTransferApplicationStake proto.InternalMessageInfo +var xxx_messageInfo_MsgTransferApplication proto.InternalMessageInfo -func (m *MsgTransferApplicationStake) GetSourceAddress() string { +func (m *MsgTransferApplication) GetSourceAddress() string { if m != nil { return m.SourceAddress } return "" } -func (m *MsgTransferApplicationStake) GetDestinationAddress() string { +func (m *MsgTransferApplication) GetDestinationAddress() string { if m != nil { return m.DestinationAddress } return "" } -type MsgTransferApplicationStakeResponse struct { +type MsgTransferApplicationResponse struct { Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"` } -func (m *MsgTransferApplicationStakeResponse) Reset() { *m = MsgTransferApplicationStakeResponse{} } -func (m *MsgTransferApplicationStakeResponse) String() string { return proto.CompactTextString(m) } -func (*MsgTransferApplicationStakeResponse) ProtoMessage() {} -func (*MsgTransferApplicationStakeResponse) Descriptor() ([]byte, []int) { +func (m *MsgTransferApplicationResponse) Reset() { *m = MsgTransferApplicationResponse{} } +func (m *MsgTransferApplicationResponse) String() string { return proto.CompactTextString(m) } +func (*MsgTransferApplicationResponse) ProtoMessage() {} +func (*MsgTransferApplicationResponse) Descriptor() ([]byte, []int) { return fileDescriptor_bed224e38ab1cc6d, []int{11} } -func (m *MsgTransferApplicationStakeResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgTransferApplicationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgTransferApplicationStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgTransferApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { @@ -508,19 +508,19 @@ func (m *MsgTransferApplicationStakeResponse) XXX_Marshal(b []byte, deterministi } return b[:n], nil } -func (m *MsgTransferApplicationStakeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgTransferApplicationStakeResponse.Merge(m, src) +func (m *MsgTransferApplicationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgTransferApplicationResponse.Merge(m, src) } -func (m *MsgTransferApplicationStakeResponse) XXX_Size() int { +func (m *MsgTransferApplicationResponse) XXX_Size() int { return m.Size() } -func (m *MsgTransferApplicationStakeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgTransferApplicationStakeResponse.DiscardUnknown(m) +func (m *MsgTransferApplicationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgTransferApplicationResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgTransferApplicationStakeResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgTransferApplicationResponse proto.InternalMessageInfo -func (m *MsgTransferApplicationStakeResponse) GetApplication() *Application { +func (m *MsgTransferApplicationResponse) GetApplication() *Application { if m != nil { return m.Application } @@ -538,63 +538,63 @@ func init() { proto.RegisterType((*MsgDelegateToGatewayResponse)(nil), "poktroll.application.MsgDelegateToGatewayResponse") proto.RegisterType((*MsgUndelegateFromGateway)(nil), "poktroll.application.MsgUndelegateFromGateway") proto.RegisterType((*MsgUndelegateFromGatewayResponse)(nil), "poktroll.application.MsgUndelegateFromGatewayResponse") - proto.RegisterType((*MsgTransferApplicationStake)(nil), "poktroll.application.MsgTransferApplicationStake") - proto.RegisterType((*MsgTransferApplicationStakeResponse)(nil), "poktroll.application.MsgTransferApplicationStakeResponse") + proto.RegisterType((*MsgTransferApplication)(nil), "poktroll.application.MsgTransferApplication") + proto.RegisterType((*MsgTransferApplicationResponse)(nil), "poktroll.application.MsgTransferApplicationResponse") } func init() { proto.RegisterFile("poktroll/application/tx.proto", fileDescriptor_bed224e38ab1cc6d) } var fileDescriptor_bed224e38ab1cc6d = []byte{ - // 776 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0x4d, 0x4f, 0xdb, 0x4a, - 0x14, 0x86, 0x33, 0x20, 0xb8, 0x97, 0x13, 0x2e, 0x1f, 0x26, 0x88, 0xe0, 0x0b, 0x26, 0xe4, 0xea, - 0x56, 0x90, 0x0a, 0x5b, 0x09, 0x15, 0x12, 0x6c, 0x10, 0xd0, 0x0f, 0x75, 0x11, 0xa9, 0x0a, 0x74, - 0xd3, 0x0d, 0x9a, 0x24, 0x83, 0x71, 0x49, 0x3c, 0x96, 0x67, 0x08, 0xb0, 0x6a, 0xd5, 0x55, 0xd5, - 0x55, 0x7f, 0x45, 0x55, 0x75, 0xc5, 0xa2, 0xeb, 0xee, 0x2a, 0xb1, 0x2b, 0xea, 0x8a, 0x4d, 0xab, - 0x2a, 0x2c, 0xf8, 0x1b, 0x95, 0xed, 0xb1, 0x63, 0x1c, 0x1b, 0xc2, 0xae, 0x1b, 0xc8, 0xcc, 0x79, - 0xcf, 0x39, 0xef, 0x33, 0x33, 0x1e, 0x1b, 0x66, 0x2d, 0x7a, 0xc0, 0x6d, 0xda, 0x68, 0x68, 0xd8, - 0xb2, 0x1a, 0x46, 0x0d, 0x73, 0x83, 0x9a, 0x1a, 0x3f, 0x56, 0x2d, 0x9b, 0x72, 0x2a, 0x65, 0xfc, - 0xb0, 0x1a, 0x0a, 0xcb, 0xe3, 0xb8, 0x69, 0x98, 0x54, 0x73, 0xff, 0x7a, 0x42, 0x79, 0xba, 0x46, - 0x59, 0x93, 0xb2, 0x5d, 0x77, 0xa4, 0x79, 0x03, 0x11, 0x52, 0xbc, 0x91, 0x56, 0xc5, 0x8c, 0x68, - 0xad, 0x62, 0x95, 0x70, 0x5c, 0xd4, 0x6a, 0xd4, 0x30, 0x45, 0x7c, 0x4a, 0xc4, 0x9b, 0x4c, 0xd7, - 0x5a, 0x45, 0xe7, 0x9f, 0x08, 0x64, 0x74, 0xaa, 0x53, 0xaf, 0xa0, 0xf3, 0x4b, 0xcc, 0xe6, 0xe2, - 0x1d, 0x9f, 0x58, 0xc4, 0x6f, 0x38, 0x1f, 0xab, 0xb0, 0xb0, 0x8d, 0x9b, 0xbe, 0xa4, 0x83, 0xcd, - 0xf6, 0xb1, 0x4d, 0xea, 0x1a, 0x23, 0x76, 0xcb, 0xa8, 0x11, 0x2f, 0x9c, 0xff, 0x8a, 0x60, 0xb4, - 0xcc, 0xf4, 0xe7, 0x56, 0x1d, 0x73, 0xf2, 0xcc, 0x4d, 0x94, 0x56, 0x60, 0x08, 0x1f, 0xf2, 0x7d, - 0x6a, 0x1b, 0xfc, 0x24, 0x8b, 0x72, 0x68, 0x61, 0x68, 0x33, 0xfb, 0xfd, 0xf3, 0x52, 0x46, 0xb0, - 0x6e, 0xd4, 0xeb, 0x36, 0x61, 0x6c, 0x9b, 0xdb, 0x86, 0xa9, 0x57, 0x3a, 0x52, 0x69, 0x1d, 0x06, - 0xbd, 0xd6, 0xd9, 0xbe, 0x1c, 0x5a, 0x48, 0x97, 0x66, 0xd4, 0xb8, 0x35, 0x55, 0xbd, 0x2e, 0x9b, - 0x43, 0x67, 0x3f, 0xe7, 0x52, 0x1f, 0xaf, 0x4e, 0x0b, 0xa8, 0x22, 0xd2, 0xd6, 0x56, 0xdf, 0x5c, - 0x9d, 0x16, 0x3a, 0x05, 0xdf, 0x5d, 0x9d, 0x16, 0xee, 0x05, 0xf6, 0x8f, 0xaf, 0x31, 0x46, 0x3c, - 0xe7, 0xa7, 0x61, 0x2a, 0x32, 0x55, 0x21, 0xcc, 0xa2, 0x26, 0x23, 0xf9, 0x6f, 0x08, 0x26, 0xca, - 0x4c, 0xdf, 0xe6, 0xf8, 0x80, 0x6c, 0x74, 0x4a, 0x48, 0x25, 0xf8, 0x0b, 0x7b, 0x28, 0xb7, 0x42, - 0xfa, 0x42, 0x49, 0x83, 0x01, 0xe6, 0xd4, 0x11, 0x84, 0xd3, 0xaa, 0x90, 0x3b, 0x3b, 0xae, 0x8a, - 0x1d, 0x57, 0xb7, 0xa8, 0x61, 0x56, 0x3c, 0x9d, 0xf4, 0x08, 0xfe, 0x16, 0x0b, 0xce, 0xb2, 0xfd, - 0xb9, 0xfe, 0x85, 0x74, 0x69, 0xb1, 0xb3, 0x2a, 0xde, 0x8e, 0xa8, 0x21, 0x53, 0xdb, 0x9e, 0x76, - 0x8b, 0x9a, 0x7b, 0x86, 0x5e, 0x09, 0x52, 0xd7, 0x86, 0x9d, 0x95, 0xf1, 0x5d, 0xe4, 0x67, 0xe1, - 0xdf, 0x18, 0xa0, 0x00, 0x78, 0x1d, 0x26, 0x9d, 0xb5, 0x30, 0x59, 0x94, 0x38, 0x1b, 0x21, 0x0e, - 0xb8, 0x22, 0xf5, 0xe7, 0x60, 0x36, 0xb6, 0x40, 0xd0, 0xe1, 0x03, 0x82, 0x4c, 0x99, 0xe9, 0x0f, - 0x49, 0x83, 0xe8, 0x98, 0x93, 0x1d, 0xfa, 0x04, 0x73, 0x72, 0x84, 0x4f, 0xa4, 0x55, 0x48, 0x63, - 0xcb, 0xda, 0xed, 0x75, 0x5d, 0x01, 0x5b, 0x96, 0x98, 0x91, 0x36, 0x60, 0x54, 0xf7, 0xaa, 0x04, - 0xe9, 0x7d, 0xb7, 0xa4, 0x8f, 0x88, 0x04, 0x31, 0xbb, 0x36, 0xe6, 0x50, 0x84, 0x0d, 0xe4, 0x15, - 0x98, 0x89, 0xf3, 0x19, 0x80, 0x7c, 0x42, 0x90, 0x75, 0x51, 0xeb, 0x42, 0xf2, 0xd8, 0xa6, 0xcd, - 0x3f, 0x15, 0x26, 0x0f, 0xb9, 0x24, 0xaf, 0x01, 0xd0, 0x17, 0xe4, 0x9e, 0x8d, 0x1d, 0x1b, 0x9b, - 0x6c, 0x8f, 0xd8, 0xe1, 0xa3, 0xe5, 0x9e, 0xc7, 0x75, 0x18, 0x61, 0xf4, 0xd0, 0xae, 0x91, 0x9e, - 0xb1, 0xfe, 0xf1, 0xf4, 0x3e, 0xd9, 0x53, 0x98, 0xa8, 0x13, 0xc6, 0x0d, 0xd3, 0x2d, 0xda, 0x33, - 0x9d, 0x14, 0x4a, 0xf2, 0x09, 0x27, 0x1c, 0xc2, 0x88, 0x9d, 0xfc, 0x4b, 0xf8, 0xef, 0x06, 0xff, - 0x3e, 0xa7, 0xb4, 0xe5, 0xee, 0x8d, 0x1f, 0x73, 0x21, 0xd2, 0xa5, 0xf9, 0xf8, 0x0b, 0x27, 0x7c, - 0x82, 0xc3, 0x59, 0xa5, 0x1f, 0x03, 0xd0, 0x5f, 0x66, 0xba, 0x54, 0x87, 0xe1, 0x6b, 0x17, 0xe0, - 0xff, 0xf1, 0x75, 0x22, 0x17, 0x8c, 0xbc, 0xd4, 0x93, 0x2c, 0xb0, 0x6c, 0xc1, 0x58, 0xd7, 0x1d, - 0xb4, 0x98, 0x58, 0x22, 0x2a, 0x95, 0x8b, 0x3d, 0x4b, 0x83, 0x8e, 0x2d, 0x90, 0x62, 0x6e, 0x81, - 0xfb, 0xc9, 0xb6, 0xbb, 0xc4, 0xf2, 0xf2, 0x1d, 0xc4, 0x41, 0x5f, 0x06, 0xe3, 0xdd, 0x57, 0x43, - 0x21, 0xb1, 0x52, 0x97, 0x56, 0x2e, 0xf5, 0xae, 0x0d, 0x9a, 0xbe, 0x82, 0xc9, 0xf8, 0xc7, 0x58, - 0xbd, 0x01, 0x21, 0x46, 0x2f, 0xaf, 0xdc, 0x4d, 0x1f, 0x18, 0x78, 0x8b, 0x20, 0x9b, 0xf8, 0xdc, - 0x25, 0xef, 0x5e, 0x52, 0x8a, 0xbc, 0x7a, 0xe7, 0x14, 0xdf, 0x8a, 0x3c, 0xf0, 0xda, 0x79, 0xaf, - 0x6e, 0x56, 0xce, 0xda, 0x0a, 0x3a, 0x6f, 0x2b, 0xe8, 0xa2, 0xad, 0xa0, 0x5f, 0x6d, 0x05, 0xbd, - 0xbf, 0x54, 0x52, 0xe7, 0x97, 0x4a, 0xea, 0xe2, 0x52, 0x49, 0xbd, 0x78, 0xa0, 0x1b, 0x7c, 0xff, - 0xb0, 0xaa, 0xd6, 0x68, 0x53, 0x73, 0x3a, 0x2d, 0x99, 0x84, 0x1f, 0x51, 0xfb, 0x40, 0x4b, 0x78, - 0xe5, 0xba, 0x1f, 0x1e, 0xd5, 0x41, 0xf7, 0xbb, 0x61, 0xf9, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x8d, 0xda, 0xe1, 0xbe, 0x4f, 0x09, 0x00, 0x00, + // 772 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x96, 0xcd, 0x4e, 0xdb, 0x4a, + 0x14, 0xc7, 0x63, 0x10, 0xdc, 0xcb, 0x09, 0x97, 0x0f, 0x27, 0x5c, 0x82, 0x0b, 0x26, 0x44, 0x6a, + 0x05, 0x69, 0xb1, 0x95, 0x80, 0x90, 0x60, 0x83, 0x80, 0x7e, 0xa8, 0x8b, 0x48, 0x55, 0xa0, 0x9b, + 0x6e, 0xd0, 0x24, 0x19, 0x8c, 0x45, 0xe2, 0xb1, 0x3c, 0x43, 0x20, 0xab, 0x56, 0x5d, 0x76, 0xd5, + 0xa7, 0xa8, 0xaa, 0xae, 0x58, 0x74, 0xd3, 0x07, 0xa8, 0xc4, 0xa6, 0x2a, 0xea, 0x8a, 0x55, 0x55, + 0x85, 0x05, 0xaf, 0x51, 0xd9, 0x1e, 0x3b, 0xc6, 0x99, 0x94, 0xb0, 0xeb, 0x06, 0xe2, 0x39, 0xff, + 0x73, 0xce, 0xff, 0x77, 0x46, 0x33, 0x36, 0xcc, 0xd9, 0xe4, 0x88, 0x39, 0xa4, 0x5e, 0xd7, 0x91, + 0x6d, 0xd7, 0xcd, 0x2a, 0x62, 0x26, 0xb1, 0x74, 0x76, 0xaa, 0xd9, 0x0e, 0x61, 0x44, 0x4e, 0x07, + 0x61, 0x2d, 0x12, 0x56, 0x26, 0x51, 0xc3, 0xb4, 0x88, 0xee, 0xfd, 0xf5, 0x85, 0xca, 0x4c, 0x95, + 0xd0, 0x06, 0xa1, 0xfb, 0xde, 0x93, 0xee, 0x3f, 0xf0, 0x90, 0xea, 0x3f, 0xe9, 0x15, 0x44, 0xb1, + 0xde, 0x2c, 0x54, 0x30, 0x43, 0x05, 0xbd, 0x4a, 0x4c, 0x8b, 0xc7, 0xa7, 0x79, 0xbc, 0x41, 0x0d, + 0xbd, 0x59, 0x70, 0xff, 0xf1, 0x40, 0xda, 0x20, 0x06, 0xf1, 0x0b, 0xba, 0xbf, 0xf8, 0x6a, 0x56, + 0xec, 0xb8, 0x65, 0xe3, 0xa0, 0xe1, 0x82, 0x50, 0x61, 0x23, 0x07, 0x35, 0x02, 0x49, 0x07, 0x9b, + 0x1e, 0x22, 0x07, 0xd7, 0x74, 0x8a, 0x9d, 0xa6, 0x59, 0xc5, 0x7e, 0x38, 0xf7, 0x55, 0x82, 0xf1, + 0x12, 0x35, 0x5e, 0xda, 0x35, 0xc4, 0xf0, 0x0b, 0x2f, 0x51, 0x5e, 0x83, 0x11, 0x74, 0xcc, 0x0e, + 0x89, 0x63, 0xb2, 0x56, 0x46, 0xca, 0x4a, 0x8b, 0x23, 0xdb, 0x99, 0x1f, 0x9f, 0x97, 0xd3, 0x9c, + 0x75, 0xab, 0x56, 0x73, 0x30, 0xa5, 0xbb, 0xcc, 0x31, 0x2d, 0xa3, 0xdc, 0x91, 0xca, 0x9b, 0x30, + 0xec, 0xb7, 0xce, 0x0c, 0x64, 0xa5, 0xc5, 0x64, 0x71, 0x56, 0x13, 0xcd, 0x54, 0xf3, 0xbb, 0x6c, + 0x8f, 0x9c, 0xff, 0x9c, 0x4f, 0x7c, 0xbc, 0x3e, 0xcb, 0x4b, 0x65, 0x9e, 0xb6, 0xb1, 0xfe, 0xf6, + 0xfa, 0x2c, 0xdf, 0x29, 0xf8, 0xee, 0xfa, 0x2c, 0xff, 0x20, 0xb4, 0x7f, 0x7a, 0x83, 0x31, 0xe6, + 0x39, 0x37, 0x03, 0xd3, 0xb1, 0xa5, 0x32, 0xa6, 0x36, 0xb1, 0x28, 0xce, 0x7d, 0x97, 0x20, 0x55, + 0xa2, 0xc6, 0x2e, 0x43, 0x47, 0x78, 0xab, 0x53, 0x42, 0x2e, 0xc2, 0x3f, 0xc8, 0x47, 0xb9, 0x15, + 0x32, 0x10, 0xca, 0x3a, 0x0c, 0x51, 0xb7, 0x0e, 0x27, 0x9c, 0xd1, 0xb8, 0xdc, 0xdd, 0x71, 0x8d, + 0xef, 0xb8, 0xb6, 0x43, 0x4c, 0xab, 0xec, 0xeb, 0xe4, 0x27, 0xf0, 0x2f, 0x1f, 0x38, 0xcd, 0x0c, + 0x66, 0x07, 0x17, 0x93, 0xc5, 0xa5, 0xce, 0x54, 0xfc, 0x1d, 0xd1, 0x22, 0xa6, 0x76, 0x7d, 0xed, + 0x0e, 0xb1, 0x0e, 0x4c, 0xa3, 0x1c, 0xa6, 0x6e, 0x8c, 0xba, 0x93, 0x09, 0x5c, 0xe4, 0xe6, 0xe0, + 0x9e, 0x00, 0x28, 0x04, 0xde, 0x84, 0x29, 0x77, 0x16, 0x16, 0x8d, 0x13, 0x67, 0x62, 0xc4, 0x21, + 0x57, 0xac, 0xfe, 0x3c, 0xcc, 0x09, 0x0b, 0x84, 0x1d, 0x3e, 0x48, 0x90, 0x2e, 0x51, 0xe3, 0x31, + 0xae, 0x63, 0x03, 0x31, 0xbc, 0x47, 0x9e, 0x21, 0x86, 0x4f, 0x50, 0x4b, 0x5e, 0x87, 0x24, 0xb2, + 0xed, 0xfd, 0x7e, 0xe7, 0x0a, 0xc8, 0xb6, 0xf9, 0x8a, 0xbc, 0x05, 0xe3, 0x86, 0x5f, 0x25, 0x4c, + 0x1f, 0xb8, 0x25, 0x7d, 0x8c, 0x27, 0xf0, 0xd5, 0x8d, 0x09, 0x97, 0x22, 0x6a, 0x20, 0xa7, 0xc2, + 0xac, 0xc8, 0x67, 0x08, 0xf2, 0x49, 0x82, 0x8c, 0x87, 0x5a, 0xe3, 0x92, 0xa7, 0x0e, 0x69, 0xfc, + 0xad, 0x30, 0x39, 0xc8, 0xf6, 0xf2, 0x1a, 0x02, 0x7d, 0x91, 0xe0, 0xff, 0x12, 0x35, 0xf6, 0x1c, + 0x64, 0xd1, 0x03, 0xec, 0x44, 0x77, 0x7f, 0x13, 0xc6, 0x28, 0x39, 0x76, 0xaa, 0xb8, 0x6f, 0xa2, + 0xff, 0x7c, 0x7d, 0x00, 0xf5, 0x1c, 0x52, 0x35, 0x4c, 0x99, 0x69, 0x79, 0xf5, 0xfa, 0x06, 0x93, + 0x23, 0x49, 0x01, 0x5c, 0xca, 0x85, 0x8b, 0xd9, 0xc9, 0x61, 0x50, 0xc5, 0xd6, 0x03, 0x3a, 0x79, + 0xc7, 0xdb, 0x91, 0x60, 0xd9, 0xf3, 0x9f, 0x2c, 0x2e, 0x88, 0xaf, 0x99, 0x68, 0x7e, 0x34, 0xab, + 0xf8, 0x6d, 0x08, 0x06, 0x4b, 0xd4, 0x90, 0x6b, 0x30, 0x7a, 0xe3, 0xda, 0xbb, 0x2f, 0xae, 0x13, + 0xbb, 0x56, 0x94, 0xe5, 0xbe, 0x64, 0xa1, 0x65, 0x1b, 0x26, 0xba, 0x6e, 0x9e, 0xa5, 0x9e, 0x25, + 0xe2, 0x52, 0xa5, 0xd0, 0xb7, 0x34, 0xec, 0xd8, 0x04, 0x59, 0x70, 0xf6, 0x1f, 0xf6, 0xb6, 0xdd, + 0x25, 0x56, 0x56, 0xee, 0x20, 0x0e, 0xfb, 0x52, 0x98, 0xec, 0xbe, 0x10, 0xf2, 0x3d, 0x2b, 0x75, + 0x69, 0x95, 0x62, 0xff, 0xda, 0xb0, 0xe9, 0x6b, 0x98, 0x12, 0x1f, 0x5e, 0xed, 0x0f, 0x08, 0x02, + 0xbd, 0xb2, 0x76, 0x37, 0x7d, 0x68, 0xa0, 0x05, 0x29, 0xd1, 0x61, 0x7b, 0xd4, 0xb3, 0x9c, 0x40, + 0xad, 0xac, 0xde, 0x45, 0x1d, 0xb4, 0x56, 0x86, 0xde, 0xb8, 0x6f, 0xcf, 0xed, 0xf2, 0x79, 0x5b, + 0x95, 0x2e, 0xda, 0xaa, 0x74, 0xd9, 0x56, 0xa5, 0x5f, 0x6d, 0x55, 0x7a, 0x7f, 0xa5, 0x26, 0x2e, + 0xae, 0xd4, 0xc4, 0xe5, 0x95, 0x9a, 0x78, 0xb5, 0x6a, 0x98, 0xec, 0xf0, 0xb8, 0xa2, 0x55, 0x49, + 0x43, 0x77, 0x9b, 0x2c, 0x5b, 0x98, 0x9d, 0x10, 0xe7, 0x48, 0xef, 0xf1, 0x62, 0xf5, 0x3e, 0x2f, + 0x2a, 0xc3, 0xde, 0xd7, 0xc1, 0xca, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb5, 0xa2, 0x5c, 0x80, + 0x35, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -616,7 +616,7 @@ type MsgClient interface { UnstakeApplication(ctx context.Context, in *MsgUnstakeApplication, opts ...grpc.CallOption) (*MsgUnstakeApplicationResponse, error) DelegateToGateway(ctx context.Context, in *MsgDelegateToGateway, opts ...grpc.CallOption) (*MsgDelegateToGatewayResponse, error) UndelegateFromGateway(ctx context.Context, in *MsgUndelegateFromGateway, opts ...grpc.CallOption) (*MsgUndelegateFromGatewayResponse, error) - TransferApplicationStake(ctx context.Context, in *MsgTransferApplicationStake, opts ...grpc.CallOption) (*MsgTransferApplicationStakeResponse, error) + TransferApplication(ctx context.Context, in *MsgTransferApplication, opts ...grpc.CallOption) (*MsgTransferApplicationResponse, error) } type msgClient struct { @@ -672,9 +672,9 @@ func (c *msgClient) UndelegateFromGateway(ctx context.Context, in *MsgUndelegate return out, nil } -func (c *msgClient) TransferApplicationStake(ctx context.Context, in *MsgTransferApplicationStake, opts ...grpc.CallOption) (*MsgTransferApplicationStakeResponse, error) { - out := new(MsgTransferApplicationStakeResponse) - err := c.cc.Invoke(ctx, "/poktroll.application.Msg/TransferApplicationStake", in, out, opts...) +func (c *msgClient) TransferApplication(ctx context.Context, in *MsgTransferApplication, opts ...grpc.CallOption) (*MsgTransferApplicationResponse, error) { + out := new(MsgTransferApplicationResponse) + err := c.cc.Invoke(ctx, "/poktroll.application.Msg/TransferApplication", in, out, opts...) if err != nil { return nil, err } @@ -690,7 +690,7 @@ type MsgServer interface { UnstakeApplication(context.Context, *MsgUnstakeApplication) (*MsgUnstakeApplicationResponse, error) DelegateToGateway(context.Context, *MsgDelegateToGateway) (*MsgDelegateToGatewayResponse, error) UndelegateFromGateway(context.Context, *MsgUndelegateFromGateway) (*MsgUndelegateFromGatewayResponse, error) - TransferApplicationStake(context.Context, *MsgTransferApplicationStake) (*MsgTransferApplicationStakeResponse, error) + TransferApplication(context.Context, *MsgTransferApplication) (*MsgTransferApplicationResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -712,8 +712,8 @@ func (*UnimplementedMsgServer) DelegateToGateway(ctx context.Context, req *MsgDe func (*UnimplementedMsgServer) UndelegateFromGateway(ctx context.Context, req *MsgUndelegateFromGateway) (*MsgUndelegateFromGatewayResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UndelegateFromGateway not implemented") } -func (*UnimplementedMsgServer) TransferApplicationStake(ctx context.Context, req *MsgTransferApplicationStake) (*MsgTransferApplicationStakeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TransferApplicationStake not implemented") +func (*UnimplementedMsgServer) TransferApplication(ctx context.Context, req *MsgTransferApplication) (*MsgTransferApplicationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferApplication not implemented") } func RegisterMsgServer(s grpc1.Server, srv MsgServer) { @@ -810,20 +810,20 @@ func _Msg_UndelegateFromGateway_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } -func _Msg_TransferApplicationStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgTransferApplicationStake) +func _Msg_TransferApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgTransferApplication) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).TransferApplicationStake(ctx, in) + return srv.(MsgServer).TransferApplication(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/poktroll.application.Msg/TransferApplicationStake", + FullMethod: "/poktroll.application.Msg/TransferApplication", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).TransferApplicationStake(ctx, req.(*MsgTransferApplicationStake)) + return srv.(MsgServer).TransferApplication(ctx, req.(*MsgTransferApplication)) } return interceptor(ctx, in, info, handler) } @@ -853,8 +853,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_UndelegateFromGateway_Handler, }, { - MethodName: "TransferApplicationStake", - Handler: _Msg_TransferApplicationStake_Handler, + MethodName: "TransferApplication", + Handler: _Msg_TransferApplication_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -1176,7 +1176,7 @@ func (m *MsgUndelegateFromGatewayResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *MsgTransferApplicationStake) Marshal() (dAtA []byte, err error) { +func (m *MsgTransferApplication) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1186,12 +1186,12 @@ func (m *MsgTransferApplicationStake) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgTransferApplicationStake) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgTransferApplication) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgTransferApplicationStake) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgTransferApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1213,7 +1213,7 @@ func (m *MsgTransferApplicationStake) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *MsgTransferApplicationStakeResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgTransferApplicationResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1223,12 +1223,12 @@ func (m *MsgTransferApplicationStakeResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *MsgTransferApplicationStakeResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgTransferApplicationResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgTransferApplicationStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgTransferApplicationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1389,7 +1389,7 @@ func (m *MsgUndelegateFromGatewayResponse) Size() (n int) { return n } -func (m *MsgTransferApplicationStake) Size() (n int) { +func (m *MsgTransferApplication) Size() (n int) { if m == nil { return 0 } @@ -1406,7 +1406,7 @@ func (m *MsgTransferApplicationStake) Size() (n int) { return n } -func (m *MsgTransferApplicationStakeResponse) Size() (n int) { +func (m *MsgTransferApplicationResponse) Size() (n int) { if m == nil { return 0 } @@ -2252,7 +2252,7 @@ func (m *MsgUndelegateFromGatewayResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgTransferApplicationStake) Unmarshal(dAtA []byte) error { +func (m *MsgTransferApplication) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2275,10 +2275,10 @@ func (m *MsgTransferApplicationStake) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgTransferApplicationStake: wiretype end group for non-group") + return fmt.Errorf("proto: MsgTransferApplication: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgTransferApplicationStake: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgTransferApplication: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2366,7 +2366,7 @@ func (m *MsgTransferApplicationStake) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgTransferApplicationStakeResponse) Unmarshal(dAtA []byte) error { +func (m *MsgTransferApplicationResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2389,10 +2389,10 @@ func (m *MsgTransferApplicationStakeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgTransferApplicationStakeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgTransferApplicationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgTransferApplicationStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgTransferApplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/tokenomics/types/tx.pb.go b/x/tokenomics/types/tx.pb.go index 9f18a148c..e4fec264c 100644 --- a/x/tokenomics/types/tx.pb.go +++ b/x/tokenomics/types/tx.pb.go @@ -125,6 +125,7 @@ type MsgUpdateParam struct { // specified in the `Params` message in `proof/params.proto.` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to AsType: + // // *MsgUpdateParam_AsString // *MsgUpdateParam_AsInt64 // *MsgUpdateParam_AsBytes