diff --git a/api/gen/csharp/Gnonativetypes.cs b/api/gen/csharp/Gnonativetypes.cs index 3646b7d2..214f40f3 100644 --- a/api/gen/csharp/Gnonativetypes.cs +++ b/api/gen/csharp/Gnonativetypes.cs @@ -90,34 +90,44 @@ static GnonativetypesReflection() { "aW9uGAIgASgJUgpleHByZXNzaW9uIicKDVFFdmFsUmVzcG9uc2USFgoGcmVz", "dWx0GAEgASgJUgZyZXN1bHQiZgoHTXNnQ2FsbBIhCgxwYWNrYWdlX3BhdGgY", "ASABKAlSC3BhY2thZ2VQYXRoEhAKA2ZuYxgCIAEoCVIDZm5jEhIKBGFyZ3MY", - "AyADKAlSBGFyZ3MSEgoEc2VuZBgEIAEoCVIEc2VuZCKNAQoLQ2FsbFJlcXVl", + "AyADKAlSBGFyZ3MSEgoEc2VuZBgEIAEoCVIEc2VuZCK0AQoLQ2FsbFJlcXVl", "c3QSFwoHZ2FzX2ZlZRgBIAEoCVIGZ2FzRmVlEh0KCmdhc193YW50ZWQYAiAB", - "KBJSCWdhc1dhbnRlZBISCgRtZW1vGAMgASgJUgRtZW1vEjIKBG1zZ3MYBCAD", - "KAsyHi5sYW5kLmduby5nbm9uYXRpdmUudjEuTXNnQ2FsbFIETXNncyImCgxD", - "YWxsUmVzcG9uc2USFgoGcmVzdWx0GAEgASgMUgZyZXN1bHQiPAoHTXNnU2Vu", - "ZBIdCgp0b19hZGRyZXNzGAEgASgMUgl0b0FkZHJlc3MSEgoEc2VuZBgCIAEo", - "CVIEc2VuZCKNAQoLU2VuZFJlcXVlc3QSFwoHZ2FzX2ZlZRgBIAEoCVIGZ2Fz", - "RmVlEh0KCmdhc193YW50ZWQYAiABKBJSCWdhc1dhbnRlZBISCgRtZW1vGAMg", - "ASgJUgRtZW1vEjIKBG1zZ3MYBCADKAsyHi5sYW5kLmduby5nbm9uYXRpdmUu", - "djEuTXNnU2VuZFIETXNncyIOCgxTZW5kUmVzcG9uc2UiNgoGTXNnUnVuEhgK", - "B3BhY2thZ2UYASABKAlSB3BhY2thZ2USEgoEc2VuZBgCIAEoCVIEc2VuZCKL", - "AQoKUnVuUmVxdWVzdBIXCgdnYXNfZmVlGAEgASgJUgZnYXNGZWUSHQoKZ2Fz", - "X3dhbnRlZBgCIAEoElIJZ2FzV2FudGVkEhIKBG1lbW8YAyABKAlSBG1lbW8S", - "MQoEbXNncxgEIAMoCzIdLmxhbmQuZ25vLmdub25hdGl2ZS52MS5Nc2dSdW5S", - "BE1zZ3MiJQoLUnVuUmVzcG9uc2USFgoGcmVzdWx0GAEgASgJUgZyZXN1bHQi", - "MgoWQWRkcmVzc1RvQmVjaDMyUmVxdWVzdBIYCgdhZGRyZXNzGAEgASgMUgdh", - "ZGRyZXNzIkAKF0FkZHJlc3NUb0JlY2gzMlJlc3BvbnNlEiUKDmJlY2gzMl9h", - "ZGRyZXNzGAEgASgJUg1iZWNoMzJBZGRyZXNzIkEKGEFkZHJlc3NGcm9tQmVj", - "aDMyUmVxdWVzdBIlCg5iZWNoMzJfYWRkcmVzcxgBIAEoCVINYmVjaDMyQWRk", - "cmVzcyI1ChlBZGRyZXNzRnJvbUJlY2gzMlJlc3BvbnNlEhgKB2FkZHJlc3MY", - "ASABKAxSB2FkZHJlc3MiOAoaQWRkcmVzc0Zyb21NbmVtb25pY1JlcXVlc3QS", - "GgoIbW5lbW9uaWMYASABKAlSCG1uZW1vbmljIjcKG0FkZHJlc3NGcm9tTW5l", - "bW9uaWNSZXNwb25zZRIYCgdhZGRyZXNzGAEgASgMUgdhZGRyZXNzIiIKDEhl", - "bGxvUmVxdWVzdBISCgRuYW1lGAEgASgJUgROYW1lIisKDUhlbGxvUmVzcG9u", - "c2USGgoIZ3JlZXRpbmcYASABKAlSCEdyZWV0aW5nIigKEkhlbGxvU3RyZWFt", - "UmVxdWVzdBISCgRuYW1lGAEgASgJUgROYW1lIjEKE0hlbGxvU3RyZWFtUmVz", - "cG9uc2USGgoIZ3JlZXRpbmcYASABKAlSCEdyZWV0aW5nQilaJ2dpdGh1Yi5j", - "b20vZ25vbGFuZy9nbm9uYXRpdmUvYXBpL2dlbi9nb2IGcHJvdG8z")); + "KBJSCWdhc1dhbnRlZBISCgRtZW1vGAMgASgJUgRtZW1vEiUKDmNhbGxlcl9h", + "ZGRyZXNzGAQgASgMUg1jYWxsZXJBZGRyZXNzEjIKBG1zZ3MYBSADKAsyHi5s", + "YW5kLmduby5nbm9uYXRpdmUudjEuTXNnQ2FsbFIETXNncyImCgxDYWxsUmVz", + "cG9uc2USFgoGcmVzdWx0GAEgASgMUgZyZXN1bHQiPAoHTXNnU2VuZBIdCgp0", + "b19hZGRyZXNzGAEgASgMUgl0b0FkZHJlc3MSEgoEc2VuZBgCIAEoCVIEc2Vu", + "ZCK0AQoLU2VuZFJlcXVlc3QSFwoHZ2FzX2ZlZRgBIAEoCVIGZ2FzRmVlEh0K", + "Cmdhc193YW50ZWQYAiABKBJSCWdhc1dhbnRlZBISCgRtZW1vGAMgASgJUgRt", + "ZW1vEiUKDmNhbGxlcl9hZGRyZXNzGAQgASgMUg1jYWxsZXJBZGRyZXNzEjIK", + "BG1zZ3MYBSADKAsyHi5sYW5kLmduby5nbm9uYXRpdmUudjEuTXNnU2VuZFIE", + "TXNncyIOCgxTZW5kUmVzcG9uc2UiNgoGTXNnUnVuEhgKB3BhY2thZ2UYASAB", + "KAlSB3BhY2thZ2USEgoEc2VuZBgCIAEoCVIEc2VuZCKyAQoKUnVuUmVxdWVz", + "dBIXCgdnYXNfZmVlGAEgASgJUgZnYXNGZWUSHQoKZ2FzX3dhbnRlZBgCIAEo", + "ElIJZ2FzV2FudGVkEhIKBG1lbW8YAyABKAlSBG1lbW8SJQoOY2FsbGVyX2Fk", + "ZHJlc3MYBCABKAxSDWNhbGxlckFkZHJlc3MSMQoEbXNncxgFIAMoCzIdLmxh", + "bmQuZ25vLmdub25hdGl2ZS52MS5Nc2dSdW5SBE1zZ3MiJQoLUnVuUmVzcG9u", + "c2USFgoGcmVzdWx0GAEgASgJUgZyZXN1bHQiKQoOTWFrZVR4UmVzcG9uc2US", + "FwoHdHhfanNvbhgBIAEoCVIGdHhKc29uIngKDVNpZ25UeFJlcXVlc3QSFwoH", + "dHhfanNvbhgBIAEoCVIGdHhKc29uEiUKDmFjY291bnRfbnVtYmVyGAIgASgE", + "Ug1hY2NvdW50TnVtYmVyEicKD3NlcXVlbmNlX251bWJlchgDIAEoBFIOc2Vx", + "dWVuY2VOdW1iZXIiMQoOU2lnblR4UmVzcG9uc2USHwoOc2lnbmVkX3R4X2pz", + "b24YASABKAlSB3R4X2pzb24iOwoYQnJvYWRjYXN0VHhDb21taXRSZXF1ZXN0", + "Eh8KDnNpZ25lZF90eF9qc29uGAEgASgJUgd0eF9qc29uIjMKGUJyb2FkY2Fz", + "dFR4Q29tbWl0UmVzcG9uc2USFgoGcmVzdWx0GAEgASgMUgZyZXN1bHQiMgoW", + "QWRkcmVzc1RvQmVjaDMyUmVxdWVzdBIYCgdhZGRyZXNzGAEgASgMUgdhZGRy", + "ZXNzIkAKF0FkZHJlc3NUb0JlY2gzMlJlc3BvbnNlEiUKDmJlY2gzMl9hZGRy", + "ZXNzGAEgASgJUg1iZWNoMzJBZGRyZXNzIkEKGEFkZHJlc3NGcm9tQmVjaDMy", + "UmVxdWVzdBIlCg5iZWNoMzJfYWRkcmVzcxgBIAEoCVINYmVjaDMyQWRkcmVz", + "cyI1ChlBZGRyZXNzRnJvbUJlY2gzMlJlc3BvbnNlEhgKB2FkZHJlc3MYASAB", + "KAxSB2FkZHJlc3MiOAoaQWRkcmVzc0Zyb21NbmVtb25pY1JlcXVlc3QSGgoI", + "bW5lbW9uaWMYASABKAlSCG1uZW1vbmljIjcKG0FkZHJlc3NGcm9tTW5lbW9u", + "aWNSZXNwb25zZRIYCgdhZGRyZXNzGAEgASgMUgdhZGRyZXNzIiIKDEhlbGxv", + "UmVxdWVzdBISCgRuYW1lGAEgASgJUgROYW1lIisKDUhlbGxvUmVzcG9uc2US", + "GgoIZ3JlZXRpbmcYASABKAlSCEdyZWV0aW5nIigKEkhlbGxvU3RyZWFtUmVx", + "dWVzdBISCgRuYW1lGAEgASgJUgROYW1lIjEKE0hlbGxvU3RyZWFtUmVzcG9u", + "c2USGgoIZ3JlZXRpbmcYASABKAlSCEdyZWV0aW5nQilaJ2dpdGh1Yi5jb20v", + "Z25vbGFuZy9nbm9uYXRpdmUvYXBpL2dlbi9nb2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -167,14 +177,19 @@ static GnonativetypesReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.QEvalRequest), global::Land.Gno.Gnonative.V1.QEvalRequest.Parser, new[]{ "PackagePath", "Expression" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.QEvalResponse), global::Land.Gno.Gnonative.V1.QEvalResponse.Parser, new[]{ "Result" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.MsgCall), global::Land.Gno.Gnonative.V1.MsgCall.Parser, new[]{ "PackagePath", "Fnc", "Args", "Send" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.CallRequest), global::Land.Gno.Gnonative.V1.CallRequest.Parser, new[]{ "GasFee", "GasWanted", "Memo", "Msgs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.CallRequest), global::Land.Gno.Gnonative.V1.CallRequest.Parser, new[]{ "GasFee", "GasWanted", "Memo", "CallerAddress", "Msgs" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.CallResponse), global::Land.Gno.Gnonative.V1.CallResponse.Parser, new[]{ "Result" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.MsgSend), global::Land.Gno.Gnonative.V1.MsgSend.Parser, new[]{ "ToAddress", "Send" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SendRequest), global::Land.Gno.Gnonative.V1.SendRequest.Parser, new[]{ "GasFee", "GasWanted", "Memo", "Msgs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SendRequest), global::Land.Gno.Gnonative.V1.SendRequest.Parser, new[]{ "GasFee", "GasWanted", "Memo", "CallerAddress", "Msgs" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SendResponse), global::Land.Gno.Gnonative.V1.SendResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.MsgRun), global::Land.Gno.Gnonative.V1.MsgRun.Parser, new[]{ "Package", "Send" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.RunRequest), global::Land.Gno.Gnonative.V1.RunRequest.Parser, new[]{ "GasFee", "GasWanted", "Memo", "Msgs" }, null, null, null, null), + 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.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), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.AddressToBech32Request), global::Land.Gno.Gnonative.V1.AddressToBech32Request.Parser, new[]{ "Address" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.AddressToBech32Response), global::Land.Gno.Gnonative.V1.AddressToBech32Response.Parser, new[]{ "Bech32Address" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.AddressFromBech32Request), global::Land.Gno.Gnonative.V1.AddressFromBech32Request.Parser, new[]{ "Bech32Address" }, null, null, null, null), @@ -9935,6 +9950,7 @@ public CallRequest(CallRequest other) : this() { gasFee_ = other.gasFee_; gasWanted_ = other.gasWanted_; memo_ = other.memo_; + callerAddress_ = other.callerAddress_; msgs_ = other.msgs_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -9981,10 +9997,25 @@ public string Memo { } } + /// Field number for the "caller_address" field. + public const int CallerAddressFieldNumber = 4; + private pb::ByteString callerAddress_ = pb::ByteString.Empty; + /// + /// If CallerAddress is empty then get it from the active account + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString CallerAddress { + get { return callerAddress_; } + set { + callerAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Field number for the "msgs" field. - public const int MsgsFieldNumber = 4; + public const int MsgsFieldNumber = 5; private static readonly pb::FieldCodec _repeated_msgs_codec - = pb::FieldCodec.ForMessage(34, global::Land.Gno.Gnonative.V1.MsgCall.Parser); + = pb::FieldCodec.ForMessage(42, global::Land.Gno.Gnonative.V1.MsgCall.Parser); private readonly pbc::RepeatedField msgs_ = new pbc::RepeatedField(); /// /// list of calls to make in one transaction @@ -10013,6 +10044,7 @@ public bool Equals(CallRequest other) { if (GasFee != other.GasFee) return false; if (GasWanted != other.GasWanted) return false; if (Memo != other.Memo) return false; + if (CallerAddress != other.CallerAddress) return false; if(!msgs_.Equals(other.msgs_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10024,6 +10056,7 @@ public override int GetHashCode() { if (GasFee.Length != 0) hash ^= GasFee.GetHashCode(); if (GasWanted != 0L) hash ^= GasWanted.GetHashCode(); if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (CallerAddress.Length != 0) hash ^= CallerAddress.GetHashCode(); hash ^= msgs_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -10055,6 +10088,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(Memo); } + if (CallerAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(CallerAddress); + } msgs_.WriteTo(output, _repeated_msgs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -10078,6 +10115,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(Memo); } + if (CallerAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(CallerAddress); + } msgs_.WriteTo(ref output, _repeated_msgs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -10098,6 +10139,9 @@ public int CalculateSize() { if (Memo.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); } + if (CallerAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(CallerAddress); + } size += msgs_.CalculateSize(_repeated_msgs_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -10120,6 +10164,9 @@ public void MergeFrom(CallRequest other) { if (other.Memo.Length != 0) { Memo = other.Memo; } + if (other.CallerAddress.Length != 0) { + CallerAddress = other.CallerAddress; + } msgs_.Add(other.msgs_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -10153,6 +10200,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 34: { + CallerAddress = input.ReadBytes(); + break; + } + case 42: { msgs_.AddEntriesFrom(input, _repeated_msgs_codec); break; } @@ -10188,6 +10239,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 34: { + CallerAddress = input.ReadBytes(); + break; + } + case 42: { msgs_.AddEntriesFrom(ref input, _repeated_msgs_codec); break; } @@ -10676,6 +10731,7 @@ public SendRequest(SendRequest other) : this() { gasFee_ = other.gasFee_; gasWanted_ = other.gasWanted_; memo_ = other.memo_; + callerAddress_ = other.callerAddress_; msgs_ = other.msgs_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -10725,10 +10781,25 @@ public string Memo { } } + /// Field number for the "caller_address" field. + public const int CallerAddressFieldNumber = 4; + private pb::ByteString callerAddress_ = pb::ByteString.Empty; + /// + /// If CallerAddress is empty then get it from the active account + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString CallerAddress { + get { return callerAddress_; } + set { + callerAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Field number for the "msgs" field. - public const int MsgsFieldNumber = 4; + public const int MsgsFieldNumber = 5; private static readonly pb::FieldCodec _repeated_msgs_codec - = pb::FieldCodec.ForMessage(34, global::Land.Gno.Gnonative.V1.MsgSend.Parser); + = pb::FieldCodec.ForMessage(42, global::Land.Gno.Gnonative.V1.MsgSend.Parser); private readonly pbc::RepeatedField msgs_ = new pbc::RepeatedField(); /// /// list of send operations to make in one transaction @@ -10757,6 +10828,7 @@ public bool Equals(SendRequest other) { if (GasFee != other.GasFee) return false; if (GasWanted != other.GasWanted) return false; if (Memo != other.Memo) return false; + if (CallerAddress != other.CallerAddress) return false; if(!msgs_.Equals(other.msgs_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -10768,6 +10840,7 @@ public override int GetHashCode() { if (GasFee.Length != 0) hash ^= GasFee.GetHashCode(); if (GasWanted != 0L) hash ^= GasWanted.GetHashCode(); if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (CallerAddress.Length != 0) hash ^= CallerAddress.GetHashCode(); hash ^= msgs_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -10799,6 +10872,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(Memo); } + if (CallerAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(CallerAddress); + } msgs_.WriteTo(output, _repeated_msgs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -10822,6 +10899,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(Memo); } + if (CallerAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(CallerAddress); + } msgs_.WriteTo(ref output, _repeated_msgs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -10842,6 +10923,9 @@ public int CalculateSize() { if (Memo.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); } + if (CallerAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(CallerAddress); + } size += msgs_.CalculateSize(_repeated_msgs_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -10864,6 +10948,9 @@ public void MergeFrom(SendRequest other) { if (other.Memo.Length != 0) { Memo = other.Memo; } + if (other.CallerAddress.Length != 0) { + CallerAddress = other.CallerAddress; + } msgs_.Add(other.msgs_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -10897,6 +10984,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 34: { + CallerAddress = input.ReadBytes(); + break; + } + case 42: { msgs_.AddEntriesFrom(input, _repeated_msgs_codec); break; } @@ -10932,6 +11023,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 34: { + CallerAddress = input.ReadBytes(); + break; + } + case 42: { msgs_.AddEntriesFrom(ref input, _repeated_msgs_codec); break; } @@ -11383,6 +11478,7 @@ public RunRequest(RunRequest other) : this() { gasFee_ = other.gasFee_; gasWanted_ = other.gasWanted_; memo_ = other.memo_; + callerAddress_ = other.callerAddress_; msgs_ = other.msgs_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -11432,10 +11528,25 @@ public string Memo { } } + /// Field number for the "caller_address" field. + public const int CallerAddressFieldNumber = 4; + private pb::ByteString callerAddress_ = pb::ByteString.Empty; + /// + /// If CallerAddress is empty then get it from the active account + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString CallerAddress { + get { return callerAddress_; } + set { + callerAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Field number for the "msgs" field. - public const int MsgsFieldNumber = 4; + public const int MsgsFieldNumber = 5; private static readonly pb::FieldCodec _repeated_msgs_codec - = pb::FieldCodec.ForMessage(34, global::Land.Gno.Gnonative.V1.MsgRun.Parser); + = pb::FieldCodec.ForMessage(42, global::Land.Gno.Gnonative.V1.MsgRun.Parser); private readonly pbc::RepeatedField msgs_ = new pbc::RepeatedField(); /// /// list of run operations to make in one transaction @@ -11464,6 +11575,7 @@ public bool Equals(RunRequest other) { if (GasFee != other.GasFee) return false; if (GasWanted != other.GasWanted) return false; if (Memo != other.Memo) return false; + if (CallerAddress != other.CallerAddress) return false; if(!msgs_.Equals(other.msgs_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11475,6 +11587,7 @@ public override int GetHashCode() { if (GasFee.Length != 0) hash ^= GasFee.GetHashCode(); if (GasWanted != 0L) hash ^= GasWanted.GetHashCode(); if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (CallerAddress.Length != 0) hash ^= CallerAddress.GetHashCode(); hash ^= msgs_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -11506,6 +11619,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(Memo); } + if (CallerAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(CallerAddress); + } msgs_.WriteTo(output, _repeated_msgs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -11529,6 +11646,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(Memo); } + if (CallerAddress.Length != 0) { + output.WriteRawTag(34); + output.WriteBytes(CallerAddress); + } msgs_.WriteTo(ref output, _repeated_msgs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -11549,6 +11670,9 @@ public int CalculateSize() { if (Memo.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); } + if (CallerAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(CallerAddress); + } size += msgs_.CalculateSize(_repeated_msgs_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -11571,6 +11695,9 @@ public void MergeFrom(RunRequest other) { if (other.Memo.Length != 0) { Memo = other.Memo; } + if (other.CallerAddress.Length != 0) { + CallerAddress = other.CallerAddress; + } msgs_.Add(other.msgs_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -11604,6 +11731,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 34: { + CallerAddress = input.ReadBytes(); + break; + } + case 42: { msgs_.AddEntriesFrom(input, _repeated_msgs_codec); break; } @@ -11639,6 +11770,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 34: { + CallerAddress = input.ReadBytes(); + break; + } + case 42: { msgs_.AddEntriesFrom(ref input, _repeated_msgs_codec); break; } @@ -11851,16 +11986,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AddressToBech32Request : pb::IMessage + public sealed partial class MakeTxResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressToBech32Request()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MakeTxResponse()); 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)] @@ -11876,7 +12011,7 @@ public sealed partial class AddressToBech32Request : pb::IMessageField number for the "address" field. - public const int AddressFieldNumber = 1; - private pb::ByteString address_ = pb::ByteString.Empty; + /// Field number for the "tx_json" field. + public const int TxJsonFieldNumber = 1; + private string txJson_ = ""; + /// + /// The JSON encoding of the unsigned transaction + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Address { - get { return address_; } + public string TxJson { + get { return txJson_; } set { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + txJson_ = 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 AddressToBech32Request); + return Equals(other as MakeTxResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddressToBech32Request other) { + public bool Equals(MakeTxResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Address != other.Address) return false; + if (TxJson != other.TxJson) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11930,7 +12068,7 @@ public bool Equals(AddressToBech32Request other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Address.Length != 0) hash ^= Address.GetHashCode(); + if (TxJson.Length != 0) hash ^= TxJson.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11949,9 +12087,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Address.Length != 0) { + if (TxJson.Length != 0) { output.WriteRawTag(10); - output.WriteBytes(Address); + output.WriteString(TxJson); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -11963,9 +12101,9 @@ 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) { + if (TxJson.Length != 0) { output.WriteRawTag(10); - output.WriteBytes(Address); + output.WriteString(TxJson); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -11977,8 +12115,8 @@ 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 (TxJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TxJson); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -11988,12 +12126,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddressToBech32Request other) { + public void MergeFrom(MakeTxResponse other) { if (other == null) { return; } - if (other.Address.Length != 0) { - Address = other.Address; + if (other.TxJson.Length != 0) { + TxJson = other.TxJson; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12015,7 +12153,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Address = input.ReadBytes(); + TxJson = input.ReadString(); break; } } @@ -12038,7 +12176,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Address = input.ReadBytes(); + TxJson = input.ReadString(); break; } } @@ -12049,16 +12187,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AddressToBech32Response : pb::IMessage + public sealed partial class SignTxRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressToBech32Response()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SignTxRequest()); 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)] @@ -12074,7 +12212,7 @@ public sealed partial class AddressToBech32Response : pb::IMessageField number for the "bech32_address" field. - public const int Bech32AddressFieldNumber = 1; - private string bech32Address_ = ""; + /// Field number for the "tx_json" field. + public const int TxJsonFieldNumber = 1; + private string txJson_ = ""; + /// + /// The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Bech32Address { - get { return bech32Address_; } + public string TxJson { + get { return txJson_; } set { - bech32Address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + txJson_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "account_number" field. + public const int AccountNumberFieldNumber = 2; + private ulong accountNumber_; + /// + /// The signer's account number on the blockchain. If 0 then query the blockchain for the value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong AccountNumber { + get { return accountNumber_; } + set { + accountNumber_ = value; + } + } + + /// Field number for the "sequence_number" field. + public const int SequenceNumberFieldNumber = 3; + private ulong sequenceNumber_; + /// + /// The sequence number of the signer's transactions on the blockchain. If 0 then query the blockchain for the value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ulong SequenceNumber { + get { return sequenceNumber_; } + set { + sequenceNumber_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as AddressToBech32Response); + return Equals(other as SignTxRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddressToBech32Response other) { + public bool Equals(SignTxRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Bech32Address != other.Bech32Address) return false; + if (TxJson != other.TxJson) return false; + if (AccountNumber != other.AccountNumber) return false; + if (SequenceNumber != other.SequenceNumber) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12128,7 +12303,9 @@ public bool Equals(AddressToBech32Response other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Bech32Address.Length != 0) hash ^= Bech32Address.GetHashCode(); + if (TxJson.Length != 0) hash ^= TxJson.GetHashCode(); + if (AccountNumber != 0UL) hash ^= AccountNumber.GetHashCode(); + if (SequenceNumber != 0UL) hash ^= SequenceNumber.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12147,9 +12324,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Bech32Address.Length != 0) { + if (TxJson.Length != 0) { output.WriteRawTag(10); - output.WriteString(Bech32Address); + output.WriteString(TxJson); + } + if (AccountNumber != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(AccountNumber); + } + if (SequenceNumber != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(SequenceNumber); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -12161,9 +12346,17 @@ 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 (Bech32Address.Length != 0) { + if (TxJson.Length != 0) { output.WriteRawTag(10); - output.WriteString(Bech32Address); + output.WriteString(TxJson); + } + if (AccountNumber != 0UL) { + output.WriteRawTag(16); + output.WriteUInt64(AccountNumber); + } + if (SequenceNumber != 0UL) { + output.WriteRawTag(24); + output.WriteUInt64(SequenceNumber); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -12175,8 +12368,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Bech32Address.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Bech32Address); + if (TxJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TxJson); + } + if (AccountNumber != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AccountNumber); + } + if (SequenceNumber != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SequenceNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -12186,12 +12385,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddressToBech32Response other) { + public void MergeFrom(SignTxRequest other) { if (other == null) { return; } - if (other.Bech32Address.Length != 0) { - Bech32Address = other.Bech32Address; + if (other.TxJson.Length != 0) { + TxJson = other.TxJson; + } + if (other.AccountNumber != 0UL) { + AccountNumber = other.AccountNumber; + } + if (other.SequenceNumber != 0UL) { + SequenceNumber = other.SequenceNumber; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12213,7 +12418,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Bech32Address = input.ReadString(); + TxJson = input.ReadString(); + break; + } + case 16: { + AccountNumber = input.ReadUInt64(); + break; + } + case 24: { + SequenceNumber = input.ReadUInt64(); break; } } @@ -12236,7 +12449,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Bech32Address = input.ReadString(); + TxJson = input.ReadString(); + break; + } + case 16: { + AccountNumber = input.ReadUInt64(); + break; + } + case 24: { + SequenceNumber = input.ReadUInt64(); break; } } @@ -12247,16 +12468,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AddressFromBech32Request : pb::IMessage + public sealed partial class SignTxResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressFromBech32Request()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SignTxResponse()); 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)] @@ -12272,7 +12493,7 @@ public sealed partial class AddressFromBech32Request : pb::IMessageField number for the "bech32_address" field. - public const int Bech32AddressFieldNumber = 1; - private string bech32Address_ = ""; + /// Field number for the "signed_tx_json" field. + public const int SignedTxJsonFieldNumber = 1; + private string signedTxJson_ = ""; + /// + /// The JSON encoding of the signed transaction (to use in BroadcastTx) + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Bech32Address { - get { return bech32Address_; } + public string SignedTxJson { + get { return signedTxJson_; } set { - bech32Address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + signedTxJson_ = 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 AddressFromBech32Request); + return Equals(other as SignTxResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddressFromBech32Request other) { + public bool Equals(SignTxResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Bech32Address != other.Bech32Address) return false; + if (SignedTxJson != other.SignedTxJson) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12326,7 +12550,7 @@ public bool Equals(AddressFromBech32Request other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Bech32Address.Length != 0) hash ^= Bech32Address.GetHashCode(); + if (SignedTxJson.Length != 0) hash ^= SignedTxJson.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12345,9 +12569,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Bech32Address.Length != 0) { + if (SignedTxJson.Length != 0) { output.WriteRawTag(10); - output.WriteString(Bech32Address); + output.WriteString(SignedTxJson); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -12359,9 +12583,9 @@ 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 (Bech32Address.Length != 0) { + if (SignedTxJson.Length != 0) { output.WriteRawTag(10); - output.WriteString(Bech32Address); + output.WriteString(SignedTxJson); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -12373,8 +12597,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Bech32Address.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Bech32Address); + if (SignedTxJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SignedTxJson); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -12384,12 +12608,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddressFromBech32Request other) { + public void MergeFrom(SignTxResponse other) { if (other == null) { return; } - if (other.Bech32Address.Length != 0) { - Bech32Address = other.Bech32Address; + if (other.SignedTxJson.Length != 0) { + SignedTxJson = other.SignedTxJson; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12411,7 +12635,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Bech32Address = input.ReadString(); + SignedTxJson = input.ReadString(); break; } } @@ -12434,7 +12658,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Bech32Address = input.ReadString(); + SignedTxJson = input.ReadString(); break; } } @@ -12445,16 +12669,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AddressFromBech32Response : pb::IMessage + public sealed partial class BroadcastTxCommitRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressFromBech32Response()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BroadcastTxCommitRequest()); 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)] @@ -12470,7 +12694,7 @@ public sealed partial class AddressFromBech32Response : pb::IMessageField number for the "address" field. - public const int AddressFieldNumber = 1; - private pb::ByteString address_ = pb::ByteString.Empty; + /// Field number for the "signed_tx_json" field. + public const int SignedTxJsonFieldNumber = 1; + private string signedTxJson_ = ""; + /// + /// The JSON encoding of the signed transaction (from SignTx) + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Address { - get { return address_; } + public string SignedTxJson { + get { return signedTxJson_; } set { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + signedTxJson_ = 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 AddressFromBech32Response); + return Equals(other as BroadcastTxCommitRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddressFromBech32Response other) { + public bool Equals(BroadcastTxCommitRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Address != other.Address) return false; + if (SignedTxJson != other.SignedTxJson) return false; return Equals(_unknownFields, other._unknownFields); } @@ -12524,7 +12751,7 @@ public bool Equals(AddressFromBech32Response other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Address.Length != 0) hash ^= Address.GetHashCode(); + if (SignedTxJson.Length != 0) hash ^= SignedTxJson.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12543,9 +12770,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Address.Length != 0) { + if (SignedTxJson.Length != 0) { output.WriteRawTag(10); - output.WriteBytes(Address); + output.WriteString(SignedTxJson); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -12557,9 +12784,9 @@ 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) { + if (SignedTxJson.Length != 0) { output.WriteRawTag(10); - output.WriteBytes(Address); + output.WriteString(SignedTxJson); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -12571,8 +12798,8 @@ 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 (SignedTxJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SignedTxJson); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -12582,12 +12809,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddressFromBech32Response other) { + public void MergeFrom(BroadcastTxCommitRequest other) { if (other == null) { return; } - if (other.Address.Length != 0) { - Address = other.Address; + if (other.SignedTxJson.Length != 0) { + SignedTxJson = other.SignedTxJson; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -12609,7 +12836,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Address = input.ReadBytes(); + SignedTxJson = input.ReadString(); break; } } @@ -12632,7 +12859,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Address = input.ReadBytes(); + SignedTxJson = input.ReadString(); break; } } @@ -12643,16 +12870,16 @@ public void MergeFrom(pb::CodedInputStream input) { } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class AddressFromMnemonicRequest : pb::IMessage + public sealed partial class BroadcastTxCommitResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressFromMnemonicRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BroadcastTxCommitResponse()); 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)] @@ -12668,7 +12895,7 @@ public sealed partial class AddressFromMnemonicRequest : pb::IMessageField number for the "mnemonic" field. - public const int MnemonicFieldNumber = 1; - private string mnemonic_ = ""; + /// Field number for the "result" field. + public const int ResultFieldNumber = 1; + private pb::ByteString result_ = pb::ByteString.Empty; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Mnemonic { - get { return mnemonic_; } + public pb::ByteString Result { + get { return result_; } set { - mnemonic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + result_ = 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 BroadcastTxCommitResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BroadcastTxCommitResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Result != other.Result) 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 (Result.Length != 0) hash ^= Result.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 (Result.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Result); + } + 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 (Result.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Result); + } + 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 (Result.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Result); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BroadcastTxCommitResponse other) { + if (other == null) { + return; + } + if (other.Result.Length != 0) { + Result = other.Result; + } + _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: { + Result = input.ReadBytes(); + 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: { + Result = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddressToBech32Request : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressToBech32Request()); + 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[59]; } + } + + [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 AddressToBech32Request() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressToBech32Request(AddressToBech32Request other) : this() { + address_ = other.address_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressToBech32Request Clone() { + return new AddressToBech32Request(this); + } + + /// Field 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 AddressToBech32Request); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddressToBech32Request other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Address != other.Address) 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 (Address.Length != 0) hash ^= Address.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 (Address.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Address); + } + 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 (Address.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Address); + } + 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 (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Address); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddressToBech32Request other) { + if (other == null) { + return; + } + if (other.Address.Length != 0) { + Address = other.Address; + } + _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: { + Address = input.ReadBytes(); + 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: { + Address = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddressToBech32Response : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressToBech32Response()); + 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[60]; } + } + + [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 AddressToBech32Response() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressToBech32Response(AddressToBech32Response other) : this() { + bech32Address_ = other.bech32Address_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressToBech32Response Clone() { + return new AddressToBech32Response(this); + } + + /// Field number for the "bech32_address" field. + public const int Bech32AddressFieldNumber = 1; + private string bech32Address_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bech32Address { + get { return bech32Address_; } + set { + bech32Address_ = 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 AddressToBech32Response); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddressToBech32Response other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Bech32Address != other.Bech32Address) 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 (Bech32Address.Length != 0) hash ^= Bech32Address.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 (Bech32Address.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Bech32Address); + } + 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 (Bech32Address.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Bech32Address); + } + 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 (Bech32Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bech32Address); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddressToBech32Response other) { + if (other == null) { + return; + } + if (other.Bech32Address.Length != 0) { + Bech32Address = other.Bech32Address; + } + _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: { + Bech32Address = 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: { + Bech32Address = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddressFromBech32Request : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressFromBech32Request()); + 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[61]; } + } + + [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 AddressFromBech32Request() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressFromBech32Request(AddressFromBech32Request other) : this() { + bech32Address_ = other.bech32Address_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressFromBech32Request Clone() { + return new AddressFromBech32Request(this); + } + + /// Field number for the "bech32_address" field. + public const int Bech32AddressFieldNumber = 1; + private string bech32Address_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Bech32Address { + get { return bech32Address_; } + set { + bech32Address_ = 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 AddressFromBech32Request); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddressFromBech32Request other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Bech32Address != other.Bech32Address) 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 (Bech32Address.Length != 0) hash ^= Bech32Address.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 (Bech32Address.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Bech32Address); + } + 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 (Bech32Address.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Bech32Address); + } + 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 (Bech32Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Bech32Address); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddressFromBech32Request other) { + if (other == null) { + return; + } + if (other.Bech32Address.Length != 0) { + Bech32Address = other.Bech32Address; + } + _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: { + Bech32Address = 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: { + Bech32Address = input.ReadString(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddressFromBech32Response : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressFromBech32Response()); + 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[62]; } + } + + [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 AddressFromBech32Response() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressFromBech32Response(AddressFromBech32Response other) : this() { + address_ = other.address_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressFromBech32Response Clone() { + return new AddressFromBech32Response(this); + } + + /// Field 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 AddressFromBech32Response); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddressFromBech32Response other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Address != other.Address) 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 (Address.Length != 0) hash ^= Address.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 (Address.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Address); + } + 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 (Address.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(Address); + } + 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 (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Address); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddressFromBech32Response other) { + if (other == null) { + return; + } + if (other.Address.Length != 0) { + Address = other.Address; + } + _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: { + Address = input.ReadBytes(); + 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: { + Address = input.ReadBytes(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class AddressFromMnemonicRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressFromMnemonicRequest()); + 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[63]; } + } + + [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 AddressFromMnemonicRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressFromMnemonicRequest(AddressFromMnemonicRequest other) : this() { + mnemonic_ = other.mnemonic_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddressFromMnemonicRequest Clone() { + return new AddressFromMnemonicRequest(this); + } + + /// Field number for the "mnemonic" field. + public const int MnemonicFieldNumber = 1; + private string mnemonic_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Mnemonic { + get { return mnemonic_; } + set { + mnemonic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } @@ -12855,7 +14072,7 @@ public sealed partial class AddressFromMnemonicResponse : 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[60]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[65]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13251,7 +14468,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[61]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[66]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13449,7 +14666,7 @@ public sealed partial class HelloStreamRequest : pb::IMessage(grpc::DeserializationContext context, gl [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_RunResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.RunResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_MakeTxResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.MakeTxResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_SignTxRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.SignTxRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_SignTxResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.SignTxResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_BroadcastTxCommitRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.BroadcastTxCommitRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_BroadcastTxCommitResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.BroadcastTxCommitResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_AddressToBech32Request = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.AddressToBech32Request.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_AddressToBech32Response = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.AddressToBech32Response.Parser)); @@ -357,6 +367,46 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_land_gno_gnonative_v1_RunRequest, __Marshaller_land_gno_gnonative_v1_RunResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_MakeCallTx = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "MakeCallTx", + __Marshaller_land_gno_gnonative_v1_CallRequest, + __Marshaller_land_gno_gnonative_v1_MakeTxResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_MakeSendTx = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "MakeSendTx", + __Marshaller_land_gno_gnonative_v1_SendRequest, + __Marshaller_land_gno_gnonative_v1_MakeTxResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_MakeRunTx = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "MakeRunTx", + __Marshaller_land_gno_gnonative_v1_RunRequest, + __Marshaller_land_gno_gnonative_v1_MakeTxResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_SignTx = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "SignTx", + __Marshaller_land_gno_gnonative_v1_SignTxRequest, + __Marshaller_land_gno_gnonative_v1_SignTxResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_BroadcastTxCommit = new grpc::Method( + grpc::MethodType.ServerStreaming, + __ServiceName, + "BroadcastTxCommit", + __Marshaller_land_gno_gnonative_v1_BroadcastTxCommitRequest, + __Marshaller_land_gno_gnonative_v1_BroadcastTxCommitResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_AddressToBech32 = new grpc::Method( grpc::MethodType.Unary, @@ -743,6 +793,69 @@ public abstract partial class GnoNativeServiceBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// Make an unsigned transaction to call a specific realm function. + /// + /// 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 MakeCallTx(global::Land.Gno.Gnonative.V1.CallRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Make an unsigned transaction to send currency to an account on the blockchain. + /// + /// 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 MakeSendTx(global::Land.Gno.Gnonative.V1.SendRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). + /// + /// 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 MakeRunTx(global::Land.Gno.Gnonative.V1.RunRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Sign the transaction using the active account. + /// If no active account has been set with SelectAccount, 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. + /// 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 SignTx(global::Land.Gno.Gnonative.V1.SignTxRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result. + /// + /// The request received from the client. + /// Used for sending responses back to the client. + /// The context of the server-side call handler being invoked. + /// A task indicating completion of the handler. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task BroadcastTxCommit(global::Land.Gno.Gnonative.V1.BroadcastTxCommitRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + /// /// Convert a byte array address to a bech32 string address. /// @@ -2080,6 +2193,230 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.AsyncServerStreamingCall(__Method_Run, null, options, request); } /// + /// Make an unsigned transaction to call a specific realm function. + /// + /// 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.MakeTxResponse MakeCallTx(global::Land.Gno.Gnonative.V1.CallRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return MakeCallTx(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Make an unsigned transaction to call a specific realm function. + /// + /// 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.MakeTxResponse MakeCallTx(global::Land.Gno.Gnonative.V1.CallRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_MakeCallTx, null, options, request); + } + /// + /// Make an unsigned transaction to call a specific realm function. + /// + /// 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 MakeCallTxAsync(global::Land.Gno.Gnonative.V1.CallRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return MakeCallTxAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Make an unsigned transaction to call a specific realm function. + /// + /// 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 MakeCallTxAsync(global::Land.Gno.Gnonative.V1.CallRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_MakeCallTx, null, options, request); + } + /// + /// Make an unsigned transaction to send currency to an account on the blockchain. + /// + /// 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.MakeTxResponse MakeSendTx(global::Land.Gno.Gnonative.V1.SendRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return MakeSendTx(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Make an unsigned transaction to send currency to an account on the blockchain. + /// + /// 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.MakeTxResponse MakeSendTx(global::Land.Gno.Gnonative.V1.SendRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_MakeSendTx, null, options, request); + } + /// + /// Make an unsigned transaction to send currency to an account on the blockchain. + /// + /// 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 MakeSendTxAsync(global::Land.Gno.Gnonative.V1.SendRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return MakeSendTxAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Make an unsigned transaction to send currency to an account on the blockchain. + /// + /// 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 MakeSendTxAsync(global::Land.Gno.Gnonative.V1.SendRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_MakeSendTx, null, options, request); + } + /// + /// Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). + /// + /// 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.MakeTxResponse MakeRunTx(global::Land.Gno.Gnonative.V1.RunRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return MakeRunTx(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). + /// + /// 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.MakeTxResponse MakeRunTx(global::Land.Gno.Gnonative.V1.RunRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_MakeRunTx, null, options, request); + } + /// + /// Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). + /// + /// 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 MakeRunTxAsync(global::Land.Gno.Gnonative.V1.RunRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return MakeRunTxAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). + /// + /// 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 MakeRunTxAsync(global::Land.Gno.Gnonative.V1.RunRequest request, grpc::CallOptions options) + { + 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. + /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + /// + /// 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.SignTxResponse SignTx(global::Land.Gno.Gnonative.V1.SignTxRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + 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. + /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + /// + /// 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.SignTxResponse SignTx(global::Land.Gno.Gnonative.V1.SignTxRequest request, grpc::CallOptions options) + { + 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. + /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + /// + /// 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 SignTxAsync(global::Land.Gno.Gnonative.V1.SignTxRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + 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. + /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + /// + /// 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 SignTxAsync(global::Land.Gno.Gnonative.V1.SignTxRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_SignTx, null, options, request); + } + /// + /// Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result. + /// + /// 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::AsyncServerStreamingCall BroadcastTxCommit(global::Land.Gno.Gnonative.V1.BroadcastTxCommitRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BroadcastTxCommit(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result. + /// + /// 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::AsyncServerStreamingCall BroadcastTxCommit(global::Land.Gno.Gnonative.V1.BroadcastTxCommitRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncServerStreamingCall(__Method_BroadcastTxCommit, null, options, request); + } + /// /// Convert a byte array address to a bech32 string address. /// /// The request to send to the server. @@ -2333,6 +2670,11 @@ protected override GnoNativeServiceClient NewInstance(ClientBaseConfiguration co .AddMethod(__Method_Call, serviceImpl.Call) .AddMethod(__Method_Send, serviceImpl.Send) .AddMethod(__Method_Run, serviceImpl.Run) + .AddMethod(__Method_MakeCallTx, serviceImpl.MakeCallTx) + .AddMethod(__Method_MakeSendTx, serviceImpl.MakeSendTx) + .AddMethod(__Method_MakeRunTx, serviceImpl.MakeRunTx) + .AddMethod(__Method_SignTx, serviceImpl.SignTx) + .AddMethod(__Method_BroadcastTxCommit, serviceImpl.BroadcastTxCommit) .AddMethod(__Method_AddressToBech32, serviceImpl.AddressToBech32) .AddMethod(__Method_AddressFromBech32, serviceImpl.AddressFromBech32) .AddMethod(__Method_AddressFromMnemonic, serviceImpl.AddressFromMnemonic) @@ -2371,6 +2713,11 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, GnoNativeS serviceBinder.AddMethod(__Method_Call, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.Call)); serviceBinder.AddMethod(__Method_Send, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.Send)); serviceBinder.AddMethod(__Method_Run, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.Run)); + serviceBinder.AddMethod(__Method_MakeCallTx, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MakeCallTx)); + serviceBinder.AddMethod(__Method_MakeSendTx, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MakeSendTx)); + serviceBinder.AddMethod(__Method_MakeRunTx, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MakeRunTx)); + serviceBinder.AddMethod(__Method_SignTx, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SignTx)); + serviceBinder.AddMethod(__Method_BroadcastTxCommit, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.BroadcastTxCommit)); serviceBinder.AddMethod(__Method_AddressToBech32, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddressToBech32)); serviceBinder.AddMethod(__Method_AddressFromBech32, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddressFromBech32)); serviceBinder.AddMethod(__Method_AddressFromMnemonic, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddressFromMnemonic)); diff --git a/api/gen/es/gnonativetypes_pb.d.ts b/api/gen/es/gnonativetypes_pb.d.ts index 343baa87..b02926c5 100644 --- a/api/gen/es/gnonativetypes_pb.d.ts +++ b/api/gen/es/gnonativetypes_pb.d.ts @@ -1,275 +1,189 @@ -// @generated by protoc-gen-es v1.10.0 +// @generated by protoc-gen-es v2.0.0 // @generated from file gnonativetypes.proto (package land.gno.gnonative.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; +import type { Message } from "@bufbuild/protobuf"; + +/** + * Describes the file gnonativetypes.proto. + */ +export declare const file_gnonativetypes: GenFile; /** * messages * * @generated from message land.gno.gnonative.v1.SetRemoteRequest */ -export declare class SetRemoteRequest extends Message { +export declare type SetRemoteRequest = Message<"land.gno.gnonative.v1.SetRemoteRequest"> & { /** * @generated from field: string remote = 1; */ remote: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SetRemoteRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SetRemoteRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): SetRemoteRequest; - - static fromJsonString(jsonString: string, options?: Partial): SetRemoteRequest; - - static equals(a: SetRemoteRequest | PlainMessage | undefined, b: SetRemoteRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SetRemoteRequest. + * Use `create(SetRemoteRequestSchema)` to create a new message. + */ +export declare const SetRemoteRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.SetRemoteResponse */ -export declare class SetRemoteResponse extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SetRemoteResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SetRemoteResponse; +export declare type SetRemoteResponse = Message<"land.gno.gnonative.v1.SetRemoteResponse"> & { +}; - static fromJson(jsonValue: JsonValue, options?: Partial): SetRemoteResponse; - - static fromJsonString(jsonString: string, options?: Partial): SetRemoteResponse; - - static equals(a: SetRemoteResponse | PlainMessage | undefined, b: SetRemoteResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SetRemoteResponse. + * Use `create(SetRemoteResponseSchema)` to create a new message. + */ +export declare const SetRemoteResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetRemoteRequest */ -export declare class GetRemoteRequest extends Message { - constructor(data?: PartialMessage); +export declare type GetRemoteRequest = Message<"land.gno.gnonative.v1.GetRemoteRequest"> & { +}; - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetRemoteRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetRemoteRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetRemoteRequest; - - static fromJsonString(jsonString: string, options?: Partial): GetRemoteRequest; - - static equals(a: GetRemoteRequest | PlainMessage | undefined, b: GetRemoteRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetRemoteRequest. + * Use `create(GetRemoteRequestSchema)` to create a new message. + */ +export declare const GetRemoteRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetRemoteResponse */ -export declare class GetRemoteResponse extends Message { +export declare type GetRemoteResponse = Message<"land.gno.gnonative.v1.GetRemoteResponse"> & { /** * @generated from field: string remote = 1; */ remote: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetRemoteResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetRemoteResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetRemoteResponse; - - static fromJsonString(jsonString: string, options?: Partial): GetRemoteResponse; - - static equals(a: GetRemoteResponse | PlainMessage | undefined, b: GetRemoteResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetRemoteResponse. + * Use `create(GetRemoteResponseSchema)` to create a new message. + */ +export declare const GetRemoteResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.SetChainIDRequest */ -export declare class SetChainIDRequest extends Message { +export declare type SetChainIDRequest = Message<"land.gno.gnonative.v1.SetChainIDRequest"> & { /** * @generated from field: string chain_id = 1; */ chainId: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SetChainIDRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SetChainIDRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): SetChainIDRequest; - - static fromJsonString(jsonString: string, options?: Partial): SetChainIDRequest; - - static equals(a: SetChainIDRequest | PlainMessage | undefined, b: SetChainIDRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SetChainIDRequest. + * Use `create(SetChainIDRequestSchema)` to create a new message. + */ +export declare const SetChainIDRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.SetChainIDResponse */ -export declare class SetChainIDResponse extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SetChainIDResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SetChainIDResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): SetChainIDResponse; +export declare type SetChainIDResponse = Message<"land.gno.gnonative.v1.SetChainIDResponse"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): SetChainIDResponse; - - static equals(a: SetChainIDResponse | PlainMessage | undefined, b: SetChainIDResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SetChainIDResponse. + * Use `create(SetChainIDResponseSchema)` to create a new message. + */ +export declare const SetChainIDResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetChainIDRequest */ -export declare class GetChainIDRequest extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetChainIDRequest"; - static readonly fields: FieldList; +export declare type GetChainIDRequest = Message<"land.gno.gnonative.v1.GetChainIDRequest"> & { +}; - static fromBinary(bytes: Uint8Array, options?: Partial): GetChainIDRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChainIDRequest; - - static fromJsonString(jsonString: string, options?: Partial): GetChainIDRequest; - - static equals(a: GetChainIDRequest | PlainMessage | undefined, b: GetChainIDRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetChainIDRequest. + * Use `create(GetChainIDRequestSchema)` to create a new message. + */ +export declare const GetChainIDRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetChainIDResponse */ -export declare class GetChainIDResponse extends Message { +export declare type GetChainIDResponse = Message<"land.gno.gnonative.v1.GetChainIDResponse"> & { /** * @generated from field: string chain_id = 1; */ chainId: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetChainIDResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetChainIDResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetChainIDResponse; - - static fromJsonString(jsonString: string, options?: Partial): GetChainIDResponse; - - static equals(a: GetChainIDResponse | PlainMessage | undefined, b: GetChainIDResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetChainIDResponse. + * Use `create(GetChainIDResponseSchema)` to create a new message. + */ +export declare const GetChainIDResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.SetPasswordRequest */ -export declare class SetPasswordRequest extends Message { +export declare type SetPasswordRequest = Message<"land.gno.gnonative.v1.SetPasswordRequest"> & { /** * @generated from field: string password = 1; */ password: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SetPasswordRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SetPasswordRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): SetPasswordRequest; - - static fromJsonString(jsonString: string, options?: Partial): SetPasswordRequest; - - static equals(a: SetPasswordRequest | PlainMessage | undefined, b: SetPasswordRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SetPasswordRequest. + * Use `create(SetPasswordRequestSchema)` to create a new message. + */ +export declare const SetPasswordRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.SetPasswordResponse */ -export declare class SetPasswordResponse extends Message { - constructor(data?: PartialMessage); +export declare type SetPasswordResponse = Message<"land.gno.gnonative.v1.SetPasswordResponse"> & { +}; - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SetPasswordResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SetPasswordResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): SetPasswordResponse; - - static fromJsonString(jsonString: string, options?: Partial): SetPasswordResponse; - - static equals(a: SetPasswordResponse | PlainMessage | undefined, b: SetPasswordResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SetPasswordResponse. + * Use `create(SetPasswordResponseSchema)` to create a new message. + */ +export declare const SetPasswordResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GenerateRecoveryPhraseRequest */ -export declare class GenerateRecoveryPhraseRequest extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GenerateRecoveryPhraseRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GenerateRecoveryPhraseRequest; +export declare type GenerateRecoveryPhraseRequest = Message<"land.gno.gnonative.v1.GenerateRecoveryPhraseRequest"> & { +}; - static fromJson(jsonValue: JsonValue, options?: Partial): GenerateRecoveryPhraseRequest; - - static fromJsonString(jsonString: string, options?: Partial): GenerateRecoveryPhraseRequest; - - static equals(a: GenerateRecoveryPhraseRequest | PlainMessage | undefined, b: GenerateRecoveryPhraseRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GenerateRecoveryPhraseRequest. + * Use `create(GenerateRecoveryPhraseRequestSchema)` to create a new message. + */ +export declare const GenerateRecoveryPhraseRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GenerateRecoveryPhraseResponse */ -export declare class GenerateRecoveryPhraseResponse extends Message { +export declare type GenerateRecoveryPhraseResponse = Message<"land.gno.gnonative.v1.GenerateRecoveryPhraseResponse"> & { /** * @generated from field: string phrase = 1; */ phrase: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GenerateRecoveryPhraseResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GenerateRecoveryPhraseResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): GenerateRecoveryPhraseResponse; - - static fromJsonString(jsonString: string, options?: Partial): GenerateRecoveryPhraseResponse; - - static equals(a: GenerateRecoveryPhraseResponse | PlainMessage | undefined, b: GenerateRecoveryPhraseResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GenerateRecoveryPhraseResponse. + * Use `create(GenerateRecoveryPhraseResponseSchema)` to create a new message. + */ +export declare const GenerateRecoveryPhraseResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.KeyInfo */ -export declare class KeyInfo extends Message { +export declare type KeyInfo = Message<"land.gno.gnonative.v1.KeyInfo"> & { /** * 0: local, 1: ledger, 2: offline, 3: multi * @@ -291,21 +205,13 @@ export declare class KeyInfo extends Message { * @generated from field: bytes address = 4; */ address: Uint8Array; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.KeyInfo"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): KeyInfo; - - static fromJson(jsonValue: JsonValue, options?: Partial): KeyInfo; - - static fromJsonString(jsonString: string, options?: Partial): KeyInfo; - - static equals(a: KeyInfo | PlainMessage | undefined, b: KeyInfo | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.KeyInfo. + * Use `create(KeyInfoSchema)` to create a new message. + */ +export declare const KeyInfoSchema: GenMessage; /** * Coin holds some amount of one currency. @@ -313,7 +219,7 @@ export declare class KeyInfo extends Message { * * @generated from message land.gno.gnonative.v1.Coin */ -export declare class Coin extends Message { +export declare type Coin = Message<"land.gno.gnonative.v1.Coin"> & { /** * @generated from field: string denom = 1; */ @@ -323,26 +229,18 @@ export declare class Coin extends Message { * @generated from field: sint64 amount = 2; */ amount: bigint; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.Coin"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Coin; - - static fromJson(jsonValue: JsonValue, options?: Partial): Coin; - - static fromJsonString(jsonString: string, options?: Partial): Coin; - - static equals(a: Coin | PlainMessage | undefined, b: Coin | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.Coin. + * Use `create(CoinSchema)` to create a new message. + */ +export declare const CoinSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.BaseAccount */ -export declare class BaseAccount extends Message { +export declare type BaseAccount = Message<"land.gno.gnonative.v1.BaseAccount"> & { /** * @generated from field: bytes address = 1; */ @@ -367,357 +265,238 @@ export declare class BaseAccount extends Message { * @generated from field: uint64 sequence = 5; */ sequence: bigint; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.BaseAccount"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): BaseAccount; - - static fromJson(jsonValue: JsonValue, options?: Partial): BaseAccount; - - static fromJsonString(jsonString: string, options?: Partial): BaseAccount; - - static equals(a: BaseAccount | PlainMessage | undefined, b: BaseAccount | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.BaseAccount. + * Use `create(BaseAccountSchema)` to create a new message. + */ +export declare const BaseAccountSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.ListKeyInfoRequest */ -export declare class ListKeyInfoRequest extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.ListKeyInfoRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListKeyInfoRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListKeyInfoRequest; +export declare type ListKeyInfoRequest = Message<"land.gno.gnonative.v1.ListKeyInfoRequest"> & { +}; - static fromJsonString(jsonString: string, options?: Partial): ListKeyInfoRequest; - - static equals(a: ListKeyInfoRequest | PlainMessage | undefined, b: ListKeyInfoRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.ListKeyInfoRequest. + * Use `create(ListKeyInfoRequestSchema)` to create a new message. + */ +export declare const ListKeyInfoRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.ListKeyInfoResponse */ -export declare class ListKeyInfoResponse extends Message { +export declare type ListKeyInfoResponse = Message<"land.gno.gnonative.v1.ListKeyInfoResponse"> & { /** * @generated from field: repeated land.gno.gnonative.v1.KeyInfo keys = 1 [json_name = "key_info"]; */ keys: KeyInfo[]; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.ListKeyInfoResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ListKeyInfoResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): ListKeyInfoResponse; - - static fromJsonString(jsonString: string, options?: Partial): ListKeyInfoResponse; - - static equals(a: ListKeyInfoResponse | PlainMessage | undefined, b: ListKeyInfoResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.ListKeyInfoResponse. + * Use `create(ListKeyInfoResponseSchema)` to create a new message. + */ +export declare const ListKeyInfoResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HasKeyByNameRequest */ -export declare class HasKeyByNameRequest extends Message { +export declare type HasKeyByNameRequest = Message<"land.gno.gnonative.v1.HasKeyByNameRequest"> & { /** * @generated from field: string name = 1; */ name: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HasKeyByNameRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByNameRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByNameRequest; - - static fromJsonString(jsonString: string, options?: Partial): HasKeyByNameRequest; - - static equals(a: HasKeyByNameRequest | PlainMessage | undefined, b: HasKeyByNameRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HasKeyByNameRequest. + * Use `create(HasKeyByNameRequestSchema)` to create a new message. + */ +export declare const HasKeyByNameRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HasKeyByNameResponse */ -export declare class HasKeyByNameResponse extends Message { +export declare type HasKeyByNameResponse = Message<"land.gno.gnonative.v1.HasKeyByNameResponse"> & { /** * @generated from field: bool has = 1; */ has: boolean; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HasKeyByNameResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByNameResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByNameResponse; - - static fromJsonString(jsonString: string, options?: Partial): HasKeyByNameResponse; - - static equals(a: HasKeyByNameResponse | PlainMessage | undefined, b: HasKeyByNameResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HasKeyByNameResponse. + * Use `create(HasKeyByNameResponseSchema)` to create a new message. + */ +export declare const HasKeyByNameResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HasKeyByAddressRequest */ -export declare class HasKeyByAddressRequest extends Message { +export declare type HasKeyByAddressRequest = Message<"land.gno.gnonative.v1.HasKeyByAddressRequest"> & { /** * @generated from field: bytes address = 1; */ address: Uint8Array; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HasKeyByAddressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByAddressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByAddressRequest; - - static fromJsonString(jsonString: string, options?: Partial): HasKeyByAddressRequest; - - static equals(a: HasKeyByAddressRequest | PlainMessage | undefined, b: HasKeyByAddressRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HasKeyByAddressRequest. + * Use `create(HasKeyByAddressRequestSchema)` to create a new message. + */ +export declare const HasKeyByAddressRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HasKeyByAddressResponse */ -export declare class HasKeyByAddressResponse extends Message { +export declare type HasKeyByAddressResponse = Message<"land.gno.gnonative.v1.HasKeyByAddressResponse"> & { /** * @generated from field: bool has = 1; */ has: boolean; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HasKeyByAddressResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByAddressResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByAddressResponse; - - static fromJsonString(jsonString: string, options?: Partial): HasKeyByAddressResponse; - - static equals(a: HasKeyByAddressResponse | PlainMessage | undefined, b: HasKeyByAddressResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HasKeyByAddressResponse. + * Use `create(HasKeyByAddressResponseSchema)` to create a new message. + */ +export declare const HasKeyByAddressResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressRequest */ -export declare class HasKeyByNameOrAddressRequest extends Message { +export declare type HasKeyByNameOrAddressRequest = Message<"land.gno.gnonative.v1.HasKeyByNameOrAddressRequest"> & { /** * @generated from field: string name_or_bech32 = 1; */ nameOrBech32: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HasKeyByNameOrAddressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByNameOrAddressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByNameOrAddressRequest; - - static fromJsonString(jsonString: string, options?: Partial): HasKeyByNameOrAddressRequest; - - static equals(a: HasKeyByNameOrAddressRequest | PlainMessage | undefined, b: HasKeyByNameOrAddressRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HasKeyByNameOrAddressRequest. + * Use `create(HasKeyByNameOrAddressRequestSchema)` to create a new message. + */ +export declare const HasKeyByNameOrAddressRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressResponse */ -export declare class HasKeyByNameOrAddressResponse extends Message { +export declare type HasKeyByNameOrAddressResponse = Message<"land.gno.gnonative.v1.HasKeyByNameOrAddressResponse"> & { /** * @generated from field: bool has = 1; */ has: boolean; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HasKeyByNameOrAddressResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByNameOrAddressResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByNameOrAddressResponse; - - static fromJsonString(jsonString: string, options?: Partial): HasKeyByNameOrAddressResponse; - - static equals(a: HasKeyByNameOrAddressResponse | PlainMessage | undefined, b: HasKeyByNameOrAddressResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HasKeyByNameOrAddressResponse. + * Use `create(HasKeyByNameOrAddressResponseSchema)` to create a new message. + */ +export declare const HasKeyByNameOrAddressResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameRequest */ -export declare class GetKeyInfoByNameRequest extends Message { +export declare type GetKeyInfoByNameRequest = Message<"land.gno.gnonative.v1.GetKeyInfoByNameRequest"> & { /** * @generated from field: string name = 1; */ name: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByNameRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByNameRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByNameRequest; - - static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByNameRequest; - - static equals(a: GetKeyInfoByNameRequest | PlainMessage | undefined, b: GetKeyInfoByNameRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetKeyInfoByNameRequest. + * Use `create(GetKeyInfoByNameRequestSchema)` to create a new message. + */ +export declare const GetKeyInfoByNameRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameResponse */ -export declare class GetKeyInfoByNameResponse extends Message { +export declare type GetKeyInfoByNameResponse = Message<"land.gno.gnonative.v1.GetKeyInfoByNameResponse"> & { /** * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; */ key?: KeyInfo; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByNameResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByNameResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByNameResponse; - - static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByNameResponse; - - static equals(a: GetKeyInfoByNameResponse | PlainMessage | undefined, b: GetKeyInfoByNameResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetKeyInfoByNameResponse. + * Use `create(GetKeyInfoByNameResponseSchema)` to create a new message. + */ +export declare const GetKeyInfoByNameResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressRequest */ -export declare class GetKeyInfoByAddressRequest extends Message { +export declare type GetKeyInfoByAddressRequest = Message<"land.gno.gnonative.v1.GetKeyInfoByAddressRequest"> & { /** * @generated from field: bytes address = 1; */ address: Uint8Array; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByAddressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByAddressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByAddressRequest; - - static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByAddressRequest; - - static equals(a: GetKeyInfoByAddressRequest | PlainMessage | undefined, b: GetKeyInfoByAddressRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetKeyInfoByAddressRequest. + * Use `create(GetKeyInfoByAddressRequestSchema)` to create a new message. + */ +export declare const GetKeyInfoByAddressRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressResponse */ -export declare class GetKeyInfoByAddressResponse extends Message { +export declare type GetKeyInfoByAddressResponse = Message<"land.gno.gnonative.v1.GetKeyInfoByAddressResponse"> & { /** * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; */ key?: KeyInfo; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByAddressResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByAddressResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByAddressResponse; - - static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByAddressResponse; - - static equals(a: GetKeyInfoByAddressResponse | PlainMessage | undefined, b: GetKeyInfoByAddressResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetKeyInfoByAddressResponse. + * Use `create(GetKeyInfoByAddressResponseSchema)` to create a new message. + */ +export declare const GetKeyInfoByAddressResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest */ -export declare class GetKeyInfoByNameOrAddressRequest extends Message { +export declare type GetKeyInfoByNameOrAddressRequest = Message<"land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest"> & { /** * @generated from field: string name_or_bech32 = 1; */ nameOrBech32: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByNameOrAddressRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByNameOrAddressRequest; - - static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByNameOrAddressRequest; - - static equals(a: GetKeyInfoByNameOrAddressRequest | PlainMessage | undefined, b: GetKeyInfoByNameOrAddressRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest. + * Use `create(GetKeyInfoByNameOrAddressRequestSchema)` to create a new message. + */ +export declare const GetKeyInfoByNameOrAddressRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse */ -export declare class GetKeyInfoByNameOrAddressResponse extends Message { +export declare type GetKeyInfoByNameOrAddressResponse = Message<"land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse"> & { /** * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; */ key?: KeyInfo; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByNameOrAddressResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByNameOrAddressResponse; - - static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByNameOrAddressResponse; - - static equals(a: GetKeyInfoByNameOrAddressResponse | PlainMessage | undefined, b: GetKeyInfoByNameOrAddressResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse. + * Use `create(GetKeyInfoByNameOrAddressResponseSchema)` to create a new message. + */ +export declare const GetKeyInfoByNameOrAddressResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.CreateAccountRequest */ -export declare class CreateAccountRequest extends Message { +export declare type CreateAccountRequest = Message<"land.gno.gnonative.v1.CreateAccountRequest"> & { /** * @generated from field: string name_or_bech32 = 1; */ @@ -747,74 +526,50 @@ export declare class CreateAccountRequest extends Message * @generated from field: uint32 index = 6; */ index: number; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.CreateAccountRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateAccountRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateAccountRequest; - - static fromJsonString(jsonString: string, options?: Partial): CreateAccountRequest; - - static equals(a: CreateAccountRequest | PlainMessage | undefined, b: CreateAccountRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.CreateAccountRequest. + * Use `create(CreateAccountRequestSchema)` to create a new message. + */ +export declare const CreateAccountRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.CreateAccountResponse */ -export declare class CreateAccountResponse extends Message { +export declare type CreateAccountResponse = Message<"land.gno.gnonative.v1.CreateAccountResponse"> & { /** * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; */ key?: KeyInfo; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.CreateAccountResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateAccountResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateAccountResponse; - - static fromJsonString(jsonString: string, options?: Partial): CreateAccountResponse; - - static equals(a: CreateAccountResponse | PlainMessage | undefined, b: CreateAccountResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.CreateAccountResponse. + * Use `create(CreateAccountResponseSchema)` to create a new message. + */ +export declare const CreateAccountResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.SelectAccountRequest */ -export declare class SelectAccountRequest extends Message { +export declare type SelectAccountRequest = Message<"land.gno.gnonative.v1.SelectAccountRequest"> & { /** * @generated from field: string name_or_bech32 = 1; */ nameOrBech32: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SelectAccountRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SelectAccountRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): SelectAccountRequest; - - static fromJsonString(jsonString: string, options?: Partial): SelectAccountRequest; - - static equals(a: SelectAccountRequest | PlainMessage | undefined, b: SelectAccountRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SelectAccountRequest. + * Use `create(SelectAccountRequestSchema)` to create a new message. + */ +export declare const SelectAccountRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.SelectAccountResponse */ -export declare class SelectAccountResponse extends Message { +export declare type SelectAccountResponse = Message<"land.gno.gnonative.v1.SelectAccountResponse"> & { /** * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; */ @@ -826,45 +581,30 @@ export declare class SelectAccountResponse extends Message); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SelectAccountResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SelectAccountResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): SelectAccountResponse; - - static fromJsonString(jsonString: string, options?: Partial): SelectAccountResponse; - - static equals(a: SelectAccountResponse | PlainMessage | undefined, b: SelectAccountResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SelectAccountResponse. + * Use `create(SelectAccountResponseSchema)` to create a new message. + */ +export declare const SelectAccountResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetActiveAccountRequest */ -export declare class GetActiveAccountRequest extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetActiveAccountRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActiveAccountRequest; +export declare type GetActiveAccountRequest = Message<"land.gno.gnonative.v1.GetActiveAccountRequest"> & { +}; - static fromJson(jsonValue: JsonValue, options?: Partial): GetActiveAccountRequest; - - static fromJsonString(jsonString: string, options?: Partial): GetActiveAccountRequest; - - static equals(a: GetActiveAccountRequest | PlainMessage | undefined, b: GetActiveAccountRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetActiveAccountRequest. + * Use `create(GetActiveAccountRequestSchema)` to create a new message. + */ +export declare const GetActiveAccountRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.GetActiveAccountResponse */ -export declare class GetActiveAccountResponse extends Message { +export declare type GetActiveAccountResponse = Message<"land.gno.gnonative.v1.GetActiveAccountResponse"> & { /** * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; */ @@ -876,74 +616,50 @@ export declare class GetActiveAccountResponse extends Message); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetActiveAccountResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActiveAccountResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActiveAccountResponse; - - static fromJsonString(jsonString: string, options?: Partial): GetActiveAccountResponse; - - static equals(a: GetActiveAccountResponse | PlainMessage | undefined, b: GetActiveAccountResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.GetActiveAccountResponse. + * Use `create(GetActiveAccountResponseSchema)` to create a new message. + */ +export declare const GetActiveAccountResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.QueryAccountRequest */ -export declare class QueryAccountRequest extends Message { +export declare type QueryAccountRequest = Message<"land.gno.gnonative.v1.QueryAccountRequest"> & { /** * @generated from field: bytes address = 1; */ address: Uint8Array; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.QueryAccountRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountRequest; - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountRequest; - - static equals(a: QueryAccountRequest | PlainMessage | undefined, b: QueryAccountRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.QueryAccountRequest. + * Use `create(QueryAccountRequestSchema)` to create a new message. + */ +export declare const QueryAccountRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.QueryAccountResponse */ -export declare class QueryAccountResponse extends Message { +export declare type QueryAccountResponse = Message<"land.gno.gnonative.v1.QueryAccountResponse"> & { /** * @generated from field: land.gno.gnonative.v1.BaseAccount account_info = 1; */ accountInfo?: BaseAccount; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.QueryAccountResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountResponse; - - static fromJsonString(jsonString: string, options?: Partial): QueryAccountResponse; - - static equals(a: QueryAccountResponse | PlainMessage | undefined, b: QueryAccountResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.QueryAccountResponse. + * Use `create(QueryAccountResponseSchema)` to create a new message. + */ +export declare const QueryAccountResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.DeleteAccountRequest */ -export declare class DeleteAccountRequest extends Message { +export declare type DeleteAccountRequest = Message<"land.gno.gnonative.v1.DeleteAccountRequest"> & { /** * @generated from field: string name_or_bech32 = 1; */ @@ -958,45 +674,30 @@ export declare class DeleteAccountRequest extends Message * @generated from field: bool skip_password = 3; */ skipPassword: boolean; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.DeleteAccountRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAccountRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAccountRequest; - - static fromJsonString(jsonString: string, options?: Partial): DeleteAccountRequest; - - static equals(a: DeleteAccountRequest | PlainMessage | undefined, b: DeleteAccountRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.DeleteAccountRequest. + * Use `create(DeleteAccountRequestSchema)` to create a new message. + */ +export declare const DeleteAccountRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.DeleteAccountResponse */ -export declare class DeleteAccountResponse extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.DeleteAccountResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAccountResponse; +export declare type DeleteAccountResponse = Message<"land.gno.gnonative.v1.DeleteAccountResponse"> & { +}; - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAccountResponse; - - static fromJsonString(jsonString: string, options?: Partial): DeleteAccountResponse; - - static equals(a: DeleteAccountResponse | PlainMessage | undefined, b: DeleteAccountResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.DeleteAccountResponse. + * Use `create(DeleteAccountResponseSchema)` to create a new message. + */ +export declare const DeleteAccountResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.QueryRequest */ -export declare class QueryRequest extends Message { +export declare type QueryRequest = Message<"land.gno.gnonative.v1.QueryRequest"> & { /** * Example: "vm/qrender" * @@ -1010,50 +711,34 @@ export declare class QueryRequest extends Message { * @generated from field: bytes data = 2; */ data: Uint8Array; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.QueryRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryRequest; - - static fromJsonString(jsonString: string, options?: Partial): QueryRequest; - - static equals(a: QueryRequest | PlainMessage | undefined, b: QueryRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.QueryRequest. + * Use `create(QueryRequestSchema)` to create a new message. + */ +export declare const QueryRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.QueryResponse */ -export declare class QueryResponse extends Message { +export declare type QueryResponse = Message<"land.gno.gnonative.v1.QueryResponse"> & { /** * @generated from field: bytes result = 1; */ result: Uint8Array; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.QueryResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryResponse; - - static fromJsonString(jsonString: string, options?: Partial): QueryResponse; - - static equals(a: QueryResponse | PlainMessage | undefined, b: QueryResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.QueryResponse. + * Use `create(QueryResponseSchema)` to create a new message. + */ +export declare const QueryResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.RenderRequest */ -export declare class RenderRequest extends Message { +export declare type RenderRequest = Message<"land.gno.gnonative.v1.RenderRequest"> & { /** * Example: "gno.land/r/demo/boards" * @@ -1067,52 +752,36 @@ export declare class RenderRequest extends Message { * @generated from field: string args = 2; */ args: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.RenderRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RenderRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): RenderRequest; - - static fromJsonString(jsonString: string, options?: Partial): RenderRequest; - - static equals(a: RenderRequest | PlainMessage | undefined, b: RenderRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.RenderRequest. + * Use `create(RenderRequestSchema)` to create a new message. + */ +export declare const RenderRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.RenderResponse */ -export declare class RenderResponse extends Message { +export declare type RenderResponse = Message<"land.gno.gnonative.v1.RenderResponse"> & { /** * The Render function result (typically markdown) * * @generated from field: string result = 1; */ result: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.RenderResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RenderResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): RenderResponse; - - static fromJsonString(jsonString: string, options?: Partial): RenderResponse; - - static equals(a: RenderResponse | PlainMessage | undefined, b: RenderResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.RenderResponse. + * Use `create(RenderResponseSchema)` to create a new message. + */ +export declare const RenderResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.QEvalRequest */ -export declare class QEvalRequest extends Message { +export declare type QEvalRequest = Message<"land.gno.gnonative.v1.QEvalRequest"> & { /** * Example: "gno.land/r/demo/boards" * @@ -1126,52 +795,36 @@ export declare class QEvalRequest extends Message { * @generated from field: string expression = 2; */ expression: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.QEvalRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QEvalRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): QEvalRequest; - - static fromJsonString(jsonString: string, options?: Partial): QEvalRequest; - - static equals(a: QEvalRequest | PlainMessage | undefined, b: QEvalRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.QEvalRequest. + * Use `create(QEvalRequestSchema)` to create a new message. + */ +export declare const QEvalRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.QEvalResponse */ -export declare class QEvalResponse extends Message { +export declare type QEvalResponse = Message<"land.gno.gnonative.v1.QEvalResponse"> & { /** * A typed expression like "(1 gno.land/r/demo/boards.BoardID)\n(true bool)" * * @generated from field: string result = 1; */ result: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.QEvalResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QEvalResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): QEvalResponse; - - static fromJsonString(jsonString: string, options?: Partial): QEvalResponse; - - static equals(a: QEvalResponse | PlainMessage | undefined, b: QEvalResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.QEvalResponse. + * Use `create(QEvalResponseSchema)` to create a new message. + */ +export declare const QEvalResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.MsgCall */ -export declare class MsgCall extends Message { +export declare type MsgCall = Message<"land.gno.gnonative.v1.MsgCall"> & { /** * Example: "gno.land/r/demo/boards" * @@ -1198,26 +851,18 @@ export declare class MsgCall extends Message { * @generated from field: string send = 4; */ send: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.MsgCall"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgCall; - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgCall; - - static fromJsonString(jsonString: string, options?: Partial): MsgCall; - - static equals(a: MsgCall | PlainMessage | undefined, b: MsgCall | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.MsgCall. + * Use `create(MsgCallSchema)` to create a new message. + */ +export declare const MsgCallSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.CallRequest */ -export declare class CallRequest extends Message { +export declare type CallRequest = Message<"land.gno.gnonative.v1.CallRequest"> & { /** * @generated from field: string gas_fee = 1; */ @@ -1233,56 +878,47 @@ export declare class CallRequest extends Message { */ memo: string; + /** + * If CallerAddress is empty then get it from the active account + * + * @generated from field: bytes caller_address = 4; + */ + callerAddress: Uint8Array; + /** * list of calls to make in one transaction * - * @generated from field: repeated land.gno.gnonative.v1.MsgCall msgs = 4 [json_name = "Msgs"]; + * @generated from field: repeated land.gno.gnonative.v1.MsgCall msgs = 5 [json_name = "Msgs"]; */ msgs: MsgCall[]; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.CallRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): CallRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): CallRequest; - - static fromJsonString(jsonString: string, options?: Partial): CallRequest; - - static equals(a: CallRequest | PlainMessage | undefined, b: CallRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.CallRequest. + * Use `create(CallRequestSchema)` to create a new message. + */ +export declare const CallRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.CallResponse */ -export declare class CallResponse extends Message { +export declare type CallResponse = Message<"land.gno.gnonative.v1.CallResponse"> & { /** * @generated from field: bytes result = 1; */ result: Uint8Array; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.CallResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): CallResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): CallResponse; - - static fromJsonString(jsonString: string, options?: Partial): CallResponse; - - static equals(a: CallResponse | PlainMessage | undefined, b: CallResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.CallResponse. + * Use `create(CallResponseSchema)` to create a new message. + */ +export declare const CallResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.MsgSend */ -export declare class MsgSend extends Message { +export declare type MsgSend = Message<"land.gno.gnonative.v1.MsgSend"> & { /** * Example: The response of calling AddressFromBech32 with * "g1juz2yxmdsa6audkp6ep9vfv80c8p5u76e03vvh" @@ -1297,26 +933,18 @@ export declare class MsgSend extends Message { * @generated from field: string send = 2; */ send: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.MsgSend"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgSend; - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgSend; - - static fromJsonString(jsonString: string, options?: Partial): MsgSend; - - static equals(a: MsgSend | PlainMessage | undefined, b: MsgSend | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.MsgSend. + * Use `create(MsgSendSchema)` to create a new message. + */ +export declare const MsgSendSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.SendRequest */ -export declare class SendRequest extends Message { +export declare type SendRequest = Message<"land.gno.gnonative.v1.SendRequest"> & { /** * @generated from field: string gas_fee = 1; */ @@ -1334,51 +962,43 @@ export declare class SendRequest extends Message { */ memo: string; + /** + * If CallerAddress is empty then get it from the active account + * + * @generated from field: bytes caller_address = 4; + */ + callerAddress: Uint8Array; + /** * list of send operations to make in one transaction * - * @generated from field: repeated land.gno.gnonative.v1.MsgSend msgs = 4 [json_name = "Msgs"]; + * @generated from field: repeated land.gno.gnonative.v1.MsgSend msgs = 5 [json_name = "Msgs"]; */ msgs: MsgSend[]; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SendRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SendRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): SendRequest; - - static fromJsonString(jsonString: string, options?: Partial): SendRequest; - - static equals(a: SendRequest | PlainMessage | undefined, b: SendRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SendRequest. + * Use `create(SendRequestSchema)` to create a new message. + */ +export declare const SendRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.SendResponse */ -export declare class SendResponse extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SendResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SendResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): SendResponse; - - static fromJsonString(jsonString: string, options?: Partial): SendResponse; +export declare type SendResponse = Message<"land.gno.gnonative.v1.SendResponse"> & { +}; - static equals(a: SendResponse | PlainMessage | undefined, b: SendResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.SendResponse. + * Use `create(SendResponseSchema)` to create a new message. + */ +export declare const SendResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.MsgRun */ -export declare class MsgRun extends Message { +export declare type MsgRun = Message<"land.gno.gnonative.v1.MsgRun"> & { /** * The code for the script package. Must have main(). * Example: "package main\nfunc main() {\n println(\"Hello\")\n}" @@ -1393,26 +1013,18 @@ export declare class MsgRun extends Message { * @generated from field: string send = 2; */ send: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.MsgRun"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgRun; - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgRun; - - static fromJsonString(jsonString: string, options?: Partial): MsgRun; - - static equals(a: MsgRun | PlainMessage | undefined, b: MsgRun | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.MsgRun. + * Use `create(MsgRunSchema)` to create a new message. + */ +export declare const MsgRunSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.RunRequest */ -export declare class RunRequest extends Message { +export declare type RunRequest = Message<"land.gno.gnonative.v1.RunRequest"> & { /** * @generated from field: string gas_fee = 1; */ @@ -1430,291 +1042,304 @@ export declare class RunRequest extends Message { */ memo: string; + /** + * If CallerAddress is empty then get it from the active account + * + * @generated from field: bytes caller_address = 4; + */ + callerAddress: Uint8Array; + /** * list of run operations to make in one transaction * - * @generated from field: repeated land.gno.gnonative.v1.MsgRun msgs = 4 [json_name = "Msgs"]; + * @generated from field: repeated land.gno.gnonative.v1.MsgRun msgs = 5 [json_name = "Msgs"]; */ msgs: MsgRun[]; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.RunRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RunRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): RunRequest; - - static fromJsonString(jsonString: string, options?: Partial): RunRequest; - - static equals(a: RunRequest | PlainMessage | undefined, b: RunRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.RunRequest. + * Use `create(RunRequestSchema)` to create a new message. + */ +export declare const RunRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.RunResponse */ -export declare class RunResponse extends Message { +export declare type RunResponse = Message<"land.gno.gnonative.v1.RunResponse"> & { /** * The "console" output from the run * * @generated from field: string result = 1; */ result: string; +}; - constructor(data?: PartialMessage); +/** + * Describes the message land.gno.gnonative.v1.RunResponse. + * Use `create(RunResponseSchema)` to create a new message. + */ +export declare const RunResponseSchema: GenMessage; - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.RunResponse"; - static readonly fields: FieldList; +/** + * @generated from message land.gno.gnonative.v1.MakeTxResponse + */ +export declare type MakeTxResponse = Message<"land.gno.gnonative.v1.MakeTxResponse"> & { + /** + * The JSON encoding of the unsigned transaction + * + * @generated from field: string tx_json = 1; + */ + txJson: string; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): RunResponse; +/** + * Describes the message land.gno.gnonative.v1.MakeTxResponse. + * Use `create(MakeTxResponseSchema)` to create a new message. + */ +export declare const MakeTxResponseSchema: GenMessage; - static fromJson(jsonValue: JsonValue, options?: Partial): RunResponse; +/** + * @generated from message land.gno.gnonative.v1.SignTxRequest + */ +export declare type SignTxRequest = Message<"land.gno.gnonative.v1.SignTxRequest"> & { + /** + * The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) + * + * @generated from field: string tx_json = 1; + */ + txJson: string; - static fromJsonString(jsonString: string, options?: Partial): RunResponse; + /** + * The signer's account number on the blockchain. If 0 then query the blockchain for the value. + * + * @generated from field: uint64 account_number = 2; + */ + accountNumber: bigint; - static equals(a: RunResponse | PlainMessage | undefined, b: RunResponse | PlainMessage | undefined): boolean; -} + /** + * 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; + */ + sequenceNumber: bigint; +}; /** - * @generated from message land.gno.gnonative.v1.AddressToBech32Request + * Describes the message land.gno.gnonative.v1.SignTxRequest. + * Use `create(SignTxRequestSchema)` to create a new message. */ -export declare class AddressToBech32Request extends Message { +export declare const SignTxRequestSchema: GenMessage; + +/** + * @generated from message land.gno.gnonative.v1.SignTxResponse + */ +export declare type SignTxResponse = Message<"land.gno.gnonative.v1.SignTxResponse"> & { /** - * @generated from field: bytes address = 1; + * The JSON encoding of the signed transaction (to use in BroadcastTx) + * + * @generated from field: string signed_tx_json = 1 [json_name = "tx_json"]; */ - address: Uint8Array; + signedTxJson: string; +}; - constructor(data?: PartialMessage); +/** + * Describes the message land.gno.gnonative.v1.SignTxResponse. + * Use `create(SignTxResponseSchema)` to create a new message. + */ +export declare const SignTxResponseSchema: GenMessage; - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.AddressToBech32Request"; - static readonly fields: FieldList; +/** + * @generated from message land.gno.gnonative.v1.BroadcastTxCommitRequest + */ +export declare type BroadcastTxCommitRequest = Message<"land.gno.gnonative.v1.BroadcastTxCommitRequest"> & { + /** + * The JSON encoding of the signed transaction (from SignTx) + * + * @generated from field: string signed_tx_json = 1 [json_name = "tx_json"]; + */ + signedTxJson: string; +}; - static fromBinary(bytes: Uint8Array, options?: Partial): AddressToBech32Request; +/** + * Describes the message land.gno.gnonative.v1.BroadcastTxCommitRequest. + * Use `create(BroadcastTxCommitRequestSchema)` to create a new message. + */ +export declare const BroadcastTxCommitRequestSchema: GenMessage; - static fromJson(jsonValue: JsonValue, options?: Partial): AddressToBech32Request; +/** + * @generated from message land.gno.gnonative.v1.BroadcastTxCommitResponse + */ +export declare type BroadcastTxCommitResponse = Message<"land.gno.gnonative.v1.BroadcastTxCommitResponse"> & { + /** + * @generated from field: bytes result = 1; + */ + result: Uint8Array; +}; - static fromJsonString(jsonString: string, options?: Partial): AddressToBech32Request; +/** + * Describes the message land.gno.gnonative.v1.BroadcastTxCommitResponse. + * Use `create(BroadcastTxCommitResponseSchema)` to create a new message. + */ +export declare const BroadcastTxCommitResponseSchema: GenMessage; - static equals(a: AddressToBech32Request | PlainMessage | undefined, b: AddressToBech32Request | PlainMessage | undefined): boolean; -} +/** + * @generated from message land.gno.gnonative.v1.AddressToBech32Request + */ +export declare type AddressToBech32Request = Message<"land.gno.gnonative.v1.AddressToBech32Request"> & { + /** + * @generated from field: bytes address = 1; + */ + address: Uint8Array; +}; + +/** + * Describes the message land.gno.gnonative.v1.AddressToBech32Request. + * Use `create(AddressToBech32RequestSchema)` to create a new message. + */ +export declare const AddressToBech32RequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.AddressToBech32Response */ -export declare class AddressToBech32Response extends Message { +export declare type AddressToBech32Response = Message<"land.gno.gnonative.v1.AddressToBech32Response"> & { /** * @generated from field: string bech32_address = 1; */ bech32Address: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.AddressToBech32Response"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressToBech32Response; - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressToBech32Response; - - static fromJsonString(jsonString: string, options?: Partial): AddressToBech32Response; - - static equals(a: AddressToBech32Response | PlainMessage | undefined, b: AddressToBech32Response | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.AddressToBech32Response. + * Use `create(AddressToBech32ResponseSchema)` to create a new message. + */ +export declare const AddressToBech32ResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.AddressFromBech32Request */ -export declare class AddressFromBech32Request extends Message { +export declare type AddressFromBech32Request = Message<"land.gno.gnonative.v1.AddressFromBech32Request"> & { /** * @generated from field: string bech32_address = 1; */ bech32Address: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.AddressFromBech32Request"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressFromBech32Request; - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressFromBech32Request; - - static fromJsonString(jsonString: string, options?: Partial): AddressFromBech32Request; - - static equals(a: AddressFromBech32Request | PlainMessage | undefined, b: AddressFromBech32Request | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.AddressFromBech32Request. + * Use `create(AddressFromBech32RequestSchema)` to create a new message. + */ +export declare const AddressFromBech32RequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.AddressFromBech32Response */ -export declare class AddressFromBech32Response extends Message { +export declare type AddressFromBech32Response = Message<"land.gno.gnonative.v1.AddressFromBech32Response"> & { /** * @generated from field: bytes address = 1; */ address: Uint8Array; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.AddressFromBech32Response"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressFromBech32Response; - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressFromBech32Response; - - static fromJsonString(jsonString: string, options?: Partial): AddressFromBech32Response; - - static equals(a: AddressFromBech32Response | PlainMessage | undefined, b: AddressFromBech32Response | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.AddressFromBech32Response. + * Use `create(AddressFromBech32ResponseSchema)` to create a new message. + */ +export declare const AddressFromBech32ResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.AddressFromMnemonicRequest */ -export declare class AddressFromMnemonicRequest extends Message { +export declare type AddressFromMnemonicRequest = Message<"land.gno.gnonative.v1.AddressFromMnemonicRequest"> & { /** * @generated from field: string mnemonic = 1; */ mnemonic: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.AddressFromMnemonicRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressFromMnemonicRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressFromMnemonicRequest; - - static fromJsonString(jsonString: string, options?: Partial): AddressFromMnemonicRequest; - - static equals(a: AddressFromMnemonicRequest | PlainMessage | undefined, b: AddressFromMnemonicRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.AddressFromMnemonicRequest. + * Use `create(AddressFromMnemonicRequestSchema)` to create a new message. + */ +export declare const AddressFromMnemonicRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.AddressFromMnemonicResponse */ -export declare class AddressFromMnemonicResponse extends Message { +export declare type AddressFromMnemonicResponse = Message<"land.gno.gnonative.v1.AddressFromMnemonicResponse"> & { /** * @generated from field: bytes address = 1; */ address: Uint8Array; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.AddressFromMnemonicResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressFromMnemonicResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressFromMnemonicResponse; - - static fromJsonString(jsonString: string, options?: Partial): AddressFromMnemonicResponse; - - static equals(a: AddressFromMnemonicResponse | PlainMessage | undefined, b: AddressFromMnemonicResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.AddressFromMnemonicResponse. + * Use `create(AddressFromMnemonicResponseSchema)` to create a new message. + */ +export declare const AddressFromMnemonicResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HelloRequest */ -export declare class HelloRequest extends Message { +export declare type HelloRequest = Message<"land.gno.gnonative.v1.HelloRequest"> & { /** * @generated from field: string name = 1 [json_name = "Name"]; */ name: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HelloRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloRequest; - - static fromJsonString(jsonString: string, options?: Partial): HelloRequest; - - static equals(a: HelloRequest | PlainMessage | undefined, b: HelloRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HelloRequest. + * Use `create(HelloRequestSchema)` to create a new message. + */ +export declare const HelloRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HelloResponse */ -export declare class HelloResponse extends Message { +export declare type HelloResponse = Message<"land.gno.gnonative.v1.HelloResponse"> & { /** * @generated from field: string greeting = 1 [json_name = "Greeting"]; */ greeting: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HelloResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloResponse; - - static fromJsonString(jsonString: string, options?: Partial): HelloResponse; - - static equals(a: HelloResponse | PlainMessage | undefined, b: HelloResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HelloResponse. + * Use `create(HelloResponseSchema)` to create a new message. + */ +export declare const HelloResponseSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HelloStreamRequest */ -export declare class HelloStreamRequest extends Message { +export declare type HelloStreamRequest = Message<"land.gno.gnonative.v1.HelloStreamRequest"> & { /** * @generated from field: string name = 1 [json_name = "Name"]; */ name: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HelloStreamRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloStreamRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloStreamRequest; - - static fromJsonString(jsonString: string, options?: Partial): HelloStreamRequest; - - static equals(a: HelloStreamRequest | PlainMessage | undefined, b: HelloStreamRequest | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HelloStreamRequest. + * Use `create(HelloStreamRequestSchema)` to create a new message. + */ +export declare const HelloStreamRequestSchema: GenMessage; /** * @generated from message land.gno.gnonative.v1.HelloStreamResponse */ -export declare class HelloStreamResponse extends Message { +export declare type HelloStreamResponse = Message<"land.gno.gnonative.v1.HelloStreamResponse"> & { /** * @generated from field: string greeting = 1 [json_name = "Greeting"]; */ greeting: string; +}; - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.HelloStreamResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): HelloStreamResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): HelloStreamResponse; - - static fromJsonString(jsonString: string, options?: Partial): HelloStreamResponse; - - static equals(a: HelloStreamResponse | PlainMessage | undefined, b: HelloStreamResponse | PlainMessage | undefined): boolean; -} +/** + * Describes the message land.gno.gnonative.v1.HelloStreamResponse. + * Use `create(HelloStreamResponseSchema)` to create a new message. + */ +export declare const HelloStreamResponseSchema: GenMessage; diff --git a/api/gen/es/gnonativetypes_pb.js b/api/gen/es/gnonativetypes_pb.js index 71c210dd..6f5c3f42 100644 --- a/api/gen/es/gnonativetypes_pb.js +++ b/api/gen/es/gnonativetypes_pb.js @@ -1,666 +1,495 @@ -// @generated by protoc-gen-es v1.10.0 +// @generated by protoc-gen-es v2.0.0 // @generated from file gnonativetypes.proto (package land.gno.gnonative.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { proto3 } from "@bufbuild/protobuf"; +import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; /** - * messages - * - * @generated from message land.gno.gnonative.v1.SetRemoteRequest + * Describes the file gnonativetypes.proto. */ -export const SetRemoteRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SetRemoteRequest", - () => [ - { no: 1, name: "remote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const file_gnonativetypes = /*@__PURE__*/ + fileDesc("ChRnbm9uYXRpdmV0eXBlcy5wcm90bxIVbGFuZC5nbm8uZ25vbmF0aXZlLnYxIiIKEFNldFJlbW90ZVJlcXVlc3QSDgoGcmVtb3RlGAEgASgJIhMKEVNldFJlbW90ZVJlc3BvbnNlIhIKEEdldFJlbW90ZVJlcXVlc3QiIwoRR2V0UmVtb3RlUmVzcG9uc2USDgoGcmVtb3RlGAEgASgJIiUKEVNldENoYWluSURSZXF1ZXN0EhAKCGNoYWluX2lkGAEgASgJIhQKElNldENoYWluSURSZXNwb25zZSITChFHZXRDaGFpbklEUmVxdWVzdCImChJHZXRDaGFpbklEUmVzcG9uc2USEAoIY2hhaW5faWQYASABKAkiJgoSU2V0UGFzc3dvcmRSZXF1ZXN0EhAKCHBhc3N3b3JkGAEgASgJIhUKE1NldFBhc3N3b3JkUmVzcG9uc2UiHwodR2VuZXJhdGVSZWNvdmVyeVBocmFzZVJlcXVlc3QiMAoeR2VuZXJhdGVSZWNvdmVyeVBocmFzZVJlc3BvbnNlEg4KBnBocmFzZRgBIAEoCSJHCgdLZXlJbmZvEgwKBHR5cGUYASABKA0SDAoEbmFtZRgCIAEoCRIPCgdwdWJfa2V5GAMgASgMEg8KB2FkZHJlc3MYBCABKAwiJQoEQ29pbhINCgVkZW5vbRgBIAEoCRIOCgZhbW91bnQYAiABKBIihQEKC0Jhc2VBY2NvdW50Eg8KB2FkZHJlc3MYASABKAwSKgoFY29pbnMYAiADKAsyGy5sYW5kLmduby5nbm9uYXRpdmUudjEuQ29pbhIPCgdwdWJfa2V5GAMgASgMEhYKDmFjY291bnRfbnVtYmVyGAQgASgEEhAKCHNlcXVlbmNlGAUgASgEIhQKEkxpc3RLZXlJbmZvUmVxdWVzdCJNChNMaXN0S2V5SW5mb1Jlc3BvbnNlEjYKBGtleXMYASADKAsyHi5sYW5kLmduby5nbm9uYXRpdmUudjEuS2V5SW5mb1IIa2V5X2luZm8iIwoTSGFzS2V5QnlOYW1lUmVxdWVzdBIMCgRuYW1lGAEgASgJIiMKFEhhc0tleUJ5TmFtZVJlc3BvbnNlEgsKA2hhcxgBIAEoCCIpChZIYXNLZXlCeUFkZHJlc3NSZXF1ZXN0Eg8KB2FkZHJlc3MYASABKAwiJgoXSGFzS2V5QnlBZGRyZXNzUmVzcG9uc2USCwoDaGFzGAEgASgIIjYKHEhhc0tleUJ5TmFtZU9yQWRkcmVzc1JlcXVlc3QSFgoObmFtZV9vcl9iZWNoMzIYASABKAkiLAodSGFzS2V5QnlOYW1lT3JBZGRyZXNzUmVzcG9uc2USCwoDaGFzGAEgASgIIicKF0dldEtleUluZm9CeU5hbWVSZXF1ZXN0EgwKBG5hbWUYASABKAkiUQoYR2V0S2V5SW5mb0J5TmFtZVJlc3BvbnNlEjUKA2tleRgBIAEoCzIeLmxhbmQuZ25vLmdub25hdGl2ZS52MS5LZXlJbmZvUghrZXlfaW5mbyItChpHZXRLZXlJbmZvQnlBZGRyZXNzUmVxdWVzdBIPCgdhZGRyZXNzGAEgASgMIlQKG0dldEtleUluZm9CeUFkZHJlc3NSZXNwb25zZRI1CgNrZXkYASABKAsyHi5sYW5kLmduby5nbm9uYXRpdmUudjEuS2V5SW5mb1IIa2V5X2luZm8iOgogR2V0S2V5SW5mb0J5TmFtZU9yQWRkcmVzc1JlcXVlc3QSFgoObmFtZV9vcl9iZWNoMzIYASABKAkiWgohR2V0S2V5SW5mb0J5TmFtZU9yQWRkcmVzc1Jlc3BvbnNlEjUKA2tleRgBIAEoCzIeLmxhbmQuZ25vLmdub25hdGl2ZS52MS5LZXlJbmZvUghrZXlfaW5mbyKIAQoUQ3JlYXRlQWNjb3VudFJlcXVlc3QSFgoObmFtZV9vcl9iZWNoMzIYASABKAkSEAoIbW5lbW9uaWMYAiABKAkSFAoMYmlwMzlfcGFzc3dkGAMgASgJEhAKCHBhc3N3b3JkGAQgASgJEg8KB2FjY291bnQYBSABKA0SDQoFaW5kZXgYBiABKA0iTgoVQ3JlYXRlQWNjb3VudFJlc3BvbnNlEjUKA2tleRgBIAEoCzIeLmxhbmQuZ25vLmdub25hdGl2ZS52MS5LZXlJbmZvUghrZXlfaW5mbyIuChRTZWxlY3RBY2NvdW50UmVxdWVzdBIWCg5uYW1lX29yX2JlY2gzMhgBIAEoCSJkChVTZWxlY3RBY2NvdW50UmVzcG9uc2USNQoDa2V5GAEgASgLMh4ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLktleUluZm9SCGtleV9pbmZvEhQKDGhhc19wYXNzd29yZBgCIAEoCCIZChdHZXRBY3RpdmVBY2NvdW50UmVxdWVzdCJnChhHZXRBY3RpdmVBY2NvdW50UmVzcG9uc2USNQoDa2V5GAEgASgLMh4ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLktleUluZm9SCGtleV9pbmZvEhQKDGhhc19wYXNzd29yZBgCIAEoCCImChNRdWVyeUFjY291bnRSZXF1ZXN0Eg8KB2FkZHJlc3MYASABKAwiUAoUUXVlcnlBY2NvdW50UmVzcG9uc2USOAoMYWNjb3VudF9pbmZvGAEgASgLMiIubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkJhc2VBY2NvdW50IlcKFERlbGV0ZUFjY291bnRSZXF1ZXN0EhYKDm5hbWVfb3JfYmVjaDMyGAEgASgJEhAKCHBhc3N3b3JkGAIgASgJEhUKDXNraXBfcGFzc3dvcmQYAyABKAgiFwoVRGVsZXRlQWNjb3VudFJlc3BvbnNlIioKDFF1ZXJ5UmVxdWVzdBIMCgRwYXRoGAEgASgJEgwKBGRhdGEYAiABKAwiHwoNUXVlcnlSZXNwb25zZRIOCgZyZXN1bHQYASABKAwiMwoNUmVuZGVyUmVxdWVzdBIUCgxwYWNrYWdlX3BhdGgYASABKAkSDAoEYXJncxgCIAEoCSIgCg5SZW5kZXJSZXNwb25zZRIOCgZyZXN1bHQYASABKAkiOAoMUUV2YWxSZXF1ZXN0EhQKDHBhY2thZ2VfcGF0aBgBIAEoCRISCgpleHByZXNzaW9uGAIgASgJIh8KDVFFdmFsUmVzcG9uc2USDgoGcmVzdWx0GAEgASgJIkgKB01zZ0NhbGwSFAoMcGFja2FnZV9wYXRoGAEgASgJEgsKA2ZuYxgCIAEoCRIMCgRhcmdzGAMgAygJEgwKBHNlbmQYBCABKAkijAEKC0NhbGxSZXF1ZXN0Eg8KB2dhc19mZWUYASABKAkSEgoKZ2FzX3dhbnRlZBgCIAEoEhIMCgRtZW1vGAMgASgJEhYKDmNhbGxlcl9hZGRyZXNzGAQgASgMEjIKBG1zZ3MYBSADKAsyHi5sYW5kLmduby5nbm9uYXRpdmUudjEuTXNnQ2FsbFIETXNncyIeCgxDYWxsUmVzcG9uc2USDgoGcmVzdWx0GAEgASgMIisKB01zZ1NlbmQSEgoKdG9fYWRkcmVzcxgBIAEoDBIMCgRzZW5kGAIgASgJIowBCgtTZW5kUmVxdWVzdBIPCgdnYXNfZmVlGAEgASgJEhIKCmdhc193YW50ZWQYAiABKBISDAoEbWVtbxgDIAEoCRIWCg5jYWxsZXJfYWRkcmVzcxgEIAEoDBIyCgRtc2dzGAUgAygLMh4ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLk1zZ1NlbmRSBE1zZ3MiDgoMU2VuZFJlc3BvbnNlIicKBk1zZ1J1bhIPCgdwYWNrYWdlGAEgASgJEgwKBHNlbmQYAiABKAkiigEKClJ1blJlcXVlc3QSDwoHZ2FzX2ZlZRgBIAEoCRISCgpnYXNfd2FudGVkGAIgASgSEgwKBG1lbW8YAyABKAkSFgoOY2FsbGVyX2FkZHJlc3MYBCABKAwSMQoEbXNncxgFIAMoCzIdLmxhbmQuZ25vLmdub25hdGl2ZS52MS5Nc2dSdW5SBE1zZ3MiHQoLUnVuUmVzcG9uc2USDgoGcmVzdWx0GAEgASgJIiEKDk1ha2VUeFJlc3BvbnNlEg8KB3R4X2pzb24YASABKAkiUQoNU2lnblR4UmVxdWVzdBIPCgd0eF9qc29uGAEgASgJEhYKDmFjY291bnRfbnVtYmVyGAIgASgEEhcKD3NlcXVlbmNlX251bWJlchgDIAEoBCIxCg5TaWduVHhSZXNwb25zZRIfCg5zaWduZWRfdHhfanNvbhgBIAEoCVIHdHhfanNvbiI7ChhCcm9hZGNhc3RUeENvbW1pdFJlcXVlc3QSHwoOc2lnbmVkX3R4X2pzb24YASABKAlSB3R4X2pzb24iKwoZQnJvYWRjYXN0VHhDb21taXRSZXNwb25zZRIOCgZyZXN1bHQYASABKAwiKQoWQWRkcmVzc1RvQmVjaDMyUmVxdWVzdBIPCgdhZGRyZXNzGAEgASgMIjEKF0FkZHJlc3NUb0JlY2gzMlJlc3BvbnNlEhYKDmJlY2gzMl9hZGRyZXNzGAEgASgJIjIKGEFkZHJlc3NGcm9tQmVjaDMyUmVxdWVzdBIWCg5iZWNoMzJfYWRkcmVzcxgBIAEoCSIsChlBZGRyZXNzRnJvbUJlY2gzMlJlc3BvbnNlEg8KB2FkZHJlc3MYASABKAwiLgoaQWRkcmVzc0Zyb21NbmVtb25pY1JlcXVlc3QSEAoIbW5lbW9uaWMYASABKAkiLgobQWRkcmVzc0Zyb21NbmVtb25pY1Jlc3BvbnNlEg8KB2FkZHJlc3MYASABKAwiIgoMSGVsbG9SZXF1ZXN0EhIKBG5hbWUYASABKAlSBE5hbWUiKwoNSGVsbG9SZXNwb25zZRIaCghncmVldGluZxgBIAEoCVIIR3JlZXRpbmciKAoSSGVsbG9TdHJlYW1SZXF1ZXN0EhIKBG5hbWUYASABKAlSBE5hbWUiMQoTSGVsbG9TdHJlYW1SZXNwb25zZRIaCghncmVldGluZxgBIAEoCVIIR3JlZXRpbmdCKVonZ2l0aHViLmNvbS9nbm9sYW5nL2dub25hdGl2ZS9hcGkvZ2VuL2dvYgZwcm90bzM"); /** - * @generated from message land.gno.gnonative.v1.SetRemoteResponse + * Describes the message land.gno.gnonative.v1.SetRemoteRequest. + * Use `create(SetRemoteRequestSchema)` to create a new message. */ -export const SetRemoteResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SetRemoteResponse", - [], -); +export const SetRemoteRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 0); /** - * @generated from message land.gno.gnonative.v1.GetRemoteRequest + * Describes the message land.gno.gnonative.v1.SetRemoteResponse. + * Use `create(SetRemoteResponseSchema)` to create a new message. */ -export const GetRemoteRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetRemoteRequest", - [], -); +export const SetRemoteResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 1); /** - * @generated from message land.gno.gnonative.v1.GetRemoteResponse + * Describes the message land.gno.gnonative.v1.GetRemoteRequest. + * Use `create(GetRemoteRequestSchema)` to create a new message. */ -export const GetRemoteResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetRemoteResponse", - () => [ - { no: 1, name: "remote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const GetRemoteRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 2); /** - * @generated from message land.gno.gnonative.v1.SetChainIDRequest + * Describes the message land.gno.gnonative.v1.GetRemoteResponse. + * Use `create(GetRemoteResponseSchema)` to create a new message. */ -export const SetChainIDRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SetChainIDRequest", - () => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const GetRemoteResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 3); /** - * @generated from message land.gno.gnonative.v1.SetChainIDResponse + * Describes the message land.gno.gnonative.v1.SetChainIDRequest. + * Use `create(SetChainIDRequestSchema)` to create a new message. */ -export const SetChainIDResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SetChainIDResponse", - [], -); +export const SetChainIDRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 4); /** - * @generated from message land.gno.gnonative.v1.GetChainIDRequest + * Describes the message land.gno.gnonative.v1.SetChainIDResponse. + * Use `create(SetChainIDResponseSchema)` to create a new message. */ -export const GetChainIDRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetChainIDRequest", - [], -); +export const SetChainIDResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 5); /** - * @generated from message land.gno.gnonative.v1.GetChainIDResponse + * Describes the message land.gno.gnonative.v1.GetChainIDRequest. + * Use `create(GetChainIDRequestSchema)` to create a new message. */ -export const GetChainIDResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetChainIDResponse", - () => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const GetChainIDRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 6); /** - * @generated from message land.gno.gnonative.v1.SetPasswordRequest + * Describes the message land.gno.gnonative.v1.GetChainIDResponse. + * Use `create(GetChainIDResponseSchema)` to create a new message. */ -export const SetPasswordRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SetPasswordRequest", - () => [ - { no: 1, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const GetChainIDResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 7); /** - * @generated from message land.gno.gnonative.v1.SetPasswordResponse + * Describes the message land.gno.gnonative.v1.SetPasswordRequest. + * Use `create(SetPasswordRequestSchema)` to create a new message. */ -export const SetPasswordResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SetPasswordResponse", - [], -); +export const SetPasswordRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 8); /** - * @generated from message land.gno.gnonative.v1.GenerateRecoveryPhraseRequest + * Describes the message land.gno.gnonative.v1.SetPasswordResponse. + * Use `create(SetPasswordResponseSchema)` to create a new message. */ -export const GenerateRecoveryPhraseRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GenerateRecoveryPhraseRequest", - [], -); +export const SetPasswordResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 9); /** - * @generated from message land.gno.gnonative.v1.GenerateRecoveryPhraseResponse + * Describes the message land.gno.gnonative.v1.GenerateRecoveryPhraseRequest. + * Use `create(GenerateRecoveryPhraseRequestSchema)` to create a new message. */ -export const GenerateRecoveryPhraseResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GenerateRecoveryPhraseResponse", - () => [ - { no: 1, name: "phrase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const GenerateRecoveryPhraseRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 10); /** - * @generated from message land.gno.gnonative.v1.KeyInfo + * Describes the message land.gno.gnonative.v1.GenerateRecoveryPhraseResponse. + * Use `create(GenerateRecoveryPhraseResponseSchema)` to create a new message. */ -export const KeyInfo = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.KeyInfo", - () => [ - { no: 1, name: "type", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "pub_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const GenerateRecoveryPhraseResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 11); /** - * Coin holds some amount of one currency. - * A negative amount is invalid. - * - * @generated from message land.gno.gnonative.v1.Coin + * Describes the message land.gno.gnonative.v1.KeyInfo. + * Use `create(KeyInfoSchema)` to create a new message. */ -export const Coin = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.Coin", - () => [ - { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "amount", kind: "scalar", T: 18 /* ScalarType.SINT64 */ }, - ], -); +export const KeyInfoSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 12); /** - * @generated from message land.gno.gnonative.v1.BaseAccount + * Describes the message land.gno.gnonative.v1.Coin. + * Use `create(CoinSchema)` to create a new message. */ -export const BaseAccount = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.BaseAccount", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "coins", kind: "message", T: Coin, repeated: true }, - { no: 3, name: "pub_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 4, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); +export const CoinSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 13); /** - * @generated from message land.gno.gnonative.v1.ListKeyInfoRequest + * Describes the message land.gno.gnonative.v1.BaseAccount. + * Use `create(BaseAccountSchema)` to create a new message. */ -export const ListKeyInfoRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.ListKeyInfoRequest", - [], -); +export const BaseAccountSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 14); /** - * @generated from message land.gno.gnonative.v1.ListKeyInfoResponse + * Describes the message land.gno.gnonative.v1.ListKeyInfoRequest. + * Use `create(ListKeyInfoRequestSchema)` to create a new message. */ -export const ListKeyInfoResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.ListKeyInfoResponse", - () => [ - { no: 1, name: "keys", jsonName: "key_info", kind: "message", T: KeyInfo, repeated: true }, - ], -); +export const ListKeyInfoRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 15); /** - * @generated from message land.gno.gnonative.v1.HasKeyByNameRequest + * Describes the message land.gno.gnonative.v1.ListKeyInfoResponse. + * Use `create(ListKeyInfoResponseSchema)` to create a new message. */ -export const HasKeyByNameRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByNameRequest", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const ListKeyInfoResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 16); /** - * @generated from message land.gno.gnonative.v1.HasKeyByNameResponse + * Describes the message land.gno.gnonative.v1.HasKeyByNameRequest. + * Use `create(HasKeyByNameRequestSchema)` to create a new message. */ -export const HasKeyByNameResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByNameResponse", - () => [ - { no: 1, name: "has", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); +export const HasKeyByNameRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 17); /** - * @generated from message land.gno.gnonative.v1.HasKeyByAddressRequest + * Describes the message land.gno.gnonative.v1.HasKeyByNameResponse. + * Use `create(HasKeyByNameResponseSchema)` to create a new message. */ -export const HasKeyByAddressRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByAddressRequest", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const HasKeyByNameResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 18); /** - * @generated from message land.gno.gnonative.v1.HasKeyByAddressResponse + * Describes the message land.gno.gnonative.v1.HasKeyByAddressRequest. + * Use `create(HasKeyByAddressRequestSchema)` to create a new message. */ -export const HasKeyByAddressResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByAddressResponse", - () => [ - { no: 1, name: "has", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); +export const HasKeyByAddressRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 19); /** - * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressRequest + * Describes the message land.gno.gnonative.v1.HasKeyByAddressResponse. + * Use `create(HasKeyByAddressResponseSchema)` to create a new message. */ -export const HasKeyByNameOrAddressRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByNameOrAddressRequest", - () => [ - { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const HasKeyByAddressResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 20); /** - * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressResponse + * Describes the message land.gno.gnonative.v1.HasKeyByNameOrAddressRequest. + * Use `create(HasKeyByNameOrAddressRequestSchema)` to create a new message. */ -export const HasKeyByNameOrAddressResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByNameOrAddressResponse", - () => [ - { no: 1, name: "has", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); +export const HasKeyByNameOrAddressRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 21); /** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameRequest + * Describes the message land.gno.gnonative.v1.HasKeyByNameOrAddressResponse. + * Use `create(HasKeyByNameOrAddressResponseSchema)` to create a new message. */ -export const GetKeyInfoByNameRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByNameRequest", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const HasKeyByNameOrAddressResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 22); /** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameResponse + * Describes the message land.gno.gnonative.v1.GetKeyInfoByNameRequest. + * Use `create(GetKeyInfoByNameRequestSchema)` to create a new message. */ -export const GetKeyInfoByNameResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByNameResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - ], -); +export const GetKeyInfoByNameRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 23); /** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressRequest + * Describes the message land.gno.gnonative.v1.GetKeyInfoByNameResponse. + * Use `create(GetKeyInfoByNameResponseSchema)` to create a new message. */ -export const GetKeyInfoByAddressRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByAddressRequest", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const GetKeyInfoByNameResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 24); /** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressResponse + * Describes the message land.gno.gnonative.v1.GetKeyInfoByAddressRequest. + * Use `create(GetKeyInfoByAddressRequestSchema)` to create a new message. */ -export const GetKeyInfoByAddressResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByAddressResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - ], -); +export const GetKeyInfoByAddressRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 25); /** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest + * Describes the message land.gno.gnonative.v1.GetKeyInfoByAddressResponse. + * Use `create(GetKeyInfoByAddressResponseSchema)` to create a new message. */ -export const GetKeyInfoByNameOrAddressRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest", - () => [ - { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const GetKeyInfoByAddressResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 26); /** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse + * Describes the message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest. + * Use `create(GetKeyInfoByNameOrAddressRequestSchema)` to create a new message. */ -export const GetKeyInfoByNameOrAddressResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - ], -); +export const GetKeyInfoByNameOrAddressRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 27); /** - * @generated from message land.gno.gnonative.v1.CreateAccountRequest + * Describes the message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse. + * Use `create(GetKeyInfoByNameOrAddressResponseSchema)` to create a new message. */ -export const CreateAccountRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.CreateAccountRequest", - () => [ - { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "mnemonic", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "bip39_passwd", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "account", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ], -); +export const GetKeyInfoByNameOrAddressResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 28); /** - * @generated from message land.gno.gnonative.v1.CreateAccountResponse + * Describes the message land.gno.gnonative.v1.CreateAccountRequest. + * Use `create(CreateAccountRequestSchema)` to create a new message. */ -export const CreateAccountResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.CreateAccountResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - ], -); +export const CreateAccountRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 29); /** - * @generated from message land.gno.gnonative.v1.SelectAccountRequest + * Describes the message land.gno.gnonative.v1.CreateAccountResponse. + * Use `create(CreateAccountResponseSchema)` to create a new message. */ -export const SelectAccountRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SelectAccountRequest", - () => [ - { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const CreateAccountResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 30); /** - * @generated from message land.gno.gnonative.v1.SelectAccountResponse + * Describes the message land.gno.gnonative.v1.SelectAccountRequest. + * Use `create(SelectAccountRequestSchema)` to create a new message. */ -export const SelectAccountResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SelectAccountResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - { no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); +export const SelectAccountRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 31); /** - * @generated from message land.gno.gnonative.v1.GetActiveAccountRequest + * Describes the message land.gno.gnonative.v1.SelectAccountResponse. + * Use `create(SelectAccountResponseSchema)` to create a new message. */ -export const GetActiveAccountRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetActiveAccountRequest", - [], -); +export const SelectAccountResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 32); /** - * @generated from message land.gno.gnonative.v1.GetActiveAccountResponse + * Describes the message land.gno.gnonative.v1.GetActiveAccountRequest. + * Use `create(GetActiveAccountRequestSchema)` to create a new message. */ -export const GetActiveAccountResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.GetActiveAccountResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - { no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); +export const GetActiveAccountRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 33); /** - * @generated from message land.gno.gnonative.v1.QueryAccountRequest + * Describes the message land.gno.gnonative.v1.GetActiveAccountResponse. + * Use `create(GetActiveAccountResponseSchema)` to create a new message. */ -export const QueryAccountRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.QueryAccountRequest", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const GetActiveAccountResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 34); /** - * @generated from message land.gno.gnonative.v1.QueryAccountResponse + * Describes the message land.gno.gnonative.v1.QueryAccountRequest. + * Use `create(QueryAccountRequestSchema)` to create a new message. */ -export const QueryAccountResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.QueryAccountResponse", - () => [ - { no: 1, name: "account_info", kind: "message", T: BaseAccount }, - ], -); +export const QueryAccountRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 35); /** - * @generated from message land.gno.gnonative.v1.DeleteAccountRequest + * Describes the message land.gno.gnonative.v1.QueryAccountResponse. + * Use `create(QueryAccountResponseSchema)` to create a new message. */ -export const DeleteAccountRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.DeleteAccountRequest", - () => [ - { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "skip_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); +export const QueryAccountResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 36); /** - * @generated from message land.gno.gnonative.v1.DeleteAccountResponse + * Describes the message land.gno.gnonative.v1.DeleteAccountRequest. + * Use `create(DeleteAccountRequestSchema)` to create a new message. */ -export const DeleteAccountResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.DeleteAccountResponse", - [], -); +export const DeleteAccountRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 37); /** - * @generated from message land.gno.gnonative.v1.QueryRequest + * Describes the message land.gno.gnonative.v1.DeleteAccountResponse. + * Use `create(DeleteAccountResponseSchema)` to create a new message. */ -export const QueryRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.QueryRequest", - () => [ - { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const DeleteAccountResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 38); /** - * @generated from message land.gno.gnonative.v1.QueryResponse + * Describes the message land.gno.gnonative.v1.QueryRequest. + * Use `create(QueryRequestSchema)` to create a new message. */ -export const QueryResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.QueryResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const QueryRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 39); /** - * @generated from message land.gno.gnonative.v1.RenderRequest + * Describes the message land.gno.gnonative.v1.QueryResponse. + * Use `create(QueryResponseSchema)` to create a new message. */ -export const RenderRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.RenderRequest", - () => [ - { no: 1, name: "package_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "args", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const QueryResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 40); /** - * @generated from message land.gno.gnonative.v1.RenderResponse + * Describes the message land.gno.gnonative.v1.RenderRequest. + * Use `create(RenderRequestSchema)` to create a new message. */ -export const RenderResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.RenderResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const RenderRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 41); /** - * @generated from message land.gno.gnonative.v1.QEvalRequest + * Describes the message land.gno.gnonative.v1.RenderResponse. + * Use `create(RenderResponseSchema)` to create a new message. */ -export const QEvalRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.QEvalRequest", - () => [ - { no: 1, name: "package_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "expression", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const RenderResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 42); /** - * @generated from message land.gno.gnonative.v1.QEvalResponse + * Describes the message land.gno.gnonative.v1.QEvalRequest. + * Use `create(QEvalRequestSchema)` to create a new message. */ -export const QEvalResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.QEvalResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const QEvalRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 43); /** - * @generated from message land.gno.gnonative.v1.MsgCall + * Describes the message land.gno.gnonative.v1.QEvalResponse. + * Use `create(QEvalResponseSchema)` to create a new message. */ -export const MsgCall = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.MsgCall", - () => [ - { no: 1, name: "package_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "fnc", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "args", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "send", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const QEvalResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 44); /** - * @generated from message land.gno.gnonative.v1.CallRequest + * Describes the message land.gno.gnonative.v1.MsgCall. + * Use `create(MsgCallSchema)` to create a new message. */ -export const CallRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.CallRequest", - () => [ - { no: 1, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gas_wanted", kind: "scalar", T: 18 /* ScalarType.SINT64 */ }, - { no: 3, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgCall, repeated: true }, - ], -); +export const MsgCallSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 45); /** - * @generated from message land.gno.gnonative.v1.CallResponse + * Describes the message land.gno.gnonative.v1.CallRequest. + * Use `create(CallRequestSchema)` to create a new message. */ -export const CallResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.CallResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const CallRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 46); /** - * @generated from message land.gno.gnonative.v1.MsgSend + * Describes the message land.gno.gnonative.v1.CallResponse. + * Use `create(CallResponseSchema)` to create a new message. */ -export const MsgSend = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.MsgSend", - () => [ - { no: 1, name: "to_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "send", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const CallResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 47); /** - * @generated from message land.gno.gnonative.v1.SendRequest + * Describes the message land.gno.gnonative.v1.MsgSend. + * Use `create(MsgSendSchema)` to create a new message. */ -export const SendRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SendRequest", - () => [ - { no: 1, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gas_wanted", kind: "scalar", T: 18 /* ScalarType.SINT64 */ }, - { no: 3, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgSend, repeated: true }, - ], -); +export const MsgSendSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 48); /** - * @generated from message land.gno.gnonative.v1.SendResponse + * Describes the message land.gno.gnonative.v1.SendRequest. + * Use `create(SendRequestSchema)` to create a new message. */ -export const SendResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.SendResponse", - [], -); +export const SendRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 49); /** - * @generated from message land.gno.gnonative.v1.MsgRun + * Describes the message land.gno.gnonative.v1.SendResponse. + * Use `create(SendResponseSchema)` to create a new message. */ -export const MsgRun = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.MsgRun", - () => [ - { no: 1, name: "package", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "send", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const SendResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 50); /** - * @generated from message land.gno.gnonative.v1.RunRequest + * Describes the message land.gno.gnonative.v1.MsgRun. + * Use `create(MsgRunSchema)` to create a new message. */ -export const RunRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.RunRequest", - () => [ - { no: 1, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gas_wanted", kind: "scalar", T: 18 /* ScalarType.SINT64 */ }, - { no: 3, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgRun, repeated: true }, - ], -); +export const MsgRunSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 51); /** - * @generated from message land.gno.gnonative.v1.RunResponse + * Describes the message land.gno.gnonative.v1.RunRequest. + * Use `create(RunRequestSchema)` to create a new message. */ -export const RunResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.RunResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const RunRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 52); /** - * @generated from message land.gno.gnonative.v1.AddressToBech32Request + * Describes the message land.gno.gnonative.v1.RunResponse. + * Use `create(RunResponseSchema)` to create a new message. */ -export const AddressToBech32Request = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.AddressToBech32Request", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const RunResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 53); /** - * @generated from message land.gno.gnonative.v1.AddressToBech32Response + * Describes the message land.gno.gnonative.v1.MakeTxResponse. + * Use `create(MakeTxResponseSchema)` to create a new message. */ -export const AddressToBech32Response = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.AddressToBech32Response", - () => [ - { no: 1, name: "bech32_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const MakeTxResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 54); /** - * @generated from message land.gno.gnonative.v1.AddressFromBech32Request + * Describes the message land.gno.gnonative.v1.SignTxRequest. + * Use `create(SignTxRequestSchema)` to create a new message. */ -export const AddressFromBech32Request = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.AddressFromBech32Request", - () => [ - { no: 1, name: "bech32_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const SignTxRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 55); /** - * @generated from message land.gno.gnonative.v1.AddressFromBech32Response + * Describes the message land.gno.gnonative.v1.SignTxResponse. + * Use `create(SignTxResponseSchema)` to create a new message. */ -export const AddressFromBech32Response = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.AddressFromBech32Response", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const SignTxResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 56); /** - * @generated from message land.gno.gnonative.v1.AddressFromMnemonicRequest + * Describes the message land.gno.gnonative.v1.BroadcastTxCommitRequest. + * Use `create(BroadcastTxCommitRequestSchema)` to create a new message. */ -export const AddressFromMnemonicRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.AddressFromMnemonicRequest", - () => [ - { no: 1, name: "mnemonic", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const BroadcastTxCommitRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 57); /** - * @generated from message land.gno.gnonative.v1.AddressFromMnemonicResponse + * Describes the message land.gno.gnonative.v1.BroadcastTxCommitResponse. + * Use `create(BroadcastTxCommitResponseSchema)` to create a new message. */ -export const AddressFromMnemonicResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.AddressFromMnemonicResponse", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); +export const BroadcastTxCommitResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 58); /** - * @generated from message land.gno.gnonative.v1.HelloRequest + * Describes the message land.gno.gnonative.v1.AddressToBech32Request. + * Use `create(AddressToBech32RequestSchema)` to create a new message. */ -export const HelloRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HelloRequest", - () => [ - { no: 1, name: "name", jsonName: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const AddressToBech32RequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 59); /** - * @generated from message land.gno.gnonative.v1.HelloResponse + * Describes the message land.gno.gnonative.v1.AddressToBech32Response. + * Use `create(AddressToBech32ResponseSchema)` to create a new message. */ -export const HelloResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HelloResponse", - () => [ - { no: 1, name: "greeting", jsonName: "Greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const AddressToBech32ResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 60); /** - * @generated from message land.gno.gnonative.v1.HelloStreamRequest + * Describes the message land.gno.gnonative.v1.AddressFromBech32Request. + * Use `create(AddressFromBech32RequestSchema)` to create a new message. */ -export const HelloStreamRequest = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HelloStreamRequest", - () => [ - { no: 1, name: "name", jsonName: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const AddressFromBech32RequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 61); /** - * @generated from message land.gno.gnonative.v1.HelloStreamResponse + * Describes the message land.gno.gnonative.v1.AddressFromBech32Response. + * Use `create(AddressFromBech32ResponseSchema)` to create a new message. */ -export const HelloStreamResponse = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.HelloStreamResponse", - () => [ - { no: 1, name: "greeting", jsonName: "Greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); +export const AddressFromBech32ResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 62); + +/** + * Describes the message land.gno.gnonative.v1.AddressFromMnemonicRequest. + * Use `create(AddressFromMnemonicRequestSchema)` to create a new message. + */ +export const AddressFromMnemonicRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 63); + +/** + * Describes the message land.gno.gnonative.v1.AddressFromMnemonicResponse. + * Use `create(AddressFromMnemonicResponseSchema)` to create a new message. + */ +export const AddressFromMnemonicResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 64); + +/** + * Describes the message land.gno.gnonative.v1.HelloRequest. + * Use `create(HelloRequestSchema)` to create a new message. + */ +export const HelloRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 65); + +/** + * Describes the message land.gno.gnonative.v1.HelloResponse. + * Use `create(HelloResponseSchema)` to create a new message. + */ +export const HelloResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 66); + +/** + * Describes the message land.gno.gnonative.v1.HelloStreamRequest. + * Use `create(HelloStreamRequestSchema)` to create a new message. + */ +export const HelloStreamRequestSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 67); + +/** + * Describes the message land.gno.gnonative.v1.HelloStreamResponse. + * Use `create(HelloStreamResponseSchema)` to create a new message. + */ +export const HelloStreamResponseSchema = /*@__PURE__*/ + messageDesc(file_gnonativetypes, 68); diff --git a/api/gen/es/rpc_connect.d.ts b/api/gen/es/rpc_connect.d.ts index df7f54f4..65cc7936 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, 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, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SelectAccountRequest, SelectAccountResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse } from "./gnonativetypes_pb.js"; +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 } from "./gnonativetypes_pb.js"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -323,6 +323,63 @@ export declare const GnoNativeService: { readonly O: typeof RunResponse, readonly kind: MethodKind.ServerStreaming, }, + /** + * Make an unsigned transaction to call a specific realm function. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeCallTx + */ + readonly makeCallTx: { + readonly name: "MakeCallTx", + readonly I: typeof CallRequest, + readonly O: typeof MakeTxResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Make an unsigned transaction to send currency to an account on the blockchain. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeSendTx + */ + readonly makeSendTx: { + readonly name: "MakeSendTx", + readonly I: typeof SendRequest, + readonly O: typeof MakeTxResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeRunTx + */ + readonly makeRunTx: { + readonly name: "MakeRunTx", + readonly I: typeof RunRequest, + readonly O: typeof MakeTxResponse, + 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. + * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SignTx + */ + readonly signTx: { + readonly name: "SignTx", + readonly I: typeof SignTxRequest, + readonly O: typeof SignTxResponse, + readonly kind: MethodKind.Unary, + }, + /** + * Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit + */ + readonly broadcastTxCommit: { + readonly name: "BroadcastTxCommit", + readonly I: typeof BroadcastTxCommitRequest, + readonly O: typeof BroadcastTxCommitResponse, + readonly kind: MethodKind.ServerStreaming, + }, /** * Convert a byte array address to a bech32 string address. * diff --git a/api/gen/es/rpc_connect.js b/api/gen/es/rpc_connect.js index 64a8e8a2..d99e8f41 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, 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, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SelectAccountRequest, SelectAccountResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse } from "./gnonativetypes_pb.js"; +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 } from "./gnonativetypes_pb.js"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -323,6 +323,63 @@ export const GnoNativeService = { O: RunResponse, kind: MethodKind.ServerStreaming, }, + /** + * Make an unsigned transaction to call a specific realm function. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeCallTx + */ + makeCallTx: { + name: "MakeCallTx", + I: CallRequest, + O: MakeTxResponse, + kind: MethodKind.Unary, + }, + /** + * Make an unsigned transaction to send currency to an account on the blockchain. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeSendTx + */ + makeSendTx: { + name: "MakeSendTx", + I: SendRequest, + O: MakeTxResponse, + kind: MethodKind.Unary, + }, + /** + * Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeRunTx + */ + makeRunTx: { + name: "MakeRunTx", + I: RunRequest, + O: MakeTxResponse, + 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. + * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SignTx + */ + signTx: { + name: "SignTx", + I: SignTxRequest, + O: SignTxResponse, + kind: MethodKind.Unary, + }, + /** + * Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit + */ + broadcastTxCommit: { + name: "BroadcastTxCommit", + I: BroadcastTxCommitRequest, + O: BroadcastTxCommitResponse, + kind: MethodKind.ServerStreaming, + }, /** * Convert a byte array address to a bech32 string address. * diff --git a/api/gen/es/rpc_pb.d.ts b/api/gen/es/rpc_pb.d.ts index 0fee45ea..226fe8ce 100644 --- a/api/gen/es/rpc_pb.d.ts +++ b/api/gen/es/rpc_pb.d.ts @@ -1,10 +1,31 @@ -// @generated by protoc-gen-es v1.10.0 +// @generated by protoc-gen-es v2.0.0 // @generated from file rpc.proto (package land.gno.gnonative.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; +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 } from "./gnonativetypes_pb"; + +/** + * Describes the file rpc.proto. + */ +export declare const file_rpc: GenFile; + +/** + * @generated from message land.gno.gnonative.v1.ErrDetails + */ +export declare type ErrDetails = Message<"land.gno.gnonative.v1.ErrDetails"> & { + /** + * @generated from field: repeated land.gno.gnonative.v1.ErrCode codes = 1; + */ + codes: ErrCode[]; +}; + +/** + * Describes the message land.gno.gnonative.v1.ErrDetails. + * Use `create(ErrDetailsSchema)` to create a new message. + */ +export declare const ErrDetailsSchema: GenMessage; /** * The ErrCode enum defines errors for gRPC API functions. These are converted @@ -16,7 +37,7 @@ import { Message, proto3 } from "@bufbuild/protobuf"; * * @generated from enum land.gno.gnonative.v1.ErrCode */ -export declare enum ErrCode { +export enum ErrCode { /** * Undefined is the default value. It should never be set manually * @@ -244,26 +265,402 @@ export declare enum ErrCode { } /** - * @generated from message land.gno.gnonative.v1.ErrDetails + * Describes the enum land.gno.gnonative.v1.ErrCode. */ -export declare class ErrDetails extends Message { +export declare const ErrCodeSchema: GenEnum; + +/** + * GnoNativeService is the service to interact with the Gno blockchain + * + * @generated from service land.gno.gnonative.v1.GnoNativeService + */ +export declare const GnoNativeService: GenService<{ /** - * @generated from field: repeated land.gno.gnonative.v1.ErrCode codes = 1; + * Set the connection address for the remote node. If you don't call this, + * the default is "127.0.0.1:26657" + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetRemote */ - codes: ErrCode[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.ErrDetails"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ErrDetails; - - static fromJson(jsonValue: JsonValue, options?: Partial): ErrDetails; - - static fromJsonString(jsonString: string, options?: Partial): ErrDetails; - - static equals(a: ErrDetails | PlainMessage | undefined, b: ErrDetails | PlainMessage | undefined): boolean; -} + setRemote: { + methodKind: "unary"; + input: typeof SetRemoteRequestSchema; + output: typeof SetRemoteResponseSchema; + }, + /** + * Get the connection address for the remote node. The response is either + * the initial default, or the value which was set with SetRemote + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetRemote + */ + getRemote: { + methodKind: "unary"; + input: typeof GetRemoteRequestSchema; + output: typeof GetRemoteResponseSchema; + }, + /** + * Set the chain ID for the remote node. If you don't call this, the default + * is "dev" + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetChainID + */ + setChainID: { + methodKind: "unary"; + input: typeof SetChainIDRequestSchema; + output: typeof SetChainIDResponseSchema; + }, + /** + * Get the chain ID for the remote node. The response is either + * the initial default, or the value which was set with SetChainID + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetChainID + */ + getChainID: { + methodKind: "unary"; + input: typeof GetChainIDRequestSchema; + output: typeof GetChainIDResponseSchema; + }, + /** + * Generate a recovery phrase of BIP39 mnemonic words using entropy from the + * crypto library random number generator. This can be used as the mnemonic in + * CreateAccount. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GenerateRecoveryPhrase + */ + generateRecoveryPhrase: { + methodKind: "unary"; + input: typeof GenerateRecoveryPhraseRequestSchema; + output: typeof GenerateRecoveryPhraseResponseSchema; + }, + /** + * Get the information for all keys in the keybase + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.ListKeyInfo + */ + listKeyInfo: { + methodKind: "unary"; + input: typeof ListKeyInfoRequestSchema; + output: typeof ListKeyInfoResponseSchema; + }, + /** + * Check for the key in the keybase with the given name. + * In the response, set has true if the keybase has the key. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.HasKeyByName + */ + hasKeyByName: { + methodKind: "unary"; + input: typeof HasKeyByNameRequestSchema; + output: typeof HasKeyByNameResponseSchema; + }, + /** + * Check for the key in the keybase with the given address. + * In the response, set has true if the keybase has the key. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.HasKeyByAddress + */ + hasKeyByAddress: { + methodKind: "unary"; + input: typeof HasKeyByAddressRequestSchema; + output: typeof HasKeyByAddressResponseSchema; + }, + /** + * Check for the key in the keybase with the given name or bech32 string address. + * In the response, set has true if the keybase has the key. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.HasKeyByNameOrAddress + */ + hasKeyByNameOrAddress: { + methodKind: "unary"; + input: typeof HasKeyByNameOrAddressRequestSchema; + output: typeof HasKeyByNameOrAddressResponseSchema; + }, + /** + * Get the information for the key in the keybase with the given name. + * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByName + */ + getKeyInfoByName: { + methodKind: "unary"; + input: typeof GetKeyInfoByNameRequestSchema; + output: typeof GetKeyInfoByNameResponseSchema; + }, + /** + * Get the information for the key in the keybase with the given address. + * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByAddress + */ + getKeyInfoByAddress: { + methodKind: "unary"; + input: typeof GetKeyInfoByAddressRequestSchema; + output: typeof GetKeyInfoByAddressResponseSchema; + }, + /** + * Get the information for the key in the keybase with the given name or bech32 string address. + * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress + */ + getKeyInfoByNameOrAddress: { + methodKind: "unary"; + input: typeof GetKeyInfoByNameOrAddressRequestSchema; + output: typeof GetKeyInfoByNameOrAddressResponseSchema; + }, + /** + * Create a new account in the keybase using the name and password specified by SetAccount. + * If an account with the same name already exists in the keybase, + * this replaces it. (If you don't want to replace it, then it's your responsibility + * to use GetKeyInfoByName to check if it exists before calling this.) + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.CreateAccount + */ + createAccount: { + methodKind: "unary"; + input: typeof CreateAccountRequestSchema; + output: typeof CreateAccountResponseSchema; + }, + /** + * 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. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SelectAccount + */ + selectAccount: { + methodKind: "unary"; + input: typeof SelectAccountRequestSchema; + 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. + * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetPassword + */ + setPassword: { + methodKind: "unary"; + input: typeof SetPasswordRequestSchema; + output: typeof SetPasswordResponseSchema; + }, + /** + * 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.) + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActiveAccount + */ + getActiveAccount: { + methodKind: "unary"; + input: typeof GetActiveAccountRequestSchema; + output: typeof GetActiveAccountResponseSchema; + }, + /** + * QueryAccount retrieves account information from the blockchain for a given + * address. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.QueryAccount + */ + queryAccount: { + methodKind: "unary"; + input: typeof QueryAccountRequestSchema; + output: typeof QueryAccountResponseSchema; + }, + /** + * DeleteAccount deletes the account with the given name, using the password + * to ensure access. However, if skip_password is true, then ignore the + * password. + * If the account doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. + * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.DeleteAccount + */ + deleteAccount: { + methodKind: "unary"; + input: typeof DeleteAccountRequestSchema; + output: typeof DeleteAccountResponseSchema; + }, + /** + * Make an ABCI query to the remote node. + * If the request path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. + * If the request data has a package path that is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Query + */ + query: { + methodKind: "unary"; + input: typeof QueryRequestSchema; + output: typeof QueryResponseSchema; + }, + /** + * Render calls the Render function for package_path with optional args. The + * package path should include the prefix like "gno.land/". This is similar to + * using a browser URL /: where doesn't have + * the prefix like "gno.land/". + * If the request package_path is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidPkgPath. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Render + */ + render: { + methodKind: "unary"; + input: typeof RenderRequestSchema; + output: typeof RenderResponseSchema; + }, + /** + * QEval evaluates the given expression with the realm code at package_path. + * The package path should include the prefix like "gno.land/". The expression + * is usually a function call like "GetBoardIDFromName(\"testboard\")". The + * return value is a typed expression like + * "(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. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.QEval + */ + qEval: { + methodKind: "unary"; + input: typeof QEvalRequestSchema; + 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. + * 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. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Call + */ + call: { + methodKind: "server_streaming"; + input: typeof CallRequestSchema; + 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. + * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Send + */ + send: { + methodKind: "server_streaming"; + input: typeof SendRequestSchema; + output: typeof SendResponseSchema; + }, + /** + * 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". + * This returns the "console" output. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Run + */ + run: { + methodKind: "server_streaming"; + input: typeof RunRequestSchema; + output: typeof RunResponseSchema; + }, + /** + * Make an unsigned transaction to call a specific realm function. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeCallTx + */ + makeCallTx: { + methodKind: "unary"; + input: typeof CallRequestSchema; + output: typeof MakeTxResponseSchema; + }, + /** + * Make an unsigned transaction to send currency to an account on the blockchain. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeSendTx + */ + makeSendTx: { + methodKind: "unary"; + input: typeof SendRequestSchema; + output: typeof MakeTxResponseSchema; + }, + /** + * Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.MakeRunTx + */ + makeRunTx: { + methodKind: "unary"; + input: typeof RunRequestSchema; + 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. + * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SignTx + */ + signTx: { + methodKind: "unary"; + input: typeof SignTxRequestSchema; + output: typeof SignTxResponseSchema; + }, + /** + * Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit + */ + broadcastTxCommit: { + methodKind: "server_streaming"; + input: typeof BroadcastTxCommitRequestSchema; + output: typeof BroadcastTxCommitResponseSchema; + }, + /** + * Convert a byte array address to a bech32 string address. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressToBech32 + */ + addressToBech32: { + methodKind: "unary"; + input: typeof AddressToBech32RequestSchema; + output: typeof AddressToBech32ResponseSchema; + }, + /** + * Convert a bech32 string address to a byte array address. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressFromBech32 + */ + addressFromBech32: { + methodKind: "unary"; + input: typeof AddressFromBech32RequestSchema; + output: typeof AddressFromBech32ResponseSchema; + }, + /** + * Convert a mnemonic (as in CreateAccount) to a byte array address. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic + */ + addressFromMnemonic: { + methodKind: "unary"; + input: typeof AddressFromMnemonicRequestSchema; + output: typeof AddressFromMnemonicResponseSchema; + }, + /** + * Hello is for debug purposes + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Hello + */ + hello: { + methodKind: "unary"; + input: typeof HelloRequestSchema; + output: typeof HelloResponseSchema; + }, + /** + * HelloStream is for debug purposes + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.HelloStream + */ + helloStream: { + methodKind: "server_streaming"; + input: typeof HelloStreamRequestSchema; + output: typeof HelloStreamResponseSchema; + }, +}>; diff --git a/api/gen/es/rpc_pb.js b/api/gen/es/rpc_pb.js index f08efa8d..df807df4 100644 --- a/api/gen/es/rpc_pb.js +++ b/api/gen/es/rpc_pb.js @@ -1,9 +1,28 @@ -// @generated by protoc-gen-es v1.10.0 +// @generated by protoc-gen-es v2.0.0 // @generated from file rpc.proto (package land.gno.gnonative.v1, syntax proto3) /* eslint-disable */ -// @ts-nocheck -import { proto3 } from "@bufbuild/protobuf"; +import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv1"; +import { file_gnonativetypes } from "./gnonativetypes_pb"; + +/** + * Describes the file rpc.proto. + */ +export const file_rpc = /*@__PURE__*/ + fileDesc("CglycGMucHJvdG8SFWxhbmQuZ25vLmdub25hdGl2ZS52MSI7CgpFcnJEZXRhaWxzEi0KBWNvZGVzGAEgAygOMh4ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkVyckNvZGUqtAYKB0VyckNvZGUSDQoJVW5kZWZpbmVkEAASCAoEVE9ETxABEhUKEUVyck5vdEltcGxlbWVudGVkEAISDwoLRXJySW50ZXJuYWwQAxITCg9FcnJJbnZhbGlkSW5wdXQQZBIYChRFcnJCcmlkZ2VJbnRlcnJ1cHRlZBBlEhMKD0Vyck1pc3NpbmdJbnB1dBBmEhQKEEVyclNlcmlhbGl6YXRpb24QZxIWChJFcnJEZXNlcmlhbGl6YXRpb24QaBISCg5FcnJJbml0U2VydmljZRBpEhAKDEVyclNldFJlbW90ZRBqEhwKF0VyckNyeXB0b0tleVR5cGVVbmtub3duEJYBEhkKFEVyckNyeXB0b0tleU5vdEZvdW5kEJcBEhcKEkVyck5vQWN0aXZlQWNjb3VudBCYARIVChBFcnJSdW5HUlBDU2VydmVyEJkBEhgKE0VyckRlY3J5cHRpb25GYWlsZWQQmgESEAoLRXJyVHhEZWNvZGUQyAESFwoSRXJySW52YWxpZFNlcXVlbmNlEMkBEhQKD0VyclVuYXV0aG9yaXplZBDKARIZChRFcnJJbnN1ZmZpY2llbnRGdW5kcxDLARIWChFFcnJVbmtub3duUmVxdWVzdBDMARIWChFFcnJJbnZhbGlkQWRkcmVzcxDNARIWChFFcnJVbmtub3duQWRkcmVzcxDOARIVChBFcnJJbnZhbGlkUHViS2V5EM8BEhkKFEVyckluc3VmZmljaWVudENvaW5zENABEhQKD0VyckludmFsaWRDb2lucxDRARIYChNFcnJJbnZhbGlkR2FzV2FudGVkENIBEhAKC0Vyck91dE9mR2FzENMBEhQKD0Vyck1lbW9Ub29MYXJnZRDUARIXChJFcnJJbnN1ZmZpY2llbnRGZWUQ1QESGQoURXJyVG9vTWFueVNpZ25hdHVyZXMQ1gESFAoPRXJyTm9TaWduYXR1cmVzENcBEhMKDkVyckdhc092ZXJmbG93ENgBEhYKEUVyckludmFsaWRQa2dQYXRoENkBEhMKDkVyckludmFsaWRTdG10ENoBEhMKDkVyckludmFsaWRFeHByENsBMuUbChBHbm9OYXRpdmVTZXJ2aWNlEl4KCVNldFJlbW90ZRInLmxhbmQuZ25vLmdub25hdGl2ZS52MS5TZXRSZW1vdGVSZXF1ZXN0GigubGFuZC5nbm8uZ25vbmF0aXZlLnYxLlNldFJlbW90ZVJlc3BvbnNlEl4KCUdldFJlbW90ZRInLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRSZW1vdGVSZXF1ZXN0GigubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkdldFJlbW90ZVJlc3BvbnNlEmEKClNldENoYWluSUQSKC5sYW5kLmduby5nbm9uYXRpdmUudjEuU2V0Q2hhaW5JRFJlcXVlc3QaKS5sYW5kLmduby5nbm9uYXRpdmUudjEuU2V0Q2hhaW5JRFJlc3BvbnNlEmEKCkdldENoYWluSUQSKC5sYW5kLmduby5nbm9uYXRpdmUudjEuR2V0Q2hhaW5JRFJlcXVlc3QaKS5sYW5kLmduby5nbm9uYXRpdmUudjEuR2V0Q2hhaW5JRFJlc3BvbnNlEoUBChZHZW5lcmF0ZVJlY292ZXJ5UGhyYXNlEjQubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkdlbmVyYXRlUmVjb3ZlcnlQaHJhc2VSZXF1ZXN0GjUubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkdlbmVyYXRlUmVjb3ZlcnlQaHJhc2VSZXNwb25zZRJkCgtMaXN0S2V5SW5mbxIpLmxhbmQuZ25vLmdub25hdGl2ZS52MS5MaXN0S2V5SW5mb1JlcXVlc3QaKi5sYW5kLmduby5nbm9uYXRpdmUudjEuTGlzdEtleUluZm9SZXNwb25zZRJnCgxIYXNLZXlCeU5hbWUSKi5sYW5kLmduby5nbm9uYXRpdmUudjEuSGFzS2V5QnlOYW1lUmVxdWVzdBorLmxhbmQuZ25vLmdub25hdGl2ZS52MS5IYXNLZXlCeU5hbWVSZXNwb25zZRJwCg9IYXNLZXlCeUFkZHJlc3MSLS5sYW5kLmduby5nbm9uYXRpdmUudjEuSGFzS2V5QnlBZGRyZXNzUmVxdWVzdBouLmxhbmQuZ25vLmdub25hdGl2ZS52MS5IYXNLZXlCeUFkZHJlc3NSZXNwb25zZRKCAQoVSGFzS2V5QnlOYW1lT3JBZGRyZXNzEjMubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkhhc0tleUJ5TmFtZU9yQWRkcmVzc1JlcXVlc3QaNC5sYW5kLmduby5nbm9uYXRpdmUudjEuSGFzS2V5QnlOYW1lT3JBZGRyZXNzUmVzcG9uc2UScwoQR2V0S2V5SW5mb0J5TmFtZRIuLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRLZXlJbmZvQnlOYW1lUmVxdWVzdBovLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRLZXlJbmZvQnlOYW1lUmVzcG9uc2USfAoTR2V0S2V5SW5mb0J5QWRkcmVzcxIxLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRLZXlJbmZvQnlBZGRyZXNzUmVxdWVzdBoyLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRLZXlJbmZvQnlBZGRyZXNzUmVzcG9uc2USjgEKGUdldEtleUluZm9CeU5hbWVPckFkZHJlc3MSNy5sYW5kLmduby5nbm9uYXRpdmUudjEuR2V0S2V5SW5mb0J5TmFtZU9yQWRkcmVzc1JlcXVlc3QaOC5sYW5kLmduby5nbm9uYXRpdmUudjEuR2V0S2V5SW5mb0J5TmFtZU9yQWRkcmVzc1Jlc3BvbnNlEmoKDUNyZWF0ZUFjY291bnQSKy5sYW5kLmduby5nbm9uYXRpdmUudjEuQ3JlYXRlQWNjb3VudFJlcXVlc3QaLC5sYW5kLmduby5nbm9uYXRpdmUudjEuQ3JlYXRlQWNjb3VudFJlc3BvbnNlEmoKDVNlbGVjdEFjY291bnQSKy5sYW5kLmduby5nbm9uYXRpdmUudjEuU2VsZWN0QWNjb3VudFJlcXVlc3QaLC5sYW5kLmduby5nbm9uYXRpdmUudjEuU2VsZWN0QWNjb3VudFJlc3BvbnNlEmQKC1NldFBhc3N3b3JkEikubGFuZC5nbm8uZ25vbmF0aXZlLnYxLlNldFBhc3N3b3JkUmVxdWVzdBoqLmxhbmQuZ25vLmdub25hdGl2ZS52MS5TZXRQYXNzd29yZFJlc3BvbnNlEnMKEEdldEFjdGl2ZUFjY291bnQSLi5sYW5kLmduby5nbm9uYXRpdmUudjEuR2V0QWN0aXZlQWNjb3VudFJlcXVlc3QaLy5sYW5kLmduby5nbm9uYXRpdmUudjEuR2V0QWN0aXZlQWNjb3VudFJlc3BvbnNlEmcKDFF1ZXJ5QWNjb3VudBIqLmxhbmQuZ25vLmdub25hdGl2ZS52MS5RdWVyeUFjY291bnRSZXF1ZXN0GisubGFuZC5nbm8uZ25vbmF0aXZlLnYxLlF1ZXJ5QWNjb3VudFJlc3BvbnNlEmoKDURlbGV0ZUFjY291bnQSKy5sYW5kLmduby5nbm9uYXRpdmUudjEuRGVsZXRlQWNjb3VudFJlcXVlc3QaLC5sYW5kLmduby5nbm9uYXRpdmUudjEuRGVsZXRlQWNjb3VudFJlc3BvbnNlElIKBVF1ZXJ5EiMubGFuZC5nbm8uZ25vbmF0aXZlLnYxLlF1ZXJ5UmVxdWVzdBokLmxhbmQuZ25vLmdub25hdGl2ZS52MS5RdWVyeVJlc3BvbnNlElUKBlJlbmRlchIkLmxhbmQuZ25vLmdub25hdGl2ZS52MS5SZW5kZXJSZXF1ZXN0GiUubGFuZC5nbm8uZ25vbmF0aXZlLnYxLlJlbmRlclJlc3BvbnNlElIKBVFFdmFsEiMubGFuZC5nbm8uZ25vbmF0aXZlLnYxLlFFdmFsUmVxdWVzdBokLmxhbmQuZ25vLmdub25hdGl2ZS52MS5RRXZhbFJlc3BvbnNlElEKBENhbGwSIi5sYW5kLmduby5nbm9uYXRpdmUudjEuQ2FsbFJlcXVlc3QaIy5sYW5kLmduby5nbm9uYXRpdmUudjEuQ2FsbFJlc3BvbnNlMAESUQoEU2VuZBIiLmxhbmQuZ25vLmdub25hdGl2ZS52MS5TZW5kUmVxdWVzdBojLmxhbmQuZ25vLmdub25hdGl2ZS52MS5TZW5kUmVzcG9uc2UwARJOCgNSdW4SIS5sYW5kLmduby5nbm9uYXRpdmUudjEuUnVuUmVxdWVzdBoiLmxhbmQuZ25vLmdub25hdGl2ZS52MS5SdW5SZXNwb25zZTABElcKCk1ha2VDYWxsVHgSIi5sYW5kLmduby5nbm9uYXRpdmUudjEuQ2FsbFJlcXVlc3QaJS5sYW5kLmduby5nbm9uYXRpdmUudjEuTWFrZVR4UmVzcG9uc2USVwoKTWFrZVNlbmRUeBIiLmxhbmQuZ25vLmdub25hdGl2ZS52MS5TZW5kUmVxdWVzdBolLmxhbmQuZ25vLmdub25hdGl2ZS52MS5NYWtlVHhSZXNwb25zZRJVCglNYWtlUnVuVHgSIS5sYW5kLmduby5nbm9uYXRpdmUudjEuUnVuUmVxdWVzdBolLmxhbmQuZ25vLmdub25hdGl2ZS52MS5NYWtlVHhSZXNwb25zZRJVCgZTaWduVHgSJC5sYW5kLmduby5nbm9uYXRpdmUudjEuU2lnblR4UmVxdWVzdBolLmxhbmQuZ25vLmdub25hdGl2ZS52MS5TaWduVHhSZXNwb25zZRJ4ChFCcm9hZGNhc3RUeENvbW1pdBIvLmxhbmQuZ25vLmdub25hdGl2ZS52MS5Ccm9hZGNhc3RUeENvbW1pdFJlcXVlc3QaMC5sYW5kLmduby5nbm9uYXRpdmUudjEuQnJvYWRjYXN0VHhDb21taXRSZXNwb25zZTABEnAKD0FkZHJlc3NUb0JlY2gzMhItLmxhbmQuZ25vLmdub25hdGl2ZS52MS5BZGRyZXNzVG9CZWNoMzJSZXF1ZXN0Gi4ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkFkZHJlc3NUb0JlY2gzMlJlc3BvbnNlEnYKEUFkZHJlc3NGcm9tQmVjaDMyEi8ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkFkZHJlc3NGcm9tQmVjaDMyUmVxdWVzdBowLmxhbmQuZ25vLmdub25hdGl2ZS52MS5BZGRyZXNzRnJvbUJlY2gzMlJlc3BvbnNlEnwKE0FkZHJlc3NGcm9tTW5lbW9uaWMSMS5sYW5kLmduby5nbm9uYXRpdmUudjEuQWRkcmVzc0Zyb21NbmVtb25pY1JlcXVlc3QaMi5sYW5kLmduby5nbm9uYXRpdmUudjEuQWRkcmVzc0Zyb21NbmVtb25pY1Jlc3BvbnNlElIKBUhlbGxvEiMubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkhlbGxvUmVxdWVzdBokLmxhbmQuZ25vLmdub25hdGl2ZS52MS5IZWxsb1Jlc3BvbnNlEmYKC0hlbGxvU3RyZWFtEikubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkhlbGxvU3RyZWFtUmVxdWVzdBoqLmxhbmQuZ25vLmdub25hdGl2ZS52MS5IZWxsb1N0cmVhbVJlc3BvbnNlMAFCL1onZ2l0aHViLmNvbS9nbm9sYW5nL2dub25hdGl2ZS9hcGkvZ2VuL2dvogIDUlRHYgZwcm90bzM", [file_gnonativetypes]); + +/** + * Describes the message land.gno.gnonative.v1.ErrDetails. + * Use `create(ErrDetailsSchema)` to create a new message. + */ +export const ErrDetailsSchema = /*@__PURE__*/ + messageDesc(file_rpc, 0); + +/** + * Describes the enum land.gno.gnonative.v1.ErrCode. + */ +export const ErrCodeSchema = /*@__PURE__*/ + enumDesc(file_rpc, 0); /** * The ErrCode enum defines errors for gRPC API functions. These are converted @@ -15,55 +34,14 @@ import { proto3 } from "@bufbuild/protobuf"; * * @generated from enum land.gno.gnonative.v1.ErrCode */ -export const ErrCode = /*@__PURE__*/ proto3.makeEnum( - "land.gno.gnonative.v1.ErrCode", - [ - {no: 0, name: "Undefined"}, - {no: 1, name: "TODO"}, - {no: 2, name: "ErrNotImplemented"}, - {no: 3, name: "ErrInternal"}, - {no: 100, name: "ErrInvalidInput"}, - {no: 101, name: "ErrBridgeInterrupted"}, - {no: 102, name: "ErrMissingInput"}, - {no: 103, name: "ErrSerialization"}, - {no: 104, name: "ErrDeserialization"}, - {no: 105, name: "ErrInitService"}, - {no: 106, name: "ErrSetRemote"}, - {no: 150, name: "ErrCryptoKeyTypeUnknown"}, - {no: 151, name: "ErrCryptoKeyNotFound"}, - {no: 152, name: "ErrNoActiveAccount"}, - {no: 153, name: "ErrRunGRPCServer"}, - {no: 154, name: "ErrDecryptionFailed"}, - {no: 200, name: "ErrTxDecode"}, - {no: 201, name: "ErrInvalidSequence"}, - {no: 202, name: "ErrUnauthorized"}, - {no: 203, name: "ErrInsufficientFunds"}, - {no: 204, name: "ErrUnknownRequest"}, - {no: 205, name: "ErrInvalidAddress"}, - {no: 206, name: "ErrUnknownAddress"}, - {no: 207, name: "ErrInvalidPubKey"}, - {no: 208, name: "ErrInsufficientCoins"}, - {no: 209, name: "ErrInvalidCoins"}, - {no: 210, name: "ErrInvalidGasWanted"}, - {no: 211, name: "ErrOutOfGas"}, - {no: 212, name: "ErrMemoTooLarge"}, - {no: 213, name: "ErrInsufficientFee"}, - {no: 214, name: "ErrTooManySignatures"}, - {no: 215, name: "ErrNoSignatures"}, - {no: 216, name: "ErrGasOverflow"}, - {no: 217, name: "ErrInvalidPkgPath"}, - {no: 218, name: "ErrInvalidStmt"}, - {no: 219, name: "ErrInvalidExpr"}, - ], -); +export const ErrCode = /*@__PURE__*/ + tsEnum(ErrCodeSchema); /** - * @generated from message land.gno.gnonative.v1.ErrDetails + * GnoNativeService is the service to interact with the Gno blockchain + * + * @generated from service land.gno.gnonative.v1.GnoNativeService */ -export const ErrDetails = /*@__PURE__*/ proto3.makeMessageType( - "land.gno.gnonative.v1.ErrDetails", - () => [ - { no: 1, name: "codes", kind: "enum", T: proto3.getEnumType(ErrCode), repeated: true }, - ], -); +export const GnoNativeService = /*@__PURE__*/ + serviceDesc(file_rpc, 0); diff --git a/api/gen/go/_goconnect/rpc.connect.go b/api/gen/go/_goconnect/rpc.connect.go index 0c083680..6038f9d8 100644 --- a/api/gen/go/_goconnect/rpc.connect.go +++ b/api/gen/go/_goconnect/rpc.connect.go @@ -99,6 +99,20 @@ const ( GnoNativeServiceSendProcedure = "/land.gno.gnonative.v1.GnoNativeService/Send" // GnoNativeServiceRunProcedure is the fully-qualified name of the GnoNativeService's Run RPC. GnoNativeServiceRunProcedure = "/land.gno.gnonative.v1.GnoNativeService/Run" + // GnoNativeServiceMakeCallTxProcedure is the fully-qualified name of the GnoNativeService's + // MakeCallTx RPC. + GnoNativeServiceMakeCallTxProcedure = "/land.gno.gnonative.v1.GnoNativeService/MakeCallTx" + // GnoNativeServiceMakeSendTxProcedure is the fully-qualified name of the GnoNativeService's + // MakeSendTx RPC. + GnoNativeServiceMakeSendTxProcedure = "/land.gno.gnonative.v1.GnoNativeService/MakeSendTx" + // GnoNativeServiceMakeRunTxProcedure is the fully-qualified name of the GnoNativeService's + // MakeRunTx RPC. + GnoNativeServiceMakeRunTxProcedure = "/land.gno.gnonative.v1.GnoNativeService/MakeRunTx" + // GnoNativeServiceSignTxProcedure is the fully-qualified name of the GnoNativeService's SignTx RPC. + GnoNativeServiceSignTxProcedure = "/land.gno.gnonative.v1.GnoNativeService/SignTx" + // GnoNativeServiceBroadcastTxCommitProcedure is the fully-qualified name of the GnoNativeService's + // BroadcastTxCommit RPC. + GnoNativeServiceBroadcastTxCommitProcedure = "/land.gno.gnonative.v1.GnoNativeService/BroadcastTxCommit" // GnoNativeServiceAddressToBech32Procedure is the fully-qualified name of the GnoNativeService's // AddressToBech32 RPC. GnoNativeServiceAddressToBech32Procedure = "/land.gno.gnonative.v1.GnoNativeService/AddressToBech32" @@ -142,6 +156,11 @@ var ( gnoNativeServiceCallMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("Call") gnoNativeServiceSendMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("Send") gnoNativeServiceRunMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("Run") + gnoNativeServiceMakeCallTxMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("MakeCallTx") + gnoNativeServiceMakeSendTxMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("MakeSendTx") + gnoNativeServiceMakeRunTxMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("MakeRunTx") + gnoNativeServiceSignTxMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("SignTx") + gnoNativeServiceBroadcastTxCommitMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("BroadcastTxCommit") gnoNativeServiceAddressToBech32MethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("AddressToBech32") gnoNativeServiceAddressFromBech32MethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("AddressFromBech32") gnoNativeServiceAddressFromMnemonicMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("AddressFromMnemonic") @@ -244,6 +263,18 @@ type GnoNativeServiceClient interface { // call realm functions and use println() to output to the "console". // This returns the "console" output. 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) + // Make an unsigned transaction to send currency to an account on the blockchain. + 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. + // 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. + BroadcastTxCommit(context.Context, *connect.Request[_go.BroadcastTxCommitRequest]) (*connect.ServerStreamForClient[_go.BroadcastTxCommitResponse], error) // Convert a byte array address to a bech32 string address. AddressToBech32(context.Context, *connect.Request[_go.AddressToBech32Request]) (*connect.Response[_go.AddressToBech32Response], error) // Convert a bech32 string address to a byte array address. @@ -410,6 +441,36 @@ func NewGnoNativeServiceClient(httpClient connect.HTTPClient, baseURL string, op connect.WithSchema(gnoNativeServiceRunMethodDescriptor), connect.WithClientOptions(opts...), ), + makeCallTx: connect.NewClient[_go.CallRequest, _go.MakeTxResponse]( + httpClient, + baseURL+GnoNativeServiceMakeCallTxProcedure, + connect.WithSchema(gnoNativeServiceMakeCallTxMethodDescriptor), + connect.WithClientOptions(opts...), + ), + makeSendTx: connect.NewClient[_go.SendRequest, _go.MakeTxResponse]( + httpClient, + baseURL+GnoNativeServiceMakeSendTxProcedure, + connect.WithSchema(gnoNativeServiceMakeSendTxMethodDescriptor), + connect.WithClientOptions(opts...), + ), + makeRunTx: connect.NewClient[_go.RunRequest, _go.MakeTxResponse]( + httpClient, + baseURL+GnoNativeServiceMakeRunTxProcedure, + connect.WithSchema(gnoNativeServiceMakeRunTxMethodDescriptor), + connect.WithClientOptions(opts...), + ), + signTx: connect.NewClient[_go.SignTxRequest, _go.SignTxResponse]( + httpClient, + baseURL+GnoNativeServiceSignTxProcedure, + connect.WithSchema(gnoNativeServiceSignTxMethodDescriptor), + connect.WithClientOptions(opts...), + ), + broadcastTxCommit: connect.NewClient[_go.BroadcastTxCommitRequest, _go.BroadcastTxCommitResponse]( + httpClient, + baseURL+GnoNativeServiceBroadcastTxCommitProcedure, + connect.WithSchema(gnoNativeServiceBroadcastTxCommitMethodDescriptor), + connect.WithClientOptions(opts...), + ), addressToBech32: connect.NewClient[_go.AddressToBech32Request, _go.AddressToBech32Response]( httpClient, baseURL+GnoNativeServiceAddressToBech32Procedure, @@ -469,6 +530,11 @@ type gnoNativeServiceClient struct { call *connect.Client[_go.CallRequest, _go.CallResponse] send *connect.Client[_go.SendRequest, _go.SendResponse] run *connect.Client[_go.RunRequest, _go.RunResponse] + makeCallTx *connect.Client[_go.CallRequest, _go.MakeTxResponse] + makeSendTx *connect.Client[_go.SendRequest, _go.MakeTxResponse] + makeRunTx *connect.Client[_go.RunRequest, _go.MakeTxResponse] + signTx *connect.Client[_go.SignTxRequest, _go.SignTxResponse] + broadcastTxCommit *connect.Client[_go.BroadcastTxCommitRequest, _go.BroadcastTxCommitResponse] addressToBech32 *connect.Client[_go.AddressToBech32Request, _go.AddressToBech32Response] addressFromBech32 *connect.Client[_go.AddressFromBech32Request, _go.AddressFromBech32Response] addressFromMnemonic *connect.Client[_go.AddressFromMnemonicRequest, _go.AddressFromMnemonicResponse] @@ -596,6 +662,31 @@ func (c *gnoNativeServiceClient) Run(ctx context.Context, req *connect.Request[_ return c.run.CallServerStream(ctx, req) } +// MakeCallTx calls land.gno.gnonative.v1.GnoNativeService.MakeCallTx. +func (c *gnoNativeServiceClient) MakeCallTx(ctx context.Context, req *connect.Request[_go.CallRequest]) (*connect.Response[_go.MakeTxResponse], error) { + return c.makeCallTx.CallUnary(ctx, req) +} + +// MakeSendTx calls land.gno.gnonative.v1.GnoNativeService.MakeSendTx. +func (c *gnoNativeServiceClient) MakeSendTx(ctx context.Context, req *connect.Request[_go.SendRequest]) (*connect.Response[_go.MakeTxResponse], error) { + return c.makeSendTx.CallUnary(ctx, req) +} + +// MakeRunTx calls land.gno.gnonative.v1.GnoNativeService.MakeRunTx. +func (c *gnoNativeServiceClient) MakeRunTx(ctx context.Context, req *connect.Request[_go.RunRequest]) (*connect.Response[_go.MakeTxResponse], error) { + return c.makeRunTx.CallUnary(ctx, req) +} + +// SignTx calls land.gno.gnonative.v1.GnoNativeService.SignTx. +func (c *gnoNativeServiceClient) SignTx(ctx context.Context, req *connect.Request[_go.SignTxRequest]) (*connect.Response[_go.SignTxResponse], error) { + return c.signTx.CallUnary(ctx, req) +} + +// BroadcastTxCommit calls land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit. +func (c *gnoNativeServiceClient) BroadcastTxCommit(ctx context.Context, req *connect.Request[_go.BroadcastTxCommitRequest]) (*connect.ServerStreamForClient[_go.BroadcastTxCommitResponse], error) { + return c.broadcastTxCommit.CallServerStream(ctx, req) +} + // AddressToBech32 calls land.gno.gnonative.v1.GnoNativeService.AddressToBech32. func (c *gnoNativeServiceClient) AddressToBech32(ctx context.Context, req *connect.Request[_go.AddressToBech32Request]) (*connect.Response[_go.AddressToBech32Response], error) { return c.addressToBech32.CallUnary(ctx, req) @@ -717,6 +808,18 @@ type GnoNativeServiceHandler interface { // call realm functions and use println() to output to the "console". // This returns the "console" output. 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) + // Make an unsigned transaction to send currency to an account on the blockchain. + 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. + // 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. + BroadcastTxCommit(context.Context, *connect.Request[_go.BroadcastTxCommitRequest], *connect.ServerStream[_go.BroadcastTxCommitResponse]) error // Convert a byte array address to a bech32 string address. AddressToBech32(context.Context, *connect.Request[_go.AddressToBech32Request]) (*connect.Response[_go.AddressToBech32Response], error) // Convert a bech32 string address to a byte array address. @@ -879,6 +982,36 @@ func NewGnoNativeServiceHandler(svc GnoNativeServiceHandler, opts ...connect.Han connect.WithSchema(gnoNativeServiceRunMethodDescriptor), connect.WithHandlerOptions(opts...), ) + gnoNativeServiceMakeCallTxHandler := connect.NewUnaryHandler( + GnoNativeServiceMakeCallTxProcedure, + svc.MakeCallTx, + connect.WithSchema(gnoNativeServiceMakeCallTxMethodDescriptor), + connect.WithHandlerOptions(opts...), + ) + gnoNativeServiceMakeSendTxHandler := connect.NewUnaryHandler( + GnoNativeServiceMakeSendTxProcedure, + svc.MakeSendTx, + connect.WithSchema(gnoNativeServiceMakeSendTxMethodDescriptor), + connect.WithHandlerOptions(opts...), + ) + gnoNativeServiceMakeRunTxHandler := connect.NewUnaryHandler( + GnoNativeServiceMakeRunTxProcedure, + svc.MakeRunTx, + connect.WithSchema(gnoNativeServiceMakeRunTxMethodDescriptor), + connect.WithHandlerOptions(opts...), + ) + gnoNativeServiceSignTxHandler := connect.NewUnaryHandler( + GnoNativeServiceSignTxProcedure, + svc.SignTx, + connect.WithSchema(gnoNativeServiceSignTxMethodDescriptor), + connect.WithHandlerOptions(opts...), + ) + gnoNativeServiceBroadcastTxCommitHandler := connect.NewServerStreamHandler( + GnoNativeServiceBroadcastTxCommitProcedure, + svc.BroadcastTxCommit, + connect.WithSchema(gnoNativeServiceBroadcastTxCommitMethodDescriptor), + connect.WithHandlerOptions(opts...), + ) gnoNativeServiceAddressToBech32Handler := connect.NewUnaryHandler( GnoNativeServiceAddressToBech32Procedure, svc.AddressToBech32, @@ -959,6 +1092,16 @@ func NewGnoNativeServiceHandler(svc GnoNativeServiceHandler, opts ...connect.Han gnoNativeServiceSendHandler.ServeHTTP(w, r) case GnoNativeServiceRunProcedure: gnoNativeServiceRunHandler.ServeHTTP(w, r) + case GnoNativeServiceMakeCallTxProcedure: + gnoNativeServiceMakeCallTxHandler.ServeHTTP(w, r) + case GnoNativeServiceMakeSendTxProcedure: + gnoNativeServiceMakeSendTxHandler.ServeHTTP(w, r) + case GnoNativeServiceMakeRunTxProcedure: + gnoNativeServiceMakeRunTxHandler.ServeHTTP(w, r) + case GnoNativeServiceSignTxProcedure: + gnoNativeServiceSignTxHandler.ServeHTTP(w, r) + case GnoNativeServiceBroadcastTxCommitProcedure: + gnoNativeServiceBroadcastTxCommitHandler.ServeHTTP(w, r) case GnoNativeServiceAddressToBech32Procedure: gnoNativeServiceAddressToBech32Handler.ServeHTTP(w, r) case GnoNativeServiceAddressFromBech32Procedure: @@ -1074,6 +1217,26 @@ func (UnimplementedGnoNativeServiceHandler) Run(context.Context, *connect.Reques return connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.Run is not implemented")) } +func (UnimplementedGnoNativeServiceHandler) MakeCallTx(context.Context, *connect.Request[_go.CallRequest]) (*connect.Response[_go.MakeTxResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.MakeCallTx is not implemented")) +} + +func (UnimplementedGnoNativeServiceHandler) MakeSendTx(context.Context, *connect.Request[_go.SendRequest]) (*connect.Response[_go.MakeTxResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.MakeSendTx is not implemented")) +} + +func (UnimplementedGnoNativeServiceHandler) MakeRunTx(context.Context, *connect.Request[_go.RunRequest]) (*connect.Response[_go.MakeTxResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.MakeRunTx is not implemented")) +} + +func (UnimplementedGnoNativeServiceHandler) SignTx(context.Context, *connect.Request[_go.SignTxRequest]) (*connect.Response[_go.SignTxResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.SignTx is not implemented")) +} + +func (UnimplementedGnoNativeServiceHandler) BroadcastTxCommit(context.Context, *connect.Request[_go.BroadcastTxCommitRequest], *connect.ServerStream[_go.BroadcastTxCommitResponse]) error { + return connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit is not implemented")) +} + func (UnimplementedGnoNativeServiceHandler) AddressToBech32(context.Context, *connect.Request[_go.AddressToBech32Request]) (*connect.Response[_go.AddressToBech32Response], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.AddressToBech32 is not implemented")) } diff --git a/api/gen/go/gnonativetypes.pb.go b/api/gen/go/gnonativetypes.pb.go index e7cc4d6f..ada2ad26 100644 --- a/api/gen/go/gnonativetypes.pb.go +++ b/api/gen/go/gnonativetypes.pb.go @@ -2311,8 +2311,10 @@ 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 + 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,4,rep,name=msgs,json=Msgs,proto3" json:"msgs,omitempty"` + Msgs []*MsgCall `protobuf:"bytes,5,rep,name=msgs,json=Msgs,proto3" json:"msgs,omitempty"` } func (x *CallRequest) Reset() { @@ -2368,6 +2370,13 @@ func (x *CallRequest) GetMemo() string { return "" } +func (x *CallRequest) GetCallerAddress() []byte { + if x != nil { + return x.CallerAddress + } + return nil +} + func (x *CallRequest) GetMsgs() []*MsgCall { if x != nil { return x.Msgs @@ -2489,8 +2498,10 @@ 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 + 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,4,rep,name=msgs,json=Msgs,proto3" json:"msgs,omitempty"` + Msgs []*MsgSend `protobuf:"bytes,5,rep,name=msgs,json=Msgs,proto3" json:"msgs,omitempty"` } func (x *SendRequest) Reset() { @@ -2546,6 +2557,13 @@ func (x *SendRequest) GetMemo() string { return "" } +func (x *SendRequest) GetCallerAddress() []byte { + if x != nil { + return x.CallerAddress + } + return nil +} + func (x *SendRequest) GetMsgs() []*MsgSend { if x != nil { return x.Msgs @@ -2658,8 +2676,10 @@ 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 + 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,4,rep,name=msgs,json=Msgs,proto3" json:"msgs,omitempty"` + Msgs []*MsgRun `protobuf:"bytes,5,rep,name=msgs,json=Msgs,proto3" json:"msgs,omitempty"` } func (x *RunRequest) Reset() { @@ -2715,6 +2735,13 @@ func (x *RunRequest) GetMemo() string { return "" } +func (x *RunRequest) GetCallerAddress() []byte { + if x != nil { + return x.CallerAddress + } + return nil +} + func (x *RunRequest) GetMsgs() []*MsgRun { if x != nil { return x.Msgs @@ -2770,6 +2797,263 @@ func (x *RunResponse) GetResult() string { return "" } +type MakeTxResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The JSON encoding of the unsigned transaction + TxJson string `protobuf:"bytes,1,opt,name=tx_json,json=txJson,proto3" json:"tx_json,omitempty"` +} + +func (x *MakeTxResponse) Reset() { + *x = MakeTxResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_gnonativetypes_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MakeTxResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MakeTxResponse) ProtoMessage() {} + +func (x *MakeTxResponse) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[54] + 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 MakeTxResponse.ProtoReflect.Descriptor instead. +func (*MakeTxResponse) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{54} +} + +func (x *MakeTxResponse) GetTxJson() string { + if x != nil { + return x.TxJson + } + return "" +} + +type SignTxRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // 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 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"` + // 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"` +} + +func (x *SignTxRequest) Reset() { + *x = SignTxRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_gnonativetypes_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignTxRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignTxRequest) ProtoMessage() {} + +func (x *SignTxRequest) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[55] + 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 SignTxRequest.ProtoReflect.Descriptor instead. +func (*SignTxRequest) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{55} +} + +func (x *SignTxRequest) GetTxJson() string { + if x != nil { + return x.TxJson + } + return "" +} + +func (x *SignTxRequest) GetAccountNumber() uint64 { + if x != nil { + return x.AccountNumber + } + return 0 +} + +func (x *SignTxRequest) GetSequenceNumber() uint64 { + if x != nil { + return x.SequenceNumber + } + return 0 +} + +type SignTxResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The JSON encoding of the signed transaction (to use in BroadcastTx) + SignedTxJson string `protobuf:"bytes,1,opt,name=signed_tx_json,json=tx_json,proto3" json:"signed_tx_json,omitempty"` +} + +func (x *SignTxResponse) Reset() { + *x = SignTxResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_gnonativetypes_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignTxResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignTxResponse) ProtoMessage() {} + +func (x *SignTxResponse) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[56] + 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 SignTxResponse.ProtoReflect.Descriptor instead. +func (*SignTxResponse) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{56} +} + +func (x *SignTxResponse) GetSignedTxJson() string { + if x != nil { + return x.SignedTxJson + } + return "" +} + +type BroadcastTxCommitRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The JSON encoding of the signed transaction (from SignTx) + SignedTxJson string `protobuf:"bytes,1,opt,name=signed_tx_json,json=tx_json,proto3" json:"signed_tx_json,omitempty"` +} + +func (x *BroadcastTxCommitRequest) Reset() { + *x = BroadcastTxCommitRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_gnonativetypes_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BroadcastTxCommitRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BroadcastTxCommitRequest) ProtoMessage() {} + +func (x *BroadcastTxCommitRequest) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[57] + 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 BroadcastTxCommitRequest.ProtoReflect.Descriptor instead. +func (*BroadcastTxCommitRequest) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{57} +} + +func (x *BroadcastTxCommitRequest) GetSignedTxJson() string { + if x != nil { + return x.SignedTxJson + } + return "" +} + +type BroadcastTxCommitResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` +} + +func (x *BroadcastTxCommitResponse) Reset() { + *x = BroadcastTxCommitResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_gnonativetypes_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BroadcastTxCommitResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BroadcastTxCommitResponse) ProtoMessage() {} + +func (x *BroadcastTxCommitResponse) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[58] + 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 BroadcastTxCommitResponse.ProtoReflect.Descriptor instead. +func (*BroadcastTxCommitResponse) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{58} +} + +func (x *BroadcastTxCommitResponse) GetResult() []byte { + if x != nil { + return x.Result + } + return nil +} + type AddressToBech32Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2781,7 +3065,7 @@ type AddressToBech32Request struct { func (x *AddressToBech32Request) Reset() { *x = AddressToBech32Request{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[54] + mi := &file_gnonativetypes_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2794,7 +3078,7 @@ func (x *AddressToBech32Request) String() string { func (*AddressToBech32Request) ProtoMessage() {} func (x *AddressToBech32Request) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[54] + mi := &file_gnonativetypes_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2807,7 +3091,7 @@ func (x *AddressToBech32Request) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressToBech32Request.ProtoReflect.Descriptor instead. func (*AddressToBech32Request) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{54} + return file_gnonativetypes_proto_rawDescGZIP(), []int{59} } func (x *AddressToBech32Request) GetAddress() []byte { @@ -2828,7 +3112,7 @@ type AddressToBech32Response struct { func (x *AddressToBech32Response) Reset() { *x = AddressToBech32Response{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[55] + mi := &file_gnonativetypes_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2841,7 +3125,7 @@ func (x *AddressToBech32Response) String() string { func (*AddressToBech32Response) ProtoMessage() {} func (x *AddressToBech32Response) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[55] + mi := &file_gnonativetypes_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2854,7 +3138,7 @@ func (x *AddressToBech32Response) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressToBech32Response.ProtoReflect.Descriptor instead. func (*AddressToBech32Response) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{55} + return file_gnonativetypes_proto_rawDescGZIP(), []int{60} } func (x *AddressToBech32Response) GetBech32Address() string { @@ -2875,7 +3159,7 @@ type AddressFromBech32Request struct { func (x *AddressFromBech32Request) Reset() { *x = AddressFromBech32Request{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[56] + mi := &file_gnonativetypes_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2888,7 +3172,7 @@ func (x *AddressFromBech32Request) String() string { func (*AddressFromBech32Request) ProtoMessage() {} func (x *AddressFromBech32Request) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[56] + mi := &file_gnonativetypes_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2901,7 +3185,7 @@ func (x *AddressFromBech32Request) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromBech32Request.ProtoReflect.Descriptor instead. func (*AddressFromBech32Request) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{56} + return file_gnonativetypes_proto_rawDescGZIP(), []int{61} } func (x *AddressFromBech32Request) GetBech32Address() string { @@ -2922,7 +3206,7 @@ type AddressFromBech32Response struct { func (x *AddressFromBech32Response) Reset() { *x = AddressFromBech32Response{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[57] + mi := &file_gnonativetypes_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2935,7 +3219,7 @@ func (x *AddressFromBech32Response) String() string { func (*AddressFromBech32Response) ProtoMessage() {} func (x *AddressFromBech32Response) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[57] + mi := &file_gnonativetypes_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2948,7 +3232,7 @@ func (x *AddressFromBech32Response) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromBech32Response.ProtoReflect.Descriptor instead. func (*AddressFromBech32Response) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{57} + return file_gnonativetypes_proto_rawDescGZIP(), []int{62} } func (x *AddressFromBech32Response) GetAddress() []byte { @@ -2969,7 +3253,7 @@ type AddressFromMnemonicRequest struct { func (x *AddressFromMnemonicRequest) Reset() { *x = AddressFromMnemonicRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[58] + mi := &file_gnonativetypes_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2982,7 +3266,7 @@ func (x *AddressFromMnemonicRequest) String() string { func (*AddressFromMnemonicRequest) ProtoMessage() {} func (x *AddressFromMnemonicRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[58] + mi := &file_gnonativetypes_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2995,7 +3279,7 @@ func (x *AddressFromMnemonicRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromMnemonicRequest.ProtoReflect.Descriptor instead. func (*AddressFromMnemonicRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{58} + return file_gnonativetypes_proto_rawDescGZIP(), []int{63} } func (x *AddressFromMnemonicRequest) GetMnemonic() string { @@ -3016,7 +3300,7 @@ type AddressFromMnemonicResponse struct { func (x *AddressFromMnemonicResponse) Reset() { *x = AddressFromMnemonicResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[59] + mi := &file_gnonativetypes_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3029,7 +3313,7 @@ func (x *AddressFromMnemonicResponse) String() string { func (*AddressFromMnemonicResponse) ProtoMessage() {} func (x *AddressFromMnemonicResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[59] + mi := &file_gnonativetypes_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3042,7 +3326,7 @@ func (x *AddressFromMnemonicResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromMnemonicResponse.ProtoReflect.Descriptor instead. func (*AddressFromMnemonicResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{59} + return file_gnonativetypes_proto_rawDescGZIP(), []int{64} } func (x *AddressFromMnemonicResponse) GetAddress() []byte { @@ -3063,7 +3347,7 @@ type HelloRequest struct { func (x *HelloRequest) Reset() { *x = HelloRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[60] + mi := &file_gnonativetypes_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3076,7 +3360,7 @@ func (x *HelloRequest) String() string { func (*HelloRequest) ProtoMessage() {} func (x *HelloRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[60] + mi := &file_gnonativetypes_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3089,7 +3373,7 @@ func (x *HelloRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead. func (*HelloRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{60} + return file_gnonativetypes_proto_rawDescGZIP(), []int{65} } func (x *HelloRequest) GetName() string { @@ -3110,7 +3394,7 @@ type HelloResponse struct { func (x *HelloResponse) Reset() { *x = HelloResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[61] + mi := &file_gnonativetypes_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3123,7 +3407,7 @@ func (x *HelloResponse) String() string { func (*HelloResponse) ProtoMessage() {} func (x *HelloResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[61] + mi := &file_gnonativetypes_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3136,7 +3420,7 @@ func (x *HelloResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead. func (*HelloResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{61} + return file_gnonativetypes_proto_rawDescGZIP(), []int{66} } func (x *HelloResponse) GetGreeting() string { @@ -3157,7 +3441,7 @@ type HelloStreamRequest struct { func (x *HelloStreamRequest) Reset() { *x = HelloStreamRequest{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[62] + mi := &file_gnonativetypes_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3170,7 +3454,7 @@ func (x *HelloStreamRequest) String() string { func (*HelloStreamRequest) ProtoMessage() {} func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[62] + mi := &file_gnonativetypes_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3183,7 +3467,7 @@ func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamRequest.ProtoReflect.Descriptor instead. func (*HelloStreamRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{62} + return file_gnonativetypes_proto_rawDescGZIP(), []int{67} } func (x *HelloStreamRequest) GetName() string { @@ -3204,7 +3488,7 @@ type HelloStreamResponse struct { func (x *HelloStreamResponse) Reset() { *x = HelloStreamResponse{} if protoimpl.UnsafeEnabled { - mi := &file_gnonativetypes_proto_msgTypes[63] + mi := &file_gnonativetypes_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3217,7 +3501,7 @@ func (x *HelloStreamResponse) String() string { func (*HelloStreamResponse) ProtoMessage() {} func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[63] + mi := &file_gnonativetypes_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3230,7 +3514,7 @@ func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamResponse.ProtoReflect.Descriptor instead. func (*HelloStreamResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{63} + return file_gnonativetypes_proto_rawDescGZIP(), []int{68} } func (x *HelloStreamResponse) GetGreeting() string { @@ -3430,83 +3714,111 @@ var file_gnonativetypes_proto_rawDesc = []byte{ 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, 0x8d, 0x01, 0x0a, 0x0b, 0x43, 0x61, + 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, 0x32, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x18, 0x04, 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, - 0x8d, 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, 0x32, 0x0a, 0x04, 0x6d, - 0x73, 0x67, 0x73, 0x18, 0x04, 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, 0x8b, 0x01, 0x0a, 0x0a, 0x52, 0x75, 0x6e, 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, 0x31, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x18, 0x04, 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, 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, + 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, 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, - 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, + 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 ( @@ -3521,7 +3833,7 @@ func file_gnonativetypes_proto_rawDescGZIP() []byte { return file_gnonativetypes_proto_rawDescData } -var file_gnonativetypes_proto_msgTypes = make([]protoimpl.MessageInfo, 64) +var file_gnonativetypes_proto_msgTypes = make([]protoimpl.MessageInfo, 69) var file_gnonativetypes_proto_goTypes = []any{ (*SetRemoteRequest)(nil), // 0: land.gno.gnonative.v1.SetRemoteRequest (*SetRemoteResponse)(nil), // 1: land.gno.gnonative.v1.SetRemoteResponse @@ -3577,16 +3889,21 @@ var file_gnonativetypes_proto_goTypes = []any{ (*MsgRun)(nil), // 51: land.gno.gnonative.v1.MsgRun (*RunRequest)(nil), // 52: land.gno.gnonative.v1.RunRequest (*RunResponse)(nil), // 53: land.gno.gnonative.v1.RunResponse - (*AddressToBech32Request)(nil), // 54: land.gno.gnonative.v1.AddressToBech32Request - (*AddressToBech32Response)(nil), // 55: land.gno.gnonative.v1.AddressToBech32Response - (*AddressFromBech32Request)(nil), // 56: land.gno.gnonative.v1.AddressFromBech32Request - (*AddressFromBech32Response)(nil), // 57: land.gno.gnonative.v1.AddressFromBech32Response - (*AddressFromMnemonicRequest)(nil), // 58: land.gno.gnonative.v1.AddressFromMnemonicRequest - (*AddressFromMnemonicResponse)(nil), // 59: land.gno.gnonative.v1.AddressFromMnemonicResponse - (*HelloRequest)(nil), // 60: land.gno.gnonative.v1.HelloRequest - (*HelloResponse)(nil), // 61: land.gno.gnonative.v1.HelloResponse - (*HelloStreamRequest)(nil), // 62: land.gno.gnonative.v1.HelloStreamRequest - (*HelloStreamResponse)(nil), // 63: land.gno.gnonative.v1.HelloStreamResponse + (*MakeTxResponse)(nil), // 54: land.gno.gnonative.v1.MakeTxResponse + (*SignTxRequest)(nil), // 55: land.gno.gnonative.v1.SignTxRequest + (*SignTxResponse)(nil), // 56: land.gno.gnonative.v1.SignTxResponse + (*BroadcastTxCommitRequest)(nil), // 57: land.gno.gnonative.v1.BroadcastTxCommitRequest + (*BroadcastTxCommitResponse)(nil), // 58: land.gno.gnonative.v1.BroadcastTxCommitResponse + (*AddressToBech32Request)(nil), // 59: land.gno.gnonative.v1.AddressToBech32Request + (*AddressToBech32Response)(nil), // 60: land.gno.gnonative.v1.AddressToBech32Response + (*AddressFromBech32Request)(nil), // 61: land.gno.gnonative.v1.AddressFromBech32Request + (*AddressFromBech32Response)(nil), // 62: land.gno.gnonative.v1.AddressFromBech32Response + (*AddressFromMnemonicRequest)(nil), // 63: land.gno.gnonative.v1.AddressFromMnemonicRequest + (*AddressFromMnemonicResponse)(nil), // 64: land.gno.gnonative.v1.AddressFromMnemonicResponse + (*HelloRequest)(nil), // 65: land.gno.gnonative.v1.HelloRequest + (*HelloResponse)(nil), // 66: land.gno.gnonative.v1.HelloResponse + (*HelloStreamRequest)(nil), // 67: land.gno.gnonative.v1.HelloStreamRequest + (*HelloStreamResponse)(nil), // 68: land.gno.gnonative.v1.HelloStreamResponse } var file_gnonativetypes_proto_depIdxs = []int32{ 13, // 0: land.gno.gnonative.v1.BaseAccount.coins:type_name -> land.gno.gnonative.v1.Coin @@ -4263,7 +4580,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[54].Exporter = func(v any, i int) any { - switch v := v.(*AddressToBech32Request); i { + switch v := v.(*MakeTxResponse); i { case 0: return &v.state case 1: @@ -4275,7 +4592,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[55].Exporter = func(v any, i int) any { - switch v := v.(*AddressToBech32Response); i { + switch v := v.(*SignTxRequest); i { case 0: return &v.state case 1: @@ -4287,7 +4604,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[56].Exporter = func(v any, i int) any { - switch v := v.(*AddressFromBech32Request); i { + switch v := v.(*SignTxResponse); i { case 0: return &v.state case 1: @@ -4299,7 +4616,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[57].Exporter = func(v any, i int) any { - switch v := v.(*AddressFromBech32Response); i { + switch v := v.(*BroadcastTxCommitRequest); i { case 0: return &v.state case 1: @@ -4311,7 +4628,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[58].Exporter = func(v any, i int) any { - switch v := v.(*AddressFromMnemonicRequest); i { + switch v := v.(*BroadcastTxCommitResponse); i { case 0: return &v.state case 1: @@ -4323,7 +4640,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[59].Exporter = func(v any, i int) any { - switch v := v.(*AddressFromMnemonicResponse); i { + switch v := v.(*AddressToBech32Request); i { case 0: return &v.state case 1: @@ -4335,7 +4652,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[60].Exporter = func(v any, i int) any { - switch v := v.(*HelloRequest); i { + switch v := v.(*AddressToBech32Response); i { case 0: return &v.state case 1: @@ -4347,7 +4664,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[61].Exporter = func(v any, i int) any { - switch v := v.(*HelloResponse); i { + switch v := v.(*AddressFromBech32Request); i { case 0: return &v.state case 1: @@ -4359,7 +4676,7 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[62].Exporter = func(v any, i int) any { - switch v := v.(*HelloStreamRequest); i { + switch v := v.(*AddressFromBech32Response); i { case 0: return &v.state case 1: @@ -4371,6 +4688,66 @@ func file_gnonativetypes_proto_init() { } } file_gnonativetypes_proto_msgTypes[63].Exporter = func(v any, i int) any { + switch v := v.(*AddressFromMnemonicRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_gnonativetypes_proto_msgTypes[64].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[65].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[66].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[67].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[68].Exporter = func(v any, i int) any { switch v := v.(*HelloStreamResponse); i { case 0: return &v.state @@ -4389,7 +4766,7 @@ func file_gnonativetypes_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_gnonativetypes_proto_rawDesc, NumEnums: 0, - NumMessages: 64, + NumMessages: 69, NumExtensions: 0, NumServices: 0, }, diff --git a/api/gen/go/rpc.pb.go b/api/gen/go/rpc.pb.go index cff773e1..3d801510 100644 --- a/api/gen/go/rpc.pb.go +++ b/api/gen/go/rpc.pb.go @@ -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, 0x8b, 0x18, 0x0a, 0x10, 0x47, 0x6e, 0x6f, 0x4e, 0x61, 0x74, 0x69, 0x76, + 0x10, 0xdb, 0x01, 0x32, 0xe5, 0x1b, 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, @@ -460,45 +460,75 @@ var file_rpc_proto_rawDesc = []byte{ 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x70, 0x0a, - 0x0f, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, - 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, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 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, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, - 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x76, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x65, - 0x63, 0x68, 0x33, 0x32, 0x12, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, - 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, - 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x7c, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x12, 0x31, + 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x57, 0x0a, + 0x0a, 0x4d, 0x61, 0x6b, 0x65, 0x43, 0x61, 0x6c, 0x6c, 0x54, 0x78, 0x12, 0x22, 0x2e, 0x6c, 0x61, + 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, + 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6b, 0x65, 0x54, 0x78, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0a, 0x4d, 0x61, 0x6b, 0x65, 0x53, 0x65, + 0x6e, 0x64, 0x54, 0x78, 0x12, 0x22, 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, 0x6e, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, + 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x61, 0x6b, 0x65, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x55, 0x0a, 0x09, 0x4d, 0x61, 0x6b, 0x65, 0x52, 0x75, 0x6e, 0x54, 0x78, 0x12, 0x21, 0x2e, 0x6c, + 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, + 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6b, 0x65, 0x54, 0x78, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x78, + 0x12, 0x24, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, + 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x78, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, + 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x69, 0x67, 0x6e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, + 0x11, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x12, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, + 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x72, 0x6f, 0x61, 0x64, + 0x63, 0x61, 0x73, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, + 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x30, 0x01, 0x12, 0x70, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 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, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, + 0x33, 0x32, 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, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, + 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x11, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x12, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 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, 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, 0x52, 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x23, - 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, - 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, - 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0b, 0x48, 0x65, 0x6c, - 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x29, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, + 0x6f, 0x6d, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x30, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, + 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 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, 0x7c, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, + 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 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, 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, 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, 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, + 0x52, 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x23, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 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, 0x48, 0x65, 0x6c, 0x6c, - 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, - 0x01, 0x42, 0x2f, 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, 0xa2, 0x02, 0x03, 0x52, - 0x54, 0x47, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, + 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, + 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0b, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 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, 0x48, 0x65, 0x6c, 0x6c, 0x6f, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 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, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x2f, 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, 0xa2, 0x02, 0x03, 0x52, 0x54, 0x47, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -542,40 +572,45 @@ var file_rpc_proto_goTypes = []any{ (*CallRequest)(nil), // 23: land.gno.gnonative.v1.CallRequest (*SendRequest)(nil), // 24: land.gno.gnonative.v1.SendRequest (*RunRequest)(nil), // 25: land.gno.gnonative.v1.RunRequest - (*AddressToBech32Request)(nil), // 26: land.gno.gnonative.v1.AddressToBech32Request - (*AddressFromBech32Request)(nil), // 27: land.gno.gnonative.v1.AddressFromBech32Request - (*AddressFromMnemonicRequest)(nil), // 28: land.gno.gnonative.v1.AddressFromMnemonicRequest - (*HelloRequest)(nil), // 29: land.gno.gnonative.v1.HelloRequest - (*HelloStreamRequest)(nil), // 30: land.gno.gnonative.v1.HelloStreamRequest - (*SetRemoteResponse)(nil), // 31: land.gno.gnonative.v1.SetRemoteResponse - (*GetRemoteResponse)(nil), // 32: land.gno.gnonative.v1.GetRemoteResponse - (*SetChainIDResponse)(nil), // 33: land.gno.gnonative.v1.SetChainIDResponse - (*GetChainIDResponse)(nil), // 34: land.gno.gnonative.v1.GetChainIDResponse - (*GenerateRecoveryPhraseResponse)(nil), // 35: land.gno.gnonative.v1.GenerateRecoveryPhraseResponse - (*ListKeyInfoResponse)(nil), // 36: land.gno.gnonative.v1.ListKeyInfoResponse - (*HasKeyByNameResponse)(nil), // 37: land.gno.gnonative.v1.HasKeyByNameResponse - (*HasKeyByAddressResponse)(nil), // 38: land.gno.gnonative.v1.HasKeyByAddressResponse - (*HasKeyByNameOrAddressResponse)(nil), // 39: land.gno.gnonative.v1.HasKeyByNameOrAddressResponse - (*GetKeyInfoByNameResponse)(nil), // 40: land.gno.gnonative.v1.GetKeyInfoByNameResponse - (*GetKeyInfoByAddressResponse)(nil), // 41: land.gno.gnonative.v1.GetKeyInfoByAddressResponse - (*GetKeyInfoByNameOrAddressResponse)(nil), // 42: land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse - (*CreateAccountResponse)(nil), // 43: land.gno.gnonative.v1.CreateAccountResponse - (*SelectAccountResponse)(nil), // 44: land.gno.gnonative.v1.SelectAccountResponse - (*SetPasswordResponse)(nil), // 45: land.gno.gnonative.v1.SetPasswordResponse - (*GetActiveAccountResponse)(nil), // 46: land.gno.gnonative.v1.GetActiveAccountResponse - (*QueryAccountResponse)(nil), // 47: land.gno.gnonative.v1.QueryAccountResponse - (*DeleteAccountResponse)(nil), // 48: land.gno.gnonative.v1.DeleteAccountResponse - (*QueryResponse)(nil), // 49: land.gno.gnonative.v1.QueryResponse - (*RenderResponse)(nil), // 50: land.gno.gnonative.v1.RenderResponse - (*QEvalResponse)(nil), // 51: land.gno.gnonative.v1.QEvalResponse - (*CallResponse)(nil), // 52: land.gno.gnonative.v1.CallResponse - (*SendResponse)(nil), // 53: land.gno.gnonative.v1.SendResponse - (*RunResponse)(nil), // 54: land.gno.gnonative.v1.RunResponse - (*AddressToBech32Response)(nil), // 55: land.gno.gnonative.v1.AddressToBech32Response - (*AddressFromBech32Response)(nil), // 56: land.gno.gnonative.v1.AddressFromBech32Response - (*AddressFromMnemonicResponse)(nil), // 57: land.gno.gnonative.v1.AddressFromMnemonicResponse - (*HelloResponse)(nil), // 58: land.gno.gnonative.v1.HelloResponse - (*HelloStreamResponse)(nil), // 59: land.gno.gnonative.v1.HelloStreamResponse + (*SignTxRequest)(nil), // 26: land.gno.gnonative.v1.SignTxRequest + (*BroadcastTxCommitRequest)(nil), // 27: land.gno.gnonative.v1.BroadcastTxCommitRequest + (*AddressToBech32Request)(nil), // 28: land.gno.gnonative.v1.AddressToBech32Request + (*AddressFromBech32Request)(nil), // 29: land.gno.gnonative.v1.AddressFromBech32Request + (*AddressFromMnemonicRequest)(nil), // 30: land.gno.gnonative.v1.AddressFromMnemonicRequest + (*HelloRequest)(nil), // 31: land.gno.gnonative.v1.HelloRequest + (*HelloStreamRequest)(nil), // 32: land.gno.gnonative.v1.HelloStreamRequest + (*SetRemoteResponse)(nil), // 33: land.gno.gnonative.v1.SetRemoteResponse + (*GetRemoteResponse)(nil), // 34: land.gno.gnonative.v1.GetRemoteResponse + (*SetChainIDResponse)(nil), // 35: land.gno.gnonative.v1.SetChainIDResponse + (*GetChainIDResponse)(nil), // 36: land.gno.gnonative.v1.GetChainIDResponse + (*GenerateRecoveryPhraseResponse)(nil), // 37: land.gno.gnonative.v1.GenerateRecoveryPhraseResponse + (*ListKeyInfoResponse)(nil), // 38: land.gno.gnonative.v1.ListKeyInfoResponse + (*HasKeyByNameResponse)(nil), // 39: land.gno.gnonative.v1.HasKeyByNameResponse + (*HasKeyByAddressResponse)(nil), // 40: land.gno.gnonative.v1.HasKeyByAddressResponse + (*HasKeyByNameOrAddressResponse)(nil), // 41: land.gno.gnonative.v1.HasKeyByNameOrAddressResponse + (*GetKeyInfoByNameResponse)(nil), // 42: land.gno.gnonative.v1.GetKeyInfoByNameResponse + (*GetKeyInfoByAddressResponse)(nil), // 43: land.gno.gnonative.v1.GetKeyInfoByAddressResponse + (*GetKeyInfoByNameOrAddressResponse)(nil), // 44: land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse + (*CreateAccountResponse)(nil), // 45: land.gno.gnonative.v1.CreateAccountResponse + (*SelectAccountResponse)(nil), // 46: land.gno.gnonative.v1.SelectAccountResponse + (*SetPasswordResponse)(nil), // 47: land.gno.gnonative.v1.SetPasswordResponse + (*GetActiveAccountResponse)(nil), // 48: land.gno.gnonative.v1.GetActiveAccountResponse + (*QueryAccountResponse)(nil), // 49: land.gno.gnonative.v1.QueryAccountResponse + (*DeleteAccountResponse)(nil), // 50: land.gno.gnonative.v1.DeleteAccountResponse + (*QueryResponse)(nil), // 51: land.gno.gnonative.v1.QueryResponse + (*RenderResponse)(nil), // 52: land.gno.gnonative.v1.RenderResponse + (*QEvalResponse)(nil), // 53: land.gno.gnonative.v1.QEvalResponse + (*CallResponse)(nil), // 54: land.gno.gnonative.v1.CallResponse + (*SendResponse)(nil), // 55: land.gno.gnonative.v1.SendResponse + (*RunResponse)(nil), // 56: land.gno.gnonative.v1.RunResponse + (*MakeTxResponse)(nil), // 57: land.gno.gnonative.v1.MakeTxResponse + (*SignTxResponse)(nil), // 58: land.gno.gnonative.v1.SignTxResponse + (*BroadcastTxCommitResponse)(nil), // 59: land.gno.gnonative.v1.BroadcastTxCommitResponse + (*AddressToBech32Response)(nil), // 60: land.gno.gnonative.v1.AddressToBech32Response + (*AddressFromBech32Response)(nil), // 61: land.gno.gnonative.v1.AddressFromBech32Response + (*AddressFromMnemonicResponse)(nil), // 62: land.gno.gnonative.v1.AddressFromMnemonicResponse + (*HelloResponse)(nil), // 63: land.gno.gnonative.v1.HelloResponse + (*HelloStreamResponse)(nil), // 64: 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 @@ -603,42 +638,52 @@ var file_rpc_proto_depIdxs = []int32{ 23, // 22: land.gno.gnonative.v1.GnoNativeService.Call:input_type -> land.gno.gnonative.v1.CallRequest 24, // 23: land.gno.gnonative.v1.GnoNativeService.Send:input_type -> land.gno.gnonative.v1.SendRequest 25, // 24: land.gno.gnonative.v1.GnoNativeService.Run:input_type -> land.gno.gnonative.v1.RunRequest - 26, // 25: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:input_type -> land.gno.gnonative.v1.AddressToBech32Request - 27, // 26: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:input_type -> land.gno.gnonative.v1.AddressFromBech32Request - 28, // 27: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:input_type -> land.gno.gnonative.v1.AddressFromMnemonicRequest - 29, // 28: land.gno.gnonative.v1.GnoNativeService.Hello:input_type -> land.gno.gnonative.v1.HelloRequest - 30, // 29: land.gno.gnonative.v1.GnoNativeService.HelloStream:input_type -> land.gno.gnonative.v1.HelloStreamRequest - 31, // 30: land.gno.gnonative.v1.GnoNativeService.SetRemote:output_type -> land.gno.gnonative.v1.SetRemoteResponse - 32, // 31: land.gno.gnonative.v1.GnoNativeService.GetRemote:output_type -> land.gno.gnonative.v1.GetRemoteResponse - 33, // 32: land.gno.gnonative.v1.GnoNativeService.SetChainID:output_type -> land.gno.gnonative.v1.SetChainIDResponse - 34, // 33: land.gno.gnonative.v1.GnoNativeService.GetChainID:output_type -> land.gno.gnonative.v1.GetChainIDResponse - 35, // 34: land.gno.gnonative.v1.GnoNativeService.GenerateRecoveryPhrase:output_type -> land.gno.gnonative.v1.GenerateRecoveryPhraseResponse - 36, // 35: land.gno.gnonative.v1.GnoNativeService.ListKeyInfo:output_type -> land.gno.gnonative.v1.ListKeyInfoResponse - 37, // 36: land.gno.gnonative.v1.GnoNativeService.HasKeyByName:output_type -> land.gno.gnonative.v1.HasKeyByNameResponse - 38, // 37: land.gno.gnonative.v1.GnoNativeService.HasKeyByAddress:output_type -> land.gno.gnonative.v1.HasKeyByAddressResponse - 39, // 38: land.gno.gnonative.v1.GnoNativeService.HasKeyByNameOrAddress:output_type -> land.gno.gnonative.v1.HasKeyByNameOrAddressResponse - 40, // 39: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByName:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameResponse - 41, // 40: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByAddressResponse - 42, // 41: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse - 43, // 42: land.gno.gnonative.v1.GnoNativeService.CreateAccount:output_type -> land.gno.gnonative.v1.CreateAccountResponse - 44, // 43: land.gno.gnonative.v1.GnoNativeService.SelectAccount:output_type -> land.gno.gnonative.v1.SelectAccountResponse - 45, // 44: land.gno.gnonative.v1.GnoNativeService.SetPassword:output_type -> land.gno.gnonative.v1.SetPasswordResponse - 46, // 45: land.gno.gnonative.v1.GnoNativeService.GetActiveAccount:output_type -> land.gno.gnonative.v1.GetActiveAccountResponse - 47, // 46: land.gno.gnonative.v1.GnoNativeService.QueryAccount:output_type -> land.gno.gnonative.v1.QueryAccountResponse - 48, // 47: land.gno.gnonative.v1.GnoNativeService.DeleteAccount:output_type -> land.gno.gnonative.v1.DeleteAccountResponse - 49, // 48: land.gno.gnonative.v1.GnoNativeService.Query:output_type -> land.gno.gnonative.v1.QueryResponse - 50, // 49: land.gno.gnonative.v1.GnoNativeService.Render:output_type -> land.gno.gnonative.v1.RenderResponse - 51, // 50: land.gno.gnonative.v1.GnoNativeService.QEval:output_type -> land.gno.gnonative.v1.QEvalResponse - 52, // 51: land.gno.gnonative.v1.GnoNativeService.Call:output_type -> land.gno.gnonative.v1.CallResponse - 53, // 52: land.gno.gnonative.v1.GnoNativeService.Send:output_type -> land.gno.gnonative.v1.SendResponse - 54, // 53: land.gno.gnonative.v1.GnoNativeService.Run:output_type -> land.gno.gnonative.v1.RunResponse - 55, // 54: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:output_type -> land.gno.gnonative.v1.AddressToBech32Response - 56, // 55: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:output_type -> land.gno.gnonative.v1.AddressFromBech32Response - 57, // 56: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:output_type -> land.gno.gnonative.v1.AddressFromMnemonicResponse - 58, // 57: land.gno.gnonative.v1.GnoNativeService.Hello:output_type -> land.gno.gnonative.v1.HelloResponse - 59, // 58: land.gno.gnonative.v1.GnoNativeService.HelloStream:output_type -> land.gno.gnonative.v1.HelloStreamResponse - 30, // [30:59] is the sub-list for method output_type - 1, // [1:30] is the sub-list for method input_type + 23, // 25: land.gno.gnonative.v1.GnoNativeService.MakeCallTx:input_type -> land.gno.gnonative.v1.CallRequest + 24, // 26: land.gno.gnonative.v1.GnoNativeService.MakeSendTx:input_type -> land.gno.gnonative.v1.SendRequest + 25, // 27: land.gno.gnonative.v1.GnoNativeService.MakeRunTx:input_type -> land.gno.gnonative.v1.RunRequest + 26, // 28: land.gno.gnonative.v1.GnoNativeService.SignTx:input_type -> land.gno.gnonative.v1.SignTxRequest + 27, // 29: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:input_type -> land.gno.gnonative.v1.BroadcastTxCommitRequest + 28, // 30: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:input_type -> land.gno.gnonative.v1.AddressToBech32Request + 29, // 31: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:input_type -> land.gno.gnonative.v1.AddressFromBech32Request + 30, // 32: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:input_type -> land.gno.gnonative.v1.AddressFromMnemonicRequest + 31, // 33: land.gno.gnonative.v1.GnoNativeService.Hello:input_type -> land.gno.gnonative.v1.HelloRequest + 32, // 34: land.gno.gnonative.v1.GnoNativeService.HelloStream:input_type -> land.gno.gnonative.v1.HelloStreamRequest + 33, // 35: land.gno.gnonative.v1.GnoNativeService.SetRemote:output_type -> land.gno.gnonative.v1.SetRemoteResponse + 34, // 36: land.gno.gnonative.v1.GnoNativeService.GetRemote:output_type -> land.gno.gnonative.v1.GetRemoteResponse + 35, // 37: land.gno.gnonative.v1.GnoNativeService.SetChainID:output_type -> land.gno.gnonative.v1.SetChainIDResponse + 36, // 38: land.gno.gnonative.v1.GnoNativeService.GetChainID:output_type -> land.gno.gnonative.v1.GetChainIDResponse + 37, // 39: land.gno.gnonative.v1.GnoNativeService.GenerateRecoveryPhrase:output_type -> land.gno.gnonative.v1.GenerateRecoveryPhraseResponse + 38, // 40: land.gno.gnonative.v1.GnoNativeService.ListKeyInfo:output_type -> land.gno.gnonative.v1.ListKeyInfoResponse + 39, // 41: land.gno.gnonative.v1.GnoNativeService.HasKeyByName:output_type -> land.gno.gnonative.v1.HasKeyByNameResponse + 40, // 42: land.gno.gnonative.v1.GnoNativeService.HasKeyByAddress:output_type -> land.gno.gnonative.v1.HasKeyByAddressResponse + 41, // 43: land.gno.gnonative.v1.GnoNativeService.HasKeyByNameOrAddress:output_type -> land.gno.gnonative.v1.HasKeyByNameOrAddressResponse + 42, // 44: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByName:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameResponse + 43, // 45: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByAddressResponse + 44, // 46: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse + 45, // 47: land.gno.gnonative.v1.GnoNativeService.CreateAccount:output_type -> land.gno.gnonative.v1.CreateAccountResponse + 46, // 48: land.gno.gnonative.v1.GnoNativeService.SelectAccount:output_type -> land.gno.gnonative.v1.SelectAccountResponse + 47, // 49: land.gno.gnonative.v1.GnoNativeService.SetPassword:output_type -> land.gno.gnonative.v1.SetPasswordResponse + 48, // 50: land.gno.gnonative.v1.GnoNativeService.GetActiveAccount:output_type -> land.gno.gnonative.v1.GetActiveAccountResponse + 49, // 51: land.gno.gnonative.v1.GnoNativeService.QueryAccount:output_type -> land.gno.gnonative.v1.QueryAccountResponse + 50, // 52: land.gno.gnonative.v1.GnoNativeService.DeleteAccount:output_type -> land.gno.gnonative.v1.DeleteAccountResponse + 51, // 53: land.gno.gnonative.v1.GnoNativeService.Query:output_type -> land.gno.gnonative.v1.QueryResponse + 52, // 54: land.gno.gnonative.v1.GnoNativeService.Render:output_type -> land.gno.gnonative.v1.RenderResponse + 53, // 55: land.gno.gnonative.v1.GnoNativeService.QEval:output_type -> land.gno.gnonative.v1.QEvalResponse + 54, // 56: land.gno.gnonative.v1.GnoNativeService.Call:output_type -> land.gno.gnonative.v1.CallResponse + 55, // 57: land.gno.gnonative.v1.GnoNativeService.Send:output_type -> land.gno.gnonative.v1.SendResponse + 56, // 58: land.gno.gnonative.v1.GnoNativeService.Run:output_type -> land.gno.gnonative.v1.RunResponse + 57, // 59: land.gno.gnonative.v1.GnoNativeService.MakeCallTx:output_type -> land.gno.gnonative.v1.MakeTxResponse + 57, // 60: land.gno.gnonative.v1.GnoNativeService.MakeSendTx:output_type -> land.gno.gnonative.v1.MakeTxResponse + 57, // 61: land.gno.gnonative.v1.GnoNativeService.MakeRunTx:output_type -> land.gno.gnonative.v1.MakeTxResponse + 58, // 62: land.gno.gnonative.v1.GnoNativeService.SignTx:output_type -> land.gno.gnonative.v1.SignTxResponse + 59, // 63: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:output_type -> land.gno.gnonative.v1.BroadcastTxCommitResponse + 60, // 64: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:output_type -> land.gno.gnonative.v1.AddressToBech32Response + 61, // 65: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:output_type -> land.gno.gnonative.v1.AddressFromBech32Response + 62, // 66: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:output_type -> land.gno.gnonative.v1.AddressFromMnemonicResponse + 63, // 67: land.gno.gnonative.v1.GnoNativeService.Hello:output_type -> land.gno.gnonative.v1.HelloResponse + 64, // 68: land.gno.gnonative.v1.GnoNativeService.HelloStream:output_type -> land.gno.gnonative.v1.HelloStreamResponse + 35, // [35:69] is the sub-list for method output_type + 1, // [1:35] 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 546b612c..e575e56f 100644 --- a/api/gnonativetypes.proto +++ b/api/gnonativetypes.proto @@ -223,8 +223,10 @@ message CallRequest { string gas_fee = 1; sint64 gas_wanted = 2; string memo = 3; + // If CallerAddress is empty then get it from the active account + bytes caller_address = 4; // list of calls to make in one transaction - repeated MsgCall msgs = 4 [json_name = "Msgs"]; + repeated MsgCall msgs = 5 [json_name = "Msgs"]; } message CallResponse { @@ -244,8 +246,10 @@ message SendRequest { sint64 gas_wanted = 2; // Memo is optional string memo = 3; + // If CallerAddress is empty then get it from the active account + bytes caller_address = 4; // list of send operations to make in one transaction - repeated MsgSend msgs = 4 [json_name = "Msgs"]; + repeated MsgSend msgs = 5 [json_name = "Msgs"]; } message SendResponse { @@ -264,8 +268,10 @@ message RunRequest { sint64 gas_wanted = 2; // Memo is optional string memo = 3; + // If CallerAddress is empty then get it from the active account + bytes caller_address = 4; // list of run operations to make in one transaction - repeated MsgRun msgs = 4 [json_name = "Msgs"]; + repeated MsgRun msgs = 5 [json_name = "Msgs"]; } message RunResponse { @@ -273,6 +279,34 @@ message RunResponse { string result = 1; } +message MakeTxResponse { + // The JSON encoding of the unsigned transaction + string tx_json = 1; +} + +message SignTxRequest { + // The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) + string tx_json = 1; + // The signer's account number on the blockchain. If 0 then query the blockchain for the value. + uint64 account_number = 2; + // The sequence number of the signer's transactions on the blockchain. If 0 then query the blockchain for the value. + uint64 sequence_number = 3; +} + +message SignTxResponse { + // The JSON encoding of the signed transaction (to use in BroadcastTx) + string signed_tx_json = 1 [json_name = "tx_json"]; +} + +message BroadcastTxCommitRequest { + // The JSON encoding of the signed transaction (from SignTx) + string signed_tx_json = 1 [json_name = "tx_json"]; +} + +message BroadcastTxCommitResponse { + bytes result = 1; +} + message AddressToBech32Request { bytes address = 1; } diff --git a/api/gnonativetypes/gnonativetypes.go b/api/gnonativetypes/gnonativetypes.go index 9101f26f..7a278072 100644 --- a/api/gnonativetypes/gnonativetypes.go +++ b/api/gnonativetypes/gnonativetypes.go @@ -219,6 +219,8 @@ 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 + CallerAddress []byte `json:"caller_address" yaml:"caller_address"` // list of calls to make in one transaction Msgs []MsgCall } @@ -240,6 +242,8 @@ 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 + CallerAddress []byte `json:"caller_address" yaml:"caller_address"` // list of send operations to make in one transaction Msgs []MsgSend } @@ -260,6 +264,8 @@ 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 + CallerAddress []byte `json:"caller_address" yaml:"caller_address"` // list of run operations to make in one transaction Msgs []MsgRun } @@ -269,6 +275,34 @@ type RunResponse struct { Result string `json:"result" yaml:"result"` } +type MakeTxResponse struct { + // The JSON encoding of the unsigned transaction + TxJSON string `json:"tx_json" yaml:"tx_json"` +} + +type SignTxRequest struct { + // The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) + TxJSON string `json:"tx_json" yaml:"tx_json"` + // 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. + SequenceNumber uint64 `json:"sequence_number" yaml:"sequence_number"` +} + +type SignTxResponse struct { + // The JSON encoding of the signed transaction (to use in BroadcastTx) + SignedTxJSON string `json:"tx_json" yaml:"tx_json"` +} + +type BroadcastTxCommitRequest struct { + // The JSON encoding of the signed transaction (from SignTx) + SignedTxJSON string `json:"tx_json" yaml:"tx_json"` +} + +type BroadcastTxCommitResponse struct { + Result []byte `json:"result" yaml:"result"` +} + type AddressToBech32Request struct { Address []byte `json:"address" yaml:"address"` } diff --git a/api/gnonativetypes/package.go b/api/gnonativetypes/package.go index 097d7320..aa1d267d 100644 --- a/api/gnonativetypes/package.go +++ b/api/gnonativetypes/package.go @@ -66,6 +66,11 @@ var Package = amino.RegisterPackage(amino.NewPackage( MsgRun{}, RunRequest{}, RunResponse{}, + MakeTxResponse{}, + SignTxRequest{}, + SignTxResponse{}, + BroadcastTxCommitRequest{}, + BroadcastTxCommitResponse{}, AddressToBech32Request{}, AddressToBech32Response{}, AddressFromBech32Request{}, diff --git a/api/rpc.proto b/api/rpc.proto index d4932b23..a07878f3 100644 --- a/api/rpc.proto +++ b/api/rpc.proto @@ -126,6 +126,23 @@ service GnoNativeService { // This returns the "console" output. rpc Run(RunRequest) returns (stream RunResponse); + // Make an unsigned transaction to call a specific realm function. + rpc MakeCallTx(CallRequest) returns (MakeTxResponse); + + // Make an unsigned transaction to send currency to an account on the blockchain. + rpc MakeSendTx(SendRequest) returns (MakeTxResponse); + + // 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. + // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. + rpc SignTx(SignTxRequest) returns (SignTxResponse); + + // Broadcast the signed transaction to the blockchain configured in GetRemote and return a stream result. + rpc BroadcastTxCommit(BroadcastTxCommitRequest) returns (stream BroadcastTxCommitResponse); + // Convert a byte array address to a bech32 string address. rpc AddressToBech32(AddressToBech32Request) returns (AddressToBech32Response); diff --git a/go.mod b/go.mod index b76d6945..23bec96a 100644 --- a/go.mod +++ b/go.mod @@ -5,8 +5,8 @@ go 1.22 toolchain go1.22.5 require ( - connectrpc.com/connect v1.13.0 - connectrpc.com/grpchealth v1.2.0 + connectrpc.com/connect v1.16.2 + connectrpc.com/grpchealth v1.3.0 connectrpc.com/grpcreflect v1.2.0 github.com/gnolang/gno v0.1.1 github.com/oklog/run v1.1.0 @@ -24,7 +24,7 @@ require ( ) require ( - github.com/btcsuite/btcd/btcec/v2 v2.3.3 // indirect + github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect github.com/btcsuite/btcd/btcutil v1.1.5 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cockroachdb/apd/v3 v3.2.1 // indirect @@ -37,7 +37,7 @@ require ( github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/gorilla/websocket v1.5.1 // indirect + github.com/gorilla/websocket v1.5.3 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect @@ -61,11 +61,14 @@ require ( golang.org/x/sys v0.22.0 // indirect golang.org/x/term v0.22.0 // indirect golang.org/x/text v0.16.0 // indirect - golang.org/x/tools v0.22.0 // indirect + golang.org/x/tools v0.23.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect google.golang.org/grpc v1.65.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace golang.org/x/mobile => github.com/berty/mobile v0.0.11 // temporary, see https://github.com/golang/mobile/pull/58 and https://github.com/golang/mobile/pull/82 +replace ( + github.com/gnolang/gno => github.com/jefft0/gno v0.2641.1 // temporary until merging https://github.com/gnolang/gno/pull/2641 + golang.org/x/mobile => github.com/berty/mobile v0.0.11 // temporary, see https://github.com/golang/mobile/pull/58 and https://github.com/golang/mobile/pull/82 +) diff --git a/go.sum b/go.sum index a599d071..a975d273 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ -connectrpc.com/connect v1.13.0 h1:lGs5maZZzWOOD+PFFiOt5OncKmMsk9ZdPwpy5jcmaYg= -connectrpc.com/connect v1.13.0/go.mod h1:uHAFHtYgeSZJxXrkN1IunDpKghnTXhYbVh0wW4StPW0= -connectrpc.com/grpchealth v1.2.0 h1:aHP33Bki+F2jPNI1mFVSFG7v0qJrgmfbg7X7nOdSj0M= -connectrpc.com/grpchealth v1.2.0/go.mod h1:fZos12C4p/ZaZC6OwBGZUM+i/fhnRhv75ax/6V/zIeM= +connectrpc.com/connect v1.16.2 h1:ybd6y+ls7GOlb7Bh5C8+ghA6SvCBajHwxssO2CGFjqE= +connectrpc.com/connect v1.16.2/go.mod h1:n2kgwskMHXC+lVqb18wngEpF95ldBHXjZYJussz5FRc= +connectrpc.com/grpchealth v1.3.0 h1:FA3OIwAvuMokQIXQrY5LbIy8IenftksTP/lG4PbYN+E= +connectrpc.com/grpchealth v1.3.0/go.mod h1:3vpqmX25/ir0gVgW6RdnCPPZRcR6HvqtXX5RNPmDXHM= connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U= connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY= dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= @@ -15,8 +15,8 @@ github.com/btcsuite/btcd v0.23.5-0.20231215221805-96c9fd8078fd h1:js1gPwhcFflTZ7 github.com/btcsuite/btcd v0.23.5-0.20231215221805-96c9fd8078fd/go.mod h1:nm3Bko6zh6bWP60UxwoT5LzdGJsQJaPo6HjduXq9p6A= github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA= github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= -github.com/btcsuite/btcd/btcec/v2 v2.3.3 h1:6+iXlDKE8RMtKsvK0gshlXIuPbyWM/h84Ensb7o3sC0= -github.com/btcsuite/btcd/btcec/v2 v2.3.3/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcec/v2 v2.3.4 h1:3EJjcN70HCu/mwqlUsGK8GcNVyLVxFDlWurTXGPFfiQ= +github.com/btcsuite/btcd/btcec/v2 v2.3.4/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9UrLwaeswfjfdF0A= github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE= github.com/btcsuite/btcd/btcutil v1.1.5 h1:+wER79R5670vs/ZusMTF1yTcRYE5GUsFbdjdisflzM8= @@ -57,8 +57,6 @@ github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHqu github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/gnolang/gno v0.1.1 h1:t41S0SWIUa3syI7XpRAuCneCgRc8gOJ2g8DkUedF72U= -github.com/gnolang/gno v0.1.1/go.mod h1:BTaBNeaoY/W95NN6QA4RCoQ6Z7mi8M+Zb1I1wMWGg2w= github.com/gnolang/overflow v0.0.0-20170615021017-4d914c927216 h1:GKvsK3oLWG9B1GL7WP/VqwM6C92j5tIvB844oggL9Lk= github.com/gnolang/overflow v0.0.0-20170615021017-4d914c927216/go.mod h1:xJhtEL7ahjM1WJipt89gel8tHzfIl/LyMY+lCYh38d8= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= @@ -87,11 +85,13 @@ github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= -github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= +github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= +github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0= github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/jefft0/gno v0.2641.1 h1:8kZl+QtfAWhEJxowoTT/BfwJD8UX8UNIvGprPAiG4c4= +github.com/jefft0/gno v0.2641.1/go.mod h1:dBaL1Au2MNLol+3FXdCv+IKLJnMKtTmIt778zsKjVu0= github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= @@ -158,8 +158,8 @@ github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= -go.etcd.io/bbolt v1.3.9 h1:8x7aARPEXiXbHmtUwAIv7eV2fQFHrLLavdiJ3uzJXoI= -go.etcd.io/bbolt v1.3.9/go.mod h1:zaO32+Ti0PK1ivdPtgMESzuzL2VPoIG1PCQNvOdo/dE= +go.etcd.io/bbolt v1.3.10 h1:+BqfJTcCzTItrop8mq/lbzL8wSGtj94UO/3U31shqG0= +go.etcd.io/bbolt v1.3.10/go.mod h1:bK3UQLPJZly7IlNmV7uVHJDxfe5aK9Ll93e/74Y9oEQ= go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.28.0 h1:U2guen0GhqH8o/G2un8f/aG/y++OuW6MyCo6hT9prXk= @@ -258,8 +258,8 @@ golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k= -golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA= -golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c= +golang.org/x/tools v0.23.0 h1:SGsXPZ+2l4JsgaCKkx+FQ9YZ5XEtA1GZYuoDjenLjvg= +golang.org/x/tools v0.23.0/go.mod h1:pnu6ufv6vQkll6szChhK3C3L/ruaIv5eBeztNG8wtsI= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/service/api.go b/service/api.go index a8af27ac..14e03070 100644 --- a/service/api.go +++ b/service/api.go @@ -9,6 +9,7 @@ import ( "time" "connectrpc.com/connect" + "github.com/gnolang/gno/tm2/pkg/amino" "github.com/gnolang/gno/tm2/pkg/crypto" "github.com/gnolang/gno/tm2/pkg/crypto/bip39" crypto_keys "github.com/gnolang/gno/tm2/pkg/crypto/keys" @@ -357,24 +358,9 @@ func (s *gnoNativeService) Call(ctx context.Context, req *connect.Request[api_ge } s.lock.RUnlock() - cfg := gnoclient.BaseTxCfg{ - GasFee: req.Msg.GasFee, - GasWanted: req.Msg.GasWanted, - Memo: req.Msg.Memo, - } - - msgs := make([]gnoclient.MsgCall, 0) - - for _, msg := range req.Msg.Msgs { - msgs = append(msgs, gnoclient.MsgCall{ - PkgPath: msg.PackagePath, - FuncName: msg.Fnc, - Args: msg.Args, - Send: msg.Send, - }) - } + cfg, msgs := convertCallRequest(req.Msg) - bres, err := s.client.Call(cfg, msgs...) + bres, err := s.client.Call(*cfg, msgs...) if err != nil { return getGrpcError(err) } @@ -389,6 +375,32 @@ func (s *gnoNativeService) Call(ctx context.Context, req *connect.Request[api_ge return nil } +func convertCallRequest(req *api_gen.CallRequest) (*gnoclient.BaseTxCfg, []gnoclient.MsgCall) { + var callerAddress crypto.Address + if req.CallerAddress != nil { + callerAddress = crypto.AddressFromBytes(req.CallerAddress) + } + cfg := &gnoclient.BaseTxCfg{ + GasFee: req.GasFee, + GasWanted: req.GasWanted, + Memo: req.Memo, + CallerAddress: callerAddress, + } + + msgs := make([]gnoclient.MsgCall, 0) + + for _, msg := range req.Msgs { + msgs = append(msgs, gnoclient.MsgCall{ + PkgPath: msg.PackagePath, + FuncName: msg.Fnc, + Args: msg.Args, + Send: msg.Send, + }) + } + + return cfg, msgs +} + func (s *gnoNativeService) Send(ctx context.Context, req *connect.Request[api_gen.SendRequest], stream *connect.ServerStream[api_gen.SendResponse]) error { for _, msg := range req.Msg.Msgs { s.logger.Debug("Send", zap.String("toAddress", crypto.AddressToBech32(crypto.AddressFromBytes(msg.ToAddress))), zap.String("send", msg.Send)) @@ -401,22 +413,9 @@ func (s *gnoNativeService) Send(ctx context.Context, req *connect.Request[api_ge } s.lock.RUnlock() - cfg := gnoclient.BaseTxCfg{ - GasFee: req.Msg.GasFee, - GasWanted: req.Msg.GasWanted, - Memo: req.Msg.Memo, - } - - msgs := make([]gnoclient.MsgSend, 0) + cfg, msgs := convertSendRequest(req.Msg) - for _, msg := range req.Msg.Msgs { - msgs = append(msgs, gnoclient.MsgSend{ - ToAddress: crypto.AddressFromBytes(msg.ToAddress), - Send: msg.Send, - }) - } - - _, err := s.client.Send(cfg, msgs...) + _, err := s.client.Send(*cfg, msgs...) if err != nil { return getGrpcError(err) } @@ -429,6 +428,30 @@ func (s *gnoNativeService) Send(ctx context.Context, req *connect.Request[api_ge return nil } +func convertSendRequest(req *api_gen.SendRequest) (*gnoclient.BaseTxCfg, []gnoclient.MsgSend) { + var callerAddress crypto.Address + if req.CallerAddress != nil { + callerAddress = crypto.AddressFromBytes(req.CallerAddress) + } + cfg := &gnoclient.BaseTxCfg{ + GasFee: req.GasFee, + GasWanted: req.GasWanted, + Memo: req.Memo, + CallerAddress: callerAddress, + } + + msgs := make([]gnoclient.MsgSend, 0) + + for _, msg := range req.Msgs { + msgs = append(msgs, gnoclient.MsgSend{ + ToAddress: crypto.AddressFromBytes(msg.ToAddress), + Send: msg.Send, + }) + } + + return cfg, msgs +} + 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 { @@ -437,15 +460,38 @@ func (s *gnoNativeService) Run(ctx context.Context, req *connect.Request[api_gen } s.lock.RUnlock() - cfg := gnoclient.BaseTxCfg{ - GasFee: req.Msg.GasFee, - GasWanted: req.Msg.GasWanted, - Memo: req.Msg.Memo, + cfg, msgs := convertRunRequest(req.Msg) + + bres, err := s.client.Run(*cfg, msgs...) + if err != nil { + return getGrpcError(err) + } + + if err := stream.Send(&api_gen.RunResponse{ + Result: string(bres.DeliverTx.Data), + }); err != nil { + s.logger.Error("Run stream.Send returned error", zap.Error(err)) + return err + } + + return nil +} + +func convertRunRequest(req *api_gen.RunRequest) (*gnoclient.BaseTxCfg, []gnoclient.MsgRun) { + var callerAddress crypto.Address + if req.CallerAddress != nil { + callerAddress = crypto.AddressFromBytes(req.CallerAddress) + } + cfg := &gnoclient.BaseTxCfg{ + GasFee: req.GasFee, + GasWanted: req.GasWanted, + Memo: req.Memo, + CallerAddress: callerAddress, } msgs := make([]gnoclient.MsgRun, 0) - for _, msg := range req.Msg.Msgs { + for _, msg := range req.Msgs { memPkg := &std.MemPackage{ Files: []*std.MemFile{ { @@ -460,15 +506,96 @@ func (s *gnoNativeService) Run(ctx context.Context, req *connect.Request[api_gen }) } - bres, err := s.client.Run(cfg, msgs...) + return cfg, msgs +} + +func (s *gnoNativeService) MakeCallTx(ctx context.Context, req *connect.Request[api_gen.CallRequest]) (*connect.Response[api_gen.MakeTxResponse], error) { + for _, msg := range req.Msg.Msgs { + s.logger.Debug("MakeCallTx", zap.String("package", msg.PackagePath), zap.String("function", msg.Fnc), zap.Any("args", msg.Args)) + } + + cfg, msgs := convertCallRequest(req.Msg) + tx, err := s.client.MakeCallTx(*cfg, msgs...) + if err != nil { + return nil, getGrpcError(err) + } + + txJSON, err := amino.MarshalJSON(tx) + if err != nil { + return nil, err + } + return connect.NewResponse(&api_gen.MakeTxResponse{TxJson: string(txJSON)}), nil +} + +func (s *gnoNativeService) MakeSendTx(ctx context.Context, req *connect.Request[api_gen.SendRequest]) (*connect.Response[api_gen.MakeTxResponse], error) { + cfg, msgs := convertSendRequest(req.Msg) + tx, err := s.client.MakeSendTx(*cfg, msgs...) + if err != nil { + return nil, getGrpcError(err) + } + + txJSON, err := amino.MarshalJSON(tx) + if err != nil { + return nil, err + } + return connect.NewResponse(&api_gen.MakeTxResponse{TxJson: string(txJSON)}), nil +} + +func (s *gnoNativeService) MakeRunTx(ctx context.Context, req *connect.Request[api_gen.RunRequest]) (*connect.Response[api_gen.MakeTxResponse], error) { + cfg, msgs := convertRunRequest(req.Msg) + tx, err := s.client.MakeRunTx(*cfg, msgs...) + if err != nil { + return nil, getGrpcError(err) + } + + txJSON, err := amino.MarshalJSON(tx) + if err != nil { + return nil, err + } + return connect.NewResponse(&api_gen.MakeTxResponse{TxJson: string(txJSON)}), nil +} + +func (s *gnoNativeService) SignTx(ctx context.Context, req *connect.Request[api_gen.SignTxRequest]) (*connect.Response[api_gen.SignTxResponse], error) { + s.lock.RLock() + if s.activeAccount == nil { + s.lock.RUnlock() + return nil, api_gen.ErrCode_ErrNoActiveAccount + } + s.lock.RUnlock() + + var tx std.Tx + if err := amino.UnmarshalJSON([]byte(req.Msg.TxJson), &tx); err != nil { + return nil, err + } + + signedTx, err := s.client.SignTx(tx, req.Msg.AccountNumber, req.Msg.SequenceNumber) + if err != nil { + return nil, getGrpcError(err) + } + + signedTxJSON, err := amino.MarshalJSON(signedTx) + if err != nil { + return nil, err + } + return connect.NewResponse(&api_gen.SignTxResponse{SignedTxJson: string(signedTxJSON)}), nil +} + +func (s *gnoNativeService) BroadcastTxCommit(ctx context.Context, req *connect.Request[api_gen.BroadcastTxCommitRequest], + stream *connect.ServerStream[api_gen.BroadcastTxCommitResponse]) error { + signedTx := &std.Tx{} + if err := amino.UnmarshalJSON([]byte(req.Msg.SignedTxJson), signedTx); err != nil { + return err + } + + bres, err := s.client.BroadcastTxCommit(signedTx) if err != nil { return getGrpcError(err) } - if err := stream.Send(&api_gen.RunResponse{ - Result: string(bres.DeliverTx.Data), + if err := stream.Send(&api_gen.BroadcastTxCommitResponse{ + Result: bres.DeliverTx.Data, }); err != nil { - s.logger.Error("Run stream.Send returned error", zap.Error(err)) + s.logger.Error("BroadcastTxCommit stream.Send returned error", zap.Error(err)) return err }