diff --git a/api/gen/csharp/Gnonativetypes.cs b/api/gen/csharp/Gnonativetypes.cs index 2447ffd3..6ba6ba81 100644 --- a/api/gen/csharp/Gnonativetypes.cs +++ b/api/gen/csharp/Gnonativetypes.cs @@ -31,105 +31,115 @@ static GnonativetypesReflection() { "ZXRDaGFpbklEUmVxdWVzdBIZCghjaGFpbl9pZBgBIAEoCVIHY2hhaW5JZCIU", "ChJTZXRDaGFpbklEUmVzcG9uc2UiEwoRR2V0Q2hhaW5JRFJlcXVlc3QiLwoS", "R2V0Q2hhaW5JRFJlc3BvbnNlEhkKCGNoYWluX2lkGAEgASgJUgdjaGFpbklk", - "IjAKElNldFBhc3N3b3JkUmVxdWVzdBIaCghwYXNzd29yZBgBIAEoCVIIcGFz", - "c3dvcmQiFQoTU2V0UGFzc3dvcmRSZXNwb25zZSI6ChVVcGRhdGVQYXNzd29y", - "ZFJlcXVlc3QSIQoMbmV3X3Bhc3N3b3JkGAEgASgJUgtuZXdQYXNzd29yZCIY", - "ChZVcGRhdGVQYXNzd29yZFJlc3BvbnNlIh8KHUdlbmVyYXRlUmVjb3ZlcnlQ", - "aHJhc2VSZXF1ZXN0IjgKHkdlbmVyYXRlUmVjb3ZlcnlQaHJhc2VSZXNwb25z", - "ZRIWCgZwaHJhc2UYASABKAlSBnBocmFzZSJkCgdLZXlJbmZvEhIKBHR5cGUY", - "ASABKA1SBHR5cGUSEgoEbmFtZRgCIAEoCVIEbmFtZRIXCgdwdWJfa2V5GAMg", - "ASgMUgZwdWJLZXkSGAoHYWRkcmVzcxgEIAEoDFIHYWRkcmVzcyI0CgRDb2lu", - "EhQKBWRlbm9tGAEgASgJUgVkZW5vbRIWCgZhbW91bnQYAiABKBJSBmFtb3Vu", - "dCK2AQoLQmFzZUFjY291bnQSGAoHYWRkcmVzcxgBIAEoDFIHYWRkcmVzcxIx", - "CgVjb2lucxgCIAMoCzIbLmxhbmQuZ25vLmdub25hdGl2ZS52MS5Db2luUgVj", - "b2lucxIXCgdwdWJf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wb25zZRI1CgNr", - "ZXkYASABKAsyHi5sYW5kLmduby5nbm9uYXRpdmUudjEuS2V5SW5mb1IIa2V5", - "X2luZm8iPAoUU2VsZWN0QWNjb3VudFJlcXVlc3QSJAoObmFtZV9vcl9iZWNo", - "MzIYASABKAlSDG5hbWVPckJlY2gzMiJxChVTZWxlY3RBY2NvdW50UmVzcG9u", + "ZXlfaW5mbyI2ChpHZXRLZXlJbmZvQnlBZGRyZXNzUmVxdWVzdBIYCgdhZGRy", + "ZXNzGAEgASgMUgdhZGRyZXNzIlQKG0dldEtleUluZm9CeUFkZHJlc3NSZXNw", + "b25zZRI1CgNrZXkYASABKAsyHi5sYW5kLmduby5nbm9uYXRpdmUudjEuS2V5", + "SW5mb1IIa2V5X2luZm8iSAogR2V0S2V5SW5mb0J5TmFtZU9yQWRkcmVzc1Jl", + "cXVlc3QSJAoObmFtZV9vcl9iZWNoMzIYASABKAlSDG5hbWVPckJlY2gzMiJa", + "CiFHZXRLZXlJbmZvQnlOYW1lT3JBZGRyZXNzUmVzcG9uc2USNQoDa2V5GAEg", + "ASgLMh4ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLktleUluZm9SCGtleV9pbmZv", + "IscBChRDcmVhdGVBY2NvdW50UmVxdWVzdBIkCg5uYW1lX29yX2JlY2gzMhgB", + "IAEoCVIMbmFtZU9yQmVjaDMyEhoKCG1uZW1vbmljGAIgASgJUghtbmVtb25p", + "YxIhCgxiaXAzOV9wYXNzd2QYAyABKAlSC2JpcDM5UGFzc3dkEhoKCHBhc3N3", + "b3JkGAQgASgJUghwYXNzd29yZBIYCgdhY2NvdW50GAUgASgNUgdhY2NvdW50", + "EhQKBWluZGV4GAYgASgNUgVpbmRleCJOChVDcmVhdGVBY2NvdW50UmVzcG9u", "c2USNQoDa2V5GAEgASgLMh4ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLktleUlu", - "Zm9SCGtleV9pbmZvEiEKDGhhc19wYXNzd29yZBgCIAEoCFILaGFzUGFzc3d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yb21C", + "ZWNoMzJSZXNwb25zZRIYCgdhZGRyZXNzGAEgASgMUgdhZGRyZXNzIjgKGkFk", + "ZHJlc3NGcm9tTW5lbW9uaWNSZXF1ZXN0EhoKCG1uZW1vbmljGAEgASgJUght", + "bmVtb25pYyI3ChtBZGRyZXNzRnJvbU1uZW1vbmljUmVzcG9uc2USGAoHYWRk", + "cmVzcxgBIAEoDFIHYWRkcmVzcyIiCgxIZWxsb1JlcXVlc3QSEgoEbmFtZRgB", + "IAEoCVIETmFtZSIrCg1IZWxsb1Jlc3BvbnNlEhoKCGdyZWV0aW5nGAEgASgJ", + "UghHcmVldGluZyIoChJIZWxsb1N0cmVhbVJlcXVlc3QSEgoEbmFtZRgBIAEo", + "CVIETmFtZSIxChNIZWxsb1N0cmVhbVJlc3BvbnNlEhoKCGdyZWV0aW5nGAEg", + "ASgJUghHcmVldGluZ0IpWidnaXRodWIuY29tL2dub2xhbmcvZ25vbmF0aXZl", + "L2FwaS9nZW4vZ29iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -141,9 +151,9 @@ static GnonativetypesReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SetChainIDResponse), global::Land.Gno.Gnonative.V1.SetChainIDResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GetChainIDRequest), global::Land.Gno.Gnonative.V1.GetChainIDRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GetChainIDResponse), global::Land.Gno.Gnonative.V1.GetChainIDResponse.Parser, new[]{ "ChainId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SetPasswordRequest), global::Land.Gno.Gnonative.V1.SetPasswordRequest.Parser, new[]{ "Password" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SetPasswordRequest), global::Land.Gno.Gnonative.V1.SetPasswordRequest.Parser, new[]{ "Password", "Address" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SetPasswordResponse), global::Land.Gno.Gnonative.V1.SetPasswordResponse.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.UpdatePasswordRequest), global::Land.Gno.Gnonative.V1.UpdatePasswordRequest.Parser, new[]{ "NewPassword" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.UpdatePasswordRequest), global::Land.Gno.Gnonative.V1.UpdatePasswordRequest.Parser, new[]{ "NewPassword", "Address" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.UpdatePasswordResponse), global::Land.Gno.Gnonative.V1.UpdatePasswordResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GenerateRecoveryPhraseRequest), global::Land.Gno.Gnonative.V1.GenerateRecoveryPhraseRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GenerateRecoveryPhraseResponse), global::Land.Gno.Gnonative.V1.GenerateRecoveryPhraseResponse.Parser, new[]{ "Phrase" }, null, null, null, null), @@ -168,8 +178,12 @@ static GnonativetypesReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.CreateAccountResponse), global::Land.Gno.Gnonative.V1.CreateAccountResponse.Parser, new[]{ "Key" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SelectAccountRequest), global::Land.Gno.Gnonative.V1.SelectAccountRequest.Parser, new[]{ "NameOrBech32" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SelectAccountResponse), global::Land.Gno.Gnonative.V1.SelectAccountResponse.Parser, new[]{ "Key", "HasPassword" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.ActivateAccountRequest), global::Land.Gno.Gnonative.V1.ActivateAccountRequest.Parser, new[]{ "NameOrBech32" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.ActivateAccountResponse), global::Land.Gno.Gnonative.V1.ActivateAccountResponse.Parser, new[]{ "Key", "HasPassword" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GetActiveAccountRequest), global::Land.Gno.Gnonative.V1.GetActiveAccountRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GetActiveAccountResponse), global::Land.Gno.Gnonative.V1.GetActiveAccountResponse.Parser, new[]{ "Key", "HasPassword" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GetActivatedAccountRequest), global::Land.Gno.Gnonative.V1.GetActivatedAccountRequest.Parser, new[]{ "Address" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GetActivatedAccountResponse), global::Land.Gno.Gnonative.V1.GetActivatedAccountResponse.Parser, new[]{ "Key", "HasPassword" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.QueryAccountRequest), global::Land.Gno.Gnonative.V1.QueryAccountRequest.Parser, new[]{ "Address" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.QueryAccountResponse), global::Land.Gno.Gnonative.V1.QueryAccountResponse.Parser, new[]{ "AccountInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.DeleteAccountRequest), global::Land.Gno.Gnonative.V1.DeleteAccountRequest.Parser, new[]{ "NameOrBech32", "Password", "SkipPassword" }, null, null, null, null), @@ -190,7 +204,7 @@ static GnonativetypesReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.RunRequest), global::Land.Gno.Gnonative.V1.RunRequest.Parser, new[]{ "GasFee", "GasWanted", "Memo", "CallerAddress", "Msgs" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.RunResponse), global::Land.Gno.Gnonative.V1.RunResponse.Parser, new[]{ "Result" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.MakeTxResponse), global::Land.Gno.Gnonative.V1.MakeTxResponse.Parser, new[]{ "TxJson" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SignTxRequest), global::Land.Gno.Gnonative.V1.SignTxRequest.Parser, new[]{ "TxJson", "AccountNumber", "SequenceNumber" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SignTxRequest), global::Land.Gno.Gnonative.V1.SignTxRequest.Parser, new[]{ "TxJson", "Address", "AccountNumber", "SequenceNumber" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SignTxResponse), global::Land.Gno.Gnonative.V1.SignTxResponse.Parser, new[]{ "SignedTxJson" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.BroadcastTxCommitRequest), global::Land.Gno.Gnonative.V1.BroadcastTxCommitRequest.Parser, new[]{ "SignedTxJson" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.BroadcastTxCommitResponse), global::Land.Gno.Gnonative.V1.BroadcastTxCommitResponse.Parser, new[]{ "Result" }, null, null, null, null), @@ -1685,6 +1699,7 @@ public SetPasswordRequest() { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SetPasswordRequest(SetPasswordRequest other) : this() { password_ = other.password_; + address_ = other.address_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -1706,6 +1721,21 @@ public string Password { } } + /// Field number for the "address" field. + public const int AddressFieldNumber = 2; + private pb::ByteString address_ = pb::ByteString.Empty; + /// + /// The address of the account to set the password + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Address { + get { return address_; } + set { + address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -1722,6 +1752,7 @@ public bool Equals(SetPasswordRequest other) { return true; } if (Password != other.Password) return false; + if (Address != other.Address) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1730,6 +1761,7 @@ public bool Equals(SetPasswordRequest other) { public override int GetHashCode() { int hash = 1; if (Password.Length != 0) hash ^= Password.GetHashCode(); + if (Address.Length != 0) hash ^= Address.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1752,6 +1784,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Password); } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Address); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1766,6 +1802,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(Password); } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Address); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1779,6 +1819,9 @@ public int CalculateSize() { if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } + if (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Address); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1794,6 +1837,9 @@ public void MergeFrom(SetPasswordRequest other) { if (other.Password.Length != 0) { Password = other.Password; } + if (other.Address.Length != 0) { + Address = other.Address; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1817,6 +1863,10 @@ public void MergeFrom(pb::CodedInputStream input) { Password = input.ReadString(); break; } + case 18: { + Address = input.ReadBytes(); + break; + } } } #endif @@ -1840,6 +1890,10 @@ public void MergeFrom(pb::CodedInputStream input) { Password = input.ReadString(); break; } + case 18: { + Address = input.ReadBytes(); + break; + } } } } @@ -2044,6 +2098,7 @@ public UpdatePasswordRequest() { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdatePasswordRequest(UpdatePasswordRequest other) : this() { newPassword_ = other.newPassword_; + address_ = other.address_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2065,6 +2120,21 @@ public string NewPassword { } } + /// Field number for the "address" field. + public const int AddressFieldNumber = 2; + private pb::ByteString address_ = pb::ByteString.Empty; + /// + /// The address of the account to update the password + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Address { + get { return address_; } + set { + address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -2081,6 +2151,7 @@ public bool Equals(UpdatePasswordRequest other) { return true; } if (NewPassword != other.NewPassword) return false; + if (Address != other.Address) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2089,6 +2160,7 @@ public bool Equals(UpdatePasswordRequest other) { public override int GetHashCode() { int hash = 1; if (NewPassword.Length != 0) hash ^= NewPassword.GetHashCode(); + if (Address.Length != 0) hash ^= Address.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2111,6 +2183,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(NewPassword); } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Address); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2125,6 +2201,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(NewPassword); } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Address); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2138,6 +2218,9 @@ public int CalculateSize() { if (NewPassword.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(NewPassword); } + if (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Address); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2153,6 +2236,9 @@ public void MergeFrom(UpdatePasswordRequest other) { if (other.NewPassword.Length != 0) { NewPassword = other.NewPassword; } + if (other.Address.Length != 0) { + Address = other.Address; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2176,6 +2262,10 @@ public void MergeFrom(pb::CodedInputStream input) { NewPassword = input.ReadString(); break; } + case 18: { + Address = input.ReadBytes(); + break; + } } } #endif @@ -2199,6 +2289,10 @@ public void MergeFrom(pb::CodedInputStream input) { NewPassword = input.ReadString(); break; } + case 18: { + Address = input.ReadBytes(); + break; + } } } } @@ -6963,12 +7057,902 @@ public sealed partial class SelectAccountRequest : pb::IMessage Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectAccountRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectAccountRequest(SelectAccountRequest other) : this() { + nameOrBech32_ = other.nameOrBech32_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectAccountRequest Clone() { + return new SelectAccountRequest(this); + } + + /// Field number for the "name_or_bech32" field. + public const int NameOrBech32FieldNumber = 1; + private string nameOrBech32_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NameOrBech32 { + get { return nameOrBech32_; } + set { + nameOrBech32_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectAccountRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectAccountRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NameOrBech32 != other.NameOrBech32) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (NameOrBech32.Length != 0) hash ^= NameOrBech32.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NameOrBech32.Length != 0) { + output.WriteRawTag(10); + output.WriteString(NameOrBech32); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (NameOrBech32.Length != 0) { + output.WriteRawTag(10); + output.WriteString(NameOrBech32); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (NameOrBech32.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NameOrBech32); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectAccountRequest other) { + if (other == null) { + return; + } + if (other.NameOrBech32.Length != 0) { + NameOrBech32 = other.NameOrBech32; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + NameOrBech32 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + NameOrBech32 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class SelectAccountResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectAccountResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectAccountResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectAccountResponse(SelectAccountResponse other) : this() { + key_ = other.key_ != null ? other.key_.Clone() : null; + hasPassword_ = other.hasPassword_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SelectAccountResponse Clone() { + return new SelectAccountResponse(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private global::Land.Gno.Gnonative.V1.KeyInfo key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Land.Gno.Gnonative.V1.KeyInfo Key { + get { return key_; } + set { + key_ = value; + } + } + + /// Field number for the "has_password" field. + public const int HasPasswordFieldNumber = 2; + private bool hasPassword_; + /// + /// True if the password has been set. If false, then call SetPassword. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPassword { + get { return hasPassword_; } + set { + hasPassword_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SelectAccountResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SelectAccountResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Key, other.Key)) return false; + if (HasPassword != other.HasPassword) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (key_ != null) hash ^= Key.GetHashCode(); + if (HasPassword != false) hash ^= HasPassword.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (key_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Key); + } + if (HasPassword != false) { + output.WriteRawTag(16); + output.WriteBool(HasPassword); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (key_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Key); + } + if (HasPassword != false) { + output.WriteRawTag(16); + output.WriteBool(HasPassword); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (key_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); + } + if (HasPassword != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SelectAccountResponse other) { + if (other == null) { + return; + } + if (other.key_ != null) { + if (key_ == null) { + Key = new global::Land.Gno.Gnonative.V1.KeyInfo(); + } + Key.MergeFrom(other.Key); + } + if (other.HasPassword != false) { + HasPassword = other.HasPassword; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (key_ == null) { + Key = new global::Land.Gno.Gnonative.V1.KeyInfo(); + } + input.ReadMessage(Key); + break; + } + case 16: { + HasPassword = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (key_ == null) { + Key = new global::Land.Gno.Gnonative.V1.KeyInfo(); + } + input.ReadMessage(Key); + break; + } + case 16: { + HasPassword = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivateAccountRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateAccountRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateAccountRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateAccountRequest(ActivateAccountRequest other) : this() { + nameOrBech32_ = other.nameOrBech32_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateAccountRequest Clone() { + return new ActivateAccountRequest(this); + } + + /// Field number for the "name_or_bech32" field. + public const int NameOrBech32FieldNumber = 1; + private string nameOrBech32_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NameOrBech32 { + get { return nameOrBech32_; } + set { + nameOrBech32_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivateAccountRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivateAccountRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NameOrBech32 != other.NameOrBech32) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (NameOrBech32.Length != 0) hash ^= NameOrBech32.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (NameOrBech32.Length != 0) { + output.WriteRawTag(10); + output.WriteString(NameOrBech32); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (NameOrBech32.Length != 0) { + output.WriteRawTag(10); + output.WriteString(NameOrBech32); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (NameOrBech32.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NameOrBech32); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivateAccountRequest other) { + if (other == null) { + return; + } + if (other.NameOrBech32.Length != 0) { + NameOrBech32 = other.NameOrBech32; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + NameOrBech32 = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + NameOrBech32 = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class ActivateAccountResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateAccountResponse()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateAccountResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateAccountResponse(ActivateAccountResponse other) : this() { + key_ = other.key_ != null ? other.key_.Clone() : null; + hasPassword_ = other.hasPassword_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateAccountResponse Clone() { + return new ActivateAccountResponse(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private global::Land.Gno.Gnonative.V1.KeyInfo key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Land.Gno.Gnonative.V1.KeyInfo Key { + get { return key_; } + set { + key_ = value; + } + } + + /// Field number for the "has_password" field. + public const int HasPasswordFieldNumber = 2; + private bool hasPassword_; + /// + /// True if the password has been set. If false, then call SetPassword. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPassword { + get { return hasPassword_; } + set { + hasPassword_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivateAccountResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivateAccountResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Key, other.Key)) return false; + if (HasPassword != other.HasPassword) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (key_ != null) hash ^= Key.GetHashCode(); + if (HasPassword != false) hash ^= HasPassword.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (key_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Key); + } + if (HasPassword != false) { + output.WriteRawTag(16); + output.WriteBool(HasPassword); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (key_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Key); + } + if (HasPassword != false) { + output.WriteRawTag(16); + output.WriteBool(HasPassword); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (key_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); + } + if (HasPassword != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivateAccountResponse other) { + if (other == null) { + return; + } + if (other.key_ != null) { + if (key_ == null) { + Key = new global::Land.Gno.Gnonative.V1.KeyInfo(); + } + Key.MergeFrom(other.Key); + } + if (other.HasPassword != false) { + HasPassword = other.HasPassword; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (key_ == null) { + Key = new global::Land.Gno.Gnonative.V1.KeyInfo(); + } + input.ReadMessage(Key); + break; + } + case 16: { + HasPassword = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + if ((tag & 7) == 4) { + // Abort on any end group tag. + return; + } + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (key_ == null) { + Key = new global::Land.Gno.Gnonative.V1.KeyInfo(); + } + input.ReadMessage(Key); + break; + } + case 16: { + HasPassword = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GetActiveAccountRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetActiveAccountRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[33]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6979,7 +7963,7 @@ public sealed partial class SelectAccountRequest : pb::IMessageField number for the "name_or_bech32" field. - public const int NameOrBech32FieldNumber = 1; - private string nameOrBech32_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NameOrBech32 { - get { return nameOrBech32_; } - set { - nameOrBech32_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public GetActiveAccountRequest Clone() { + return new GetActiveAccountRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SelectAccountRequest); + return Equals(other as GetActiveAccountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SelectAccountRequest other) { + public bool Equals(GetActiveAccountRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (NameOrBech32 != other.NameOrBech32) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7033,7 +8003,6 @@ public bool Equals(SelectAccountRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (NameOrBech32.Length != 0) hash ^= NameOrBech32.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7052,10 +8021,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (NameOrBech32.Length != 0) { - output.WriteRawTag(10); - output.WriteString(NameOrBech32); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7066,10 +8031,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (NameOrBech32.Length != 0) { - output.WriteRawTag(10); - output.WriteString(NameOrBech32); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7080,9 +8041,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (NameOrBech32.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NameOrBech32); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7091,13 +8049,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SelectAccountRequest other) { + public void MergeFrom(GetActiveAccountRequest other) { if (other == null) { return; } - if (other.NameOrBech32.Length != 0) { - NameOrBech32 = other.NameOrBech32; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7117,10 +8072,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - NameOrBech32 = input.ReadString(); - break; - } } } #endif @@ -7140,10 +8091,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - NameOrBech32 = input.ReadString(); - break; - } } } } @@ -7152,21 +8099,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class SelectAccountResponse : pb::IMessage + public sealed partial class GetActiveAccountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectAccountResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetActiveAccountResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[34]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7177,7 +8124,7 @@ public sealed partial class SelectAccountResponse : pb::IMessageField number for the "key" field. @@ -7227,12 +8174,12 @@ public bool HasPassword { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SelectAccountResponse); + return Equals(other as GetActiveAccountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SelectAccountResponse other) { + public bool Equals(GetActiveAccountResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -7318,7 +8265,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SelectAccountResponse other) { + public void MergeFrom(GetActiveAccountResponse other) { if (other == null) { return; } @@ -7399,21 +8346,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetActiveAccountRequest : pb::IMessage + public sealed partial class GetActivatedAccountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetActiveAccountRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetActivatedAccountRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[35]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7424,7 +8371,7 @@ public sealed partial class GetActiveAccountRequest : pb::IMessageField number for the "address" field. + public const int AddressFieldNumber = 1; + private pb::ByteString address_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Address { + get { return address_; } + set { + address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetActiveAccountRequest); + return Equals(other as GetActivatedAccountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetActiveAccountRequest other) { + public bool Equals(GetActivatedAccountRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (Address != other.Address) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7464,6 +8425,7 @@ public bool Equals(GetActiveAccountRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (Address.Length != 0) hash ^= Address.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7482,6 +8444,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (Address.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Address); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7492,6 +8458,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Address.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Address); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7502,6 +8472,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Address); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7510,10 +8483,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetActiveAccountRequest other) { + public void MergeFrom(GetActivatedAccountRequest other) { if (other == null) { return; } + if (other.Address.Length != 0) { + Address = other.Address; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7533,6 +8509,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 10: { + Address = input.ReadBytes(); + break; + } } } #endif @@ -7552,6 +8532,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 10: { + Address = input.ReadBytes(); + break; + } } } } @@ -7560,21 +8544,21 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GetActiveAccountResponse : pb::IMessage + public sealed partial class GetActivatedAccountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetActiveAccountResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetActivatedAccountResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[36]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[40]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7585,7 +8569,7 @@ public sealed partial class GetActiveAccountResponse : pb::IMessageField number for the "key" field. @@ -7635,12 +8619,12 @@ public bool HasPassword { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as GetActiveAccountResponse); + return Equals(other as GetActivatedAccountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetActiveAccountResponse other) { + public bool Equals(GetActivatedAccountResponse other) { if (ReferenceEquals(other, null)) { return false; } @@ -7726,7 +8710,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetActiveAccountResponse other) { + public void MergeFrom(GetActivatedAccountResponse other) { if (other == null) { return; } @@ -7821,7 +8805,7 @@ public sealed partial class QueryAccountRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[41]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[45]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8900,7 +9884,7 @@ public sealed partial class QueryResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[42]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[46]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9098,7 +10082,7 @@ public sealed partial class RenderRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[43]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[47]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9339,7 +10323,7 @@ public sealed partial class RenderResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[44]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[48]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9540,7 +10524,7 @@ public sealed partial class QEvalRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[45]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9781,7 +10765,7 @@ public sealed partial class QEvalResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[46]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[50]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9982,7 +10966,7 @@ public sealed partial class MsgCall : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[47]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[51]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10290,7 +11274,7 @@ public sealed partial class CallRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[48]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10364,7 +11348,7 @@ public string Memo { public const int CallerAddressFieldNumber = 4; private pb::ByteString callerAddress_ = pb::ByteString.Empty; /// - /// If CallerAddress is empty then get it from the active account + /// The address of the account to sign the transaction /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10631,7 +11615,7 @@ public sealed partial class CallResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[49]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[53]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10829,7 +11813,7 @@ public sealed partial class MsgSend : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[50]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[54]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11071,7 +12055,7 @@ public sealed partial class SendRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[51]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[55]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11148,7 +12132,7 @@ public string Memo { public const int CallerAddressFieldNumber = 4; private pb::ByteString callerAddress_ = pb::ByteString.Empty; /// - /// If CallerAddress is empty then get it from the active account + /// The address of the account to sign the transaction /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -11415,7 +12399,7 @@ public sealed partial class SendResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[52]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[56]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11576,7 +12560,7 @@ public sealed partial class MsgRun : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[53]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[57]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11818,7 +12802,7 @@ public sealed partial class RunRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[54]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[58]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11895,7 +12879,7 @@ public string Memo { public const int CallerAddressFieldNumber = 4; private pb::ByteString callerAddress_ = pb::ByteString.Empty; /// - /// If CallerAddress is empty then get it from the active account + /// The address of the account to sign the transaction /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -12162,7 +13146,7 @@ public sealed partial class RunResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[55]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[59]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12363,7 +13347,7 @@ public sealed partial class MakeTxResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[56]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[60]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12564,7 +13548,7 @@ public sealed partial class SignTxRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[57]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[61]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12585,6 +13569,7 @@ public SignTxRequest() { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SignTxRequest(SignTxRequest other) : this() { txJson_ = other.txJson_; + address_ = other.address_; accountNumber_ = other.accountNumber_; sequenceNumber_ = other.sequenceNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -12611,8 +13596,23 @@ public string TxJson { } } + /// Field number for the "address" field. + public const int AddressFieldNumber = 2; + private pb::ByteString address_ = pb::ByteString.Empty; + /// + /// The address of the account to sign the transaction + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Address { + get { return address_; } + set { + address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Field number for the "account_number" field. - public const int AccountNumberFieldNumber = 2; + public const int AccountNumberFieldNumber = 3; private ulong accountNumber_; /// /// The signer's account number on the blockchain. If 0 then query the blockchain for the value. @@ -12627,7 +13627,7 @@ public ulong AccountNumber { } /// Field number for the "sequence_number" field. - public const int SequenceNumberFieldNumber = 3; + public const int SequenceNumberFieldNumber = 4; private ulong sequenceNumber_; /// /// The sequence number of the signer's transactions on the blockchain. If 0 then query the blockchain for the value. @@ -12657,6 +13657,7 @@ public bool Equals(SignTxRequest other) { return true; } if (TxJson != other.TxJson) return false; + if (Address != other.Address) return false; if (AccountNumber != other.AccountNumber) return false; if (SequenceNumber != other.SequenceNumber) return false; return Equals(_unknownFields, other._unknownFields); @@ -12667,6 +13668,7 @@ public bool Equals(SignTxRequest other) { public override int GetHashCode() { int hash = 1; if (TxJson.Length != 0) hash ^= TxJson.GetHashCode(); + if (Address.Length != 0) hash ^= Address.GetHashCode(); if (AccountNumber != 0UL) hash ^= AccountNumber.GetHashCode(); if (SequenceNumber != 0UL) hash ^= SequenceNumber.GetHashCode(); if (_unknownFields != null) { @@ -12691,12 +13693,16 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(TxJson); } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Address); + } if (AccountNumber != 0UL) { - output.WriteRawTag(16); + output.WriteRawTag(24); output.WriteUInt64(AccountNumber); } if (SequenceNumber != 0UL) { - output.WriteRawTag(24); + output.WriteRawTag(32); output.WriteUInt64(SequenceNumber); } if (_unknownFields != null) { @@ -12713,12 +13719,16 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(TxJson); } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Address); + } if (AccountNumber != 0UL) { - output.WriteRawTag(16); + output.WriteRawTag(24); output.WriteUInt64(AccountNumber); } if (SequenceNumber != 0UL) { - output.WriteRawTag(24); + output.WriteRawTag(32); output.WriteUInt64(SequenceNumber); } if (_unknownFields != null) { @@ -12734,6 +13744,9 @@ public int CalculateSize() { if (TxJson.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TxJson); } + if (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Address); + } if (AccountNumber != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AccountNumber); } @@ -12755,6 +13768,9 @@ public void MergeFrom(SignTxRequest other) { if (other.TxJson.Length != 0) { TxJson = other.TxJson; } + if (other.Address.Length != 0) { + Address = other.Address; + } if (other.AccountNumber != 0UL) { AccountNumber = other.AccountNumber; } @@ -12784,11 +13800,15 @@ public void MergeFrom(pb::CodedInputStream input) { TxJson = input.ReadString(); break; } - case 16: { - AccountNumber = input.ReadUInt64(); + case 18: { + Address = input.ReadBytes(); break; } case 24: { + AccountNumber = input.ReadUInt64(); + break; + } + case 32: { SequenceNumber = input.ReadUInt64(); break; } @@ -12815,11 +13835,15 @@ public void MergeFrom(pb::CodedInputStream input) { TxJson = input.ReadString(); break; } - case 16: { - AccountNumber = input.ReadUInt64(); + case 18: { + Address = input.ReadBytes(); break; } case 24: { + AccountNumber = input.ReadUInt64(); + break; + } + case 32: { SequenceNumber = input.ReadUInt64(); break; } @@ -12845,7 +13869,7 @@ public sealed partial class SignTxResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[58]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[62]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13046,7 +14070,7 @@ public sealed partial class BroadcastTxCommitRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[67]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[71]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14831,7 +15855,7 @@ public sealed partial class HelloResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[68]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[72]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15029,7 +16053,7 @@ public sealed partial class HelloStreamRequest : pb::IMessage [pbr::OriginalName("ErrCryptoKeyNotFound")] ErrCryptoKeyNotFound = 151, /// - /// ErrNoActiveAccount indicates that no active account has been set with SelectAccount + /// ErrNoActiveAccount indicates that no account with the given address has been activated with ActivateAccount /// [pbr::OriginalName("ErrNoActiveAccount")] ErrNoActiveAccount = 152, [pbr::OriginalName("ErrRunGRPCServer")] ErrRunGrpcserver = 153, diff --git a/api/gen/csharp/RpcGrpc.cs b/api/gen/csharp/RpcGrpc.cs index eccae41b..2b32a656 100644 --- a/api/gen/csharp/RpcGrpc.cs +++ b/api/gen/csharp/RpcGrpc.cs @@ -105,6 +105,10 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_SelectAccountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.SelectAccountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_ActivateAccountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.ActivateAccountRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_ActivateAccountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.ActivateAccountResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_SetPasswordRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.SetPasswordRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_SetPasswordResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.SetPasswordResponse.Parser)); @@ -117,6 +121,10 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_GetActiveAccountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.GetActiveAccountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_GetActivatedAccountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.GetActivatedAccountRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_GetActivatedAccountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.GetActivatedAccountResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_QueryAccountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.QueryAccountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_QueryAccountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.QueryAccountResponse.Parser)); @@ -291,6 +299,14 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_land_gno_gnonative_v1_SelectAccountRequest, __Marshaller_land_gno_gnonative_v1_SelectAccountResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ActivateAccount = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ActivateAccount", + __Marshaller_land_gno_gnonative_v1_ActivateAccountRequest, + __Marshaller_land_gno_gnonative_v1_ActivateAccountResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_SetPassword = new grpc::Method( grpc::MethodType.Unary, @@ -315,6 +331,14 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_land_gno_gnonative_v1_GetActiveAccountRequest, __Marshaller_land_gno_gnonative_v1_GetActiveAccountResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_GetActivatedAccount = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "GetActivatedAccount", + __Marshaller_land_gno_gnonative_v1_GetActivatedAccountRequest, + __Marshaller_land_gno_gnonative_v1_GetActivatedAccountResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_QueryAccount = new grpc::Method( grpc::MethodType.Unary, @@ -644,6 +668,7 @@ public abstract partial class GnoNativeServiceBase /// SelectAccount selects the active account to use for later operations. If the response has_password is /// false, then you should set the password before using a method which needs it. /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// DEPRECATED. Use ActivateAccount. /// /// The request received from the client. /// The context of the server-side call handler being invoked. @@ -655,8 +680,23 @@ public abstract partial class GnoNativeServiceBase } /// - /// Set the password for the active account in the keybase, used for later operations. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + /// false, then you should call SetPassword before using a method which needs it. + /// If the account is already activated, return its info. + /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ActivateAccount(global::Land.Gno.Gnonative.V1.ActivateAccountRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Set the password for the account in the keybase with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request received from the client. @@ -669,9 +709,9 @@ public abstract partial class GnoNativeServiceBase } /// - /// Update the keybase for the active account to use the new password. + /// Update the keybase to use the new password for the account in the keybase with the given address. /// Before calling this, you must call SetPassword with the current password. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// /// The request received from the client. /// The context of the server-side call handler being invoked. @@ -687,6 +727,7 @@ public abstract partial class GnoNativeServiceBase /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// (To check if there is an active account, use ListKeyInfo and check the /// length of the result.) + /// DEPRECATED: Use GetActivatedAccount. /// /// The request received from the client. /// The context of the server-side call handler being invoked. @@ -697,6 +738,20 @@ public abstract partial class GnoNativeServiceBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + /// If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task GetActivatedAccount(global::Land.Gno.Gnonative.V1.GetActivatedAccountRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + /// /// QueryAccount retrieves account information from the blockchain for a given /// address. @@ -774,8 +829,8 @@ public abstract partial class GnoNativeServiceBase } /// - /// Call a specific realm function. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Call a specific realm function. Sign the transaction with the given caller_address. + /// If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. /// @@ -790,8 +845,8 @@ public abstract partial class GnoNativeServiceBase } /// - /// Send currency from the active account to an account on the blockchain. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Send currency from the account with the given caller_address to an account on the blockchain. + /// If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request received from the client. @@ -806,8 +861,9 @@ public abstract partial class GnoNativeServiceBase /// /// Temporarily load the code in package on the blockchain and run main() which can - /// call realm functions and use println() to output to the "console". + /// call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address. /// This returns the "console" output. + /// If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// /// The request received from the client. /// Used for sending responses back to the client. @@ -856,8 +912,8 @@ public abstract partial class GnoNativeServiceBase } /// - /// Sign the transaction using the active account. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Sign the transaction using the account with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request received from the client. @@ -1660,6 +1716,7 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c /// SelectAccount selects the active account to use for later operations. If the response has_password is /// false, then you should set the password before using a method which needs it. /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// DEPRECATED. Use ActivateAccount. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1675,6 +1732,7 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c /// SelectAccount selects the active account to use for later operations. If the response has_password is /// false, then you should set the password before using a method which needs it. /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// DEPRECATED. Use ActivateAccount. /// /// The request to send to the server. /// The options for the call. @@ -1688,6 +1746,7 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c /// SelectAccount selects the active account to use for later operations. If the response has_password is /// false, then you should set the password before using a method which needs it. /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// DEPRECATED. Use ActivateAccount. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1703,6 +1762,7 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c /// SelectAccount selects the active account to use for later operations. If the response has_password is /// false, then you should set the password before using a method which needs it. /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// DEPRECATED. Use ActivateAccount. /// /// The request to send to the server. /// The options for the call. @@ -1713,8 +1773,68 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.AsyncUnaryCall(__Method_SelectAccount, null, options, request); } /// - /// Set the password for the active account in the keybase, used for later operations. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + /// false, then you should call SetPassword before using a method which needs it. + /// If the account is already activated, return its info. + /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Land.Gno.Gnonative.V1.ActivateAccountResponse ActivateAccount(global::Land.Gno.Gnonative.V1.ActivateAccountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ActivateAccount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + /// false, then you should call SetPassword before using a method which needs it. + /// If the account is already activated, return its info. + /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Land.Gno.Gnonative.V1.ActivateAccountResponse ActivateAccount(global::Land.Gno.Gnonative.V1.ActivateAccountRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ActivateAccount, null, options, request); + } + /// + /// Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + /// false, then you should call SetPassword before using a method which needs it. + /// If the account is already activated, return its info. + /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ActivateAccountAsync(global::Land.Gno.Gnonative.V1.ActivateAccountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ActivateAccountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + /// false, then you should call SetPassword before using a method which needs it. + /// If the account is already activated, return its info. + /// If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ActivateAccountAsync(global::Land.Gno.Gnonative.V1.ActivateAccountRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ActivateAccount, null, options, request); + } + /// + /// Set the password for the account in the keybase with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -1728,8 +1848,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return SetPassword(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Set the password for the active account in the keybase, used for later operations. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Set the password for the account in the keybase with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -1741,8 +1861,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.BlockingUnaryCall(__Method_SetPassword, null, options, request); } /// - /// Set the password for the active account in the keybase, used for later operations. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Set the password for the account in the keybase with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -1756,8 +1876,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return SetPasswordAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Set the password for the active account in the keybase, used for later operations. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Set the password for the account in the keybase with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -1769,9 +1889,9 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.AsyncUnaryCall(__Method_SetPassword, null, options, request); } /// - /// Update the keybase for the active account to use the new password. + /// Update the keybase to use the new password for the account in the keybase with the given address. /// Before calling this, you must call SetPassword with the current password. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1784,9 +1904,9 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return UpdatePassword(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Update the keybase for the active account to use the new password. + /// Update the keybase to use the new password for the account in the keybase with the given address. /// Before calling this, you must call SetPassword with the current password. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// /// The request to send to the server. /// The options for the call. @@ -1797,9 +1917,9 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.BlockingUnaryCall(__Method_UpdatePassword, null, options, request); } /// - /// Update the keybase for the active account to use the new password. + /// Update the keybase to use the new password for the account in the keybase with the given address. /// Before calling this, you must call SetPassword with the current password. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1812,9 +1932,9 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return UpdatePasswordAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Update the keybase for the active account to use the new password. + /// Update the keybase to use the new password for the account in the keybase with the given address. /// Before calling this, you must call SetPassword with the current password. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// /// The request to send to the server. /// The options for the call. @@ -1829,6 +1949,7 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// (To check if there is an active account, use ListKeyInfo and check the /// length of the result.) + /// DEPRECATED: Use GetActivatedAccount. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1845,6 +1966,7 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// (To check if there is an active account, use ListKeyInfo and check the /// length of the result.) + /// DEPRECATED: Use GetActivatedAccount. /// /// The request to send to the server. /// The options for the call. @@ -1859,6 +1981,7 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// (To check if there is an active account, use ListKeyInfo and check the /// length of the result.) + /// DEPRECATED: Use GetActivatedAccount. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1875,6 +1998,7 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// (To check if there is an active account, use ListKeyInfo and check the /// length of the result.) + /// DEPRECATED: Use GetActivatedAccount. /// /// The request to send to the server. /// The options for the call. @@ -1885,6 +2009,62 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.AsyncUnaryCall(__Method_GetActiveAccount, null, options, request); } /// + /// GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + /// If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Land.Gno.Gnonative.V1.GetActivatedAccountResponse GetActivatedAccount(global::Land.Gno.Gnonative.V1.GetActivatedAccountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetActivatedAccount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + /// If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Land.Gno.Gnonative.V1.GetActivatedAccountResponse GetActivatedAccount(global::Land.Gno.Gnonative.V1.GetActivatedAccountRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_GetActivatedAccount, null, options, request); + } + /// + /// GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + /// If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetActivatedAccountAsync(global::Land.Gno.Gnonative.V1.GetActivatedAccountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return GetActivatedAccountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + /// If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall GetActivatedAccountAsync(global::Land.Gno.Gnonative.V1.GetActivatedAccountRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_GetActivatedAccount, null, options, request); + } + /// /// QueryAccount retrieves account information from the blockchain for a given /// address. /// @@ -2189,8 +2369,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.AsyncUnaryCall(__Method_QEval, null, options, request); } /// - /// Call a specific realm function. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Call a specific realm function. Sign the transaction with the given caller_address. + /// If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. /// @@ -2205,8 +2385,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return Call(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Call a specific realm function. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Call a specific realm function. Sign the transaction with the given caller_address. + /// If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. /// @@ -2219,8 +2399,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.AsyncServerStreamingCall(__Method_Call, null, options, request); } /// - /// Send currency from the active account to an account on the blockchain. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Send currency from the account with the given caller_address to an account on the blockchain. + /// If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -2234,8 +2414,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return Send(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Send currency from the active account to an account on the blockchain. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Send currency from the account with the given caller_address to an account on the blockchain. + /// If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -2248,8 +2428,9 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c } /// /// Temporarily load the code in package on the blockchain and run main() which can - /// call realm functions and use println() to output to the "console". + /// call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address. /// This returns the "console" output. + /// If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -2263,8 +2444,9 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c } /// /// Temporarily load the code in package on the blockchain and run main() which can - /// call realm functions and use println() to output to the "console". + /// call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address. /// This returns the "console" output. + /// If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// /// The request to send to the server. /// The options for the call. @@ -2419,8 +2601,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.AsyncUnaryCall(__Method_MakeRunTx, null, options, request); } /// - /// Sign the transaction using the active account. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Sign the transaction using the account with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -2434,8 +2616,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return SignTx(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Sign the transaction using the active account. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Sign the transaction using the account with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -2447,8 +2629,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.BlockingUnaryCall(__Method_SignTx, null, options, request); } /// - /// Sign the transaction using the active account. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Sign the transaction using the account with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -2462,8 +2644,8 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return SignTxAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// - /// Sign the transaction using the active account. - /// If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + /// Sign the transaction using the account with the given address. + /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. /// /// The request to send to the server. @@ -2742,9 +2924,11 @@ protected override GnoNativeServiceClient NewInstance(ClientBaseConfiguration co .AddMethod(__Method_GetKeyInfoByNameOrAddress, serviceImpl.GetKeyInfoByNameOrAddress) .AddMethod(__Method_CreateAccount, serviceImpl.CreateAccount) .AddMethod(__Method_SelectAccount, serviceImpl.SelectAccount) + .AddMethod(__Method_ActivateAccount, serviceImpl.ActivateAccount) .AddMethod(__Method_SetPassword, serviceImpl.SetPassword) .AddMethod(__Method_UpdatePassword, serviceImpl.UpdatePassword) .AddMethod(__Method_GetActiveAccount, serviceImpl.GetActiveAccount) + .AddMethod(__Method_GetActivatedAccount, serviceImpl.GetActivatedAccount) .AddMethod(__Method_QueryAccount, serviceImpl.QueryAccount) .AddMethod(__Method_DeleteAccount, serviceImpl.DeleteAccount) .AddMethod(__Method_Query, serviceImpl.Query) @@ -2786,9 +2970,11 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, GnoNativeS serviceBinder.AddMethod(__Method_GetKeyInfoByNameOrAddress, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetKeyInfoByNameOrAddress)); serviceBinder.AddMethod(__Method_CreateAccount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateAccount)); serviceBinder.AddMethod(__Method_SelectAccount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SelectAccount)); + serviceBinder.AddMethod(__Method_ActivateAccount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ActivateAccount)); serviceBinder.AddMethod(__Method_SetPassword, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetPassword)); serviceBinder.AddMethod(__Method_UpdatePassword, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdatePassword)); serviceBinder.AddMethod(__Method_GetActiveAccount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetActiveAccount)); + serviceBinder.AddMethod(__Method_GetActivatedAccount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetActivatedAccount)); serviceBinder.AddMethod(__Method_QueryAccount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.QueryAccount)); serviceBinder.AddMethod(__Method_DeleteAccount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteAccount)); serviceBinder.AddMethod(__Method_Query, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Query)); diff --git a/api/gen/es/gnonativetypes_pb.d.ts b/api/gen/es/gnonativetypes_pb.d.ts index a438c885..b2333356 100644 --- a/api/gen/es/gnonativetypes_pb.d.ts +++ b/api/gen/es/gnonativetypes_pb.d.ts @@ -132,6 +132,13 @@ export declare type SetPasswordRequest = Message<"land.gno.gnonative.v1.SetPassw * @generated from field: string password = 1; */ password: string; + + /** + * The address of the account to set the password + * + * @generated from field: bytes address = 2; + */ + address: Uint8Array; }; /** @@ -160,6 +167,13 @@ export declare type UpdatePasswordRequest = Message<"land.gno.gnonative.v1.Updat * @generated from field: string new_password = 1; */ newPassword: string; + + /** + * The address of the account to update the password + * + * @generated from field: bytes address = 2; + */ + address: Uint8Array; }; /** @@ -617,6 +631,45 @@ export declare type SelectAccountResponse = Message<"land.gno.gnonative.v1.Selec */ export declare const SelectAccountResponseSchema: GenMessage; +/** + * @generated from message land.gno.gnonative.v1.ActivateAccountRequest + */ +export declare type ActivateAccountRequest = Message<"land.gno.gnonative.v1.ActivateAccountRequest"> & { + /** + * @generated from field: string name_or_bech32 = 1; + */ + nameOrBech32: string; +}; + +/** + * Describes the message land.gno.gnonative.v1.ActivateAccountRequest. + * Use `create(ActivateAccountRequestSchema)` to create a new message. + */ +export declare const ActivateAccountRequestSchema: GenMessage; + +/** + * @generated from message land.gno.gnonative.v1.ActivateAccountResponse + */ +export declare type ActivateAccountResponse = Message<"land.gno.gnonative.v1.ActivateAccountResponse"> & { + /** + * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; + */ + key?: KeyInfo; + + /** + * True if the password has been set. If false, then call SetPassword. + * + * @generated from field: bool has_password = 2; + */ + hasPassword: boolean; +}; + +/** + * Describes the message land.gno.gnonative.v1.ActivateAccountResponse. + * Use `create(ActivateAccountResponseSchema)` to create a new message. + */ +export declare const ActivateAccountResponseSchema: GenMessage; + /** * @generated from message land.gno.gnonative.v1.GetActiveAccountRequest */ @@ -652,6 +705,45 @@ export declare type GetActiveAccountResponse = Message<"land.gno.gnonative.v1.Ge */ export declare const GetActiveAccountResponseSchema: GenMessage; +/** + * @generated from message land.gno.gnonative.v1.GetActivatedAccountRequest + */ +export declare type GetActivatedAccountRequest = Message<"land.gno.gnonative.v1.GetActivatedAccountRequest"> & { + /** + * @generated from field: bytes address = 1; + */ + address: Uint8Array; +}; + +/** + * Describes the message land.gno.gnonative.v1.GetActivatedAccountRequest. + * Use `create(GetActivatedAccountRequestSchema)` to create a new message. + */ +export declare const GetActivatedAccountRequestSchema: GenMessage; + +/** + * @generated from message land.gno.gnonative.v1.GetActivatedAccountResponse + */ +export declare type GetActivatedAccountResponse = Message<"land.gno.gnonative.v1.GetActivatedAccountResponse"> & { + /** + * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; + */ + key?: KeyInfo; + + /** + * True if the password has been set. If false, then call SetPassword. + * + * @generated from field: bool has_password = 2; + */ + hasPassword: boolean; +}; + +/** + * Describes the message land.gno.gnonative.v1.GetActivatedAccountResponse. + * Use `create(GetActivatedAccountResponseSchema)` to create a new message. + */ +export declare const GetActivatedAccountResponseSchema: GenMessage; + /** * @generated from message land.gno.gnonative.v1.QueryAccountRequest */ @@ -907,7 +999,7 @@ export declare type CallRequest = Message<"land.gno.gnonative.v1.CallRequest"> & memo: string; /** - * If CallerAddress is empty then get it from the active account + * The address of the account to sign the transaction * * @generated from field: bytes caller_address = 4; */ @@ -991,7 +1083,7 @@ export declare type SendRequest = Message<"land.gno.gnonative.v1.SendRequest"> & memo: string; /** - * If CallerAddress is empty then get it from the active account + * The address of the account to sign the transaction * * @generated from field: bytes caller_address = 4; */ @@ -1071,7 +1163,7 @@ export declare type RunRequest = Message<"land.gno.gnonative.v1.RunRequest"> & { memo: string; /** - * If CallerAddress is empty then get it from the active account + * The address of the account to sign the transaction * * @generated from field: bytes caller_address = 4; */ @@ -1138,17 +1230,24 @@ export declare type SignTxRequest = Message<"land.gno.gnonative.v1.SignTxRequest */ txJson: string; + /** + * The address of the account to sign the transaction + * + * @generated from field: bytes address = 2; + */ + address: Uint8Array; + /** * The signer's account number on the blockchain. If 0 then query the blockchain for the value. * - * @generated from field: uint64 account_number = 2; + * @generated from field: uint64 account_number = 3; */ accountNumber: bigint; /** * The sequence number of the signer's transactions on the blockchain. If 0 then query the blockchain for the value. * - * @generated from field: uint64 sequence_number = 3; + * @generated from field: uint64 sequence_number = 4; */ sequenceNumber: bigint; }; diff --git a/api/gen/es/gnonativetypes_pb.js b/api/gen/es/gnonativetypes_pb.js index 6b060625..c2b4e8d2 100644 --- a/api/gen/es/gnonativetypes_pb.js +++ b/api/gen/es/gnonativetypes_pb.js @@ -8,7 +8,7 @@ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; * Describes the file gnonativetypes.proto. */ export const file_gnonativetypes = /*@__PURE__*/ - fileDesc("ChRnbm9uYXRpdmV0eXBlcy5wcm90bxIVbGFuZC5nbm8uZ25vbmF0aXZlLnYxIiIKEFNldFJlbW90ZVJlcXVlc3QSDgoGcmVtb3RlGAEgASgJIhMKEV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CEdyZWV0aW5nIigKEkhlbGxvU3RyZWFtUmVxdWVzdBISCgRuYW1lGAEgASgJUgROYW1lIjEKE0hlbGxvU3RyZWFtUmVzcG9uc2USGgoIZ3JlZXRpbmcYASABKAlSCEdyZWV0aW5nQilaJ2dpdGh1Yi5jb20vZ25vbGFuZy9nbm9uYXRpdmUvYXBpL2dlbi9nb2IGcHJvdG8z"); /** * Describes the message land.gno.gnonative.v1.SetRemoteRequest. @@ -255,255 +255,283 @@ export const SelectAccountRequestSchema = /*@__PURE__*/ export const SelectAccountResponseSchema = /*@__PURE__*/ messageDesc(file_gnonativetypes, 34); +/** + * Describes the message land.gno.gnonative.v1.ActivateAccountRequest. + * Use `create(ActivateAccountRequestSchema)` to create a new message. + */ +export const ActivateAccountRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 35); + +/** + * Describes the message land.gno.gnonative.v1.ActivateAccountResponse. + * Use `create(ActivateAccountResponseSchema)` to create a new message. + */ +export const ActivateAccountResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 36); + /** * Describes the message land.gno.gnonative.v1.GetActiveAccountRequest. * Use `create(GetActiveAccountRequestSchema)` to create a new message. */ export const GetActiveAccountRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 35); + messageDesc(file_gnonativetypes, 37); /** * Describes the message land.gno.gnonative.v1.GetActiveAccountResponse. * Use `create(GetActiveAccountResponseSchema)` to create a new message. */ export const GetActiveAccountResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 36); + messageDesc(file_gnonativetypes, 38); + +/** + * Describes the message land.gno.gnonative.v1.GetActivatedAccountRequest. + * Use `create(GetActivatedAccountRequestSchema)` to create a new message. + */ +export const GetActivatedAccountRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 39); + +/** + * Describes the message land.gno.gnonative.v1.GetActivatedAccountResponse. + * Use `create(GetActivatedAccountResponseSchema)` to create a new message. + */ +export const GetActivatedAccountResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 40); /** * Describes the message land.gno.gnonative.v1.QueryAccountRequest. * Use `create(QueryAccountRequestSchema)` to create a new message. */ export const QueryAccountRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 37); + messageDesc(file_gnonativetypes, 41); /** * Describes the message land.gno.gnonative.v1.QueryAccountResponse. * Use `create(QueryAccountResponseSchema)` to create a new message. */ export const QueryAccountResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 38); + messageDesc(file_gnonativetypes, 42); /** * Describes the message land.gno.gnonative.v1.DeleteAccountRequest. * Use `create(DeleteAccountRequestSchema)` to create a new message. */ export const DeleteAccountRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 39); + messageDesc(file_gnonativetypes, 43); /** * Describes the message land.gno.gnonative.v1.DeleteAccountResponse. * Use `create(DeleteAccountResponseSchema)` to create a new message. */ export const DeleteAccountResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 40); + messageDesc(file_gnonativetypes, 44); /** * Describes the message land.gno.gnonative.v1.QueryRequest. * Use `create(QueryRequestSchema)` to create a new message. */ export const QueryRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 41); + messageDesc(file_gnonativetypes, 45); /** * Describes the message land.gno.gnonative.v1.QueryResponse. * Use `create(QueryResponseSchema)` to create a new message. */ export const QueryResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 42); + messageDesc(file_gnonativetypes, 46); /** * Describes the message land.gno.gnonative.v1.RenderRequest. * Use `create(RenderRequestSchema)` to create a new message. */ export const RenderRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 43); + messageDesc(file_gnonativetypes, 47); /** * Describes the message land.gno.gnonative.v1.RenderResponse. * Use `create(RenderResponseSchema)` to create a new message. */ export const RenderResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 44); + messageDesc(file_gnonativetypes, 48); /** * Describes the message land.gno.gnonative.v1.QEvalRequest. * Use `create(QEvalRequestSchema)` to create a new message. */ export const QEvalRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 45); + messageDesc(file_gnonativetypes, 49); /** * Describes the message land.gno.gnonative.v1.QEvalResponse. * Use `create(QEvalResponseSchema)` to create a new message. */ export const QEvalResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 46); + messageDesc(file_gnonativetypes, 50); /** * Describes the message land.gno.gnonative.v1.MsgCall. * Use `create(MsgCallSchema)` to create a new message. */ export const MsgCallSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 47); + messageDesc(file_gnonativetypes, 51); /** * Describes the message land.gno.gnonative.v1.CallRequest. * Use `create(CallRequestSchema)` to create a new message. */ export const CallRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 48); + messageDesc(file_gnonativetypes, 52); /** * Describes the message land.gno.gnonative.v1.CallResponse. * Use `create(CallResponseSchema)` to create a new message. */ export const CallResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 49); + messageDesc(file_gnonativetypes, 53); /** * Describes the message land.gno.gnonative.v1.MsgSend. * Use `create(MsgSendSchema)` to create a new message. */ export const MsgSendSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 50); + messageDesc(file_gnonativetypes, 54); /** * Describes the message land.gno.gnonative.v1.SendRequest. * Use `create(SendRequestSchema)` to create a new message. */ export const SendRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 51); + messageDesc(file_gnonativetypes, 55); /** * Describes the message land.gno.gnonative.v1.SendResponse. * Use `create(SendResponseSchema)` to create a new message. */ export const SendResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 52); + messageDesc(file_gnonativetypes, 56); /** * Describes the message land.gno.gnonative.v1.MsgRun. * Use `create(MsgRunSchema)` to create a new message. */ export const MsgRunSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 53); + messageDesc(file_gnonativetypes, 57); /** * Describes the message land.gno.gnonative.v1.RunRequest. * Use `create(RunRequestSchema)` to create a new message. */ export const RunRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 54); + messageDesc(file_gnonativetypes, 58); /** * Describes the message land.gno.gnonative.v1.RunResponse. * Use `create(RunResponseSchema)` to create a new message. */ export const RunResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 55); + messageDesc(file_gnonativetypes, 59); /** * Describes the message land.gno.gnonative.v1.MakeTxResponse. * Use `create(MakeTxResponseSchema)` to create a new message. */ export const MakeTxResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 56); + messageDesc(file_gnonativetypes, 60); /** * Describes the message land.gno.gnonative.v1.SignTxRequest. * Use `create(SignTxRequestSchema)` to create a new message. */ export const SignTxRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 57); + messageDesc(file_gnonativetypes, 61); /** * Describes the message land.gno.gnonative.v1.SignTxResponse. * Use `create(SignTxResponseSchema)` to create a new message. */ export const SignTxResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 58); + messageDesc(file_gnonativetypes, 62); /** * Describes the message land.gno.gnonative.v1.BroadcastTxCommitRequest. * Use `create(BroadcastTxCommitRequestSchema)` to create a new message. */ export const BroadcastTxCommitRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 59); + messageDesc(file_gnonativetypes, 63); /** * Describes the message land.gno.gnonative.v1.BroadcastTxCommitResponse. * Use `create(BroadcastTxCommitResponseSchema)` to create a new message. */ export const BroadcastTxCommitResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 60); + messageDesc(file_gnonativetypes, 64); /** * Describes the message land.gno.gnonative.v1.AddressToBech32Request. * Use `create(AddressToBech32RequestSchema)` to create a new message. */ export const AddressToBech32RequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 61); + messageDesc(file_gnonativetypes, 65); /** * Describes the message land.gno.gnonative.v1.AddressToBech32Response. * Use `create(AddressToBech32ResponseSchema)` to create a new message. */ export const AddressToBech32ResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 62); + messageDesc(file_gnonativetypes, 66); /** * Describes the message land.gno.gnonative.v1.AddressFromBech32Request. * Use `create(AddressFromBech32RequestSchema)` to create a new message. */ export const AddressFromBech32RequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 63); + messageDesc(file_gnonativetypes, 67); /** * Describes the message land.gno.gnonative.v1.AddressFromBech32Response. * Use `create(AddressFromBech32ResponseSchema)` to create a new message. */ export const AddressFromBech32ResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 64); + messageDesc(file_gnonativetypes, 68); /** * Describes the message land.gno.gnonative.v1.AddressFromMnemonicRequest. * Use `create(AddressFromMnemonicRequestSchema)` to create a new message. */ export const AddressFromMnemonicRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 65); + messageDesc(file_gnonativetypes, 69); /** * Describes the message land.gno.gnonative.v1.AddressFromMnemonicResponse. * Use `create(AddressFromMnemonicResponseSchema)` to create a new message. */ export const AddressFromMnemonicResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 66); + messageDesc(file_gnonativetypes, 70); /** * Describes the message land.gno.gnonative.v1.HelloRequest. * Use `create(HelloRequestSchema)` to create a new message. */ export const HelloRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 67); + messageDesc(file_gnonativetypes, 71); /** * Describes the message land.gno.gnonative.v1.HelloResponse. * Use `create(HelloResponseSchema)` to create a new message. */ export const HelloResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 68); + messageDesc(file_gnonativetypes, 72); /** * Describes the message land.gno.gnonative.v1.HelloStreamRequest. * Use `create(HelloStreamRequestSchema)` to create a new message. */ export const HelloStreamRequestSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 69); + messageDesc(file_gnonativetypes, 73); /** * Describes the message land.gno.gnonative.v1.HelloStreamResponse. * Use `create(HelloStreamResponseSchema)` to create a new message. */ export const HelloStreamResponseSchema = /*@__PURE__*/ - messageDesc(file_gnonativetypes, 70); + messageDesc(file_gnonativetypes, 74); diff --git a/api/gen/es/rpc_connect.d.ts b/api/gen/es/rpc_connect.d.ts index 90d28675..384a4321 100644 --- a/api/gen/es/rpc_connect.d.ts +++ b/api/gen/es/rpc_connect.d.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActiveAccountRequest, GetActiveAccountResponse, GetChainIDRequest, GetChainIDResponse, GetKeyInfoByAddressRequest, GetKeyInfoByAddressResponse, GetKeyInfoByNameOrAddressRequest, GetKeyInfoByNameOrAddressResponse, GetKeyInfoByNameRequest, GetKeyInfoByNameResponse, GetRemoteRequest, GetRemoteResponse, HasKeyByAddressRequest, HasKeyByAddressResponse, HasKeyByNameOrAddressRequest, HasKeyByNameOrAddressResponse, HasKeyByNameRequest, HasKeyByNameResponse, HelloRequest, HelloResponse, HelloStreamRequest, HelloStreamResponse, ListKeyInfoRequest, ListKeyInfoResponse, MakeTxResponse, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SelectAccountRequest, SelectAccountResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse, UpdatePasswordRequest, UpdatePasswordResponse } from "./gnonativetypes_pb.js"; +import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, GetActiveAccountRequest, GetActiveAccountResponse, GetChainIDRequest, GetChainIDResponse, GetKeyInfoByAddressRequest, GetKeyInfoByAddressResponse, GetKeyInfoByNameOrAddressRequest, GetKeyInfoByNameOrAddressResponse, GetKeyInfoByNameRequest, GetKeyInfoByNameResponse, GetRemoteRequest, GetRemoteResponse, HasKeyByAddressRequest, HasKeyByAddressResponse, HasKeyByNameOrAddressRequest, HasKeyByNameOrAddressResponse, HasKeyByNameRequest, HasKeyByNameResponse, HelloRequest, HelloResponse, HelloStreamRequest, HelloStreamResponse, ListKeyInfoRequest, ListKeyInfoResponse, MakeTxResponse, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SelectAccountRequest, SelectAccountResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse, UpdatePasswordRequest, UpdatePasswordResponse } from "./gnonativetypes_pb.js"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -176,6 +176,7 @@ export declare const GnoNativeService: { * SelectAccount selects the active account to use for later operations. If the response has_password is * false, then you should set the password before using a method which needs it. * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * DEPRECATED. Use ActivateAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SelectAccount */ @@ -186,8 +187,22 @@ export declare const GnoNativeService: { readonly kind: MethodKind.Unary, }, /** - * Set the password for the active account in the keybase, used for later operations. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + * false, then you should call SetPassword before using a method which needs it. + * If the account is already activated, return its info. + * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.ActivateAccount + */ + readonly activateAccount: { + readonly name: "ActivateAccount", + readonly I: typeof ActivateAccountRequest, + readonly O: typeof ActivateAccountResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Set the password for the account in the keybase with the given address. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetPassword @@ -199,9 +214,9 @@ export declare const GnoNativeService: { readonly kind: MethodKind.Unary, }, /** - * Update the keybase for the active account to use the new password. + * Update the keybase to use the new password for the account in the keybase with the given address. * Before calling this, you must call SetPassword with the current password. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.UpdatePassword */ @@ -216,6 +231,7 @@ export declare const GnoNativeService: { * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * (To check if there is an active account, use ListKeyInfo and check the * length of the result.) + * DEPRECATED: Use GetActivatedAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActiveAccount */ @@ -225,6 +241,19 @@ export declare const GnoNativeService: { readonly O: typeof GetActiveAccountResponse, readonly kind: MethodKind.Unary, }, + /** + * GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + * If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount + */ + readonly getActivatedAccount: { + readonly name: "GetActivatedAccount", + readonly I: typeof GetActivatedAccountRequest, + readonly O: typeof GetActivatedAccountResponse, + readonly kind: MethodKind.Unary, + }, /** * QueryAccount retrieves account information from the blockchain for a given * address. @@ -297,8 +326,8 @@ export declare const GnoNativeService: { readonly kind: MethodKind.Unary, }, /** - * Call a specific realm function. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Call a specific realm function. Sign the transaction with the given caller_address. + * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. * @@ -311,8 +340,8 @@ export declare const GnoNativeService: { readonly kind: MethodKind.ServerStreaming, }, /** - * Send currency from the active account to an account on the blockchain. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Send currency from the account with the given caller_address to an account on the blockchain. + * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Send @@ -325,8 +354,9 @@ export declare const GnoNativeService: { }, /** * Temporarily load the code in package on the blockchain and run main() which can - * call realm functions and use println() to output to the "console". + * call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address. * This returns the "console" output. + * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Run */ @@ -370,8 +400,8 @@ export declare const GnoNativeService: { readonly kind: MethodKind.Unary, }, /** - * Sign the transaction using the active account. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Sign the transaction using the account with the given address. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SignTx diff --git a/api/gen/es/rpc_connect.js b/api/gen/es/rpc_connect.js index a48993aa..db04fd2d 100644 --- a/api/gen/es/rpc_connect.js +++ b/api/gen/es/rpc_connect.js @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActiveAccountRequest, GetActiveAccountResponse, GetChainIDRequest, GetChainIDResponse, GetKeyInfoByAddressRequest, GetKeyInfoByAddressResponse, GetKeyInfoByNameOrAddressRequest, GetKeyInfoByNameOrAddressResponse, GetKeyInfoByNameRequest, GetKeyInfoByNameResponse, GetRemoteRequest, GetRemoteResponse, HasKeyByAddressRequest, HasKeyByAddressResponse, HasKeyByNameOrAddressRequest, HasKeyByNameOrAddressResponse, HasKeyByNameRequest, HasKeyByNameResponse, HelloRequest, HelloResponse, HelloStreamRequest, HelloStreamResponse, ListKeyInfoRequest, ListKeyInfoResponse, MakeTxResponse, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SelectAccountRequest, SelectAccountResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse, UpdatePasswordRequest, UpdatePasswordResponse } from "./gnonativetypes_pb.js"; +import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, GetActiveAccountRequest, GetActiveAccountResponse, GetChainIDRequest, GetChainIDResponse, GetKeyInfoByAddressRequest, GetKeyInfoByAddressResponse, GetKeyInfoByNameOrAddressRequest, GetKeyInfoByNameOrAddressResponse, GetKeyInfoByNameRequest, GetKeyInfoByNameResponse, GetRemoteRequest, GetRemoteResponse, HasKeyByAddressRequest, HasKeyByAddressResponse, HasKeyByNameOrAddressRequest, HasKeyByNameOrAddressResponse, HasKeyByNameRequest, HasKeyByNameResponse, HelloRequest, HelloResponse, HelloStreamRequest, HelloStreamResponse, ListKeyInfoRequest, ListKeyInfoResponse, MakeTxResponse, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SelectAccountRequest, SelectAccountResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse, UpdatePasswordRequest, UpdatePasswordResponse } from "./gnonativetypes_pb.js"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -176,6 +176,7 @@ export const GnoNativeService = { * SelectAccount selects the active account to use for later operations. If the response has_password is * false, then you should set the password before using a method which needs it. * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * DEPRECATED. Use ActivateAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SelectAccount */ @@ -186,8 +187,22 @@ export const GnoNativeService = { kind: MethodKind.Unary, }, /** - * Set the password for the active account in the keybase, used for later operations. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + * false, then you should call SetPassword before using a method which needs it. + * If the account is already activated, return its info. + * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.ActivateAccount + */ + activateAccount: { + name: "ActivateAccount", + I: ActivateAccountRequest, + O: ActivateAccountResponse, + kind: MethodKind.Unary, + }, + /** + * Set the password for the account in the keybase with the given address. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetPassword @@ -199,9 +214,9 @@ export const GnoNativeService = { kind: MethodKind.Unary, }, /** - * Update the keybase for the active account to use the new password. + * Update the keybase to use the new password for the account in the keybase with the given address. * Before calling this, you must call SetPassword with the current password. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.UpdatePassword */ @@ -216,6 +231,7 @@ export const GnoNativeService = { * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * (To check if there is an active account, use ListKeyInfo and check the * length of the result.) + * DEPRECATED: Use GetActivatedAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActiveAccount */ @@ -225,6 +241,19 @@ export const GnoNativeService = { O: GetActiveAccountResponse, kind: MethodKind.Unary, }, + /** + * GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + * If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount + */ + getActivatedAccount: { + name: "GetActivatedAccount", + I: GetActivatedAccountRequest, + O: GetActivatedAccountResponse, + kind: MethodKind.Unary, + }, /** * QueryAccount retrieves account information from the blockchain for a given * address. @@ -297,8 +326,8 @@ export const GnoNativeService = { kind: MethodKind.Unary, }, /** - * Call a specific realm function. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Call a specific realm function. Sign the transaction with the given caller_address. + * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. * @@ -311,8 +340,8 @@ export const GnoNativeService = { kind: MethodKind.ServerStreaming, }, /** - * Send currency from the active account to an account on the blockchain. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Send currency from the account with the given caller_address to an account on the blockchain. + * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Send @@ -325,8 +354,9 @@ export const GnoNativeService = { }, /** * Temporarily load the code in package on the blockchain and run main() which can - * call realm functions and use println() to output to the "console". + * call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address. * This returns the "console" output. + * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Run */ @@ -370,8 +400,8 @@ export const GnoNativeService = { kind: MethodKind.Unary, }, /** - * Sign the transaction using the active account. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Sign the transaction using the account with the given address. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SignTx diff --git a/api/gen/es/rpc_pb.d.ts b/api/gen/es/rpc_pb.d.ts index 44dcf5da..a7a96b48 100644 --- a/api/gen/es/rpc_pb.d.ts +++ b/api/gen/es/rpc_pb.d.ts @@ -4,7 +4,7 @@ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; import type { Message } from "@bufbuild/protobuf"; -import type { AddressFromBech32RequestSchema, AddressFromBech32ResponseSchema, AddressFromMnemonicRequestSchema, AddressFromMnemonicResponseSchema, AddressToBech32RequestSchema, AddressToBech32ResponseSchema, BroadcastTxCommitRequestSchema, BroadcastTxCommitResponseSchema, CallRequestSchema, CallResponseSchema, CreateAccountRequestSchema, CreateAccountResponseSchema, DeleteAccountRequestSchema, DeleteAccountResponseSchema, GenerateRecoveryPhraseRequestSchema, GenerateRecoveryPhraseResponseSchema, GetActiveAccountRequestSchema, GetActiveAccountResponseSchema, GetChainIDRequestSchema, GetChainIDResponseSchema, GetKeyInfoByAddressRequestSchema, GetKeyInfoByAddressResponseSchema, GetKeyInfoByNameOrAddressRequestSchema, GetKeyInfoByNameOrAddressResponseSchema, GetKeyInfoByNameRequestSchema, GetKeyInfoByNameResponseSchema, GetRemoteRequestSchema, GetRemoteResponseSchema, HasKeyByAddressRequestSchema, HasKeyByAddressResponseSchema, HasKeyByNameOrAddressRequestSchema, HasKeyByNameOrAddressResponseSchema, HasKeyByNameRequestSchema, HasKeyByNameResponseSchema, HelloRequestSchema, HelloResponseSchema, HelloStreamRequestSchema, HelloStreamResponseSchema, ListKeyInfoRequestSchema, ListKeyInfoResponseSchema, MakeTxResponseSchema, QEvalRequestSchema, QEvalResponseSchema, QueryAccountRequestSchema, QueryAccountResponseSchema, QueryRequestSchema, QueryResponseSchema, RenderRequestSchema, RenderResponseSchema, RunRequestSchema, RunResponseSchema, SelectAccountRequestSchema, SelectAccountResponseSchema, SendRequestSchema, SendResponseSchema, SetChainIDRequestSchema, SetChainIDResponseSchema, SetPasswordRequestSchema, SetPasswordResponseSchema, SetRemoteRequestSchema, SetRemoteResponseSchema, SignTxRequestSchema, SignTxResponseSchema, UpdatePasswordRequestSchema, UpdatePasswordResponseSchema } from "./gnonativetypes_pb"; +import type { ActivateAccountRequestSchema, ActivateAccountResponseSchema, AddressFromBech32RequestSchema, AddressFromBech32ResponseSchema, AddressFromMnemonicRequestSchema, AddressFromMnemonicResponseSchema, AddressToBech32RequestSchema, AddressToBech32ResponseSchema, BroadcastTxCommitRequestSchema, BroadcastTxCommitResponseSchema, CallRequestSchema, CallResponseSchema, CreateAccountRequestSchema, CreateAccountResponseSchema, DeleteAccountRequestSchema, DeleteAccountResponseSchema, GenerateRecoveryPhraseRequestSchema, GenerateRecoveryPhraseResponseSchema, GetActivatedAccountRequestSchema, GetActivatedAccountResponseSchema, GetActiveAccountRequestSchema, GetActiveAccountResponseSchema, GetChainIDRequestSchema, GetChainIDResponseSchema, GetKeyInfoByAddressRequestSchema, GetKeyInfoByAddressResponseSchema, GetKeyInfoByNameOrAddressRequestSchema, GetKeyInfoByNameOrAddressResponseSchema, GetKeyInfoByNameRequestSchema, GetKeyInfoByNameResponseSchema, GetRemoteRequestSchema, GetRemoteResponseSchema, HasKeyByAddressRequestSchema, HasKeyByAddressResponseSchema, HasKeyByNameOrAddressRequestSchema, HasKeyByNameOrAddressResponseSchema, HasKeyByNameRequestSchema, HasKeyByNameResponseSchema, HelloRequestSchema, HelloResponseSchema, HelloStreamRequestSchema, HelloStreamResponseSchema, ListKeyInfoRequestSchema, ListKeyInfoResponseSchema, MakeTxResponseSchema, QEvalRequestSchema, QEvalResponseSchema, QueryAccountRequestSchema, QueryAccountResponseSchema, QueryRequestSchema, QueryResponseSchema, RenderRequestSchema, RenderResponseSchema, RunRequestSchema, RunResponseSchema, SelectAccountRequestSchema, SelectAccountResponseSchema, SendRequestSchema, SendResponseSchema, SetChainIDRequestSchema, SetChainIDResponseSchema, SetPasswordRequestSchema, SetPasswordResponseSchema, SetRemoteRequestSchema, SetRemoteResponseSchema, SignTxRequestSchema, SignTxResponseSchema, UpdatePasswordRequestSchema, UpdatePasswordResponseSchema } from "./gnonativetypes_pb"; /** * Describes the file rpc.proto. @@ -114,7 +114,7 @@ export enum ErrCode { ErrCryptoKeyNotFound = 151, /** - * ErrNoActiveAccount indicates that no active account has been set with SelectAccount + * ErrNoActiveAccount indicates that no account with the given address has been activated with ActivateAccount * * @generated from enum value: ErrNoActiveAccount = 152; */ @@ -424,6 +424,7 @@ export declare const GnoNativeService: GenService<{ * SelectAccount selects the active account to use for later operations. If the response has_password is * false, then you should set the password before using a method which needs it. * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * DEPRECATED. Use ActivateAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SelectAccount */ @@ -433,8 +434,21 @@ export declare const GnoNativeService: GenService<{ output: typeof SelectAccountResponseSchema; }, /** - * Set the password for the active account in the keybase, used for later operations. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + * false, then you should call SetPassword before using a method which needs it. + * If the account is already activated, return its info. + * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.ActivateAccount + */ + activateAccount: { + methodKind: "unary"; + input: typeof ActivateAccountRequestSchema; + output: typeof ActivateAccountResponseSchema; + }, + /** + * Set the password for the account in the keybase with the given address. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetPassword @@ -445,9 +459,9 @@ export declare const GnoNativeService: GenService<{ output: typeof SetPasswordResponseSchema; }, /** - * Update the keybase for the active account to use the new password. + * Update the keybase to use the new password for the account in the keybase with the given address. * Before calling this, you must call SetPassword with the current password. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.UpdatePassword */ @@ -461,6 +475,7 @@ export declare const GnoNativeService: GenService<{ * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * (To check if there is an active account, use ListKeyInfo and check the * length of the result.) + * DEPRECATED: Use GetActivatedAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActiveAccount */ @@ -469,6 +484,18 @@ export declare const GnoNativeService: GenService<{ input: typeof GetActiveAccountRequestSchema; output: typeof GetActiveAccountResponseSchema; }, + /** + * GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + * If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount + */ + getActivatedAccount: { + methodKind: "unary"; + input: typeof GetActivatedAccountRequestSchema; + output: typeof GetActivatedAccountResponseSchema; + }, /** * QueryAccount retrieves account information from the blockchain for a given * address. @@ -536,8 +563,8 @@ export declare const GnoNativeService: GenService<{ output: typeof QEvalResponseSchema; }, /** - * Call a specific realm function. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Call a specific realm function. Sign the transaction with the given caller_address. + * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. * @@ -549,8 +576,8 @@ export declare const GnoNativeService: GenService<{ output: typeof CallResponseSchema; }, /** - * Send currency from the active account to an account on the blockchain. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Send currency from the account with the given caller_address to an account on the blockchain. + * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Send @@ -562,8 +589,9 @@ export declare const GnoNativeService: GenService<{ }, /** * Temporarily load the code in package on the blockchain and run main() which can - * call realm functions and use println() to output to the "console". + * call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address. * This returns the "console" output. + * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Run */ @@ -603,8 +631,8 @@ export declare const GnoNativeService: GenService<{ output: typeof MakeTxResponseSchema; }, /** - * Sign the transaction using the active account. - * If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + * Sign the transaction using the account with the given address. + * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. * * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SignTx diff --git a/api/gen/es/rpc_pb.js b/api/gen/es/rpc_pb.js index b47af0de..58e51199 100644 --- a/api/gen/es/rpc_pb.js +++ b/api/gen/es/rpc_pb.js @@ -9,7 +9,7 @@ import { file_gnonativetypes } from "./gnonativetypes_pb"; * Describes the file rpc.proto. */ export const file_rpc = /*@__PURE__*/ - fileDesc("CglycGMucHJvdG8SFWxhbmQuZ25vLmdub25hdGl2ZS52MSI7CgpFcnJEZXRhaWxzEi0KBWNvZGVzGAEgAygOMh4ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkVyckNvZGUqtAYKB0VyckNvZGUSDQoJVW5kZWZpbmVkEAASCAoEVE9ETxABEhUKEUVyck5vdEltcGxlbWVudGVkEAISDwoLRXJySW50ZXJuYWwQAxITCg9FcnJJbnZhbGlkSW5wdXQQZBIYChRFcnJCcmlkZ2VJbnRlcnJ1cHRlZBBlEhMKD0Vyck1pc3NpbmdJbnB1dBBmEhQKEEVyclNlcmlhbGl6YXRpb24QZxIWChJFcnJEZXNlcmlhbGl6YXRpb24QaBISCg5FcnJJbml0U2VydmljZRBpEhAKDEVyclNldFJlbW90ZRBqEhwKF0VyckNyeXB0b0tleVR5cGVVbmtub3duEJYBEhkKFEVyckNyeXB0b0tleU5vdEZvdW5kEJcBEhcKEkVyck5vQWN0aXZlQWNjb3VudBCYARIVChBFcnJSdW5HUlBDU2VydmVyEJkBEhgKE0VyckRlY3J5cHRpb25GYWlsZWQQmgESEAoLRXJyVHhEZWNvZGUQyAESFwoSRXJySW52YWxpZFNlcXVlbmNlEMkBEhQKD0VyclVuYXV0aG9yaXplZBDKARIZChRFcnJJbnN1ZmZpY2llbnRGdW5kcxDLARIWChFFcnJVbmtub3duUmVxdWVzdBDMARIWCh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ZS52MS5IZWxsb1N0cmVhbVJlc3BvbnNlMAFCL1onZ2l0aHViLmNvbS9nbm9sYW5nL2dub25hdGl2ZS9hcGkvZ2VuL2dvogIDUlRHYgZwcm90bzM", [file_gnonativetypes]); /** * Describes the message land.gno.gnonative.v1.ErrDetails. diff --git a/api/gen/go/_goconnect/rpc.connect.go b/api/gen/go/_goconnect/rpc.connect.go index 488b95cd..94bac1ec 100644 --- a/api/gen/go/_goconnect/rpc.connect.go +++ b/api/gen/go/_goconnect/rpc.connect.go @@ -75,6 +75,9 @@ const ( // GnoNativeServiceSelectAccountProcedure is the fully-qualified name of the GnoNativeService's // SelectAccount RPC. GnoNativeServiceSelectAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/SelectAccount" + // GnoNativeServiceActivateAccountProcedure is the fully-qualified name of the GnoNativeService's + // ActivateAccount RPC. + GnoNativeServiceActivateAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/ActivateAccount" // GnoNativeServiceSetPasswordProcedure is the fully-qualified name of the GnoNativeService's // SetPassword RPC. GnoNativeServiceSetPasswordProcedure = "/land.gno.gnonative.v1.GnoNativeService/SetPassword" @@ -84,6 +87,9 @@ const ( // GnoNativeServiceGetActiveAccountProcedure is the fully-qualified name of the GnoNativeService's // GetActiveAccount RPC. GnoNativeServiceGetActiveAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/GetActiveAccount" + // GnoNativeServiceGetActivatedAccountProcedure is the fully-qualified name of the + // GnoNativeService's GetActivatedAccount RPC. + GnoNativeServiceGetActivatedAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/GetActivatedAccount" // GnoNativeServiceQueryAccountProcedure is the fully-qualified name of the GnoNativeService's // QueryAccount RPC. GnoNativeServiceQueryAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/QueryAccount" @@ -149,9 +155,11 @@ var ( gnoNativeServiceGetKeyInfoByNameOrAddressMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GetKeyInfoByNameOrAddress") gnoNativeServiceCreateAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("CreateAccount") gnoNativeServiceSelectAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("SelectAccount") + gnoNativeServiceActivateAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("ActivateAccount") gnoNativeServiceSetPasswordMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("SetPassword") gnoNativeServiceUpdatePasswordMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("UpdatePassword") gnoNativeServiceGetActiveAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GetActiveAccount") + gnoNativeServiceGetActivatedAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GetActivatedAccount") gnoNativeServiceQueryAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("QueryAccount") gnoNativeServiceDeleteAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("DeleteAccount") gnoNativeServiceQueryMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("Query") @@ -218,20 +226,31 @@ type GnoNativeServiceClient interface { // SelectAccount selects the active account to use for later operations. If the response has_password is // false, then you should set the password before using a method which needs it. // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + // DEPRECATED. Use ActivateAccount. SelectAccount(context.Context, *connect.Request[_go.SelectAccountRequest]) (*connect.Response[_go.SelectAccountResponse], error) - // Set the password for the active account in the keybase, used for later operations. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + // false, then you should call SetPassword before using a method which needs it. + // If the account is already activated, return its info. + // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + ActivateAccount(context.Context, *connect.Request[_go.ActivateAccountRequest]) (*connect.Response[_go.ActivateAccountResponse], error) + // Set the password for the account in the keybase with the given address. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. SetPassword(context.Context, *connect.Request[_go.SetPasswordRequest]) (*connect.Response[_go.SetPasswordResponse], error) - // Update the keybase for the active account to use the new password. + // Update the keybase to use the new password for the account in the keybase with the given address. // Before calling this, you must call SetPassword with the current password. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. UpdatePassword(context.Context, *connect.Request[_go.UpdatePasswordRequest]) (*connect.Response[_go.UpdatePasswordResponse], error) // GetActiveAccount gets the active account which was set by SelectAccount. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // (To check if there is an active account, use ListKeyInfo and check the // length of the result.) + // DEPRECATED: Use GetActivatedAccount. GetActiveAccount(context.Context, *connect.Request[_go.GetActiveAccountRequest]) (*connect.Response[_go.GetActiveAccountResponse], error) + // GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + // If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + GetActivatedAccount(context.Context, *connect.Request[_go.GetActivatedAccountRequest]) (*connect.Response[_go.GetActivatedAccountResponse], error) // QueryAccount retrieves account information from the blockchain for a given // address. QueryAccount(context.Context, *connect.Request[_go.QueryAccountRequest]) (*connect.Response[_go.QueryAccountResponse], error) @@ -258,18 +277,19 @@ type GnoNativeServiceClient interface { // "(1 gno.land/r/demo/boards.BoardID)\n(true bool)". // If the request package_path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath. QEval(context.Context, *connect.Request[_go.QEvalRequest]) (*connect.Response[_go.QEvalResponse], error) - // Call a specific realm function. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Call a specific realm function. Sign the transaction with the given caller_address. + // If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. // If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. Call(context.Context, *connect.Request[_go.CallRequest]) (*connect.ServerStreamForClient[_go.CallResponse], error) - // Send currency from the active account to an account on the blockchain. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Send currency from the account with the given caller_address to an account on the blockchain. + // If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. Send(context.Context, *connect.Request[_go.SendRequest]) (*connect.ServerStreamForClient[_go.SendResponse], error) // Temporarily load the code in package on the blockchain and run main() which can - // call realm functions and use println() to output to the "console". + // call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address. // This returns the "console" output. + // If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. Run(context.Context, *connect.Request[_go.RunRequest]) (*connect.ServerStreamForClient[_go.RunResponse], error) // Make an unsigned transaction to call a specific realm function. MakeCallTx(context.Context, *connect.Request[_go.CallRequest]) (*connect.Response[_go.MakeTxResponse], error) @@ -277,8 +297,8 @@ type GnoNativeServiceClient interface { MakeSendTx(context.Context, *connect.Request[_go.SendRequest]) (*connect.Response[_go.MakeTxResponse], error) // Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). MakeRunTx(context.Context, *connect.Request[_go.RunRequest]) (*connect.Response[_go.MakeTxResponse], error) - // Sign the transaction using the active account. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Sign the transaction using the account with the given address. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. SignTx(context.Context, *connect.Request[_go.SignTxRequest]) (*connect.Response[_go.SignTxResponse], error) // Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result. @@ -389,6 +409,12 @@ func NewGnoNativeServiceClient(httpClient connect.HTTPClient, baseURL string, op connect.WithSchema(gnoNativeServiceSelectAccountMethodDescriptor), connect.WithClientOptions(opts...), ), + activateAccount: connect.NewClient[_go.ActivateAccountRequest, _go.ActivateAccountResponse]( + httpClient, + baseURL+GnoNativeServiceActivateAccountProcedure, + connect.WithSchema(gnoNativeServiceActivateAccountMethodDescriptor), + connect.WithClientOptions(opts...), + ), setPassword: connect.NewClient[_go.SetPasswordRequest, _go.SetPasswordResponse]( httpClient, baseURL+GnoNativeServiceSetPasswordProcedure, @@ -407,6 +433,12 @@ func NewGnoNativeServiceClient(httpClient connect.HTTPClient, baseURL string, op connect.WithSchema(gnoNativeServiceGetActiveAccountMethodDescriptor), connect.WithClientOptions(opts...), ), + getActivatedAccount: connect.NewClient[_go.GetActivatedAccountRequest, _go.GetActivatedAccountResponse]( + httpClient, + baseURL+GnoNativeServiceGetActivatedAccountProcedure, + connect.WithSchema(gnoNativeServiceGetActivatedAccountMethodDescriptor), + connect.WithClientOptions(opts...), + ), queryAccount: connect.NewClient[_go.QueryAccountRequest, _go.QueryAccountResponse]( httpClient, baseURL+GnoNativeServiceQueryAccountProcedure, @@ -534,9 +566,11 @@ type gnoNativeServiceClient struct { getKeyInfoByNameOrAddress *connect.Client[_go.GetKeyInfoByNameOrAddressRequest, _go.GetKeyInfoByNameOrAddressResponse] createAccount *connect.Client[_go.CreateAccountRequest, _go.CreateAccountResponse] selectAccount *connect.Client[_go.SelectAccountRequest, _go.SelectAccountResponse] + activateAccount *connect.Client[_go.ActivateAccountRequest, _go.ActivateAccountResponse] setPassword *connect.Client[_go.SetPasswordRequest, _go.SetPasswordResponse] updatePassword *connect.Client[_go.UpdatePasswordRequest, _go.UpdatePasswordResponse] getActiveAccount *connect.Client[_go.GetActiveAccountRequest, _go.GetActiveAccountResponse] + getActivatedAccount *connect.Client[_go.GetActivatedAccountRequest, _go.GetActivatedAccountResponse] queryAccount *connect.Client[_go.QueryAccountRequest, _go.QueryAccountResponse] deleteAccount *connect.Client[_go.DeleteAccountRequest, _go.DeleteAccountResponse] query *connect.Client[_go.QueryRequest, _go.QueryResponse] @@ -627,6 +661,11 @@ func (c *gnoNativeServiceClient) SelectAccount(ctx context.Context, req *connect return c.selectAccount.CallUnary(ctx, req) } +// ActivateAccount calls land.gno.gnonative.v1.GnoNativeService.ActivateAccount. +func (c *gnoNativeServiceClient) ActivateAccount(ctx context.Context, req *connect.Request[_go.ActivateAccountRequest]) (*connect.Response[_go.ActivateAccountResponse], error) { + return c.activateAccount.CallUnary(ctx, req) +} + // SetPassword calls land.gno.gnonative.v1.GnoNativeService.SetPassword. func (c *gnoNativeServiceClient) SetPassword(ctx context.Context, req *connect.Request[_go.SetPasswordRequest]) (*connect.Response[_go.SetPasswordResponse], error) { return c.setPassword.CallUnary(ctx, req) @@ -642,6 +681,11 @@ func (c *gnoNativeServiceClient) GetActiveAccount(ctx context.Context, req *conn return c.getActiveAccount.CallUnary(ctx, req) } +// GetActivatedAccount calls land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount. +func (c *gnoNativeServiceClient) GetActivatedAccount(ctx context.Context, req *connect.Request[_go.GetActivatedAccountRequest]) (*connect.Response[_go.GetActivatedAccountResponse], error) { + return c.getActivatedAccount.CallUnary(ctx, req) +} + // QueryAccount calls land.gno.gnonative.v1.GnoNativeService.QueryAccount. func (c *gnoNativeServiceClient) QueryAccount(ctx context.Context, req *connect.Request[_go.QueryAccountRequest]) (*connect.Response[_go.QueryAccountResponse], error) { return c.queryAccount.CallUnary(ctx, req) @@ -779,20 +823,31 @@ type GnoNativeServiceHandler interface { // SelectAccount selects the active account to use for later operations. If the response has_password is // false, then you should set the password before using a method which needs it. // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + // DEPRECATED. Use ActivateAccount. SelectAccount(context.Context, *connect.Request[_go.SelectAccountRequest]) (*connect.Response[_go.SelectAccountResponse], error) - // Set the password for the active account in the keybase, used for later operations. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + // false, then you should call SetPassword before using a method which needs it. + // If the account is already activated, return its info. + // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + ActivateAccount(context.Context, *connect.Request[_go.ActivateAccountRequest]) (*connect.Response[_go.ActivateAccountResponse], error) + // Set the password for the account in the keybase with the given address. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. SetPassword(context.Context, *connect.Request[_go.SetPasswordRequest]) (*connect.Response[_go.SetPasswordResponse], error) - // Update the keybase for the active account to use the new password. + // Update the keybase to use the new password for the account in the keybase with the given address. // Before calling this, you must call SetPassword with the current password. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. UpdatePassword(context.Context, *connect.Request[_go.UpdatePasswordRequest]) (*connect.Response[_go.UpdatePasswordResponse], error) // GetActiveAccount gets the active account which was set by SelectAccount. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // (To check if there is an active account, use ListKeyInfo and check the // length of the result.) + // DEPRECATED: Use GetActivatedAccount. GetActiveAccount(context.Context, *connect.Request[_go.GetActiveAccountRequest]) (*connect.Response[_go.GetActiveAccountResponse], error) + // GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + // If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + GetActivatedAccount(context.Context, *connect.Request[_go.GetActivatedAccountRequest]) (*connect.Response[_go.GetActivatedAccountResponse], error) // QueryAccount retrieves account information from the blockchain for a given // address. QueryAccount(context.Context, *connect.Request[_go.QueryAccountRequest]) (*connect.Response[_go.QueryAccountResponse], error) @@ -819,18 +874,19 @@ type GnoNativeServiceHandler interface { // "(1 gno.land/r/demo/boards.BoardID)\n(true bool)". // If the request package_path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath. QEval(context.Context, *connect.Request[_go.QEvalRequest]) (*connect.Response[_go.QEvalResponse], error) - // Call a specific realm function. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Call a specific realm function. Sign the transaction with the given caller_address. + // If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. // If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. Call(context.Context, *connect.Request[_go.CallRequest], *connect.ServerStream[_go.CallResponse]) error - // Send currency from the active account to an account on the blockchain. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Send currency from the account with the given caller_address to an account on the blockchain. + // If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. Send(context.Context, *connect.Request[_go.SendRequest], *connect.ServerStream[_go.SendResponse]) error // Temporarily load the code in package on the blockchain and run main() which can - // call realm functions and use println() to output to the "console". + // call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address. // This returns the "console" output. + // If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. Run(context.Context, *connect.Request[_go.RunRequest], *connect.ServerStream[_go.RunResponse]) error // Make an unsigned transaction to call a specific realm function. MakeCallTx(context.Context, *connect.Request[_go.CallRequest]) (*connect.Response[_go.MakeTxResponse], error) @@ -838,8 +894,8 @@ type GnoNativeServiceHandler interface { MakeSendTx(context.Context, *connect.Request[_go.SendRequest]) (*connect.Response[_go.MakeTxResponse], error) // Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). MakeRunTx(context.Context, *connect.Request[_go.RunRequest]) (*connect.Response[_go.MakeTxResponse], error) - // Sign the transaction using the active account. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Sign the transaction using the account with the given address. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. SignTx(context.Context, *connect.Request[_go.SignTxRequest]) (*connect.Response[_go.SignTxResponse], error) // Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result. @@ -946,6 +1002,12 @@ func NewGnoNativeServiceHandler(svc GnoNativeServiceHandler, opts ...connect.Han connect.WithSchema(gnoNativeServiceSelectAccountMethodDescriptor), connect.WithHandlerOptions(opts...), ) + gnoNativeServiceActivateAccountHandler := connect.NewUnaryHandler( + GnoNativeServiceActivateAccountProcedure, + svc.ActivateAccount, + connect.WithSchema(gnoNativeServiceActivateAccountMethodDescriptor), + connect.WithHandlerOptions(opts...), + ) gnoNativeServiceSetPasswordHandler := connect.NewUnaryHandler( GnoNativeServiceSetPasswordProcedure, svc.SetPassword, @@ -964,6 +1026,12 @@ func NewGnoNativeServiceHandler(svc GnoNativeServiceHandler, opts ...connect.Han connect.WithSchema(gnoNativeServiceGetActiveAccountMethodDescriptor), connect.WithHandlerOptions(opts...), ) + gnoNativeServiceGetActivatedAccountHandler := connect.NewUnaryHandler( + GnoNativeServiceGetActivatedAccountProcedure, + svc.GetActivatedAccount, + connect.WithSchema(gnoNativeServiceGetActivatedAccountMethodDescriptor), + connect.WithHandlerOptions(opts...), + ) gnoNativeServiceQueryAccountHandler := connect.NewUnaryHandler( GnoNativeServiceQueryAccountProcedure, svc.QueryAccount, @@ -1102,12 +1170,16 @@ func NewGnoNativeServiceHandler(svc GnoNativeServiceHandler, opts ...connect.Han gnoNativeServiceCreateAccountHandler.ServeHTTP(w, r) case GnoNativeServiceSelectAccountProcedure: gnoNativeServiceSelectAccountHandler.ServeHTTP(w, r) + case GnoNativeServiceActivateAccountProcedure: + gnoNativeServiceActivateAccountHandler.ServeHTTP(w, r) case GnoNativeServiceSetPasswordProcedure: gnoNativeServiceSetPasswordHandler.ServeHTTP(w, r) case GnoNativeServiceUpdatePasswordProcedure: gnoNativeServiceUpdatePasswordHandler.ServeHTTP(w, r) case GnoNativeServiceGetActiveAccountProcedure: gnoNativeServiceGetActiveAccountHandler.ServeHTTP(w, r) + case GnoNativeServiceGetActivatedAccountProcedure: + gnoNativeServiceGetActivatedAccountHandler.ServeHTTP(w, r) case GnoNativeServiceQueryAccountProcedure: gnoNativeServiceQueryAccountHandler.ServeHTTP(w, r) case GnoNativeServiceDeleteAccountProcedure: @@ -1209,6 +1281,10 @@ func (UnimplementedGnoNativeServiceHandler) SelectAccount(context.Context, *conn return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.SelectAccount is not implemented")) } +func (UnimplementedGnoNativeServiceHandler) ActivateAccount(context.Context, *connect.Request[_go.ActivateAccountRequest]) (*connect.Response[_go.ActivateAccountResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.ActivateAccount is not implemented")) +} + func (UnimplementedGnoNativeServiceHandler) SetPassword(context.Context, *connect.Request[_go.SetPasswordRequest]) (*connect.Response[_go.SetPasswordResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.SetPassword is not implemented")) } @@ -1221,6 +1297,10 @@ func (UnimplementedGnoNativeServiceHandler) GetActiveAccount(context.Context, *c return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.GetActiveAccount is not implemented")) } +func (UnimplementedGnoNativeServiceHandler) GetActivatedAccount(context.Context, *connect.Request[_go.GetActivatedAccountRequest]) (*connect.Response[_go.GetActivatedAccountResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount is not implemented")) +} + func (UnimplementedGnoNativeServiceHandler) QueryAccount(context.Context, *connect.Request[_go.QueryAccountRequest]) (*connect.Response[_go.QueryAccountResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.QueryAccount is not implemented")) } diff --git a/api/gen/go/gnonativetypes.pb.go b/api/gen/go/gnonativetypes.pb.go index 379a1a85..d9dbfcc7 100644 --- a/api/gen/go/gnonativetypes.pb.go +++ b/api/gen/go/gnonativetypes.pb.go @@ -367,6 +367,8 @@ type SetPasswordRequest struct { unknownFields protoimpl.UnknownFields Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` + // The address of the account to set the password + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } func (x *SetPasswordRequest) Reset() { @@ -408,6 +410,13 @@ func (x *SetPasswordRequest) GetPassword() string { return "" } +func (x *SetPasswordRequest) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + type SetPasswordResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -452,6 +461,8 @@ type UpdatePasswordRequest struct { unknownFields protoimpl.UnknownFields NewPassword string `protobuf:"bytes,1,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` + // The address of the account to update the password + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } func (x *UpdatePasswordRequest) Reset() { @@ -493,6 +504,13 @@ func (x *UpdatePasswordRequest) GetNewPassword() string { return "" } +func (x *UpdatePasswordRequest) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + type UpdatePasswordResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1710,6 +1728,109 @@ func (x *SelectAccountResponse) GetHasPassword() bool { return false } +type ActivateAccountRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NameOrBech32 string `protobuf:"bytes,1,opt,name=name_or_bech32,json=nameOrBech32,proto3" json:"name_or_bech32,omitempty"` +} + +func (x *ActivateAccountRequest) Reset() { + *x = ActivateAccountRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_gnonativetypes_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivateAccountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivateAccountRequest) ProtoMessage() {} + +func (x *ActivateAccountRequest) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivateAccountRequest.ProtoReflect.Descriptor instead. +func (*ActivateAccountRequest) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{35} +} + +func (x *ActivateAccountRequest) GetNameOrBech32() string { + if x != nil { + return x.NameOrBech32 + } + return "" +} + +type ActivateAccountResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key *KeyInfo `protobuf:"bytes,1,opt,name=key,json=key_info,proto3" json:"key,omitempty"` + // True if the password has been set. If false, then call SetPassword. + HasPassword bool `protobuf:"varint,2,opt,name=has_password,json=hasPassword,proto3" json:"has_password,omitempty"` +} + +func (x *ActivateAccountResponse) Reset() { + *x = ActivateAccountResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_gnonativetypes_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivateAccountResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivateAccountResponse) ProtoMessage() {} + +func (x *ActivateAccountResponse) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivateAccountResponse.ProtoReflect.Descriptor instead. +func (*ActivateAccountResponse) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{36} +} + +func (x *ActivateAccountResponse) GetKey() *KeyInfo { + if x != nil { + return x.Key + } + return nil +} + +func (x *ActivateAccountResponse) GetHasPassword() bool { + if x != nil { + return x.HasPassword + } + return false +} + type GetActiveAccountRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1719,7 +1840,7 @@ type GetActiveAccountRequest struct { func (x *GetActiveAccountRequest) Reset() { *x = GetActiveAccountRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[35] + mi := &file_gnonativetypes_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1732,7 +1853,7 @@ func (x *GetActiveAccountRequest) String() string { func (*GetActiveAccountRequest) ProtoMessage() {} func (x *GetActiveAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[35] + mi := &file_gnonativetypes_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1745,7 +1866,7 @@ func (x *GetActiveAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetActiveAccountRequest.ProtoReflect.Descriptor instead. func (*GetActiveAccountRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{35} + return file_gnonativetypes_proto_rawDescGZIP(), []int{37} } type GetActiveAccountResponse struct { @@ -1761,7 +1882,7 @@ type GetActiveAccountResponse struct { func (x *GetActiveAccountResponse) Reset() { *x = GetActiveAccountResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[36] + mi := &file_gnonativetypes_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1774,7 +1895,7 @@ func (x *GetActiveAccountResponse) String() string { func (*GetActiveAccountResponse) ProtoMessage() {} func (x *GetActiveAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[36] + mi := &file_gnonativetypes_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1787,7 +1908,7 @@ func (x *GetActiveAccountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetActiveAccountResponse.ProtoReflect.Descriptor instead. func (*GetActiveAccountResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{36} + return file_gnonativetypes_proto_rawDescGZIP(), []int{38} } func (x *GetActiveAccountResponse) GetKey() *KeyInfo { @@ -1804,6 +1925,109 @@ func (x *GetActiveAccountResponse) GetHasPassword() bool { return false } +type GetActivatedAccountRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +} + +func (x *GetActivatedAccountRequest) Reset() { + *x = GetActivatedAccountRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_gnonativetypes_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetActivatedAccountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetActivatedAccountRequest) ProtoMessage() {} + +func (x *GetActivatedAccountRequest) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetActivatedAccountRequest.ProtoReflect.Descriptor instead. +func (*GetActivatedAccountRequest) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{39} +} + +func (x *GetActivatedAccountRequest) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + +type GetActivatedAccountResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key *KeyInfo `protobuf:"bytes,1,opt,name=key,json=key_info,proto3" json:"key,omitempty"` + // True if the password has been set. If false, then call SetPassword. + HasPassword bool `protobuf:"varint,2,opt,name=has_password,json=hasPassword,proto3" json:"has_password,omitempty"` +} + +func (x *GetActivatedAccountResponse) Reset() { + *x = GetActivatedAccountResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_gnonativetypes_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetActivatedAccountResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetActivatedAccountResponse) ProtoMessage() {} + +func (x *GetActivatedAccountResponse) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetActivatedAccountResponse.ProtoReflect.Descriptor instead. +func (*GetActivatedAccountResponse) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{40} +} + +func (x *GetActivatedAccountResponse) GetKey() *KeyInfo { + if x != nil { + return x.Key + } + return nil +} + +func (x *GetActivatedAccountResponse) GetHasPassword() bool { + if x != nil { + return x.HasPassword + } + return false +} + type QueryAccountRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1815,7 +2039,7 @@ type QueryAccountRequest struct { func (x *QueryAccountRequest) Reset() { *x = QueryAccountRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[37] + mi := &file_gnonativetypes_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1828,7 +2052,7 @@ func (x *QueryAccountRequest) String() string { func (*QueryAccountRequest) ProtoMessage() {} func (x *QueryAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[37] + mi := &file_gnonativetypes_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1841,7 +2065,7 @@ func (x *QueryAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryAccountRequest.ProtoReflect.Descriptor instead. func (*QueryAccountRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{37} + return file_gnonativetypes_proto_rawDescGZIP(), []int{41} } func (x *QueryAccountRequest) GetAddress() []byte { @@ -1862,7 +2086,7 @@ type QueryAccountResponse struct { func (x *QueryAccountResponse) Reset() { *x = QueryAccountResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[38] + mi := &file_gnonativetypes_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1875,7 +2099,7 @@ func (x *QueryAccountResponse) String() string { func (*QueryAccountResponse) ProtoMessage() {} func (x *QueryAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[38] + mi := &file_gnonativetypes_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1888,7 +2112,7 @@ func (x *QueryAccountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryAccountResponse.ProtoReflect.Descriptor instead. func (*QueryAccountResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{38} + return file_gnonativetypes_proto_rawDescGZIP(), []int{42} } func (x *QueryAccountResponse) GetAccountInfo() *BaseAccount { @@ -1911,7 +2135,7 @@ type DeleteAccountRequest struct { func (x *DeleteAccountRequest) Reset() { *x = DeleteAccountRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[39] + mi := &file_gnonativetypes_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1924,7 +2148,7 @@ func (x *DeleteAccountRequest) String() string { func (*DeleteAccountRequest) ProtoMessage() {} func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[39] + mi := &file_gnonativetypes_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1937,7 +2161,7 @@ func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead. func (*DeleteAccountRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{39} + return file_gnonativetypes_proto_rawDescGZIP(), []int{43} } func (x *DeleteAccountRequest) GetNameOrBech32() string { @@ -1970,7 +2194,7 @@ type DeleteAccountResponse struct { func (x *DeleteAccountResponse) Reset() { *x = DeleteAccountResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[40] + mi := &file_gnonativetypes_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1983,7 +2207,7 @@ func (x *DeleteAccountResponse) String() string { func (*DeleteAccountResponse) ProtoMessage() {} func (x *DeleteAccountResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[40] + mi := &file_gnonativetypes_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1996,7 +2220,7 @@ func (x *DeleteAccountResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteAccountResponse.ProtoReflect.Descriptor instead. func (*DeleteAccountResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{40} + return file_gnonativetypes_proto_rawDescGZIP(), []int{44} } type QueryRequest struct { @@ -2013,7 +2237,7 @@ type QueryRequest struct { func (x *QueryRequest) Reset() { *x = QueryRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[41] + mi := &file_gnonativetypes_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2026,7 +2250,7 @@ func (x *QueryRequest) String() string { func (*QueryRequest) ProtoMessage() {} func (x *QueryRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[41] + mi := &file_gnonativetypes_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2039,7 +2263,7 @@ func (x *QueryRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead. func (*QueryRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{41} + return file_gnonativetypes_proto_rawDescGZIP(), []int{45} } func (x *QueryRequest) GetPath() string { @@ -2067,7 +2291,7 @@ type QueryResponse struct { func (x *QueryResponse) Reset() { *x = QueryResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[42] + mi := &file_gnonativetypes_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2080,7 +2304,7 @@ func (x *QueryResponse) String() string { func (*QueryResponse) ProtoMessage() {} func (x *QueryResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[42] + mi := &file_gnonativetypes_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2093,7 +2317,7 @@ func (x *QueryResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead. func (*QueryResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{42} + return file_gnonativetypes_proto_rawDescGZIP(), []int{46} } func (x *QueryResponse) GetResult() []byte { @@ -2117,7 +2341,7 @@ type RenderRequest struct { func (x *RenderRequest) Reset() { *x = RenderRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[43] + mi := &file_gnonativetypes_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2130,7 +2354,7 @@ func (x *RenderRequest) String() string { func (*RenderRequest) ProtoMessage() {} func (x *RenderRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[43] + mi := &file_gnonativetypes_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2143,7 +2367,7 @@ func (x *RenderRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RenderRequest.ProtoReflect.Descriptor instead. func (*RenderRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{43} + return file_gnonativetypes_proto_rawDescGZIP(), []int{47} } func (x *RenderRequest) GetPackagePath() string { @@ -2172,7 +2396,7 @@ type RenderResponse struct { func (x *RenderResponse) Reset() { *x = RenderResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[44] + mi := &file_gnonativetypes_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2185,7 +2409,7 @@ func (x *RenderResponse) String() string { func (*RenderResponse) ProtoMessage() {} func (x *RenderResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[44] + mi := &file_gnonativetypes_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2198,7 +2422,7 @@ func (x *RenderResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RenderResponse.ProtoReflect.Descriptor instead. func (*RenderResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{44} + return file_gnonativetypes_proto_rawDescGZIP(), []int{48} } func (x *RenderResponse) GetResult() string { @@ -2222,7 +2446,7 @@ type QEvalRequest struct { func (x *QEvalRequest) Reset() { *x = QEvalRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[45] + mi := &file_gnonativetypes_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2235,7 +2459,7 @@ func (x *QEvalRequest) String() string { func (*QEvalRequest) ProtoMessage() {} func (x *QEvalRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[45] + mi := &file_gnonativetypes_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2248,7 +2472,7 @@ func (x *QEvalRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QEvalRequest.ProtoReflect.Descriptor instead. func (*QEvalRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{45} + return file_gnonativetypes_proto_rawDescGZIP(), []int{49} } func (x *QEvalRequest) GetPackagePath() string { @@ -2277,7 +2501,7 @@ type QEvalResponse struct { func (x *QEvalResponse) Reset() { *x = QEvalResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[46] + mi := &file_gnonativetypes_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2290,7 +2514,7 @@ func (x *QEvalResponse) String() string { func (*QEvalResponse) ProtoMessage() {} func (x *QEvalResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[46] + mi := &file_gnonativetypes_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2303,7 +2527,7 @@ func (x *QEvalResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QEvalResponse.ProtoReflect.Descriptor instead. func (*QEvalResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{46} + return file_gnonativetypes_proto_rawDescGZIP(), []int{50} } func (x *QEvalResponse) GetResult() string { @@ -2331,7 +2555,7 @@ type MsgCall struct { func (x *MsgCall) Reset() { *x = MsgCall{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[47] + mi := &file_gnonativetypes_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2344,7 +2568,7 @@ func (x *MsgCall) String() string { func (*MsgCall) ProtoMessage() {} func (x *MsgCall) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[47] + mi := &file_gnonativetypes_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2357,7 +2581,7 @@ func (x *MsgCall) ProtoReflect() protoreflect.Message { // Deprecated: Use MsgCall.ProtoReflect.Descriptor instead. func (*MsgCall) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{47} + return file_gnonativetypes_proto_rawDescGZIP(), []int{51} } func (x *MsgCall) GetPackagePath() string { @@ -2396,7 +2620,7 @@ type CallRequest struct { GasFee string `protobuf:"bytes,1,opt,name=gas_fee,json=gasFee,proto3" json:"gas_fee,omitempty"` GasWanted int64 `protobuf:"zigzag64,2,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"` Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` - // If CallerAddress is empty then get it from the active account + // The address of the account to sign the transaction CallerAddress []byte `protobuf:"bytes,4,opt,name=caller_address,json=callerAddress,proto3" json:"caller_address,omitempty"` // list of calls to make in one transaction Msgs []*MsgCall `protobuf:"bytes,5,rep,name=msgs,json=Msgs,proto3" json:"msgs,omitempty"` @@ -2405,7 +2629,7 @@ type CallRequest struct { func (x *CallRequest) Reset() { *x = CallRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[48] + mi := &file_gnonativetypes_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2418,7 +2642,7 @@ func (x *CallRequest) String() string { func (*CallRequest) ProtoMessage() {} func (x *CallRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[48] + mi := &file_gnonativetypes_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2431,7 +2655,7 @@ func (x *CallRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CallRequest.ProtoReflect.Descriptor instead. func (*CallRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{48} + return file_gnonativetypes_proto_rawDescGZIP(), []int{52} } func (x *CallRequest) GetGasFee() string { @@ -2480,7 +2704,7 @@ type CallResponse struct { func (x *CallResponse) Reset() { *x = CallResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[49] + mi := &file_gnonativetypes_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2493,7 +2717,7 @@ func (x *CallResponse) String() string { func (*CallResponse) ProtoMessage() {} func (x *CallResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[49] + mi := &file_gnonativetypes_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2506,7 +2730,7 @@ func (x *CallResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CallResponse.ProtoReflect.Descriptor instead. func (*CallResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{49} + return file_gnonativetypes_proto_rawDescGZIP(), []int{53} } func (x *CallResponse) GetResult() []byte { @@ -2531,7 +2755,7 @@ type MsgSend struct { func (x *MsgSend) Reset() { *x = MsgSend{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[50] + mi := &file_gnonativetypes_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2544,7 +2768,7 @@ func (x *MsgSend) String() string { func (*MsgSend) ProtoMessage() {} func (x *MsgSend) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[50] + mi := &file_gnonativetypes_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2557,7 +2781,7 @@ func (x *MsgSend) ProtoReflect() protoreflect.Message { // Deprecated: Use MsgSend.ProtoReflect.Descriptor instead. func (*MsgSend) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{50} + return file_gnonativetypes_proto_rawDescGZIP(), []int{54} } func (x *MsgSend) GetToAddress() []byte { @@ -2583,7 +2807,7 @@ type SendRequest struct { GasWanted int64 `protobuf:"zigzag64,2,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"` // Memo is optional Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` - // If CallerAddress is empty then get it from the active account + // The address of the account to sign the transaction CallerAddress []byte `protobuf:"bytes,4,opt,name=caller_address,json=callerAddress,proto3" json:"caller_address,omitempty"` // list of send operations to make in one transaction Msgs []*MsgSend `protobuf:"bytes,5,rep,name=msgs,json=Msgs,proto3" json:"msgs,omitempty"` @@ -2592,7 +2816,7 @@ type SendRequest struct { func (x *SendRequest) Reset() { *x = SendRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[51] + mi := &file_gnonativetypes_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2605,7 +2829,7 @@ func (x *SendRequest) String() string { func (*SendRequest) ProtoMessage() {} func (x *SendRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[51] + mi := &file_gnonativetypes_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2618,7 +2842,7 @@ func (x *SendRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SendRequest.ProtoReflect.Descriptor instead. func (*SendRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{51} + return file_gnonativetypes_proto_rawDescGZIP(), []int{55} } func (x *SendRequest) GetGasFee() string { @@ -2665,7 +2889,7 @@ type SendResponse struct { func (x *SendResponse) Reset() { *x = SendResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[52] + mi := &file_gnonativetypes_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2678,7 +2902,7 @@ func (x *SendResponse) String() string { func (*SendResponse) ProtoMessage() {} func (x *SendResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[52] + mi := &file_gnonativetypes_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2691,7 +2915,7 @@ func (x *SendResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SendResponse.ProtoReflect.Descriptor instead. func (*SendResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{52} + return file_gnonativetypes_proto_rawDescGZIP(), []int{56} } type MsgRun struct { @@ -2709,7 +2933,7 @@ type MsgRun struct { func (x *MsgRun) Reset() { *x = MsgRun{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[53] + mi := &file_gnonativetypes_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2722,7 +2946,7 @@ func (x *MsgRun) String() string { func (*MsgRun) ProtoMessage() {} func (x *MsgRun) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[53] + mi := &file_gnonativetypes_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2735,7 +2959,7 @@ func (x *MsgRun) ProtoReflect() protoreflect.Message { // Deprecated: Use MsgRun.ProtoReflect.Descriptor instead. func (*MsgRun) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{53} + return file_gnonativetypes_proto_rawDescGZIP(), []int{57} } func (x *MsgRun) GetPackage() string { @@ -2761,7 +2985,7 @@ type RunRequest struct { GasWanted int64 `protobuf:"zigzag64,2,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"` // Memo is optional Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` - // If CallerAddress is empty then get it from the active account + // The address of the account to sign the transaction CallerAddress []byte `protobuf:"bytes,4,opt,name=caller_address,json=callerAddress,proto3" json:"caller_address,omitempty"` // list of run operations to make in one transaction Msgs []*MsgRun `protobuf:"bytes,5,rep,name=msgs,json=Msgs,proto3" json:"msgs,omitempty"` @@ -2770,7 +2994,7 @@ type RunRequest struct { func (x *RunRequest) Reset() { *x = RunRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[54] + mi := &file_gnonativetypes_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2783,7 +3007,7 @@ func (x *RunRequest) String() string { func (*RunRequest) ProtoMessage() {} func (x *RunRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[54] + mi := &file_gnonativetypes_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2796,7 +3020,7 @@ func (x *RunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RunRequest.ProtoReflect.Descriptor instead. func (*RunRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{54} + return file_gnonativetypes_proto_rawDescGZIP(), []int{58} } func (x *RunRequest) GetGasFee() string { @@ -2846,7 +3070,7 @@ type RunResponse struct { func (x *RunResponse) Reset() { *x = RunResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[55] + mi := &file_gnonativetypes_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2859,7 +3083,7 @@ func (x *RunResponse) String() string { func (*RunResponse) ProtoMessage() {} func (x *RunResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[55] + mi := &file_gnonativetypes_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2872,7 +3096,7 @@ func (x *RunResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RunResponse.ProtoReflect.Descriptor instead. func (*RunResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{55} + return file_gnonativetypes_proto_rawDescGZIP(), []int{59} } func (x *RunResponse) GetResult() string { @@ -2894,7 +3118,7 @@ type MakeTxResponse struct { func (x *MakeTxResponse) Reset() { *x = MakeTxResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[56] + mi := &file_gnonativetypes_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2907,7 +3131,7 @@ func (x *MakeTxResponse) String() string { func (*MakeTxResponse) ProtoMessage() {} func (x *MakeTxResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[56] + mi := &file_gnonativetypes_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2920,7 +3144,7 @@ func (x *MakeTxResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use MakeTxResponse.ProtoReflect.Descriptor instead. func (*MakeTxResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{56} + return file_gnonativetypes_proto_rawDescGZIP(), []int{60} } func (x *MakeTxResponse) GetTxJson() string { @@ -2937,16 +3161,18 @@ type SignTxRequest struct { // The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) TxJson string `protobuf:"bytes,1,opt,name=tx_json,json=txJson,proto3" json:"tx_json,omitempty"` + // The address of the account to sign the transaction + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // The signer's account number on the blockchain. If 0 then query the blockchain for the value. - AccountNumber uint64 `protobuf:"varint,2,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"` + AccountNumber uint64 `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"` // The sequence number of the signer's transactions on the blockchain. If 0 then query the blockchain for the value. - SequenceNumber uint64 `protobuf:"varint,3,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` + SequenceNumber uint64 `protobuf:"varint,4,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` } func (x *SignTxRequest) Reset() { *x = SignTxRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[57] + mi := &file_gnonativetypes_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2959,7 +3185,7 @@ func (x *SignTxRequest) String() string { func (*SignTxRequest) ProtoMessage() {} func (x *SignTxRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[57] + mi := &file_gnonativetypes_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2972,7 +3198,7 @@ func (x *SignTxRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SignTxRequest.ProtoReflect.Descriptor instead. func (*SignTxRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{57} + return file_gnonativetypes_proto_rawDescGZIP(), []int{61} } func (x *SignTxRequest) GetTxJson() string { @@ -2982,6 +3208,13 @@ func (x *SignTxRequest) GetTxJson() string { return "" } +func (x *SignTxRequest) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + func (x *SignTxRequest) GetAccountNumber() uint64 { if x != nil { return x.AccountNumber @@ -3008,7 +3241,7 @@ type SignTxResponse struct { func (x *SignTxResponse) Reset() { *x = SignTxResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[58] + mi := &file_gnonativetypes_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3021,7 +3254,7 @@ func (x *SignTxResponse) String() string { func (*SignTxResponse) ProtoMessage() {} func (x *SignTxResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[58] + mi := &file_gnonativetypes_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3034,7 +3267,7 @@ func (x *SignTxResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SignTxResponse.ProtoReflect.Descriptor instead. func (*SignTxResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{58} + return file_gnonativetypes_proto_rawDescGZIP(), []int{62} } func (x *SignTxResponse) GetSignedTxJson() string { @@ -3056,7 +3289,7 @@ type BroadcastTxCommitRequest struct { func (x *BroadcastTxCommitRequest) Reset() { *x = BroadcastTxCommitRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[59] + mi := &file_gnonativetypes_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3069,7 +3302,7 @@ func (x *BroadcastTxCommitRequest) String() string { func (*BroadcastTxCommitRequest) ProtoMessage() {} func (x *BroadcastTxCommitRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[59] + mi := &file_gnonativetypes_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3082,7 +3315,7 @@ func (x *BroadcastTxCommitRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BroadcastTxCommitRequest.ProtoReflect.Descriptor instead. func (*BroadcastTxCommitRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{59} + return file_gnonativetypes_proto_rawDescGZIP(), []int{63} } func (x *BroadcastTxCommitRequest) GetSignedTxJson() string { @@ -3103,7 +3336,7 @@ type BroadcastTxCommitResponse struct { func (x *BroadcastTxCommitResponse) Reset() { *x = BroadcastTxCommitResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[60] + mi := &file_gnonativetypes_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3116,7 +3349,7 @@ func (x *BroadcastTxCommitResponse) String() string { func (*BroadcastTxCommitResponse) ProtoMessage() {} func (x *BroadcastTxCommitResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[60] + mi := &file_gnonativetypes_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3129,7 +3362,7 @@ func (x *BroadcastTxCommitResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BroadcastTxCommitResponse.ProtoReflect.Descriptor instead. func (*BroadcastTxCommitResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{60} + return file_gnonativetypes_proto_rawDescGZIP(), []int{64} } func (x *BroadcastTxCommitResponse) GetResult() []byte { @@ -3150,7 +3383,7 @@ type AddressToBech32Request struct { func (x *AddressToBech32Request) Reset() { *x = AddressToBech32Request{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[61] + mi := &file_gnonativetypes_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3163,7 +3396,7 @@ func (x *AddressToBech32Request) String() string { func (*AddressToBech32Request) ProtoMessage() {} func (x *AddressToBech32Request) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[61] + mi := &file_gnonativetypes_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3176,7 +3409,7 @@ func (x *AddressToBech32Request) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressToBech32Request.ProtoReflect.Descriptor instead. func (*AddressToBech32Request) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{61} + return file_gnonativetypes_proto_rawDescGZIP(), []int{65} } func (x *AddressToBech32Request) GetAddress() []byte { @@ -3197,7 +3430,7 @@ type AddressToBech32Response struct { func (x *AddressToBech32Response) Reset() { *x = AddressToBech32Response{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[62] + mi := &file_gnonativetypes_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3210,7 +3443,7 @@ func (x *AddressToBech32Response) String() string { func (*AddressToBech32Response) ProtoMessage() {} func (x *AddressToBech32Response) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[62] + mi := &file_gnonativetypes_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3223,7 +3456,7 @@ func (x *AddressToBech32Response) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressToBech32Response.ProtoReflect.Descriptor instead. func (*AddressToBech32Response) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{62} + return file_gnonativetypes_proto_rawDescGZIP(), []int{66} } func (x *AddressToBech32Response) GetBech32Address() string { @@ -3244,7 +3477,7 @@ type AddressFromBech32Request struct { func (x *AddressFromBech32Request) Reset() { *x = AddressFromBech32Request{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[63] + mi := &file_gnonativetypes_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3257,7 +3490,7 @@ func (x *AddressFromBech32Request) String() string { func (*AddressFromBech32Request) ProtoMessage() {} func (x *AddressFromBech32Request) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[63] + mi := &file_gnonativetypes_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3270,7 +3503,7 @@ func (x *AddressFromBech32Request) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromBech32Request.ProtoReflect.Descriptor instead. func (*AddressFromBech32Request) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{63} + return file_gnonativetypes_proto_rawDescGZIP(), []int{67} } func (x *AddressFromBech32Request) GetBech32Address() string { @@ -3291,7 +3524,7 @@ type AddressFromBech32Response struct { func (x *AddressFromBech32Response) Reset() { *x = AddressFromBech32Response{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[64] + mi := &file_gnonativetypes_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3304,7 +3537,7 @@ func (x *AddressFromBech32Response) String() string { func (*AddressFromBech32Response) ProtoMessage() {} func (x *AddressFromBech32Response) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[64] + mi := &file_gnonativetypes_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3317,7 +3550,7 @@ func (x *AddressFromBech32Response) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromBech32Response.ProtoReflect.Descriptor instead. func (*AddressFromBech32Response) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{64} + return file_gnonativetypes_proto_rawDescGZIP(), []int{68} } func (x *AddressFromBech32Response) GetAddress() []byte { @@ -3338,7 +3571,7 @@ type AddressFromMnemonicRequest struct { func (x *AddressFromMnemonicRequest) Reset() { *x = AddressFromMnemonicRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[65] + mi := &file_gnonativetypes_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3351,7 +3584,7 @@ func (x *AddressFromMnemonicRequest) String() string { func (*AddressFromMnemonicRequest) ProtoMessage() {} func (x *AddressFromMnemonicRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[65] + mi := &file_gnonativetypes_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3364,7 +3597,7 @@ func (x *AddressFromMnemonicRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromMnemonicRequest.ProtoReflect.Descriptor instead. func (*AddressFromMnemonicRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{65} + return file_gnonativetypes_proto_rawDescGZIP(), []int{69} } func (x *AddressFromMnemonicRequest) GetMnemonic() string { @@ -3385,7 +3618,7 @@ type AddressFromMnemonicResponse struct { func (x *AddressFromMnemonicResponse) Reset() { *x = AddressFromMnemonicResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[66] + mi := &file_gnonativetypes_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3398,7 +3631,7 @@ func (x *AddressFromMnemonicResponse) String() string { func (*AddressFromMnemonicResponse) ProtoMessage() {} func (x *AddressFromMnemonicResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[66] + mi := &file_gnonativetypes_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3411,7 +3644,7 @@ func (x *AddressFromMnemonicResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromMnemonicResponse.ProtoReflect.Descriptor instead. func (*AddressFromMnemonicResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{66} + return file_gnonativetypes_proto_rawDescGZIP(), []int{70} } func (x *AddressFromMnemonicResponse) GetAddress() []byte { @@ -3432,7 +3665,7 @@ type HelloRequest struct { func (x *HelloRequest) Reset() { *x = HelloRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[67] + mi := &file_gnonativetypes_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3445,7 +3678,7 @@ func (x *HelloRequest) String() string { func (*HelloRequest) ProtoMessage() {} func (x *HelloRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[67] + mi := &file_gnonativetypes_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3458,7 +3691,7 @@ func (x *HelloRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead. func (*HelloRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{67} + return file_gnonativetypes_proto_rawDescGZIP(), []int{71} } func (x *HelloRequest) GetName() string { @@ -3479,7 +3712,7 @@ type HelloResponse struct { func (x *HelloResponse) Reset() { *x = HelloResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[68] + mi := &file_gnonativetypes_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3492,7 +3725,7 @@ func (x *HelloResponse) String() string { func (*HelloResponse) ProtoMessage() {} func (x *HelloResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[68] + mi := &file_gnonativetypes_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3505,7 +3738,7 @@ func (x *HelloResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead. func (*HelloResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{68} + return file_gnonativetypes_proto_rawDescGZIP(), []int{72} } func (x *HelloResponse) GetGreeting() string { @@ -3526,7 +3759,7 @@ type HelloStreamRequest struct { func (x *HelloStreamRequest) Reset() { *x = HelloStreamRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[69] + mi := &file_gnonativetypes_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3539,7 +3772,7 @@ func (x *HelloStreamRequest) String() string { func (*HelloStreamRequest) ProtoMessage() {} func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[69] + mi := &file_gnonativetypes_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3552,7 +3785,7 @@ func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamRequest.ProtoReflect.Descriptor instead. func (*HelloStreamRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{69} + return file_gnonativetypes_proto_rawDescGZIP(), []int{73} } func (x *HelloStreamRequest) GetName() string { @@ -3573,7 +3806,7 @@ type HelloStreamResponse struct { func (x *HelloStreamResponse) Reset() { *x = HelloStreamResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[70] + mi := &file_gnonativetypes_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3586,7 +3819,7 @@ func (x *HelloStreamResponse) String() string { func (*HelloStreamResponse) ProtoMessage() {} func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[70] + mi := &file_gnonativetypes_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3599,7 +3832,7 @@ func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamResponse.ProtoReflect.Descriptor instead. func (*HelloStreamResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{70} + return file_gnonativetypes_proto_rawDescGZIP(), []int{74} } func (x *HelloStreamResponse) GetGreeting() string { @@ -3631,285 +3864,312 @@ var file_gnonativetypes_proto_rawDesc = []byte{ 0x6e, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x30, 0x0a, 0x12, 0x53, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x15, 0x0a, - 0x13, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, - 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x22, 0x18, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x0a, 0x1d, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x50, 0x68, - 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x38, 0x0a, 0x1e, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x50, - 0x68, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, - 0x68, 0x72, 0x61, 0x73, 0x65, 0x22, 0x64, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, - 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x34, 0x0a, 0x04, 0x43, - 0x6f, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x0b, 0x42, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x63, - 0x6f, 0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x61, 0x6e, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, + 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, + 0x65, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, + 0x0a, 0x1d, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x79, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x38, 0x0a, 0x1e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x79, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x22, 0x64, 0x0a, 0x07, 0x4b, 0x65, 0x79, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, + 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, + 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, + 0x34, 0x0a, 0x04, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x16, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x52, 0x06, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x0b, 0x42, 0x61, 0x73, 0x65, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x31, 0x0a, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, + 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x63, 0x6f, 0x69, + 0x6e, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x14, + 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x6b, + 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, + 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, + 0x6e, 0x66, 0x6f, 0x22, 0x29, 0x0a, 0x13, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x28, + 0x0a, 0x14, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x61, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x03, 0x68, 0x61, 0x73, 0x22, 0x32, 0x0a, 0x16, 0x48, 0x61, 0x73, 0x4b, + 0x65, 0x79, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x2b, 0x0a, 0x17, + 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x61, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x68, 0x61, 0x73, 0x22, 0x44, 0x0a, 0x1c, 0x48, 0x61, 0x73, + 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, + 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x22, + 0x31, 0x0a, 0x1d, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, + 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x68, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x68, + 0x61, 0x73, 0x22, 0x2d, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, + 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x51, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, + 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x12, 0x17, - 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, - 0x73, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0x4d, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, - 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, - 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, - 0x29, 0x0a, 0x13, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x28, 0x0a, 0x14, 0x48, 0x61, - 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x03, 0x68, 0x61, 0x73, 0x22, 0x32, 0x0a, 0x16, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x2b, 0x0a, 0x17, 0x48, 0x61, 0x73, 0x4b, - 0x65, 0x79, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x03, 0x68, 0x61, 0x73, 0x22, 0x44, 0x0a, 0x1c, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, 0x72, - 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, - 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x22, 0x31, 0x0a, 0x1d, 0x48, - 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x68, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x68, 0x61, 0x73, 0x22, 0x2d, - 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x51, 0x0a, - 0x18, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, + 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x36, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, + 0x66, 0x6f, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x54, 0x0a, 0x1b, + 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, + 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, + 0x66, 0x6f, 0x22, 0x48, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, + 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, + 0x72, 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x22, 0x5a, 0x0a, 0x21, + 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, + 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, + 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xc7, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, 0x63, + 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x4f, + 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, + 0x6e, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, + 0x6e, 0x69, 0x63, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x70, 0x33, 0x39, 0x5f, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x69, 0x70, 0x33, 0x39, + 0x50, 0x61, 0x73, 0x73, 0x77, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x22, 0x4e, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, + 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, + 0x66, 0x6f, 0x22, 0x3c, 0x0a, 0x14, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, + 0x6d, 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, + 0x22, 0x71, 0x0a, 0x15, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, - 0x22, 0x36, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x54, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4b, - 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, - 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x48, - 0x0a, 0x20, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, - 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, - 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x22, 0x5a, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x4b, - 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, - 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xc7, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, + 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, 0x61, 0x73, 0x50, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x22, 0x3e, 0x0a, 0x16, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, - 0x68, 0x33, 0x32, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x12, - 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x70, 0x33, 0x39, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x69, 0x70, 0x33, 0x39, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x4e, - 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, - 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x3c, - 0x0a, 0x14, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, - 0x72, 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x22, 0x71, 0x0a, 0x15, - 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, - 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, - 0x68, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0b, 0x68, 0x61, 0x73, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, - 0x19, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x74, 0x0a, 0x18, 0x47, 0x65, - 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, - 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, - 0x0c, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, 0x61, 0x73, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x22, 0x2f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x68, 0x33, 0x32, 0x22, 0x73, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, + 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, + 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, 0x61, 0x73, + 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x74, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, + 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, + 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, 0x61, + 0x73, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x36, 0x0a, 0x1a, 0x47, 0x65, 0x74, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x22, 0x5d, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, - 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x22, 0x7d, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, - 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x12, 0x1a, - 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6b, - 0x69, 0x70, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, - 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x22, 0x27, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x46, 0x0a, 0x0d, 0x52, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, - 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x22, 0x28, 0x0a, 0x0e, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x51, 0x0a, 0x0c, 0x51, - 0x45, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1e, - 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x27, - 0x0a, 0x0d, 0x51, 0x45, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x66, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x43, 0x61, - 0x6c, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, - 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, - 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6e, 0x63, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x66, 0x6e, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, - 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x22, - 0xb4, 0x01, 0x0a, 0x0b, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x17, 0x0a, 0x07, 0x67, 0x61, 0x73, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x67, 0x61, 0x73, 0x46, 0x65, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, - 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x52, 0x09, 0x67, 0x61, - 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, - 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x32, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, - 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6c, 0x6c, - 0x52, 0x04, 0x4d, 0x73, 0x67, 0x73, 0x22, 0x26, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x3c, - 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, - 0x6f, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x22, 0xb4, 0x01, 0x0a, - 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, - 0x67, 0x61, 0x73, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, - 0x61, 0x73, 0x46, 0x65, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, - 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, - 0x6e, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x6c, 0x6c, - 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0d, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x32, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x73, 0x22, 0x77, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x04, 0x4d, - 0x73, 0x67, 0x73, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x36, 0x0a, 0x06, 0x4d, 0x73, 0x67, 0x52, 0x75, 0x6e, 0x12, 0x18, 0x0a, - 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x22, 0xb2, 0x01, 0x0a, 0x0a, - 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, - 0x73, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x73, - 0x46, 0x65, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, - 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, - 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, - 0x04, 0x6d, 0x73, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x61, - 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x75, 0x6e, 0x52, 0x04, 0x4d, 0x73, 0x67, 0x73, - 0x22, 0x25, 0x0a, 0x0b, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x29, 0x0a, 0x0e, 0x4d, 0x61, 0x6b, 0x65, 0x54, - 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, - 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x4a, 0x73, - 0x6f, 0x6e, 0x22, 0x78, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, - 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x31, 0x0a, 0x0e, - 0x53, 0x69, 0x67, 0x6e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, - 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, - 0x3b, 0x0a, 0x18, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x43, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0e, 0x73, - 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x33, 0x0a, 0x19, - 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x22, 0x32, 0x0a, 0x16, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x42, 0x65, - 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x40, 0x0a, 0x17, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x41, 0x0a, 0x18, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x65, 0x63, - 0x68, 0x33, 0x32, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x35, 0x0a, 0x19, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x22, 0x38, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, - 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1a, 0x0a, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x22, 0x37, 0x0a, 0x1b, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, - 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2b, 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, - 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x65, - 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x47, 0x72, 0x65, - 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x28, 0x0a, 0x12, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x22, - 0x31, 0x0a, 0x13, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, - 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x47, 0x72, 0x65, 0x65, 0x74, 0x69, - 0x6e, 0x67, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x67, 0x6e, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, + 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x61, 0x73, 0x5f, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x68, + 0x61, 0x73, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x2f, 0x0a, 0x13, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x5d, 0x0a, 0x14, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, + 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x61, 0x6e, 0x64, + 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0b, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x7d, 0x0a, 0x14, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, + 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, + 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, + 0x77, 0x6f, 0x72, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x6b, 0x69, + 0x70, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x36, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x27, 0x0a, 0x0d, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x22, 0x46, 0x0a, 0x0d, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x28, 0x0a, 0x0e, 0x52, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x51, 0x0a, 0x0c, 0x51, 0x45, 0x76, 0x61, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, + 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x27, 0x0a, 0x0d, 0x51, 0x45, 0x76, 0x61, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x22, 0x66, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x21, 0x0a, 0x0c, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, + 0x10, 0x0a, 0x03, 0x66, 0x6e, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x6e, + 0x63, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x22, 0xb4, 0x01, 0x0a, 0x0b, 0x43, 0x61, + 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x73, + 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x73, 0x46, + 0x65, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, + 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x04, + 0x6d, 0x73, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, + 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x04, 0x4d, 0x73, 0x67, 0x73, + 0x22, 0x26, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x3c, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x53, + 0x65, 0x6e, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x6f, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x22, 0xb4, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x73, 0x5f, 0x66, 0x65, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x73, 0x46, 0x65, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x12, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, + 0x6d, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x61, 0x6c, 0x6c, + 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x04, 0x6d, 0x73, 0x67, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, + 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x04, 0x4d, 0x73, 0x67, 0x73, 0x22, 0x0e, 0x0a, + 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x0a, + 0x06, 0x4d, 0x73, 0x67, 0x52, 0x75, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x73, 0x65, 0x6e, 0x64, 0x22, 0xb2, 0x01, 0x0a, 0x0a, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x73, 0x5f, 0x66, 0x65, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x73, 0x46, 0x65, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x12, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, + 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, + 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x52, 0x75, 0x6e, 0x52, 0x04, 0x4d, 0x73, 0x67, 0x73, 0x22, 0x25, 0x0a, 0x0b, 0x52, 0x75, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x22, 0x29, 0x0a, 0x0e, 0x4d, 0x61, 0x6b, 0x65, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x4a, 0x73, 0x6f, 0x6e, 0x22, 0x92, 0x01, 0x0a, + 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, + 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x74, 0x78, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, + 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x22, 0x31, 0x0a, 0x0e, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x78, + 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x78, 0x5f, + 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x18, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, + 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1f, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x6a, 0x73, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, + 0x6e, 0x22, 0x33, 0x0a, 0x19, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x32, 0x0a, 0x16, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x40, 0x0a, 0x17, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, + 0x65, 0x63, 0x68, 0x33, 0x32, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x41, 0x0a, 0x18, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x65, 0x63, 0x68, 0x33, + 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x65, 0x63, 0x68, + 0x33, 0x32, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, + 0x35, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x65, + 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x38, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, + 0x22, 0x37, 0x0a, 0x1b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x4d, + 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, + 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2b, 0x0a, + 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x47, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x28, 0x0a, 0x12, 0x48, 0x65, + 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x13, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, + 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x47, + 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6e, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x67, 0x6e, + 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x67, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3924,7 +4184,7 @@ func file_gnonativetypes_proto_rawDescGZIP() []byte { return file_gnonativetypes_proto_rawDescData } -var file_gnonativetypes_proto_msgTypes = make([]protoimpl.MessageInfo, 71) +var file_gnonativetypes_proto_msgTypes = make([]protoimpl.MessageInfo, 75) var file_gnonativetypes_proto_goTypes = []any{ (*SetRemoteRequest)(nil), // 0: land.gno.gnonative.v1.SetRemoteRequest (*SetRemoteResponse)(nil), // 1: land.gno.gnonative.v1.SetRemoteResponse @@ -3961,42 +4221,46 @@ var file_gnonativetypes_proto_goTypes = []any{ (*CreateAccountResponse)(nil), // 32: land.gno.gnonative.v1.CreateAccountResponse (*SelectAccountRequest)(nil), // 33: land.gno.gnonative.v1.SelectAccountRequest (*SelectAccountResponse)(nil), // 34: land.gno.gnonative.v1.SelectAccountResponse - (*GetActiveAccountRequest)(nil), // 35: land.gno.gnonative.v1.GetActiveAccountRequest - (*GetActiveAccountResponse)(nil), // 36: land.gno.gnonative.v1.GetActiveAccountResponse - (*QueryAccountRequest)(nil), // 37: land.gno.gnonative.v1.QueryAccountRequest - (*QueryAccountResponse)(nil), // 38: land.gno.gnonative.v1.QueryAccountResponse - (*DeleteAccountRequest)(nil), // 39: land.gno.gnonative.v1.DeleteAccountRequest - (*DeleteAccountResponse)(nil), // 40: land.gno.gnonative.v1.DeleteAccountResponse - (*QueryRequest)(nil), // 41: land.gno.gnonative.v1.QueryRequest - (*QueryResponse)(nil), // 42: land.gno.gnonative.v1.QueryResponse - (*RenderRequest)(nil), // 43: land.gno.gnonative.v1.RenderRequest - (*RenderResponse)(nil), // 44: land.gno.gnonative.v1.RenderResponse - (*QEvalRequest)(nil), // 45: land.gno.gnonative.v1.QEvalRequest - (*QEvalResponse)(nil), // 46: land.gno.gnonative.v1.QEvalResponse - (*MsgCall)(nil), // 47: land.gno.gnonative.v1.MsgCall - (*CallRequest)(nil), // 48: land.gno.gnonative.v1.CallRequest - (*CallResponse)(nil), // 49: land.gno.gnonative.v1.CallResponse - (*MsgSend)(nil), // 50: land.gno.gnonative.v1.MsgSend - (*SendRequest)(nil), // 51: land.gno.gnonative.v1.SendRequest - (*SendResponse)(nil), // 52: land.gno.gnonative.v1.SendResponse - (*MsgRun)(nil), // 53: land.gno.gnonative.v1.MsgRun - (*RunRequest)(nil), // 54: land.gno.gnonative.v1.RunRequest - (*RunResponse)(nil), // 55: land.gno.gnonative.v1.RunResponse - (*MakeTxResponse)(nil), // 56: land.gno.gnonative.v1.MakeTxResponse - (*SignTxRequest)(nil), // 57: land.gno.gnonative.v1.SignTxRequest - (*SignTxResponse)(nil), // 58: land.gno.gnonative.v1.SignTxResponse - (*BroadcastTxCommitRequest)(nil), // 59: land.gno.gnonative.v1.BroadcastTxCommitRequest - (*BroadcastTxCommitResponse)(nil), // 60: land.gno.gnonative.v1.BroadcastTxCommitResponse - (*AddressToBech32Request)(nil), // 61: land.gno.gnonative.v1.AddressToBech32Request - (*AddressToBech32Response)(nil), // 62: land.gno.gnonative.v1.AddressToBech32Response - (*AddressFromBech32Request)(nil), // 63: land.gno.gnonative.v1.AddressFromBech32Request - (*AddressFromBech32Response)(nil), // 64: land.gno.gnonative.v1.AddressFromBech32Response - (*AddressFromMnemonicRequest)(nil), // 65: land.gno.gnonative.v1.AddressFromMnemonicRequest - (*AddressFromMnemonicResponse)(nil), // 66: land.gno.gnonative.v1.AddressFromMnemonicResponse - (*HelloRequest)(nil), // 67: land.gno.gnonative.v1.HelloRequest - (*HelloResponse)(nil), // 68: land.gno.gnonative.v1.HelloResponse - (*HelloStreamRequest)(nil), // 69: land.gno.gnonative.v1.HelloStreamRequest - (*HelloStreamResponse)(nil), // 70: land.gno.gnonative.v1.HelloStreamResponse + (*ActivateAccountRequest)(nil), // 35: land.gno.gnonative.v1.ActivateAccountRequest + (*ActivateAccountResponse)(nil), // 36: land.gno.gnonative.v1.ActivateAccountResponse + (*GetActiveAccountRequest)(nil), // 37: land.gno.gnonative.v1.GetActiveAccountRequest + (*GetActiveAccountResponse)(nil), // 38: land.gno.gnonative.v1.GetActiveAccountResponse + (*GetActivatedAccountRequest)(nil), // 39: land.gno.gnonative.v1.GetActivatedAccountRequest + (*GetActivatedAccountResponse)(nil), // 40: land.gno.gnonative.v1.GetActivatedAccountResponse + (*QueryAccountRequest)(nil), // 41: land.gno.gnonative.v1.QueryAccountRequest + (*QueryAccountResponse)(nil), // 42: land.gno.gnonative.v1.QueryAccountResponse + (*DeleteAccountRequest)(nil), // 43: land.gno.gnonative.v1.DeleteAccountRequest + (*DeleteAccountResponse)(nil), // 44: land.gno.gnonative.v1.DeleteAccountResponse + (*QueryRequest)(nil), // 45: land.gno.gnonative.v1.QueryRequest + (*QueryResponse)(nil), // 46: land.gno.gnonative.v1.QueryResponse + (*RenderRequest)(nil), // 47: land.gno.gnonative.v1.RenderRequest + (*RenderResponse)(nil), // 48: land.gno.gnonative.v1.RenderResponse + (*QEvalRequest)(nil), // 49: land.gno.gnonative.v1.QEvalRequest + (*QEvalResponse)(nil), // 50: land.gno.gnonative.v1.QEvalResponse + (*MsgCall)(nil), // 51: land.gno.gnonative.v1.MsgCall + (*CallRequest)(nil), // 52: land.gno.gnonative.v1.CallRequest + (*CallResponse)(nil), // 53: land.gno.gnonative.v1.CallResponse + (*MsgSend)(nil), // 54: land.gno.gnonative.v1.MsgSend + (*SendRequest)(nil), // 55: land.gno.gnonative.v1.SendRequest + (*SendResponse)(nil), // 56: land.gno.gnonative.v1.SendResponse + (*MsgRun)(nil), // 57: land.gno.gnonative.v1.MsgRun + (*RunRequest)(nil), // 58: land.gno.gnonative.v1.RunRequest + (*RunResponse)(nil), // 59: land.gno.gnonative.v1.RunResponse + (*MakeTxResponse)(nil), // 60: land.gno.gnonative.v1.MakeTxResponse + (*SignTxRequest)(nil), // 61: land.gno.gnonative.v1.SignTxRequest + (*SignTxResponse)(nil), // 62: land.gno.gnonative.v1.SignTxResponse + (*BroadcastTxCommitRequest)(nil), // 63: land.gno.gnonative.v1.BroadcastTxCommitRequest + (*BroadcastTxCommitResponse)(nil), // 64: land.gno.gnonative.v1.BroadcastTxCommitResponse + (*AddressToBech32Request)(nil), // 65: land.gno.gnonative.v1.AddressToBech32Request + (*AddressToBech32Response)(nil), // 66: land.gno.gnonative.v1.AddressToBech32Response + (*AddressFromBech32Request)(nil), // 67: land.gno.gnonative.v1.AddressFromBech32Request + (*AddressFromBech32Response)(nil), // 68: land.gno.gnonative.v1.AddressFromBech32Response + (*AddressFromMnemonicRequest)(nil), // 69: land.gno.gnonative.v1.AddressFromMnemonicRequest + (*AddressFromMnemonicResponse)(nil), // 70: land.gno.gnonative.v1.AddressFromMnemonicResponse + (*HelloRequest)(nil), // 71: land.gno.gnonative.v1.HelloRequest + (*HelloResponse)(nil), // 72: land.gno.gnonative.v1.HelloResponse + (*HelloStreamRequest)(nil), // 73: land.gno.gnonative.v1.HelloStreamRequest + (*HelloStreamResponse)(nil), // 74: land.gno.gnonative.v1.HelloStreamResponse } var file_gnonativetypes_proto_depIdxs = []int32{ 15, // 0: land.gno.gnonative.v1.BaseAccount.coins:type_name -> land.gno.gnonative.v1.Coin @@ -4006,16 +4270,18 @@ var file_gnonativetypes_proto_depIdxs = []int32{ 14, // 4: land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse.key:type_name -> land.gno.gnonative.v1.KeyInfo 14, // 5: land.gno.gnonative.v1.CreateAccountResponse.key:type_name -> land.gno.gnonative.v1.KeyInfo 14, // 6: land.gno.gnonative.v1.SelectAccountResponse.key:type_name -> land.gno.gnonative.v1.KeyInfo - 14, // 7: land.gno.gnonative.v1.GetActiveAccountResponse.key:type_name -> land.gno.gnonative.v1.KeyInfo - 16, // 8: land.gno.gnonative.v1.QueryAccountResponse.account_info:type_name -> land.gno.gnonative.v1.BaseAccount - 47, // 9: land.gno.gnonative.v1.CallRequest.msgs:type_name -> land.gno.gnonative.v1.MsgCall - 50, // 10: land.gno.gnonative.v1.SendRequest.msgs:type_name -> land.gno.gnonative.v1.MsgSend - 53, // 11: land.gno.gnonative.v1.RunRequest.msgs:type_name -> land.gno.gnonative.v1.MsgRun - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 14, // 7: land.gno.gnonative.v1.ActivateAccountResponse.key:type_name -> land.gno.gnonative.v1.KeyInfo + 14, // 8: land.gno.gnonative.v1.GetActiveAccountResponse.key:type_name -> land.gno.gnonative.v1.KeyInfo + 14, // 9: land.gno.gnonative.v1.GetActivatedAccountResponse.key:type_name -> land.gno.gnonative.v1.KeyInfo + 16, // 10: land.gno.gnonative.v1.QueryAccountResponse.account_info:type_name -> land.gno.gnonative.v1.BaseAccount + 51, // 11: land.gno.gnonative.v1.CallRequest.msgs:type_name -> land.gno.gnonative.v1.MsgCall + 54, // 12: land.gno.gnonative.v1.SendRequest.msgs:type_name -> land.gno.gnonative.v1.MsgSend + 57, // 13: land.gno.gnonative.v1.RunRequest.msgs:type_name -> land.gno.gnonative.v1.MsgRun + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } func init() { file_gnonativetypes_proto_init() } @@ -4445,7 +4711,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[35].Exporter = func(v any, i int) any { - switch v := v.(*GetActiveAccountRequest); i { + switch v := v.(*ActivateAccountRequest); i { case 0: return &v.state case 1: @@ -4457,7 +4723,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[36].Exporter = func(v any, i int) any { - switch v := v.(*GetActiveAccountResponse); i { + switch v := v.(*ActivateAccountResponse); i { case 0: return &v.state case 1: @@ -4469,7 +4735,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[37].Exporter = func(v any, i int) any { - switch v := v.(*QueryAccountRequest); i { + switch v := v.(*GetActiveAccountRequest); i { case 0: return &v.state case 1: @@ -4481,7 +4747,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[38].Exporter = func(v any, i int) any { - switch v := v.(*QueryAccountResponse); i { + switch v := v.(*GetActiveAccountResponse); i { case 0: return &v.state case 1: @@ -4493,7 +4759,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[39].Exporter = func(v any, i int) any { - switch v := v.(*DeleteAccountRequest); i { + switch v := v.(*GetActivatedAccountRequest); i { case 0: return &v.state case 1: @@ -4505,7 +4771,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[40].Exporter = func(v any, i int) any { - switch v := v.(*DeleteAccountResponse); i { + switch v := v.(*GetActivatedAccountResponse); i { case 0: return &v.state case 1: @@ -4517,7 +4783,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[41].Exporter = func(v any, i int) any { - switch v := v.(*QueryRequest); i { + switch v := v.(*QueryAccountRequest); i { case 0: return &v.state case 1: @@ -4529,7 +4795,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[42].Exporter = func(v any, i int) any { - switch v := v.(*QueryResponse); i { + switch v := v.(*QueryAccountResponse); i { case 0: return &v.state case 1: @@ -4541,7 +4807,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[43].Exporter = func(v any, i int) any { - switch v := v.(*RenderRequest); i { + switch v := v.(*DeleteAccountRequest); i { case 0: return &v.state case 1: @@ -4553,7 +4819,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[44].Exporter = func(v any, i int) any { - switch v := v.(*RenderResponse); i { + switch v := v.(*DeleteAccountResponse); i { case 0: return &v.state case 1: @@ -4565,7 +4831,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[45].Exporter = func(v any, i int) any { - switch v := v.(*QEvalRequest); i { + switch v := v.(*QueryRequest); i { case 0: return &v.state case 1: @@ -4577,7 +4843,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[46].Exporter = func(v any, i int) any { - switch v := v.(*QEvalResponse); i { + switch v := v.(*QueryResponse); i { case 0: return &v.state case 1: @@ -4589,7 +4855,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[47].Exporter = func(v any, i int) any { - switch v := v.(*MsgCall); i { + switch v := v.(*RenderRequest); i { case 0: return &v.state case 1: @@ -4601,7 +4867,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[48].Exporter = func(v any, i int) any { - switch v := v.(*CallRequest); i { + switch v := v.(*RenderResponse); i { case 0: return &v.state case 1: @@ -4613,7 +4879,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[49].Exporter = func(v any, i int) any { - switch v := v.(*CallResponse); i { + switch v := v.(*QEvalRequest); i { case 0: return &v.state case 1: @@ -4625,7 +4891,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[50].Exporter = func(v any, i int) any { - switch v := v.(*MsgSend); i { + switch v := v.(*QEvalResponse); i { case 0: return &v.state case 1: @@ -4637,7 +4903,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[51].Exporter = func(v any, i int) any { - switch v := v.(*SendRequest); i { + switch v := v.(*MsgCall); i { case 0: return &v.state case 1: @@ -4649,7 +4915,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[52].Exporter = func(v any, i int) any { - switch v := v.(*SendResponse); i { + switch v := v.(*CallRequest); i { case 0: return &v.state case 1: @@ -4661,7 +4927,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[53].Exporter = func(v any, i int) any { - switch v := v.(*MsgRun); i { + switch v := v.(*CallResponse); i { case 0: return &v.state case 1: @@ -4673,7 +4939,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[54].Exporter = func(v any, i int) any { - switch v := v.(*RunRequest); i { + switch v := v.(*MsgSend); i { case 0: return &v.state case 1: @@ -4685,7 +4951,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[55].Exporter = func(v any, i int) any { - switch v := v.(*RunResponse); i { + switch v := v.(*SendRequest); i { case 0: return &v.state case 1: @@ -4697,7 +4963,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[56].Exporter = func(v any, i int) any { - switch v := v.(*MakeTxResponse); i { + switch v := v.(*SendResponse); i { case 0: return &v.state case 1: @@ -4709,7 +4975,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[57].Exporter = func(v any, i int) any { - switch v := v.(*SignTxRequest); i { + switch v := v.(*MsgRun); i { case 0: return &v.state case 1: @@ -4721,7 +4987,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[58].Exporter = func(v any, i int) any { - switch v := v.(*SignTxResponse); i { + switch v := v.(*RunRequest); i { case 0: return &v.state case 1: @@ -4733,7 +4999,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[59].Exporter = func(v any, i int) any { - switch v := v.(*BroadcastTxCommitRequest); i { + switch v := v.(*RunResponse); i { case 0: return &v.state case 1: @@ -4745,7 +5011,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[60].Exporter = func(v any, i int) any { - switch v := v.(*BroadcastTxCommitResponse); i { + switch v := v.(*MakeTxResponse); i { case 0: return &v.state case 1: @@ -4757,7 +5023,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[61].Exporter = func(v any, i int) any { - switch v := v.(*AddressToBech32Request); i { + switch v := v.(*SignTxRequest); i { case 0: return &v.state case 1: @@ -4769,7 +5035,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[62].Exporter = func(v any, i int) any { - switch v := v.(*AddressToBech32Response); i { + switch v := v.(*SignTxResponse); i { case 0: return &v.state case 1: @@ -4781,7 +5047,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[63].Exporter = func(v any, i int) any { - switch v := v.(*AddressFromBech32Request); i { + switch v := v.(*BroadcastTxCommitRequest); i { case 0: return &v.state case 1: @@ -4793,7 +5059,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[64].Exporter = func(v any, i int) any { - switch v := v.(*AddressFromBech32Response); i { + switch v := v.(*BroadcastTxCommitResponse); i { case 0: return &v.state case 1: @@ -4805,7 +5071,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[65].Exporter = func(v any, i int) any { - switch v := v.(*AddressFromMnemonicRequest); i { + switch v := v.(*AddressToBech32Request); i { case 0: return &v.state case 1: @@ -4817,7 +5083,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[66].Exporter = func(v any, i int) any { - switch v := v.(*AddressFromMnemonicResponse); i { + switch v := v.(*AddressToBech32Response); i { case 0: return &v.state case 1: @@ -4829,7 +5095,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[67].Exporter = func(v any, i int) any { - switch v := v.(*HelloRequest); i { + switch v := v.(*AddressFromBech32Request); i { case 0: return &v.state case 1: @@ -4841,7 +5107,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[68].Exporter = func(v any, i int) any { - switch v := v.(*HelloResponse); i { + switch v := v.(*AddressFromBech32Response); i { case 0: return &v.state case 1: @@ -4853,7 +5119,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[69].Exporter = func(v any, i int) any { - switch v := v.(*HelloStreamRequest); i { + switch v := v.(*AddressFromMnemonicRequest); i { case 0: return &v.state case 1: @@ -4865,6 +5131,54 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[70].Exporter = func(v any, i int) any { + switch v := v.(*AddressFromMnemonicResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_gnonativetypes_proto_msgTypes[71].Exporter = func(v any, i int) any { + switch v := v.(*HelloRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_gnonativetypes_proto_msgTypes[72].Exporter = func(v any, i int) any { + switch v := v.(*HelloResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_gnonativetypes_proto_msgTypes[73].Exporter = func(v any, i int) any { + switch v := v.(*HelloStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_gnonativetypes_proto_msgTypes[74].Exporter = func(v any, i int) any { switch v := v.(*HelloStreamResponse); i { case 0: return &v.state @@ -4883,7 +5197,7 @@ func file_gnonativetypes_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_gnonativetypes_proto_rawDesc, NumEnums: 0, - NumMessages: 71, + NumMessages: 75, NumExtensions: 0, NumServices: 0, }, diff --git a/api/gen/go/rpc.pb.go b/api/gen/go/rpc.pb.go index df720c95..448e180c 100644 --- a/api/gen/go/rpc.pb.go +++ b/api/gen/go/rpc.pb.go @@ -43,7 +43,7 @@ const ( ErrCode_ErrCryptoKeyTypeUnknown ErrCode = 150 // ErrCryptoKeyNotFound indicates that the doesn't exist in the keybase ErrCode_ErrCryptoKeyNotFound ErrCode = 151 - // ErrNoActiveAccount indicates that no active account has been set with SelectAccount + // ErrNoActiveAccount indicates that no account with the given address has been activated with ActivateAccount ErrCode_ErrNoActiveAccount ErrCode = 152 ErrCode_ErrRunGRPCServer ErrCode = 153 // ErrDecryptionFailed indicates a decryption failure including a wrong password @@ -302,7 +302,7 @@ var file_rpc_proto_rawDesc = []byte{ 0x6b, 0x67, 0x50, 0x61, 0x74, 0x68, 0x10, 0xd9, 0x01, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6d, 0x74, 0x10, 0xda, 0x01, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x45, 0x78, 0x70, 0x72, - 0x10, 0xdb, 0x01, 0x32, 0xd4, 0x1c, 0x0a, 0x10, 0x47, 0x6e, 0x6f, 0x4e, 0x61, 0x74, 0x69, 0x76, + 0x10, 0xdb, 0x01, 0x32, 0xc4, 0x1e, 0x0a, 0x10, 0x47, 0x6e, 0x6f, 0x4e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, @@ -402,27 +402,42 @@ var file_rpc_proto_rawDesc = []byte{ 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x29, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, - 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, - 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, - 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x12, 0x2c, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x6c, 0x61, + 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x6c, 0x61, 0x6e, + 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0b, 0x53, 0x65, + 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x29, 0x2e, 0x6c, 0x61, 0x6e, 0x64, + 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, + 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, + 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x6d, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x12, 0x2c, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, + 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2d, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x73, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, + 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, + 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x31, 0x2e, 0x6c, 0x61, + 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, - 0x10, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x2e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, - 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, - 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, @@ -569,57 +584,61 @@ var file_rpc_proto_goTypes = []any{ (*GetKeyInfoByNameOrAddressRequest)(nil), // 13: land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest (*CreateAccountRequest)(nil), // 14: land.gno.gnonative.v1.CreateAccountRequest (*SelectAccountRequest)(nil), // 15: land.gno.gnonative.v1.SelectAccountRequest - (*SetPasswordRequest)(nil), // 16: land.gno.gnonative.v1.SetPasswordRequest - (*UpdatePasswordRequest)(nil), // 17: land.gno.gnonative.v1.UpdatePasswordRequest - (*GetActiveAccountRequest)(nil), // 18: land.gno.gnonative.v1.GetActiveAccountRequest - (*QueryAccountRequest)(nil), // 19: land.gno.gnonative.v1.QueryAccountRequest - (*DeleteAccountRequest)(nil), // 20: land.gno.gnonative.v1.DeleteAccountRequest - (*QueryRequest)(nil), // 21: land.gno.gnonative.v1.QueryRequest - (*RenderRequest)(nil), // 22: land.gno.gnonative.v1.RenderRequest - (*QEvalRequest)(nil), // 23: land.gno.gnonative.v1.QEvalRequest - (*CallRequest)(nil), // 24: land.gno.gnonative.v1.CallRequest - (*SendRequest)(nil), // 25: land.gno.gnonative.v1.SendRequest - (*RunRequest)(nil), // 26: land.gno.gnonative.v1.RunRequest - (*SignTxRequest)(nil), // 27: land.gno.gnonative.v1.SignTxRequest - (*BroadcastTxCommitRequest)(nil), // 28: land.gno.gnonative.v1.BroadcastTxCommitRequest - (*AddressToBech32Request)(nil), // 29: land.gno.gnonative.v1.AddressToBech32Request - (*AddressFromBech32Request)(nil), // 30: land.gno.gnonative.v1.AddressFromBech32Request - (*AddressFromMnemonicRequest)(nil), // 31: land.gno.gnonative.v1.AddressFromMnemonicRequest - (*HelloRequest)(nil), // 32: land.gno.gnonative.v1.HelloRequest - (*HelloStreamRequest)(nil), // 33: land.gno.gnonative.v1.HelloStreamRequest - (*SetRemoteResponse)(nil), // 34: land.gno.gnonative.v1.SetRemoteResponse - (*GetRemoteResponse)(nil), // 35: land.gno.gnonative.v1.GetRemoteResponse - (*SetChainIDResponse)(nil), // 36: land.gno.gnonative.v1.SetChainIDResponse - (*GetChainIDResponse)(nil), // 37: land.gno.gnonative.v1.GetChainIDResponse - (*GenerateRecoveryPhraseResponse)(nil), // 38: land.gno.gnonative.v1.GenerateRecoveryPhraseResponse - (*ListKeyInfoResponse)(nil), // 39: land.gno.gnonative.v1.ListKeyInfoResponse - (*HasKeyByNameResponse)(nil), // 40: land.gno.gnonative.v1.HasKeyByNameResponse - (*HasKeyByAddressResponse)(nil), // 41: land.gno.gnonative.v1.HasKeyByAddressResponse - (*HasKeyByNameOrAddressResponse)(nil), // 42: land.gno.gnonative.v1.HasKeyByNameOrAddressResponse - (*GetKeyInfoByNameResponse)(nil), // 43: land.gno.gnonative.v1.GetKeyInfoByNameResponse - (*GetKeyInfoByAddressResponse)(nil), // 44: land.gno.gnonative.v1.GetKeyInfoByAddressResponse - (*GetKeyInfoByNameOrAddressResponse)(nil), // 45: land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse - (*CreateAccountResponse)(nil), // 46: land.gno.gnonative.v1.CreateAccountResponse - (*SelectAccountResponse)(nil), // 47: land.gno.gnonative.v1.SelectAccountResponse - (*SetPasswordResponse)(nil), // 48: land.gno.gnonative.v1.SetPasswordResponse - (*UpdatePasswordResponse)(nil), // 49: land.gno.gnonative.v1.UpdatePasswordResponse - (*GetActiveAccountResponse)(nil), // 50: land.gno.gnonative.v1.GetActiveAccountResponse - (*QueryAccountResponse)(nil), // 51: land.gno.gnonative.v1.QueryAccountResponse - (*DeleteAccountResponse)(nil), // 52: land.gno.gnonative.v1.DeleteAccountResponse - (*QueryResponse)(nil), // 53: land.gno.gnonative.v1.QueryResponse - (*RenderResponse)(nil), // 54: land.gno.gnonative.v1.RenderResponse - (*QEvalResponse)(nil), // 55: land.gno.gnonative.v1.QEvalResponse - (*CallResponse)(nil), // 56: land.gno.gnonative.v1.CallResponse - (*SendResponse)(nil), // 57: land.gno.gnonative.v1.SendResponse - (*RunResponse)(nil), // 58: land.gno.gnonative.v1.RunResponse - (*MakeTxResponse)(nil), // 59: land.gno.gnonative.v1.MakeTxResponse - (*SignTxResponse)(nil), // 60: land.gno.gnonative.v1.SignTxResponse - (*BroadcastTxCommitResponse)(nil), // 61: land.gno.gnonative.v1.BroadcastTxCommitResponse - (*AddressToBech32Response)(nil), // 62: land.gno.gnonative.v1.AddressToBech32Response - (*AddressFromBech32Response)(nil), // 63: land.gno.gnonative.v1.AddressFromBech32Response - (*AddressFromMnemonicResponse)(nil), // 64: land.gno.gnonative.v1.AddressFromMnemonicResponse - (*HelloResponse)(nil), // 65: land.gno.gnonative.v1.HelloResponse - (*HelloStreamResponse)(nil), // 66: land.gno.gnonative.v1.HelloStreamResponse + (*ActivateAccountRequest)(nil), // 16: land.gno.gnonative.v1.ActivateAccountRequest + (*SetPasswordRequest)(nil), // 17: land.gno.gnonative.v1.SetPasswordRequest + (*UpdatePasswordRequest)(nil), // 18: land.gno.gnonative.v1.UpdatePasswordRequest + (*GetActiveAccountRequest)(nil), // 19: land.gno.gnonative.v1.GetActiveAccountRequest + (*GetActivatedAccountRequest)(nil), // 20: land.gno.gnonative.v1.GetActivatedAccountRequest + (*QueryAccountRequest)(nil), // 21: land.gno.gnonative.v1.QueryAccountRequest + (*DeleteAccountRequest)(nil), // 22: land.gno.gnonative.v1.DeleteAccountRequest + (*QueryRequest)(nil), // 23: land.gno.gnonative.v1.QueryRequest + (*RenderRequest)(nil), // 24: land.gno.gnonative.v1.RenderRequest + (*QEvalRequest)(nil), // 25: land.gno.gnonative.v1.QEvalRequest + (*CallRequest)(nil), // 26: land.gno.gnonative.v1.CallRequest + (*SendRequest)(nil), // 27: land.gno.gnonative.v1.SendRequest + (*RunRequest)(nil), // 28: land.gno.gnonative.v1.RunRequest + (*SignTxRequest)(nil), // 29: land.gno.gnonative.v1.SignTxRequest + (*BroadcastTxCommitRequest)(nil), // 30: land.gno.gnonative.v1.BroadcastTxCommitRequest + (*AddressToBech32Request)(nil), // 31: land.gno.gnonative.v1.AddressToBech32Request + (*AddressFromBech32Request)(nil), // 32: land.gno.gnonative.v1.AddressFromBech32Request + (*AddressFromMnemonicRequest)(nil), // 33: land.gno.gnonative.v1.AddressFromMnemonicRequest + (*HelloRequest)(nil), // 34: land.gno.gnonative.v1.HelloRequest + (*HelloStreamRequest)(nil), // 35: land.gno.gnonative.v1.HelloStreamRequest + (*SetRemoteResponse)(nil), // 36: land.gno.gnonative.v1.SetRemoteResponse + (*GetRemoteResponse)(nil), // 37: land.gno.gnonative.v1.GetRemoteResponse + (*SetChainIDResponse)(nil), // 38: land.gno.gnonative.v1.SetChainIDResponse + (*GetChainIDResponse)(nil), // 39: land.gno.gnonative.v1.GetChainIDResponse + (*GenerateRecoveryPhraseResponse)(nil), // 40: land.gno.gnonative.v1.GenerateRecoveryPhraseResponse + (*ListKeyInfoResponse)(nil), // 41: land.gno.gnonative.v1.ListKeyInfoResponse + (*HasKeyByNameResponse)(nil), // 42: land.gno.gnonative.v1.HasKeyByNameResponse + (*HasKeyByAddressResponse)(nil), // 43: land.gno.gnonative.v1.HasKeyByAddressResponse + (*HasKeyByNameOrAddressResponse)(nil), // 44: land.gno.gnonative.v1.HasKeyByNameOrAddressResponse + (*GetKeyInfoByNameResponse)(nil), // 45: land.gno.gnonative.v1.GetKeyInfoByNameResponse + (*GetKeyInfoByAddressResponse)(nil), // 46: land.gno.gnonative.v1.GetKeyInfoByAddressResponse + (*GetKeyInfoByNameOrAddressResponse)(nil), // 47: land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse + (*CreateAccountResponse)(nil), // 48: land.gno.gnonative.v1.CreateAccountResponse + (*SelectAccountResponse)(nil), // 49: land.gno.gnonative.v1.SelectAccountResponse + (*ActivateAccountResponse)(nil), // 50: land.gno.gnonative.v1.ActivateAccountResponse + (*SetPasswordResponse)(nil), // 51: land.gno.gnonative.v1.SetPasswordResponse + (*UpdatePasswordResponse)(nil), // 52: land.gno.gnonative.v1.UpdatePasswordResponse + (*GetActiveAccountResponse)(nil), // 53: land.gno.gnonative.v1.GetActiveAccountResponse + (*GetActivatedAccountResponse)(nil), // 54: land.gno.gnonative.v1.GetActivatedAccountResponse + (*QueryAccountResponse)(nil), // 55: land.gno.gnonative.v1.QueryAccountResponse + (*DeleteAccountResponse)(nil), // 56: land.gno.gnonative.v1.DeleteAccountResponse + (*QueryResponse)(nil), // 57: land.gno.gnonative.v1.QueryResponse + (*RenderResponse)(nil), // 58: land.gno.gnonative.v1.RenderResponse + (*QEvalResponse)(nil), // 59: land.gno.gnonative.v1.QEvalResponse + (*CallResponse)(nil), // 60: land.gno.gnonative.v1.CallResponse + (*SendResponse)(nil), // 61: land.gno.gnonative.v1.SendResponse + (*RunResponse)(nil), // 62: land.gno.gnonative.v1.RunResponse + (*MakeTxResponse)(nil), // 63: land.gno.gnonative.v1.MakeTxResponse + (*SignTxResponse)(nil), // 64: land.gno.gnonative.v1.SignTxResponse + (*BroadcastTxCommitResponse)(nil), // 65: land.gno.gnonative.v1.BroadcastTxCommitResponse + (*AddressToBech32Response)(nil), // 66: land.gno.gnonative.v1.AddressToBech32Response + (*AddressFromBech32Response)(nil), // 67: land.gno.gnonative.v1.AddressFromBech32Response + (*AddressFromMnemonicResponse)(nil), // 68: land.gno.gnonative.v1.AddressFromMnemonicResponse + (*HelloResponse)(nil), // 69: land.gno.gnonative.v1.HelloResponse + (*HelloStreamResponse)(nil), // 70: land.gno.gnonative.v1.HelloStreamResponse } var file_rpc_proto_depIdxs = []int32{ 0, // 0: land.gno.gnonative.v1.ErrDetails.codes:type_name -> land.gno.gnonative.v1.ErrCode @@ -637,64 +656,68 @@ var file_rpc_proto_depIdxs = []int32{ 13, // 12: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress:input_type -> land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest 14, // 13: land.gno.gnonative.v1.GnoNativeService.CreateAccount:input_type -> land.gno.gnonative.v1.CreateAccountRequest 15, // 14: land.gno.gnonative.v1.GnoNativeService.SelectAccount:input_type -> land.gno.gnonative.v1.SelectAccountRequest - 16, // 15: land.gno.gnonative.v1.GnoNativeService.SetPassword:input_type -> land.gno.gnonative.v1.SetPasswordRequest - 17, // 16: land.gno.gnonative.v1.GnoNativeService.UpdatePassword:input_type -> land.gno.gnonative.v1.UpdatePasswordRequest - 18, // 17: land.gno.gnonative.v1.GnoNativeService.GetActiveAccount:input_type -> land.gno.gnonative.v1.GetActiveAccountRequest - 19, // 18: land.gno.gnonative.v1.GnoNativeService.QueryAccount:input_type -> land.gno.gnonative.v1.QueryAccountRequest - 20, // 19: land.gno.gnonative.v1.GnoNativeService.DeleteAccount:input_type -> land.gno.gnonative.v1.DeleteAccountRequest - 21, // 20: land.gno.gnonative.v1.GnoNativeService.Query:input_type -> land.gno.gnonative.v1.QueryRequest - 22, // 21: land.gno.gnonative.v1.GnoNativeService.Render:input_type -> land.gno.gnonative.v1.RenderRequest - 23, // 22: land.gno.gnonative.v1.GnoNativeService.QEval:input_type -> land.gno.gnonative.v1.QEvalRequest - 24, // 23: land.gno.gnonative.v1.GnoNativeService.Call:input_type -> land.gno.gnonative.v1.CallRequest - 25, // 24: land.gno.gnonative.v1.GnoNativeService.Send:input_type -> land.gno.gnonative.v1.SendRequest - 26, // 25: land.gno.gnonative.v1.GnoNativeService.Run:input_type -> land.gno.gnonative.v1.RunRequest - 24, // 26: land.gno.gnonative.v1.GnoNativeService.MakeCallTx:input_type -> land.gno.gnonative.v1.CallRequest - 25, // 27: land.gno.gnonative.v1.GnoNativeService.MakeSendTx:input_type -> land.gno.gnonative.v1.SendRequest - 26, // 28: land.gno.gnonative.v1.GnoNativeService.MakeRunTx:input_type -> land.gno.gnonative.v1.RunRequest - 27, // 29: land.gno.gnonative.v1.GnoNativeService.SignTx:input_type -> land.gno.gnonative.v1.SignTxRequest - 28, // 30: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:input_type -> land.gno.gnonative.v1.BroadcastTxCommitRequest - 29, // 31: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:input_type -> land.gno.gnonative.v1.AddressToBech32Request - 30, // 32: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:input_type -> land.gno.gnonative.v1.AddressFromBech32Request - 31, // 33: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:input_type -> land.gno.gnonative.v1.AddressFromMnemonicRequest - 32, // 34: land.gno.gnonative.v1.GnoNativeService.Hello:input_type -> land.gno.gnonative.v1.HelloRequest - 33, // 35: land.gno.gnonative.v1.GnoNativeService.HelloStream:input_type -> land.gno.gnonative.v1.HelloStreamRequest - 34, // 36: land.gno.gnonative.v1.GnoNativeService.SetRemote:output_type -> land.gno.gnonative.v1.SetRemoteResponse - 35, // 37: land.gno.gnonative.v1.GnoNativeService.GetRemote:output_type -> land.gno.gnonative.v1.GetRemoteResponse - 36, // 38: land.gno.gnonative.v1.GnoNativeService.SetChainID:output_type -> land.gno.gnonative.v1.SetChainIDResponse - 37, // 39: land.gno.gnonative.v1.GnoNativeService.GetChainID:output_type -> land.gno.gnonative.v1.GetChainIDResponse - 38, // 40: land.gno.gnonative.v1.GnoNativeService.GenerateRecoveryPhrase:output_type -> land.gno.gnonative.v1.GenerateRecoveryPhraseResponse - 39, // 41: land.gno.gnonative.v1.GnoNativeService.ListKeyInfo:output_type -> land.gno.gnonative.v1.ListKeyInfoResponse - 40, // 42: land.gno.gnonative.v1.GnoNativeService.HasKeyByName:output_type -> land.gno.gnonative.v1.HasKeyByNameResponse - 41, // 43: land.gno.gnonative.v1.GnoNativeService.HasKeyByAddress:output_type -> land.gno.gnonative.v1.HasKeyByAddressResponse - 42, // 44: land.gno.gnonative.v1.GnoNativeService.HasKeyByNameOrAddress:output_type -> land.gno.gnonative.v1.HasKeyByNameOrAddressResponse - 43, // 45: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByName:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameResponse - 44, // 46: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByAddressResponse - 45, // 47: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse - 46, // 48: land.gno.gnonative.v1.GnoNativeService.CreateAccount:output_type -> land.gno.gnonative.v1.CreateAccountResponse - 47, // 49: land.gno.gnonative.v1.GnoNativeService.SelectAccount:output_type -> land.gno.gnonative.v1.SelectAccountResponse - 48, // 50: land.gno.gnonative.v1.GnoNativeService.SetPassword:output_type -> land.gno.gnonative.v1.SetPasswordResponse - 49, // 51: land.gno.gnonative.v1.GnoNativeService.UpdatePassword:output_type -> land.gno.gnonative.v1.UpdatePasswordResponse - 50, // 52: land.gno.gnonative.v1.GnoNativeService.GetActiveAccount:output_type -> land.gno.gnonative.v1.GetActiveAccountResponse - 51, // 53: land.gno.gnonative.v1.GnoNativeService.QueryAccount:output_type -> land.gno.gnonative.v1.QueryAccountResponse - 52, // 54: land.gno.gnonative.v1.GnoNativeService.DeleteAccount:output_type -> land.gno.gnonative.v1.DeleteAccountResponse - 53, // 55: land.gno.gnonative.v1.GnoNativeService.Query:output_type -> land.gno.gnonative.v1.QueryResponse - 54, // 56: land.gno.gnonative.v1.GnoNativeService.Render:output_type -> land.gno.gnonative.v1.RenderResponse - 55, // 57: land.gno.gnonative.v1.GnoNativeService.QEval:output_type -> land.gno.gnonative.v1.QEvalResponse - 56, // 58: land.gno.gnonative.v1.GnoNativeService.Call:output_type -> land.gno.gnonative.v1.CallResponse - 57, // 59: land.gno.gnonative.v1.GnoNativeService.Send:output_type -> land.gno.gnonative.v1.SendResponse - 58, // 60: land.gno.gnonative.v1.GnoNativeService.Run:output_type -> land.gno.gnonative.v1.RunResponse - 59, // 61: land.gno.gnonative.v1.GnoNativeService.MakeCallTx:output_type -> land.gno.gnonative.v1.MakeTxResponse - 59, // 62: land.gno.gnonative.v1.GnoNativeService.MakeSendTx:output_type -> land.gno.gnonative.v1.MakeTxResponse - 59, // 63: land.gno.gnonative.v1.GnoNativeService.MakeRunTx:output_type -> land.gno.gnonative.v1.MakeTxResponse - 60, // 64: land.gno.gnonative.v1.GnoNativeService.SignTx:output_type -> land.gno.gnonative.v1.SignTxResponse - 61, // 65: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:output_type -> land.gno.gnonative.v1.BroadcastTxCommitResponse - 62, // 66: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:output_type -> land.gno.gnonative.v1.AddressToBech32Response - 63, // 67: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:output_type -> land.gno.gnonative.v1.AddressFromBech32Response - 64, // 68: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:output_type -> land.gno.gnonative.v1.AddressFromMnemonicResponse - 65, // 69: land.gno.gnonative.v1.GnoNativeService.Hello:output_type -> land.gno.gnonative.v1.HelloResponse - 66, // 70: land.gno.gnonative.v1.GnoNativeService.HelloStream:output_type -> land.gno.gnonative.v1.HelloStreamResponse - 36, // [36:71] is the sub-list for method output_type - 1, // [1:36] is the sub-list for method input_type + 16, // 15: land.gno.gnonative.v1.GnoNativeService.ActivateAccount:input_type -> land.gno.gnonative.v1.ActivateAccountRequest + 17, // 16: land.gno.gnonative.v1.GnoNativeService.SetPassword:input_type -> land.gno.gnonative.v1.SetPasswordRequest + 18, // 17: land.gno.gnonative.v1.GnoNativeService.UpdatePassword:input_type -> land.gno.gnonative.v1.UpdatePasswordRequest + 19, // 18: land.gno.gnonative.v1.GnoNativeService.GetActiveAccount:input_type -> land.gno.gnonative.v1.GetActiveAccountRequest + 20, // 19: land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount:input_type -> land.gno.gnonative.v1.GetActivatedAccountRequest + 21, // 20: land.gno.gnonative.v1.GnoNativeService.QueryAccount:input_type -> land.gno.gnonative.v1.QueryAccountRequest + 22, // 21: land.gno.gnonative.v1.GnoNativeService.DeleteAccount:input_type -> land.gno.gnonative.v1.DeleteAccountRequest + 23, // 22: land.gno.gnonative.v1.GnoNativeService.Query:input_type -> land.gno.gnonative.v1.QueryRequest + 24, // 23: land.gno.gnonative.v1.GnoNativeService.Render:input_type -> land.gno.gnonative.v1.RenderRequest + 25, // 24: land.gno.gnonative.v1.GnoNativeService.QEval:input_type -> land.gno.gnonative.v1.QEvalRequest + 26, // 25: land.gno.gnonative.v1.GnoNativeService.Call:input_type -> land.gno.gnonative.v1.CallRequest + 27, // 26: land.gno.gnonative.v1.GnoNativeService.Send:input_type -> land.gno.gnonative.v1.SendRequest + 28, // 27: land.gno.gnonative.v1.GnoNativeService.Run:input_type -> land.gno.gnonative.v1.RunRequest + 26, // 28: land.gno.gnonative.v1.GnoNativeService.MakeCallTx:input_type -> land.gno.gnonative.v1.CallRequest + 27, // 29: land.gno.gnonative.v1.GnoNativeService.MakeSendTx:input_type -> land.gno.gnonative.v1.SendRequest + 28, // 30: land.gno.gnonative.v1.GnoNativeService.MakeRunTx:input_type -> land.gno.gnonative.v1.RunRequest + 29, // 31: land.gno.gnonative.v1.GnoNativeService.SignTx:input_type -> land.gno.gnonative.v1.SignTxRequest + 30, // 32: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:input_type -> land.gno.gnonative.v1.BroadcastTxCommitRequest + 31, // 33: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:input_type -> land.gno.gnonative.v1.AddressToBech32Request + 32, // 34: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:input_type -> land.gno.gnonative.v1.AddressFromBech32Request + 33, // 35: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:input_type -> land.gno.gnonative.v1.AddressFromMnemonicRequest + 34, // 36: land.gno.gnonative.v1.GnoNativeService.Hello:input_type -> land.gno.gnonative.v1.HelloRequest + 35, // 37: land.gno.gnonative.v1.GnoNativeService.HelloStream:input_type -> land.gno.gnonative.v1.HelloStreamRequest + 36, // 38: land.gno.gnonative.v1.GnoNativeService.SetRemote:output_type -> land.gno.gnonative.v1.SetRemoteResponse + 37, // 39: land.gno.gnonative.v1.GnoNativeService.GetRemote:output_type -> land.gno.gnonative.v1.GetRemoteResponse + 38, // 40: land.gno.gnonative.v1.GnoNativeService.SetChainID:output_type -> land.gno.gnonative.v1.SetChainIDResponse + 39, // 41: land.gno.gnonative.v1.GnoNativeService.GetChainID:output_type -> land.gno.gnonative.v1.GetChainIDResponse + 40, // 42: land.gno.gnonative.v1.GnoNativeService.GenerateRecoveryPhrase:output_type -> land.gno.gnonative.v1.GenerateRecoveryPhraseResponse + 41, // 43: land.gno.gnonative.v1.GnoNativeService.ListKeyInfo:output_type -> land.gno.gnonative.v1.ListKeyInfoResponse + 42, // 44: land.gno.gnonative.v1.GnoNativeService.HasKeyByName:output_type -> land.gno.gnonative.v1.HasKeyByNameResponse + 43, // 45: land.gno.gnonative.v1.GnoNativeService.HasKeyByAddress:output_type -> land.gno.gnonative.v1.HasKeyByAddressResponse + 44, // 46: land.gno.gnonative.v1.GnoNativeService.HasKeyByNameOrAddress:output_type -> land.gno.gnonative.v1.HasKeyByNameOrAddressResponse + 45, // 47: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByName:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameResponse + 46, // 48: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByAddressResponse + 47, // 49: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse + 48, // 50: land.gno.gnonative.v1.GnoNativeService.CreateAccount:output_type -> land.gno.gnonative.v1.CreateAccountResponse + 49, // 51: land.gno.gnonative.v1.GnoNativeService.SelectAccount:output_type -> land.gno.gnonative.v1.SelectAccountResponse + 50, // 52: land.gno.gnonative.v1.GnoNativeService.ActivateAccount:output_type -> land.gno.gnonative.v1.ActivateAccountResponse + 51, // 53: land.gno.gnonative.v1.GnoNativeService.SetPassword:output_type -> land.gno.gnonative.v1.SetPasswordResponse + 52, // 54: land.gno.gnonative.v1.GnoNativeService.UpdatePassword:output_type -> land.gno.gnonative.v1.UpdatePasswordResponse + 53, // 55: land.gno.gnonative.v1.GnoNativeService.GetActiveAccount:output_type -> land.gno.gnonative.v1.GetActiveAccountResponse + 54, // 56: land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount:output_type -> land.gno.gnonative.v1.GetActivatedAccountResponse + 55, // 57: land.gno.gnonative.v1.GnoNativeService.QueryAccount:output_type -> land.gno.gnonative.v1.QueryAccountResponse + 56, // 58: land.gno.gnonative.v1.GnoNativeService.DeleteAccount:output_type -> land.gno.gnonative.v1.DeleteAccountResponse + 57, // 59: land.gno.gnonative.v1.GnoNativeService.Query:output_type -> land.gno.gnonative.v1.QueryResponse + 58, // 60: land.gno.gnonative.v1.GnoNativeService.Render:output_type -> land.gno.gnonative.v1.RenderResponse + 59, // 61: land.gno.gnonative.v1.GnoNativeService.QEval:output_type -> land.gno.gnonative.v1.QEvalResponse + 60, // 62: land.gno.gnonative.v1.GnoNativeService.Call:output_type -> land.gno.gnonative.v1.CallResponse + 61, // 63: land.gno.gnonative.v1.GnoNativeService.Send:output_type -> land.gno.gnonative.v1.SendResponse + 62, // 64: land.gno.gnonative.v1.GnoNativeService.Run:output_type -> land.gno.gnonative.v1.RunResponse + 63, // 65: land.gno.gnonative.v1.GnoNativeService.MakeCallTx:output_type -> land.gno.gnonative.v1.MakeTxResponse + 63, // 66: land.gno.gnonative.v1.GnoNativeService.MakeSendTx:output_type -> land.gno.gnonative.v1.MakeTxResponse + 63, // 67: land.gno.gnonative.v1.GnoNativeService.MakeRunTx:output_type -> land.gno.gnonative.v1.MakeTxResponse + 64, // 68: land.gno.gnonative.v1.GnoNativeService.SignTx:output_type -> land.gno.gnonative.v1.SignTxResponse + 65, // 69: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:output_type -> land.gno.gnonative.v1.BroadcastTxCommitResponse + 66, // 70: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:output_type -> land.gno.gnonative.v1.AddressToBech32Response + 67, // 71: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:output_type -> land.gno.gnonative.v1.AddressFromBech32Response + 68, // 72: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:output_type -> land.gno.gnonative.v1.AddressFromMnemonicResponse + 69, // 73: land.gno.gnonative.v1.GnoNativeService.Hello:output_type -> land.gno.gnonative.v1.HelloResponse + 70, // 74: land.gno.gnonative.v1.GnoNativeService.HelloStream:output_type -> land.gno.gnonative.v1.HelloStreamResponse + 38, // [38:75] is the sub-list for method output_type + 1, // [1:38] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name diff --git a/api/gnonativetypes.proto b/api/gnonativetypes.proto index 522cb544..3ffe78e5 100644 --- a/api/gnonativetypes.proto +++ b/api/gnonativetypes.proto @@ -34,6 +34,8 @@ message GetChainIDResponse { message SetPasswordRequest { string password = 1; + // The address of the account to set the password + bytes address = 2; } message SetPasswordResponse { @@ -41,6 +43,8 @@ message SetPasswordResponse { message UpdatePasswordRequest { string new_password = 1; + // The address of the account to update the password + bytes address = 2; } message UpdatePasswordResponse { @@ -154,6 +158,16 @@ message SelectAccountResponse { bool has_password = 2; } +message ActivateAccountRequest { + string name_or_bech32 = 1; +} + +message ActivateAccountResponse { + KeyInfo key = 1 [json_name = "key_info"]; + // True if the password has been set. If false, then call SetPassword. + bool has_password = 2; +} + message GetActiveAccountRequest { } @@ -163,6 +177,16 @@ message GetActiveAccountResponse { bool has_password = 2; } +message GetActivatedAccountRequest { + bytes address = 1; +} + +message GetActivatedAccountResponse { + KeyInfo key = 1 [json_name = "key_info"]; + // True if the password has been set. If false, then call SetPassword. + bool has_password = 2; +} + message QueryAccountRequest { bytes address = 1; } @@ -230,7 +254,7 @@ message CallRequest { string gas_fee = 1; sint64 gas_wanted = 2; string memo = 3; - // If CallerAddress is empty then get it from the active account + // The address of the account to sign the transaction bytes caller_address = 4; // list of calls to make in one transaction repeated MsgCall msgs = 5 [json_name = "Msgs"]; @@ -253,7 +277,7 @@ message SendRequest { sint64 gas_wanted = 2; // Memo is optional string memo = 3; - // If CallerAddress is empty then get it from the active account + // The address of the account to sign the transaction bytes caller_address = 4; // list of send operations to make in one transaction repeated MsgSend msgs = 5 [json_name = "Msgs"]; @@ -275,7 +299,7 @@ message RunRequest { sint64 gas_wanted = 2; // Memo is optional string memo = 3; - // If CallerAddress is empty then get it from the active account + // The address of the account to sign the transaction bytes caller_address = 4; // list of run operations to make in one transaction repeated MsgRun msgs = 5 [json_name = "Msgs"]; @@ -294,10 +318,12 @@ message MakeTxResponse { message SignTxRequest { // The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) string tx_json = 1; + // The address of the account to sign the transaction + bytes address = 2; // The signer's account number on the blockchain. If 0 then query the blockchain for the value. - uint64 account_number = 2; + uint64 account_number = 3; // The sequence number of the signer's transactions on the blockchain. If 0 then query the blockchain for the value. - uint64 sequence_number = 3; + uint64 sequence_number = 4; } message SignTxResponse { diff --git a/api/gnonativetypes/gnonativetypes.go b/api/gnonativetypes/gnonativetypes.go index eb591486..e7f05749 100644 --- a/api/gnonativetypes/gnonativetypes.go +++ b/api/gnonativetypes/gnonativetypes.go @@ -30,6 +30,8 @@ type GetChainIDResponse struct { type SetPasswordRequest struct { Password string `json:"password" yaml:"password"` + // The address of the account to set the password + Address []byte `json:"address" yaml:"address"` } type SetPasswordResponse struct { @@ -37,6 +39,8 @@ type SetPasswordResponse struct { type UpdatePasswordRequest struct { NewPassword string `json:"new_password" yaml:"new_password"` + // The address of the account to update the password + Address []byte `json:"address" yaml:"address"` } type UpdatePasswordResponse struct { @@ -150,6 +154,16 @@ type SelectAccountResponse struct { HasPassword bool `json:"has_password" yaml:"has_password"` } +type ActivateAccountRequest struct { + NameOrBech32 string `json:"name_or_bech32" yaml:"name_or_bech32"` +} + +type ActivateAccountResponse struct { + Key *KeyInfo `json:"key_info" yaml:"key_info"` + // True if the password has been set. If false, then call SetPassword. + HasPassword bool `json:"has_password" yaml:"has_password"` +} + type GetActiveAccountRequest struct { } @@ -159,6 +173,16 @@ type GetActiveAccountResponse struct { HasPassword bool `json:"has_password" yaml:"has_password"` } +type GetActivatedAccountRequest struct { + Address []byte `json:"address" yaml:"address"` +} + +type GetActivatedAccountResponse struct { + Key *KeyInfo `json:"key_info" yaml:"key_info"` + // True if the password has been set. If false, then call SetPassword. + HasPassword bool `json:"has_password" yaml:"has_password"` +} + type QueryAccountRequest struct { Address []byte `json:"address" yaml:"address"` } @@ -226,7 +250,7 @@ type CallRequest struct { GasFee string `json:"gas_fee" yaml:"gas_fee"` GasWanted int64 `json:"gas_wanted" yaml:"gas_wanted"` Memo string `json:"memo" yaml:"memo"` - // If CallerAddress is empty then get it from the active account + // The address of the account to sign the transaction CallerAddress []byte `json:"caller_address" yaml:"caller_address"` // list of calls to make in one transaction Msgs []MsgCall @@ -249,7 +273,7 @@ type SendRequest struct { GasWanted int64 `json:"gas_wanted" yaml:"gas_wanted"` // Memo is optional Memo string `json:"memo" yaml:"memo"` - // If CallerAddress is empty then get it from the active account + // The address of the account to sign the transaction CallerAddress []byte `json:"caller_address" yaml:"caller_address"` // list of send operations to make in one transaction Msgs []MsgSend @@ -271,7 +295,7 @@ type RunRequest struct { GasWanted int64 `json:"gas_wanted" yaml:"gas_wanted"` // Memo is optional Memo string `json:"memo" yaml:"memo"` - // If CallerAddress is empty then get it from the active account + // The address of the account to sign the transaction CallerAddress []byte `json:"caller_address" yaml:"caller_address"` // list of run operations to make in one transaction Msgs []MsgRun @@ -290,6 +314,8 @@ type MakeTxResponse struct { type SignTxRequest struct { // The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) TxJSON string `json:"tx_json" yaml:"tx_json"` + // The address of the account to sign the transaction + Address []byte `json:"address" yaml:"address"` // The signer's account number on the blockchain. If 0 then query the blockchain for the value. AccountNumber uint64 `json:"account_number" yaml:"account_number"` // The sequence number of the signer's transactions on the blockchain. If 0 then query the blockchain for the value. diff --git a/api/gnonativetypes/package.go b/api/gnonativetypes/package.go index a297e6be..77935855 100644 --- a/api/gnonativetypes/package.go +++ b/api/gnonativetypes/package.go @@ -47,8 +47,12 @@ var Package = amino.RegisterPackage(amino.NewPackage( CreateAccountResponse{}, SelectAccountRequest{}, SelectAccountResponse{}, + ActivateAccountRequest{}, + ActivateAccountResponse{}, GetActiveAccountRequest{}, GetActiveAccountResponse{}, + GetActivatedAccountRequest{}, + GetActivatedAccountResponse{}, QueryAccountRequest{}, QueryAccountResponse{}, DeleteAccountRequest{}, diff --git a/api/rpc.proto b/api/rpc.proto index de2f6a9a..d9b22da0 100644 --- a/api/rpc.proto +++ b/api/rpc.proto @@ -66,24 +66,37 @@ service GnoNativeService { // SelectAccount selects the active account to use for later operations. If the response has_password is // false, then you should set the password before using a method which needs it. // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + // DEPRECATED. Use ActivateAccount. rpc SelectAccount(SelectAccountRequest) returns (SelectAccountResponse); - // Set the password for the active account in the keybase, used for later operations. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is + // false, then you should call SetPassword before using a method which needs it. + // If the account is already activated, return its info. + // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + rpc ActivateAccount(ActivateAccountRequest) returns (ActivateAccountResponse); + + // Set the password for the account in the keybase with the given address. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. rpc SetPassword(SetPasswordRequest) returns (SetPasswordResponse); - // Update the keybase for the active account to use the new password. + // Update the keybase to use the new password for the account in the keybase with the given address. // Before calling this, you must call SetPassword with the current password. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. rpc UpdatePassword(UpdatePasswordRequest) returns (UpdatePasswordResponse); // GetActiveAccount gets the active account which was set by SelectAccount. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // (To check if there is an active account, use ListKeyInfo and check the // length of the result.) + // DEPRECATED: Use GetActivatedAccount. rpc GetActiveAccount(GetActiveAccountRequest) returns (GetActiveAccountResponse); + // GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. + // If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + rpc GetActivatedAccount(GetActivatedAccountRequest) returns (GetActivatedAccountResponse); + // QueryAccount retrieves account information from the blockchain for a given // address. rpc QueryAccount(QueryAccountRequest) returns (QueryAccountResponse); @@ -115,20 +128,21 @@ service GnoNativeService { // If the request package_path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath. rpc QEval(QEvalRequest) returns (QEvalResponse); - // Call a specific realm function. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Call a specific realm function. Sign the transaction with the given caller_address. + // If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. // If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. rpc Call(CallRequest) returns (stream CallResponse); - // Send currency from the active account to an account on the blockchain. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Send currency from the account with the given caller_address to an account on the blockchain. + // If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. rpc Send(SendRequest) returns (stream SendResponse); // Temporarily load the code in package on the blockchain and run main() which can - // call realm functions and use println() to output to the "console". + // call realm functions and use println() to output to the "console". Sign the transaction with the given caller_address. // This returns the "console" output. + // If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. rpc Run(RunRequest) returns (stream RunResponse); // Make an unsigned transaction to call a specific realm function. @@ -140,8 +154,8 @@ service GnoNativeService { // Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). rpc MakeRunTx(RunRequest) returns (MakeTxResponse); - // Sign the transaction using the active account. - // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. + // Sign the transaction using the account with the given address. + // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. rpc SignTx(SignTxRequest) returns (SignTxResponse); @@ -196,7 +210,7 @@ enum ErrCode { ErrCryptoKeyTypeUnknown = 150; // ErrCryptoKeyNotFound indicates that the doesn't exist in the keybase ErrCryptoKeyNotFound = 151; - // ErrNoActiveAccount indicates that no active account has been set with SelectAccount + // ErrNoActiveAccount indicates that no account with the given address has been activated with ActivateAccount ErrNoActiveAccount = 152; ErrRunGRPCServer = 153; // ErrDecryptionFailed indicates a decryption failure including a wrong password diff --git a/service/api.go b/service/api.go index 377139a1..a8e67daf 100644 --- a/service/api.go +++ b/service/api.go @@ -26,7 +26,7 @@ import ( func (s *gnoNativeService) SetRemote(ctx context.Context, req *connect.Request[api_gen.SetRemoteRequest]) (*connect.Response[api_gen.SetRemoteResponse], error) { var err error - s.client.RPCClient, err = rpcclient.NewHTTPClient(req.Msg.Remote) + s.rpcClient, err = rpcclient.NewHTTPClient(req.Msg.Remote) if err != nil { return nil, api_gen.ErrCode_ErrSetRemote.Wrap(err) } @@ -53,12 +53,14 @@ func (s *gnoNativeService) ClientGetRemote() string { } func (s *gnoNativeService) SetChainID(ctx context.Context, req *connect.Request[api_gen.SetChainIDRequest]) (*connect.Response[api_gen.SetChainIDResponse], error) { - s.getSigner().ChainID = req.Msg.ChainId + s.lock.Lock() + s.chainID = req.Msg.ChainId + s.lock.Unlock() return connect.NewResponse(&api_gen.SetChainIDResponse{}), nil } func (s *gnoNativeService) GetChainID(ctx context.Context, req *connect.Request[api_gen.GetChainIDRequest]) (*connect.Response[api_gen.GetChainIDResponse], error) { - return connect.NewResponse(&api_gen.GetChainIDResponse{ChainId: s.getSigner().ChainID}), nil + return connect.NewResponse(&api_gen.GetChainIDResponse{ChainId: s.chainID}), nil } func (s *gnoNativeService) GenerateRecoveryPhrase(ctx context.Context, req *connect.Request[api_gen.GenerateRecoveryPhraseRequest]) (*connect.Response[api_gen.GenerateRecoveryPhraseResponse], error) { @@ -118,13 +120,13 @@ func (s *gnoNativeService) ListKeyInfo(ctx context.Context, req *connect.Request } func (s *gnoNativeService) ClientListKeyInfo() ([]crypto_keys.Info, error) { - return s.getSigner().Keybase.List() + return s.keybase.List() } func (s *gnoNativeService) HasKeyByName(ctx context.Context, req *connect.Request[api_gen.HasKeyByNameRequest]) (*connect.Response[api_gen.HasKeyByNameResponse], error) { s.logger.Debug("HasKeyByName called") - has, err := s.getSigner().Keybase.HasByName(req.Msg.Name) + has, err := s.keybase.HasByName(req.Msg.Name) if err != nil { return nil, getGrpcError(err) } @@ -135,7 +137,7 @@ func (s *gnoNativeService) HasKeyByName(ctx context.Context, req *connect.Reques func (s *gnoNativeService) HasKeyByAddress(ctx context.Context, req *connect.Request[api_gen.HasKeyByAddressRequest]) (*connect.Response[api_gen.HasKeyByAddressResponse], error) { s.logger.Debug("HasKeyByAddress called") - has, err := s.getSigner().Keybase.HasByAddress(crypto.AddressFromBytes(req.Msg.Address)) + has, err := s.keybase.HasByAddress(crypto.AddressFromBytes(req.Msg.Address)) if err != nil { return nil, getGrpcError(err) } @@ -146,7 +148,7 @@ func (s *gnoNativeService) HasKeyByAddress(ctx context.Context, req *connect.Req func (s *gnoNativeService) HasKeyByNameOrAddress(ctx context.Context, req *connect.Request[api_gen.HasKeyByNameOrAddressRequest]) (*connect.Response[api_gen.HasKeyByNameOrAddressResponse], error) { s.logger.Debug("HasKeyByNameOrAddress called") - has, err := s.getSigner().Keybase.HasByNameOrAddress(req.Msg.NameOrBech32) + has, err := s.keybase.HasByNameOrAddress(req.Msg.NameOrBech32) if err != nil { return nil, getGrpcError(err) } @@ -157,7 +159,7 @@ func (s *gnoNativeService) HasKeyByNameOrAddress(ctx context.Context, req *conne func (s *gnoNativeService) GetKeyInfoByName(ctx context.Context, req *connect.Request[api_gen.GetKeyInfoByNameRequest]) (*connect.Response[api_gen.GetKeyInfoByNameResponse], error) { s.logger.Debug("GetKeyInfoByName called") - key, err := s.getSigner().Keybase.GetByName(req.Msg.Name) + key, err := s.keybase.GetByName(req.Msg.Name) if err != nil { return nil, getGrpcError(err) } @@ -173,7 +175,7 @@ func (s *gnoNativeService) GetKeyInfoByName(ctx context.Context, req *connect.Re func (s *gnoNativeService) GetKeyInfoByAddress(ctx context.Context, req *connect.Request[api_gen.GetKeyInfoByAddressRequest]) (*connect.Response[api_gen.GetKeyInfoByAddressResponse], error) { s.logger.Debug("GetKeyInfoByAddress called") - key, err := s.getSigner().Keybase.GetByAddress(crypto.AddressFromBytes(req.Msg.Address)) + key, err := s.keybase.GetByAddress(crypto.AddressFromBytes(req.Msg.Address)) if err != nil { return nil, getGrpcError(err) } @@ -189,7 +191,7 @@ func (s *gnoNativeService) GetKeyInfoByAddress(ctx context.Context, req *connect func (s *gnoNativeService) GetKeyInfoByNameOrAddress(ctx context.Context, req *connect.Request[api_gen.GetKeyInfoByNameOrAddressRequest]) (*connect.Response[api_gen.GetKeyInfoByNameOrAddressResponse], error) { s.logger.Debug("GetKeyInfoByNameOrAddress called") - key, err := s.getSigner().Keybase.GetByNameOrAddress(req.Msg.NameOrBech32) + key, err := s.keybase.GetByNameOrAddress(req.Msg.NameOrBech32) if err != nil { return nil, getGrpcError(err) } @@ -205,7 +207,7 @@ func (s *gnoNativeService) GetKeyInfoByNameOrAddress(ctx context.Context, req *c func (s *gnoNativeService) CreateAccount(ctx context.Context, req *connect.Request[api_gen.CreateAccountRequest]) (*connect.Response[api_gen.CreateAccountResponse], error) { s.logger.Debug("CreateAccount called", zap.String("NameOrBech32", req.Msg.NameOrBech32)) - key, err := s.getSigner().Keybase.CreateAccount(req.Msg.NameOrBech32, req.Msg.Mnemonic, req.Msg.Bip39Passwd, req.Msg.Password, req.Msg.Account, req.Msg.Index) + key, err := s.keybase.CreateAccount(req.Msg.NameOrBech32, req.Msg.Mnemonic, req.Msg.Bip39Passwd, req.Msg.Password, req.Msg.Account, req.Msg.Index) if err != nil { return nil, getGrpcError(err) } @@ -219,10 +221,10 @@ func (s *gnoNativeService) CreateAccount(ctx context.Context, req *connect.Reque } func (s *gnoNativeService) SelectAccount(ctx context.Context, req *connect.Request[api_gen.SelectAccountRequest]) (*connect.Response[api_gen.SelectAccountResponse], error) { - s.logger.Debug("SelectAccount called", zap.String("NameOrBech32", req.Msg.NameOrBech32)) + s.logger.Debug("DEPRECATED: SelectAccount called", zap.String("NameOrBech32", req.Msg.NameOrBech32)) // The key may already be in s.userAccounts, but the info may have changed on disk. So always get from disk. - key, err := s.getSigner().Keybase.GetByNameOrAddress(req.Msg.NameOrBech32) + key, err := s.keybase.GetByNameOrAddress(req.Msg.NameOrBech32) if err != nil { return nil, getGrpcError(err) } @@ -237,32 +239,71 @@ func (s *gnoNativeService) SelectAccount(ctx context.Context, req *connect.Reque account, ok := s.userAccounts[bech32] if !ok { account = &userAccount{} + account.signer = &gnoclient.SignerFromKeybase{ + Keybase: s.keybase, + ChainID: s.chainID, + } s.userAccounts[bech32] = account } account.keyInfo = key s.activeAccount = account s.lock.Unlock() - s.getSigner().Account = req.Msg.NameOrBech32 - s.getSigner().Password = account.password + account.signer.Account = req.Msg.NameOrBech32 return connect.NewResponse(&api_gen.SelectAccountResponse{ Key: info, - HasPassword: account.password != "", + HasPassword: account.signer.Password != "", }), nil } -func (s *gnoNativeService) SetPassword(ctx context.Context, req *connect.Request[api_gen.SetPasswordRequest]) (*connect.Response[api_gen.SetPasswordResponse], error) { +func (s *gnoNativeService) ActivateAccount(ctx context.Context, req *connect.Request[api_gen.ActivateAccountRequest]) (*connect.Response[api_gen.ActivateAccountResponse], error) { + s.logger.Debug("ActivateAccount called", zap.String("NameOrBech32", req.Msg.NameOrBech32)) + + // The key may already be in s.userAccounts, but the info may have changed on disk. So always get from disk. + key, err := s.keybase.GetByNameOrAddress(req.Msg.NameOrBech32) + if err != nil { + return nil, getGrpcError(err) + } + + info, err := ConvertKeyInfo(key) + if err != nil { + return nil, err + } + + bech32 := crypto.AddressToBech32(key.GetAddress()) s.lock.Lock() - defer s.lock.Unlock() - if s.activeAccount == nil { - return nil, api_gen.ErrCode_ErrNoActiveAccount + account, ok := s.userAccounts[bech32] + if !ok { + account = &userAccount{} + account.signer = &gnoclient.SignerFromKeybase{ + Keybase: s.keybase, + ChainID: s.chainID, + } + s.userAccounts[bech32] = account } - s.activeAccount.password = req.Msg.Password + account.keyInfo = key + s.lock.Unlock() - s.getSigner().Password = req.Msg.Password + account.signer.Account = req.Msg.NameOrBech32 + return connect.NewResponse(&api_gen.ActivateAccountResponse{ + Key: info, + HasPassword: account.signer.Password != "", + }), nil +} + +func (s *gnoNativeService) SetPassword(ctx context.Context, req *connect.Request[api_gen.SetPasswordRequest]) (*connect.Response[api_gen.SetPasswordResponse], error) { + signer, err := s.getSigner(req.Msg.Address) + if err != nil { + return nil, err + } + signer.Password = req.Msg.Password // Check the password. - if err := s.getSigner().Validate(); err != nil { + if err := signer.Validate(); err != nil { + if keyerror.IsErrWrongPassword(err) { + // Wrong password, so unset the password + signer.Password = "" + } return nil, getGrpcError(err) } @@ -270,25 +311,23 @@ func (s *gnoNativeService) SetPassword(ctx context.Context, req *connect.Request } func (s *gnoNativeService) UpdatePassword(ctx context.Context, req *connect.Request[api_gen.UpdatePasswordRequest]) (*connect.Response[api_gen.UpdatePasswordResponse], error) { - s.lock.Lock() - defer s.lock.Unlock() - if s.activeAccount == nil { - return nil, api_gen.ErrCode_ErrNoActiveAccount + signer, err := s.getSigner(req.Msg.Address) + if err != nil { + return nil, err } getNewPass := func() (string, error) { return req.Msg.NewPassword, nil } - if err := s.getSigner().Keybase.Update(s.activeAccount.keyInfo.GetName(), s.activeAccount.password, getNewPass); err != nil { + if err := s.keybase.Update(s.activeAccount.keyInfo.GetName(), signer.Password, getNewPass); err != nil { return nil, getGrpcError(err) } - s.activeAccount.password = req.Msg.NewPassword - s.getSigner().Password = req.Msg.NewPassword + signer.Password = req.Msg.NewPassword return connect.NewResponse(&api_gen.UpdatePasswordResponse{}), nil } func (s *gnoNativeService) GetActiveAccount(ctx context.Context, req *connect.Request[api_gen.GetActiveAccountRequest]) (*connect.Response[api_gen.GetActiveAccountResponse], error) { - s.logger.Debug("GetActiveAccount called") + s.logger.Debug("DEPRECATED: GetActiveAccount called") s.lock.RLock() account := s.activeAccount @@ -305,14 +344,39 @@ func (s *gnoNativeService) GetActiveAccount(ctx context.Context, req *connect.Re return connect.NewResponse(&api_gen.GetActiveAccountResponse{ Key: info, - HasPassword: account.password != "", + HasPassword: account.signer.Password != "", + }), nil +} + +func (s *gnoNativeService) GetActivatedAccount(ctx context.Context, req *connect.Request[api_gen.GetActivatedAccountRequest]) (*connect.Response[api_gen.GetActivatedAccountResponse], error) { + s.logger.Debug("GetActivatedAccount called") + + if req.Msg.Address == nil { + return nil, api_gen.ErrCode_ErrInvalidAddress + } + + s.lock.Lock() + account, ok := s.userAccounts[crypto.AddressToBech32(crypto.AddressFromBytes(req.Msg.Address))] + s.lock.Unlock() + if !ok { + return nil, api_gen.ErrCode_ErrNoActiveAccount + } + + info, err := ConvertKeyInfo(account.keyInfo) + if err != nil { + return nil, err + } + + return connect.NewResponse(&api_gen.GetActivatedAccountResponse{ + Key: info, + HasPassword: account.signer.Password != "", }), nil } func (s *gnoNativeService) QueryAccount(ctx context.Context, req *connect.Request[api_gen.QueryAccountRequest]) (*connect.Response[api_gen.QueryAccountResponse], error) { s.logger.Debug("QueryAccount", zap.ByteString("address", req.Msg.Address)) - c, err := s.getClient() + c, err := s.getClient(nil) if err != nil { return nil, getGrpcError(err) } @@ -346,11 +410,11 @@ func (s *gnoNativeService) QueryAccount(ctx context.Context, req *connect.Reques func (s *gnoNativeService) DeleteAccount(ctx context.Context, req *connect.Request[api_gen.DeleteAccountRequest]) (*connect.Response[api_gen.DeleteAccountResponse], error) { // Get the key from the Keybase so that we know its address - key, err := s.getSigner().Keybase.GetByNameOrAddress(req.Msg.NameOrBech32) + key, err := s.keybase.GetByNameOrAddress(req.Msg.NameOrBech32) if err != nil { return nil, getGrpcError(err) } - if err := s.getSigner().Keybase.Delete(req.Msg.NameOrBech32, req.Msg.Password, req.Msg.SkipPassword); err != nil { + if err := s.keybase.Delete(req.Msg.NameOrBech32, req.Msg.Password, req.Msg.SkipPassword); err != nil { return nil, getGrpcError(err) } @@ -373,7 +437,7 @@ func (s *gnoNativeService) Query(ctx context.Context, req *connect.Request[api_g Data: req.Msg.Data, } - c, err := s.getClient() + c, err := s.getClient(nil) if err != nil { return nil, getGrpcError(err) } @@ -388,7 +452,7 @@ func (s *gnoNativeService) Query(ctx context.Context, req *connect.Request[api_g func (s *gnoNativeService) Render(ctx context.Context, req *connect.Request[api_gen.RenderRequest]) (*connect.Response[api_gen.RenderResponse], error) { s.logger.Debug("Render", zap.String("packagePath", req.Msg.PackagePath), zap.String("args", req.Msg.Args)) - c, err := s.getClient() + c, err := s.getClient(nil) if err != nil { return nil, getGrpcError(err) } @@ -403,7 +467,7 @@ func (s *gnoNativeService) Render(ctx context.Context, req *connect.Request[api_ func (s *gnoNativeService) QEval(ctx context.Context, req *connect.Request[api_gen.QEvalRequest]) (*connect.Response[api_gen.QEvalResponse], error) { s.logger.Debug("QEval", zap.String("packagePath", req.Msg.PackagePath), zap.String("expression", req.Msg.Expression)) - c, err := s.getClient() + c, err := s.getClient(nil) if err != nil { return nil, getGrpcError(err) } @@ -426,10 +490,6 @@ func (s *gnoNativeService) Call(ctx context.Context, req *connect.Request[api_ge } if s.useGnokeyMobile { - c, err := s.getClient() - if err != nil { - return getGrpcError(err) - } tx, err := gnoclient.NewCallTx(*cfg, msgs...) if err != nil { return err @@ -445,7 +505,8 @@ func (s *gnoNativeService) Call(ctx context.Context, req *connect.Request[api_ge signedTxJSON, err := s.gnokeyMobileClient.SignTx( context.Background(), connect.NewRequest(&api_gen.SignTxRequest{ - TxJson: string(txJSON), + TxJson: string(txJSON), + Address: req.Msg.CallerAddress, }), ) if err != nil { @@ -457,6 +518,10 @@ func (s *gnoNativeService) Call(ctx context.Context, req *connect.Request[api_ge } // Now broadcast + c, err := s.getClient(nil) + if err != nil { + return getGrpcError(err) + } bres, err := c.BroadcastTxCommit(signedTx) if err != nil { return getGrpcError(err) @@ -472,14 +537,16 @@ func (s *gnoNativeService) Call(ctx context.Context, req *connect.Request[api_ge return nil } - s.lock.RLock() - if s.activeAccount == nil { - s.lock.RUnlock() - return api_gen.ErrCode_ErrNoActiveAccount + signer, err := s.getSigner(req.Msg.CallerAddress) + if err != nil { + return err } - s.lock.RUnlock() - bres, err := s.client.Call(*cfg, msgs...) + c, err := s.getClient(signer) + if err != nil { + return getGrpcError(err) + } + bres, err := c.Call(*cfg, msgs...) if err != nil { return getGrpcError(err) } @@ -540,19 +607,21 @@ func (s *gnoNativeService) Send(ctx context.Context, req *connect.Request[api_ge s.logger.Debug("Send", zap.String("toAddress", crypto.AddressToBech32(crypto.AddressFromBytes(msg.ToAddress))), zap.String("send", msg.Send)) } - s.lock.RLock() - if s.activeAccount == nil { - s.lock.RUnlock() - return api_gen.ErrCode_ErrNoActiveAccount + signer, err := s.getSigner(req.Msg.CallerAddress) + if err != nil { + return err } - s.lock.RUnlock() cfg, msgs, err := s.convertSendRequest(req.Msg) if err != nil { return err } - _, err = s.client.Send(*cfg, msgs...) + c, err := s.getClient(signer) + if err != nil { + return getGrpcError(err) + } + _, err = c.Send(*cfg, msgs...) if err != nil { return getGrpcError(err) } @@ -605,19 +674,21 @@ func (s *gnoNativeService) convertSendRequest(req *api_gen.SendRequest) (*gnocli } func (s *gnoNativeService) Run(ctx context.Context, req *connect.Request[api_gen.RunRequest], stream *connect.ServerStream[api_gen.RunResponse]) error { - s.lock.RLock() - if s.activeAccount == nil { - s.lock.RUnlock() - return api_gen.ErrCode_ErrNoActiveAccount + signer, err := s.getSigner(req.Msg.CallerAddress) + if err != nil { + return err } - s.lock.RUnlock() cfg, msgs, err := s.convertRunRequest(req.Msg) if err != nil { return err } - bres, err := s.client.Run(*cfg, msgs...) + c, err := s.getClient(signer) + if err != nil { + return getGrpcError(err) + } + bres, err := c.Run(*cfg, msgs...) if err != nil { return getGrpcError(err) } @@ -740,7 +811,7 @@ func (s *gnoNativeService) SignTx(ctx context.Context, req *connect.Request[api_ return nil, err } - signedTx, err := s.ClientSignTx(tx, req.Msg.AccountNumber, req.Msg.SequenceNumber) + signedTx, err := s.ClientSignTx(tx, req.Msg.Address, req.Msg.AccountNumber, req.Msg.SequenceNumber) if err != nil { return nil, getGrpcError(err) } @@ -752,15 +823,16 @@ func (s *gnoNativeService) SignTx(ctx context.Context, req *connect.Request[api_ return connect.NewResponse(&api_gen.SignTxResponse{SignedTxJson: string(signedTxJSON)}), nil } -func (s *gnoNativeService) ClientSignTx(tx std.Tx, accountNumber, sequenceNumber uint64) (*std.Tx, error) { - s.lock.RLock() - if s.activeAccount == nil { - s.lock.RUnlock() - return nil, api_gen.ErrCode_ErrNoActiveAccount +func (s *gnoNativeService) ClientSignTx(tx std.Tx, addr []byte, accountNumber, sequenceNumber uint64) (*std.Tx, error) { + signer, err := s.getSigner(addr) + if err != nil { + return nil, err } - s.lock.RUnlock() - - return s.client.SignTx(tx, accountNumber, sequenceNumber) + c := &gnoclient.Client{ + Signer: signer, + RPCClient: s.rpcClient, + } + return c.SignTx(tx, accountNumber, sequenceNumber) } func (s *gnoNativeService) BroadcastTxCommit(ctx context.Context, req *connect.Request[api_gen.BroadcastTxCommitRequest], @@ -770,7 +842,11 @@ func (s *gnoNativeService) BroadcastTxCommit(ctx context.Context, req *connect.R return err } - bres, err := s.client.BroadcastTxCommit(signedTx) + c, err := s.getClient(nil) + if err != nil { + return getGrpcError(err) + } + bres, err := c.BroadcastTxCommit(signedTx) if err != nil { return getGrpcError(err) } diff --git a/service/service.go b/service/service.go index 89455b3f..b9ee9819 100644 --- a/service/service.go +++ b/service/service.go @@ -14,6 +14,7 @@ import ( "connectrpc.com/grpcreflect" "github.com/gnolang/gno/gno.land/pkg/gnoclient" rpcclient "github.com/gnolang/gno/tm2/pkg/bft/rpc/client" + "github.com/gnolang/gno/tm2/pkg/crypto" "github.com/gnolang/gno/tm2/pkg/crypto/keys" crypto_keys "github.com/gnolang/gno/tm2/pkg/crypto/keys" "github.com/gnolang/gno/tm2/pkg/std" @@ -36,26 +37,29 @@ type GnoNativeService interface { // Use the configured gnoclient to call the signer's Keybase.List ClientListKeyInfo() ([]crypto_keys.Info, error) // Use the configured gnoclient to call SignTx - ClientSignTx(tx std.Tx, accountNumber, sequenceNumber uint64) (*std.Tx, error) + ClientSignTx(tx std.Tx, addr []byte, accountNumber, sequenceNumber uint64) (*std.Tx, error) io.Closer } type userAccount struct { - keyInfo keys.Info - password string + keyInfo keys.Info + signer *gnoclient.SignerFromKeybase } type gnoNativeService struct { - logger *zap.Logger - client *gnoclient.Client - tcpAddr string - tcpPort int - udsPath string - lock sync.RWMutex + logger *zap.Logger + keybase crypto_keys.Keybase + rpcClient *rpcclient.RPCClient + tcpAddr string + tcpPort int + udsPath string + lock sync.RWMutex // The remote node address used to create client.RPCClient. We need to save this // here because the remote is a private member of the HTTP struct. remote string + // TODO: Allow each userAccount to have its own chain ID + chainID string // Gnokey Mobile support useGnokeyMobile bool @@ -126,10 +130,9 @@ func initService(cfg *Config) (*gnoNativeService, error) { ) // For Gnokey Mobile, we don't need a local svc.client.Keybase . - svc.client = &gnoclient.Client{} // This will set svc.remote and set up svc.client.RPCClient . - _, err := svc.getClient() + _, err := svc.getClient(nil) if err != nil { return nil, err } @@ -138,31 +141,24 @@ func initService(cfg *Config) (*gnoNativeService, error) { return svc, nil } - kb, _ := keys.NewKeyBaseFromDir(cfg.RootDir) - signer := &gnoclient.SignerFromKeybase{ - Keybase: kb, - ChainID: cfg.ChainID, - } + svc.keybase, _ = keys.NewKeyBaseFromDir(cfg.RootDir) - rpcClient, err := rpcclient.NewHTTPClient(cfg.Remote) + var err error + svc.rpcClient, err = rpcclient.NewHTTPClient(cfg.Remote) if err != nil { return nil, err } svc.remote = cfg.Remote - - svc.client = &gnoclient.Client{ - Signer: signer, - RPCClient: rpcClient, - } + svc.chainID = cfg.ChainID return svc, nil } -// Get the gnoclient.Client . If not useGnokeyMobile then just return s.client . +// Get a gnoclient.Client with the RPCClient and the given signer. If not useGnokeyMobile then just use s.rpcClient . // If useGnokeyMobile then query gnokeyMobileClient for the gno.land remote node -// address (which may have changed) and reconfigure s.client.RPCClient and +// address (which may have changed) and reconfigure s.rpcClient and // s.remote if necessary. -func (s *gnoNativeService) getClient() (*gnoclient.Client, error) { +func (s *gnoNativeService) getClient(signer gnoclient.Signer) (*gnoclient.Client, error) { if s.useGnokeyMobile { // Get the current Remote from Gnokey Mobile res, err := s.gnokeyMobileClient.GetRemote( @@ -178,7 +174,7 @@ func (s *gnoNativeService) getClient() (*gnoclient.Client, error) { // Gnokey Mobile has changed the remote (or this is the first call) // Imitate gnoNativeService.SetRemote - s.client.RPCClient, err = rpcclient.NewHTTPClient(res.Msg.Remote) + s.rpcClient, err = rpcclient.NewHTTPClient(res.Msg.Remote) if err != nil { return nil, err } @@ -186,17 +182,35 @@ func (s *gnoNativeService) getClient() (*gnoclient.Client, error) { } } - return s.client, nil + return &gnoclient.Client{ + Signer: signer, + RPCClient: s.rpcClient, + }, nil } -// Get s.client.Signer as a SignerFromKeybase. -func (s *gnoNativeService) getSigner() *gnoclient.SignerFromKeybase { - signer, ok := s.client.Signer.(*gnoclient.SignerFromKeybase) +// Look up addr in s.userAccounts and return the signer. +// (Also set the signer.ChainID to s.chainID. This may change if we allow each userAccount to have its own chain ID.) +// If there is no active account with the given address, return ErrCode_ErrNoActiveAccount. +func (s *gnoNativeService) getSigner(addr []byte) (*gnoclient.SignerFromKeybase, error) { + s.lock.RLock() + defer s.lock.RUnlock() + + if addr == nil { + if s.activeAccount == nil { + return nil, api_gen.ErrCode_ErrNoActiveAccount + } + + return s.activeAccount.signer, nil + } + + bech32 := crypto.AddressToBech32(crypto.AddressFromBytes(addr)) + account, ok := s.userAccounts[bech32] if !ok { - // We only set s.client.Signer in initService, so this shouldn't happen. - panic("signer is not gnoclient.SignerFromKeybase") + return nil, api_gen.ErrCode_ErrNoActiveAccount } - return signer + + account.signer.ChainID = s.chainID + return account.signer, nil } func (s *gnoNativeService) createUdsGrpcServer(cfg *Config) error {