diff --git a/.tool-versions b/.tool-versions index 33ac3265..b8cc6840 100644 --- a/.tool-versions +++ b/.tool-versions @@ -3,5 +3,5 @@ ruby 3.2.2 cocoapods 1.15.2 java openjdk-17.0.2 yarn 1.22.19 -golang 1.22.5 +golang 1.23.7 buf 1.39.0 diff --git a/Makefile b/Makefile index a96f1a05..57d15db4 100644 --- a/Makefile +++ b/Makefile @@ -147,7 +147,7 @@ $(gnocore_aar): $(bind_init_files) $(go_deps) $(gomobile) bind -v \ -cache $(cache_dir)/android-gnonative \ -javapkg=gnolang.gno \ - -o $@ -target android -androidapi 21 ./framework/service + -o $@ -target android/arm64,android/amd64 -androidapi 21 ./framework/service _bind.clean.android: rm -rf $(gnocore_jar) $(gnocore_aar) diff --git a/api/gen/csharp/Gnonativetypes.cs b/api/gen/csharp/Gnonativetypes.cs index 6d80a64e..3a526e4b 100644 --- a/api/gen/csharp/Gnonativetypes.cs +++ b/api/gen/csharp/Gnonativetypes.cs @@ -118,23 +118,30 @@ static GnonativetypesReflection() { "cmVzcxgCIAEoDFIHYWRkcmVzcxIlCg5hY2NvdW50X251bWJlchgDIAEoBFIN", "YWNjb3VudE51bWJlchInCg9zZXF1ZW5jZV9udW1iZXIYBCABKARSDnNlcXVl", "bmNlTnVtYmVyIjEKDlNpZ25UeFJlc3BvbnNlEh8KDnNpZ25lZF90eF9qc29u", - "GAEgASgJUgd0eF9qc29uIjsKGEJyb2FkY2FzdFR4Q29tbWl0UmVxdWVzdBIf", - "Cg5zaWduZWRfdHhfanNvbhgBIAEoCVIHdHhfanNvbiIzChlCcm9hZGNhc3RU", - "eENvbW1pdFJlc3BvbnNlEhYKBnJlc3VsdBgBIAEoDFIGcmVzdWx0IjIKFkFk", - "ZHJlc3NUb0JlY2gzMlJlcXVlc3QSGAoHYWRkcmVzcxgBIAEoDFIHYWRkcmVz", - "cyJAChdBZGRyZXNzVG9CZWNoMzJSZXNwb25zZRIlCg5iZWNoMzJfYWRkcmVz", - "cxgBIAEoCVINYmVjaDMyQWRkcmVzcyJBChhBZGRyZXNzRnJvbUJlY2gzMlJl", - "cXVlc3QSJQoOYmVjaDMyX2FkZHJlc3MYASABKAlSDWJlY2gzMkFkZHJlc3Mi", - "NQoZQWRkcmVzc0Zyb21CZWNoMzJSZXNwb25zZRIYCgdhZGRyZXNzGAEgASgM", - "UgdhZGRyZXNzIjgKGkFkZHJlc3NGcm9tTW5lbW9uaWNSZXF1ZXN0EhoKCG1u", - "ZW1vbmljGAEgASgJUghtbmVtb25pYyI3ChtBZGRyZXNzRnJvbU1uZW1vbmlj", - "UmVzcG9uc2USGAoHYWRkcmVzcxgBIAEoDFIHYWRkcmVzcyIiCgxIZWxsb1Jl", - "cXVlc3QSEgoEbmFtZRgBIAEoCVIETmFtZSIrCg1IZWxsb1Jlc3BvbnNlEhoK", - "CGdyZWV0aW5nGAEgASgJUghHcmVldGluZyIoChJIZWxsb1N0cmVhbVJlcXVl", - "c3QSEgoEbmFtZRgBIAEoCVIETmFtZSIxChNIZWxsb1N0cmVhbVJlc3BvbnNl", - "EhoKCGdyZWV0aW5nGAEgASgJUghHcmVldGluZyIwChhHTk9OQVRJVkVUWVBF", - "U19CeXRlc0xpc3QSFAoFVmFsdWUYASADKAxSBVZhbHVlQilaJ2dpdGh1Yi5j", - "b20vZ25vbGFuZy9nbm9uYXRpdmUvYXBpL2dlbi9nb2IGcHJvdG8z")); + "GAEgASgJUgd0eF9qc29uIt0BChJFc3RpbWF0ZUdhc1JlcXVlc3QSFwoHdHhf", + "anNvbhgBIAEoCVIGdHhKc29uEhgKB2FkZHJlc3MYAiABKAxSB2FkZHJlc3MS", + "JwoPc2VjdXJpdHlfbWFyZ2luGAMgASgNUg5zZWN1cml0eU1hcmdpbhIbCgl1", + "cGRhdGVfdHgYBCABKAhSCHVwZGF0ZVR4EiUKDmFjY291bnRfbnVtYmVyGAUg", + "ASgEUg1hY2NvdW50TnVtYmVyEicKD3NlcXVlbmNlX251bWJlchgGIAEoBFIO", + "c2VxdWVuY2VOdW1iZXIiTQoTRXN0aW1hdGVHYXNSZXNwb25zZRIXCgd0eF9q", + "c29uGAEgASgJUgZ0eEpzb24SHQoKZ2FzX3dhbnRlZBgCIAEoElIJZ2FzV2Fu", + "dGVkIjsKGEJyb2FkY2FzdFR4Q29tbWl0UmVxdWVzdBIfCg5zaWduZWRfdHhf", + "anNvbhgBIAEoCVIHdHhfanNvbiIzChlCcm9hZGNhc3RUeENvbW1pdFJlc3Bv", + "bnNlEhYKBnJlc3VsdBgBIAEoDFIGcmVzdWx0IjIKFkFkZHJlc3NUb0JlY2gz", + "MlJlcXVlc3QSGAoHYWRkcmVzcxgBIAEoDFIHYWRkcmVzcyJAChdBZGRyZXNz", + "VG9CZWNoMzJSZXNwb25zZRIlCg5iZWNoMzJfYWRkcmVzcxgBIAEoCVINYmVj", + "aDMyQWRkcmVzcyJBChhBZGRyZXNzRnJvbUJlY2gzMlJlcXVlc3QSJQoOYmVj", + "aDMyX2FkZHJlc3MYASABKAlSDWJlY2gzMkFkZHJlc3MiNQoZQWRkcmVzc0Zy", + "b21CZWNoMzJSZXNwb25zZRIYCgdhZGRyZXNzGAEgASgMUgdhZGRyZXNzIjgK", + "GkFkZHJlc3NGcm9tTW5lbW9uaWNSZXF1ZXN0EhoKCG1uZW1vbmljGAEgASgJ", + "UghtbmVtb25pYyI3ChtBZGRyZXNzRnJvbU1uZW1vbmljUmVzcG9uc2USGAoH", + "YWRkcmVzcxgBIAEoDFIHYWRkcmVzcyIiCgxIZWxsb1JlcXVlc3QSEgoEbmFt", + "ZRgBIAEoCVIETmFtZSIrCg1IZWxsb1Jlc3BvbnNlEhoKCGdyZWV0aW5nGAEg", + "ASgJUghHcmVldGluZyIoChJIZWxsb1N0cmVhbVJlcXVlc3QSEgoEbmFtZRgB", + "IAEoCVIETmFtZSIxChNIZWxsb1N0cmVhbVJlc3BvbnNlEhoKCGdyZWV0aW5n", + "GAEgASgJUghHcmVldGluZyIwChhHTk9OQVRJVkVUWVBFU19CeXRlc0xpc3QS", + "FAoFVmFsdWUYASADKAxSBVZhbHVlQilaJ2dpdGh1Yi5jb20vZ25vbGFuZy9n", + "bm9uYXRpdmUvYXBpL2dlbi9nb2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -197,6 +204,8 @@ static GnonativetypesReflection() { 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", "Address", "AccountNumber", "SequenceNumber" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SignTxResponse), global::Land.Gno.Gnonative.V1.SignTxResponse.Parser, new[]{ "SignedTxJson" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.EstimateGasRequest), global::Land.Gno.Gnonative.V1.EstimateGasRequest.Parser, new[]{ "TxJson", "Address", "SecurityMargin", "UpdateTx", "AccountNumber", "SequenceNumber" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.EstimateGasResponse), global::Land.Gno.Gnonative.V1.EstimateGasResponse.Parser, new[]{ "TxJson", "GasWanted" }, 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), @@ -13164,6 +13173,650 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EstimateGasRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EstimateGasRequest()); + 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 EstimateGasRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EstimateGasRequest(EstimateGasRequest other) : this() { + txJson_ = other.txJson_; + address_ = other.address_; + securityMargin_ = other.securityMargin_; + updateTx_ = other.updateTx_; + accountNumber_ = other.accountNumber_; + sequenceNumber_ = other.sequenceNumber_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EstimateGasRequest Clone() { + return new EstimateGasRequest(this); + } + + /// 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 TxJson { + get { return txJson_; } + set { + txJson_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "address" field. + public const int AddressFieldNumber = 2; + private pb::ByteString address_ = pb::ByteString.Empty; + /// + /// The address of the account to sign the transaction + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pb::ByteString Address { + get { return address_; } + set { + address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "security_margin" field. + public const int SecurityMarginFieldNumber = 3; + private uint securityMargin_; + /// + /// The security margin to apply to the estimated gas amount. + /// This number is represents a decimal numeral value with two decimals precision, without the decimal separator. E.g. 1 means 0.01 and 10000 means 100.00. + /// It will be multiplied by the estimated gas amount. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public uint SecurityMargin { + get { return securityMargin_; } + set { + securityMargin_ = value; + } + } + + /// Field number for the "update_tx" field. + public const int UpdateTxFieldNumber = 4; + private bool updateTx_; + /// + /// The update boolean to update the gas wanted field in the transaction if true. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UpdateTx { + get { return updateTx_; } + set { + updateTx_ = value; + } + } + + /// Field number for the "account_number" field. + public const int AccountNumberFieldNumber = 5; + 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 = 6; + 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 EstimateGasRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EstimateGasRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TxJson != other.TxJson) return false; + if (Address != other.Address) return false; + if (SecurityMargin != other.SecurityMargin) return false; + if (UpdateTx != other.UpdateTx) return false; + if (AccountNumber != other.AccountNumber) return false; + if (SequenceNumber != other.SequenceNumber) 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 (TxJson.Length != 0) hash ^= TxJson.GetHashCode(); + if (Address.Length != 0) hash ^= Address.GetHashCode(); + if (SecurityMargin != 0) hash ^= SecurityMargin.GetHashCode(); + if (UpdateTx != false) hash ^= UpdateTx.GetHashCode(); + if (AccountNumber != 0UL) hash ^= AccountNumber.GetHashCode(); + if (SequenceNumber != 0UL) hash ^= SequenceNumber.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 (TxJson.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TxJson); + } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Address); + } + if (SecurityMargin != 0) { + output.WriteRawTag(24); + output.WriteUInt32(SecurityMargin); + } + if (UpdateTx != false) { + output.WriteRawTag(32); + output.WriteBool(UpdateTx); + } + if (AccountNumber != 0UL) { + output.WriteRawTag(40); + output.WriteUInt64(AccountNumber); + } + if (SequenceNumber != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(SequenceNumber); + } + 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 (TxJson.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TxJson); + } + if (Address.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Address); + } + if (SecurityMargin != 0) { + output.WriteRawTag(24); + output.WriteUInt32(SecurityMargin); + } + if (UpdateTx != false) { + output.WriteRawTag(32); + output.WriteBool(UpdateTx); + } + if (AccountNumber != 0UL) { + output.WriteRawTag(40); + output.WriteUInt64(AccountNumber); + } + if (SequenceNumber != 0UL) { + output.WriteRawTag(48); + output.WriteUInt64(SequenceNumber); + } + 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 (TxJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TxJson); + } + if (Address.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Address); + } + if (SecurityMargin != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SecurityMargin); + } + if (UpdateTx != false) { + size += 1 + 1; + } + if (AccountNumber != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AccountNumber); + } + if (SequenceNumber != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SequenceNumber); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EstimateGasRequest other) { + if (other == null) { + return; + } + if (other.TxJson.Length != 0) { + TxJson = other.TxJson; + } + if (other.Address.Length != 0) { + Address = other.Address; + } + if (other.SecurityMargin != 0) { + SecurityMargin = other.SecurityMargin; + } + if (other.UpdateTx != false) { + UpdateTx = other.UpdateTx; + } + if (other.AccountNumber != 0UL) { + AccountNumber = other.AccountNumber; + } + if (other.SequenceNumber != 0UL) { + SequenceNumber = other.SequenceNumber; + } + _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: { + TxJson = input.ReadString(); + break; + } + case 18: { + Address = input.ReadBytes(); + break; + } + case 24: { + SecurityMargin = input.ReadUInt32(); + break; + } + case 32: { + UpdateTx = input.ReadBool(); + break; + } + case 40: { + AccountNumber = input.ReadUInt64(); + break; + } + case 48: { + SequenceNumber = input.ReadUInt64(); + 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: { + TxJson = input.ReadString(); + break; + } + case 18: { + Address = input.ReadBytes(); + break; + } + case 24: { + SecurityMargin = input.ReadUInt32(); + break; + } + case 32: { + UpdateTx = input.ReadBool(); + break; + } + case 40: { + AccountNumber = input.ReadUInt64(); + break; + } + case 48: { + SequenceNumber = input.ReadUInt64(); + break; + } + } + } + } + #endif + + } + + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class EstimateGasResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EstimateGasResponse()); + 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 EstimateGasResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EstimateGasResponse(EstimateGasResponse other) : this() { + txJson_ = other.txJson_; + gasWanted_ = other.gasWanted_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public EstimateGasResponse Clone() { + return new EstimateGasResponse(this); + } + + /// 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 string TxJson { + get { return txJson_; } + set { + txJson_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "gas_wanted" field. + public const int GasWantedFieldNumber = 2; + private long gasWanted_; + /// + /// The estimated gas wanted for the transaction + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long GasWanted { + get { return gasWanted_; } + set { + gasWanted_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as EstimateGasResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(EstimateGasResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TxJson != other.TxJson) return false; + if (GasWanted != other.GasWanted) 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 (TxJson.Length != 0) hash ^= TxJson.GetHashCode(); + if (GasWanted != 0L) hash ^= GasWanted.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 (TxJson.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TxJson); + } + if (GasWanted != 0L) { + output.WriteRawTag(16); + output.WriteSInt64(GasWanted); + } + 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 (TxJson.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TxJson); + } + if (GasWanted != 0L) { + output.WriteRawTag(16); + output.WriteSInt64(GasWanted); + } + 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 (TxJson.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TxJson); + } + if (GasWanted != 0L) { + size += 1 + pb::CodedOutputStream.ComputeSInt64Size(GasWanted); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(EstimateGasResponse other) { + if (other == null) { + return; + } + if (other.TxJson.Length != 0) { + TxJson = other.TxJson; + } + if (other.GasWanted != 0L) { + GasWanted = other.GasWanted; + } + _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: { + TxJson = input.ReadString(); + break; + } + case 16: { + GasWanted = input.ReadSInt64(); + 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: { + TxJson = input.ReadString(); + break; + } + case 16: { + GasWanted = input.ReadSInt64(); + break; + } + } + } + } + #endif + + } + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class BroadcastTxCommitRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -13179,7 +13832,7 @@ public sealed partial class BroadcastTxCommitRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[67]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[69]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14964,7 +15617,7 @@ public sealed partial class HelloResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[68]; } + get { return global::Land.Gno.Gnonative.V1.GnonativetypesReflection.Descriptor.MessageTypes[70]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15162,7 +15815,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_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_EstimateGasRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.EstimateGasRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_land_gno_gnonative_v1_EstimateGasResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Land.Gno.Gnonative.V1.EstimateGasResponse.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)); @@ -403,6 +407,14 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __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_EstimateGas = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "EstimateGas", + __Marshaller_land_gno_gnonative_v1_EstimateGasRequest, + __Marshaller_land_gno_gnonative_v1_EstimateGasResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_SignTx = new grpc::Method( grpc::MethodType.Unary, @@ -857,6 +869,19 @@ public abstract partial class GnoNativeServiceBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin. + /// If UpdateTx is true, then update the transaction with the gasWanted amount. + /// + /// 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 EstimateGas(global::Land.Gno.Gnonative.V1.EstimateGasRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + /// /// Sign the transaction using the account with the given address. /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. @@ -2427,6 +2452,58 @@ protected GnoNativeServiceClient(ClientBaseConfiguration configuration) : base(c return CallInvoker.AsyncUnaryCall(__Method_MakeRunTx, null, options, request); } /// + /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin. + /// If UpdateTx is true, then update the transaction with the gasWanted amount. + /// + /// 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.EstimateGasResponse EstimateGas(global::Land.Gno.Gnonative.V1.EstimateGasRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EstimateGas(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin. + /// If UpdateTx is true, then update the transaction with the gasWanted amount. + /// + /// 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.EstimateGasResponse EstimateGas(global::Land.Gno.Gnonative.V1.EstimateGasRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_EstimateGas, null, options, request); + } + /// + /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin. + /// If UpdateTx is true, then update the transaction with the gasWanted amount. + /// + /// 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 EstimateGasAsync(global::Land.Gno.Gnonative.V1.EstimateGasRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EstimateGasAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin. + /// If UpdateTx is true, then update the transaction with the gasWanted amount. + /// + /// 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 EstimateGasAsync(global::Land.Gno.Gnonative.V1.EstimateGasRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_EstimateGas, null, options, request); + } + /// /// Sign the transaction using the account with the given address. /// If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. /// If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. @@ -2764,6 +2841,7 @@ protected override GnoNativeServiceClient NewInstance(ClientBaseConfiguration co .AddMethod(__Method_MakeCallTx, serviceImpl.MakeCallTx) .AddMethod(__Method_MakeSendTx, serviceImpl.MakeSendTx) .AddMethod(__Method_MakeRunTx, serviceImpl.MakeRunTx) + .AddMethod(__Method_EstimateGas, serviceImpl.EstimateGas) .AddMethod(__Method_SignTx, serviceImpl.SignTx) .AddMethod(__Method_BroadcastTxCommit, serviceImpl.BroadcastTxCommit) .AddMethod(__Method_AddressToBech32, serviceImpl.AddressToBech32) @@ -2808,6 +2886,7 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, GnoNativeS 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_EstimateGas, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.EstimateGas)); 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)); diff --git a/api/gen/es/gnonativetypes_pb.d.ts b/api/gen/es/gnonativetypes_pb.d.ts deleted file mode 100644 index 5c7fa33e..00000000 --- a/api/gen/es/gnonativetypes_pb.d.ts +++ /dev/null @@ -1,1978 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 -// @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"; - -/** - * messages - * - * @generated from message land.gno.gnonative.v1.SetRemoteRequest - */ -export declare class SetRemoteRequest extends Message { - /** - * @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; -} - -/** - * @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; - - 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; -} - -/** - * @generated from message land.gno.gnonative.v1.GetRemoteRequest - */ -export declare class GetRemoteRequest extends Message { - constructor(data?: PartialMessage); - - 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; -} - -/** - * @generated from message land.gno.gnonative.v1.GetRemoteResponse - */ -export declare class GetRemoteResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.SetChainIDRequest - */ -export declare class SetChainIDRequest extends Message { - /** - * @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; -} - -/** - * @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; - - static fromJsonString(jsonString: string, options?: Partial): SetChainIDResponse; - - static equals(a: SetChainIDResponse | PlainMessage | undefined, b: SetChainIDResponse | PlainMessage | undefined): boolean; -} - -/** - * @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; - - 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; -} - -/** - * @generated from message land.gno.gnonative.v1.GetChainIDResponse - */ -export declare class GetChainIDResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.SetPasswordRequest - */ -export declare class SetPasswordRequest extends Message { - /** - * @generated from field: string password = 1; - */ - password: string; - - /** - * The address of the account to set the password - * - * @generated from field: bytes address = 2; - */ - address: Uint8Array; - - 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; -} - -/** - * @generated from message land.gno.gnonative.v1.SetPasswordResponse - */ -export declare class SetPasswordResponse extends Message { - constructor(data?: PartialMessage); - - 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; -} - -/** - * @generated from message land.gno.gnonative.v1.RotatePasswordRequest - */ -export declare class RotatePasswordRequest extends Message { - /** - * @generated from field: string new_password = 1; - */ - newPassword: string; - - /** - * The addresses of the account to rotate the password - * - * @generated from field: repeated bytes addresses = 2; - */ - addresses: Uint8Array[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.RotatePasswordRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RotatePasswordRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): RotatePasswordRequest; - - static fromJsonString(jsonString: string, options?: Partial): RotatePasswordRequest; - - static equals(a: RotatePasswordRequest | PlainMessage | undefined, b: RotatePasswordRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.RotatePasswordResponse - */ -export declare class RotatePasswordResponse extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.RotatePasswordResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RotatePasswordResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): RotatePasswordResponse; - - static fromJsonString(jsonString: string, options?: Partial): RotatePasswordResponse; - - static equals(a: RotatePasswordResponse | PlainMessage | undefined, b: RotatePasswordResponse | PlainMessage | undefined): boolean; -} - -/** - * @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; - - 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; -} - -/** - * @generated from message land.gno.gnonative.v1.GenerateRecoveryPhraseResponse - */ -export declare class GenerateRecoveryPhraseResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.KeyInfo - */ -export declare class KeyInfo extends Message { - /** - * 0: local, 1: ledger, 2: offline, 3: multi - * - * @generated from field: uint32 type = 1; - */ - type: number; - - /** - * @generated from field: string name = 2; - */ - name: string; - - /** - * @generated from field: bytes pub_key = 3; - */ - pubKey: Uint8Array; - - /** - * @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; -} - -/** - * Coin holds some amount of one currency. - * A negative amount is invalid. - * - * @generated from message land.gno.gnonative.v1.Coin - */ -export declare class Coin extends Message { - /** - * Example: "ugnot" - * - * @generated from field: string denom = 1; - */ - denom: string; - - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.BaseAccount - */ -export declare class BaseAccount extends Message { - /** - * @generated from field: bytes address = 1; - */ - address: Uint8Array; - - /** - * @generated from field: repeated land.gno.gnonative.v1.Coin coins = 2; - */ - coins: Coin[]; - - /** - * @generated from field: bytes pub_key = 3; - */ - pubKey: Uint8Array; - - /** - * @generated from field: uint64 account_number = 4; - */ - accountNumber: bigint; - - /** - * @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; -} - -/** - * @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; - - static fromJsonString(jsonString: string, options?: Partial): ListKeyInfoRequest; - - static equals(a: ListKeyInfoRequest | PlainMessage | undefined, b: ListKeyInfoRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.ListKeyInfoResponse - */ -export declare class ListKeyInfoResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByNameRequest - */ -export declare class HasKeyByNameRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByNameResponse - */ -export declare class HasKeyByNameResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByAddressRequest - */ -export declare class HasKeyByAddressRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByAddressResponse - */ -export declare class HasKeyByAddressResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressRequest - */ -export declare class HasKeyByNameOrAddressRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressResponse - */ -export declare class HasKeyByNameOrAddressResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameRequest - */ -export declare class GetKeyInfoByNameRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameResponse - */ -export declare class GetKeyInfoByNameResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressRequest - */ -export declare class GetKeyInfoByAddressRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressResponse - */ -export declare class GetKeyInfoByAddressResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest - */ -export declare class GetKeyInfoByNameOrAddressRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse - */ -export declare class GetKeyInfoByNameOrAddressResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.CreateAccountRequest - */ -export declare class CreateAccountRequest extends Message { - /** - * @generated from field: string name_or_bech32 = 1; - */ - nameOrBech32: string; - - /** - * @generated from field: string mnemonic = 2; - */ - mnemonic: string; - - /** - * @generated from field: string bip39_passwd = 3; - */ - bip39Passwd: string; - - /** - * @generated from field: string password = 4; - */ - password: string; - - /** - * @generated from field: uint32 account = 5; - */ - account: number; - - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.CreateAccountResponse - */ -export declare class CreateAccountResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.ActivateAccountRequest - */ -export declare class ActivateAccountRequest extends Message { - /** - * @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.ActivateAccountRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ActivateAccountRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): ActivateAccountRequest; - - static fromJsonString(jsonString: string, options?: Partial): ActivateAccountRequest; - - static equals(a: ActivateAccountRequest | PlainMessage | undefined, b: ActivateAccountRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.ActivateAccountResponse - */ -export declare class ActivateAccountResponse extends Message { - /** - * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; - */ - key?: KeyInfo; - - /** - * True if the password has been set. If false, then call SetPassword. - * - * @generated from field: bool has_password = 2; - */ - hasPassword: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.ActivateAccountResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): ActivateAccountResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): ActivateAccountResponse; - - static fromJsonString(jsonString: string, options?: Partial): ActivateAccountResponse; - - static equals(a: ActivateAccountResponse | PlainMessage | undefined, b: ActivateAccountResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.GetActivatedAccountRequest - */ -export declare class GetActivatedAccountRequest extends Message { - /** - * @generated from field: bytes address = 1; - */ - address: Uint8Array; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetActivatedAccountRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActivatedAccountRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActivatedAccountRequest; - - static fromJsonString(jsonString: string, options?: Partial): GetActivatedAccountRequest; - - static equals(a: GetActivatedAccountRequest | PlainMessage | undefined, b: GetActivatedAccountRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.GetActivatedAccountResponse - */ -export declare class GetActivatedAccountResponse extends Message { - /** - * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; - */ - key?: KeyInfo; - - /** - * True if the password has been set. If false, then call SetPassword. - * - * @generated from field: bool has_password = 2; - */ - hasPassword: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GetActivatedAccountResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActivatedAccountResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActivatedAccountResponse; - - static fromJsonString(jsonString: string, options?: Partial): GetActivatedAccountResponse; - - static equals(a: GetActivatedAccountResponse | PlainMessage | undefined, b: GetActivatedAccountResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.QueryAccountRequest - */ -export declare class QueryAccountRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.QueryAccountResponse - */ -export declare class QueryAccountResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.DeleteAccountRequest - */ -export declare class DeleteAccountRequest extends Message { - /** - * @generated from field: string name_or_bech32 = 1; - */ - nameOrBech32: string; - - /** - * @generated from field: string password = 2; - */ - password: string; - - /** - * @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; -} - -/** - * @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; - - 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; -} - -/** - * @generated from message land.gno.gnonative.v1.QueryRequest - */ -export declare class QueryRequest extends Message { - /** - * Example: "vm/qrender" - * - * @generated from field: string path = 1; - */ - path: string; - - /** - * Example: "gno.land/r/demo/boards\ntestboard" - * - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.QueryResponse - */ -export declare class QueryResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.RenderRequest - */ -export declare class RenderRequest extends Message { - /** - * Example: "gno.land/r/demo/boards" - * - * @generated from field: string package_path = 1; - */ - packagePath: string; - - /** - * Example: "testboard/1" - * - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.RenderResponse - */ -export declare class RenderResponse extends Message { - /** - * 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; -} - -/** - * @generated from message land.gno.gnonative.v1.QEvalRequest - */ -export declare class QEvalRequest extends Message { - /** - * Example: "gno.land/r/demo/boards" - * - * @generated from field: string package_path = 1; - */ - packagePath: string; - - /** - * Example: "GetBoardIDFromName(\"testboard\")" - * - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.QEvalResponse - */ -export declare class QEvalResponse extends Message { - /** - * 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; -} - -/** - * @generated from message land.gno.gnonative.v1.MsgCall - */ -export declare class MsgCall extends Message { - /** - * Example: "gno.land/r/demo/boards" - * - * @generated from field: string package_path = 1; - */ - packagePath: string; - - /** - * Example: "CreateReply" - * - * @generated from field: string fnc = 2; - */ - fnc: string; - - /** - * list of arguments specific to the function - * Example: ["1", "1", "2", "my reply"] - * - * @generated from field: repeated string args = 3; - */ - args: string[]; - - /** - * @generated from field: repeated land.gno.gnonative.v1.Coin send = 4; - */ - send: Coin[]; - - 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; -} - -/** - * @generated from message land.gno.gnonative.v1.CallRequest - */ -export declare class CallRequest extends Message { - /** - * @generated from field: string gas_fee = 1; - */ - gasFee: string; - - /** - * @generated from field: sint64 gas_wanted = 2; - */ - gasWanted: bigint; - - /** - * @generated from field: string memo = 3; - */ - memo: string; - - /** - * The address of the account to sign the transaction - * - * @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 = 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; -} - -/** - * @generated from message land.gno.gnonative.v1.CallResponse - */ -export declare class CallResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.MsgSend - */ -export declare class MsgSend extends Message { - /** - * Example: The response of calling AddressFromBech32 with - * "g1juz2yxmdsa6audkp6ep9vfv80c8p5u76e03vvh" - * - * @generated from field: bytes to_address = 1; - */ - toAddress: Uint8Array; - - /** - * Example: [ {Denom: "ugnot", Amount: 1000} ] - * - * @generated from field: repeated land.gno.gnonative.v1.Coin amount = 2; - */ - amount: Coin[]; - - 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; -} - -/** - * @generated from message land.gno.gnonative.v1.SendRequest - */ -export declare class SendRequest extends Message { - /** - * @generated from field: string gas_fee = 1; - */ - gasFee: string; - - /** - * @generated from field: sint64 gas_wanted = 2; - */ - gasWanted: bigint; - - /** - * Memo is optional - * - * @generated from field: string memo = 3; - */ - memo: string; - - /** - * The address of the account to sign the transaction - * - * @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 = 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; -} - -/** - * @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; - - static equals(a: SendResponse | PlainMessage | undefined, b: SendResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.MsgRun - */ -export declare class MsgRun extends Message { - /** - * The code for the script package. Must have main(). - * Example: "package main\nfunc main() {\n println(\"Hello\")\n}" - * - * @generated from field: string package = 1; - */ - package: string; - - /** - * Optional. Example: "1000ugnot" - * - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.RunRequest - */ -export declare class RunRequest extends Message { - /** - * @generated from field: string gas_fee = 1; - */ - gasFee: string; - - /** - * @generated from field: sint64 gas_wanted = 2; - */ - gasWanted: bigint; - - /** - * Memo is optional - * - * @generated from field: string memo = 3; - */ - memo: string; - - /** - * The address of the account to sign the transaction - * - * @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 = 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; -} - -/** - * @generated from message land.gno.gnonative.v1.RunResponse - */ -export declare class RunResponse extends Message { - /** - * The "console" output from the run - * - * @generated from field: string result = 1; - */ - result: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.RunResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): RunResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): RunResponse; - - static fromJsonString(jsonString: string, options?: Partial): RunResponse; - - static equals(a: RunResponse | PlainMessage | undefined, b: RunResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.MakeTxResponse - */ -export declare class MakeTxResponse extends Message { - /** - * The JSON encoding of the unsigned transaction - * - * @generated from field: string tx_json = 1; - */ - txJson: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.MakeTxResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): MakeTxResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): MakeTxResponse; - - static fromJsonString(jsonString: string, options?: Partial): MakeTxResponse; - - static equals(a: MakeTxResponse | PlainMessage | undefined, b: MakeTxResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.SignTxRequest - */ -export declare class SignTxRequest extends Message { - /** - * The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) - * - * @generated from field: string tx_json = 1; - */ - txJson: string; - - /** - * The address of the account to sign the transaction - * - * @generated from field: bytes address = 2; - */ - address: Uint8Array; - - /** - * The signer's account number on the blockchain. If 0 then query the blockchain for the value. - * - * @generated from field: uint64 account_number = 3; - */ - accountNumber: bigint; - - /** - * The sequence number of the signer's transactions on the blockchain. If 0 then query the blockchain for the value. - * - * @generated from field: uint64 sequence_number = 4; - */ - sequenceNumber: bigint; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SignTxRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SignTxRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): SignTxRequest; - - static fromJsonString(jsonString: string, options?: Partial): SignTxRequest; - - static equals(a: SignTxRequest | PlainMessage | undefined, b: SignTxRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.SignTxResponse - */ -export declare class SignTxResponse extends Message { - /** - * The JSON encoding of the signed transaction (to use in BroadcastTx) - * - * @generated from field: string signed_tx_json = 1 [json_name = "tx_json"]; - */ - signedTxJson: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.SignTxResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): SignTxResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): SignTxResponse; - - static fromJsonString(jsonString: string, options?: Partial): SignTxResponse; - - static equals(a: SignTxResponse | PlainMessage | undefined, b: SignTxResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.BroadcastTxCommitRequest - */ -export declare class BroadcastTxCommitRequest extends Message { - /** - * The JSON encoding of the signed transaction (from SignTx) - * - * @generated from field: string signed_tx_json = 1 [json_name = "tx_json"]; - */ - signedTxJson: string; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.BroadcastTxCommitRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): BroadcastTxCommitRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): BroadcastTxCommitRequest; - - static fromJsonString(jsonString: string, options?: Partial): BroadcastTxCommitRequest; - - static equals(a: BroadcastTxCommitRequest | PlainMessage | undefined, b: BroadcastTxCommitRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.BroadcastTxCommitResponse - */ -export declare class BroadcastTxCommitResponse extends Message { - /** - * @generated from field: bytes result = 1; - */ - result: Uint8Array; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.BroadcastTxCommitResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): BroadcastTxCommitResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): BroadcastTxCommitResponse; - - static fromJsonString(jsonString: string, options?: Partial): BroadcastTxCommitResponse; - - static equals(a: BroadcastTxCommitResponse | PlainMessage | undefined, b: BroadcastTxCommitResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.AddressToBech32Request - */ -export declare class AddressToBech32Request extends Message { - /** - * @generated from field: bytes address = 1; - */ - address: Uint8Array; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.AddressToBech32Request"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): AddressToBech32Request; - - static fromJson(jsonValue: JsonValue, options?: Partial): AddressToBech32Request; - - static fromJsonString(jsonString: string, options?: Partial): AddressToBech32Request; - - static equals(a: AddressToBech32Request | PlainMessage | undefined, b: AddressToBech32Request | PlainMessage | undefined): boolean; -} - -/** - * @generated from message land.gno.gnonative.v1.AddressToBech32Response - */ -export declare class AddressToBech32Response extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.AddressFromBech32Request - */ -export declare class AddressFromBech32Request extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.AddressFromBech32Response - */ -export declare class AddressFromBech32Response extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.AddressFromMnemonicRequest - */ -export declare class AddressFromMnemonicRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.AddressFromMnemonicResponse - */ -export declare class AddressFromMnemonicResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HelloRequest - */ -export declare class HelloRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HelloResponse - */ -export declare class HelloResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HelloStreamRequest - */ -export declare class HelloStreamRequest extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.HelloStreamResponse - */ -export declare class HelloStreamResponse extends Message { - /** - * @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; -} - -/** - * @generated from message land.gno.gnonative.v1.GNONATIVETYPES_BytesList - */ -export declare class GNONATIVETYPES_BytesList extends Message { - /** - * @generated from field: repeated bytes Value = 1; - */ - Value: Uint8Array[]; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "land.gno.gnonative.v1.GNONATIVETYPES_BytesList"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): GNONATIVETYPES_BytesList; - - static fromJson(jsonValue: JsonValue, options?: Partial): GNONATIVETYPES_BytesList; - - static fromJsonString(jsonString: string, options?: Partial): GNONATIVETYPES_BytesList; - - static equals(a: GNONATIVETYPES_BytesList | PlainMessage | undefined, b: GNONATIVETYPES_BytesList | PlainMessage | undefined): boolean; -} - diff --git a/api/gen/es/gnonativetypes_pb.js b/api/gen/es/gnonativetypes_pb.js deleted file mode 100644 index 0c4f84f1..00000000 --- a/api/gen/es/gnonativetypes_pb.js +++ /dev/null @@ -1,754 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 -// @generated from file gnonativetypes.proto (package land.gno.gnonative.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * messages - * - * @generated from message land.gno.gnonative.v1.SetRemoteRequest - */ -export const SetRemoteRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.SetRemoteRequest", - () => [ - { no: 1, name: "remote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.SetRemoteResponse - */ -export const SetRemoteResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.SetRemoteResponse", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.GetRemoteRequest - */ -export const GetRemoteRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.GetRemoteRequest", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.GetRemoteResponse - */ -export const GetRemoteResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.GetRemoteResponse", - () => [ - { no: 1, name: "remote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.SetChainIDRequest - */ -export const SetChainIDRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.SetChainIDRequest", - () => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.SetChainIDResponse - */ -export const SetChainIDResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.SetChainIDResponse", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.GetChainIDRequest - */ -export const GetChainIDRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.GetChainIDRequest", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.GetChainIDResponse - */ -export const GetChainIDResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.GetChainIDResponse", - () => [ - { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.SetPasswordRequest - */ -export const SetPasswordRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.SetPasswordRequest", - () => [ - { no: 1, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.SetPasswordResponse - */ -export const SetPasswordResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.SetPasswordResponse", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.RotatePasswordRequest - */ -export const RotatePasswordRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.RotatePasswordRequest", - () => [ - { no: 1, name: "new_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "addresses", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.RotatePasswordResponse - */ -export const RotatePasswordResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.RotatePasswordResponse", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.GenerateRecoveryPhraseRequest - */ -export const GenerateRecoveryPhraseRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.GenerateRecoveryPhraseRequest", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.GenerateRecoveryPhraseResponse - */ -export const GenerateRecoveryPhraseResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.GenerateRecoveryPhraseResponse", - () => [ - { no: 1, name: "phrase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.KeyInfo - */ -export const KeyInfo = 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 */ }, - ], -); - -/** - * Coin holds some amount of one currency. - * A negative amount is invalid. - * - * @generated from message land.gno.gnonative.v1.Coin - */ -export const Coin = 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 */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.BaseAccount - */ -export const BaseAccount = 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 */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.ListKeyInfoRequest - */ -export const ListKeyInfoRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.ListKeyInfoRequest", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.ListKeyInfoResponse - */ -export const ListKeyInfoResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.ListKeyInfoResponse", - () => [ - { no: 1, name: "keys", jsonName: "key_info", kind: "message", T: KeyInfo, repeated: true }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByNameRequest - */ -export const HasKeyByNameRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByNameRequest", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByNameResponse - */ -export const HasKeyByNameResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByNameResponse", - () => [ - { no: 1, name: "has", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByAddressRequest - */ -export const HasKeyByAddressRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByAddressRequest", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByAddressResponse - */ -export const HasKeyByAddressResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByAddressResponse", - () => [ - { no: 1, name: "has", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressRequest - */ -export const HasKeyByNameOrAddressRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByNameOrAddressRequest", - () => [ - { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressResponse - */ -export const HasKeyByNameOrAddressResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.HasKeyByNameOrAddressResponse", - () => [ - { no: 1, name: "has", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameRequest - */ -export const GetKeyInfoByNameRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByNameRequest", - () => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameResponse - */ -export const GetKeyInfoByNameResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByNameResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressRequest - */ -export const GetKeyInfoByAddressRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByAddressRequest", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressResponse - */ -export const GetKeyInfoByAddressResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByAddressResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest - */ -export const GetKeyInfoByNameOrAddressRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest", - () => [ - { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse - */ -export const GetKeyInfoByNameOrAddressResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.CreateAccountRequest - */ -export const CreateAccountRequest = 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 */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.CreateAccountResponse - */ -export const CreateAccountResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.CreateAccountResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.ActivateAccountRequest - */ -export const ActivateAccountRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.ActivateAccountRequest", - () => [ - { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.ActivateAccountResponse - */ -export const ActivateAccountResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.ActivateAccountResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - { no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.GetActivatedAccountRequest - */ -export const GetActivatedAccountRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.GetActivatedAccountRequest", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.GetActivatedAccountResponse - */ -export const GetActivatedAccountResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.GetActivatedAccountResponse", - () => [ - { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, - { no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.QueryAccountRequest - */ -export const QueryAccountRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.QueryAccountRequest", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.QueryAccountResponse - */ -export const QueryAccountResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.QueryAccountResponse", - () => [ - { no: 1, name: "account_info", kind: "message", T: BaseAccount }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.DeleteAccountRequest - */ -export const DeleteAccountRequest = 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 */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.DeleteAccountResponse - */ -export const DeleteAccountResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.DeleteAccountResponse", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.QueryRequest - */ -export const QueryRequest = 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 */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.QueryResponse - */ -export const QueryResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.QueryResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.RenderRequest - */ -export const RenderRequest = 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 */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.RenderResponse - */ -export const RenderResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.RenderResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.QEvalRequest - */ -export const QEvalRequest = 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 */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.QEvalResponse - */ -export const QEvalResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.QEvalResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.MsgCall - */ -export const MsgCall = 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: "message", T: Coin, repeated: true }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.CallRequest - */ -export const CallRequest = 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: "caller_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgCall, repeated: true }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.CallResponse - */ -export const CallResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.CallResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.MsgSend - */ -export const MsgSend = proto3.makeMessageType( - "land.gno.gnonative.v1.MsgSend", - () => [ - { no: 1, name: "to_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.SendRequest - */ -export const SendRequest = 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: "caller_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgSend, repeated: true }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.SendResponse - */ -export const SendResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.SendResponse", - [], -); - -/** - * @generated from message land.gno.gnonative.v1.MsgRun - */ -export const MsgRun = 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 */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.RunRequest - */ -export const RunRequest = 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: "caller_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 5, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgRun, repeated: true }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.RunResponse - */ -export const RunResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.RunResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.MakeTxResponse - */ -export const MakeTxResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.MakeTxResponse", - () => [ - { no: 1, name: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.SignTxRequest - */ -export const SignTxRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.SignTxRequest", - () => [ - { no: 1, name: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "sequence_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.SignTxResponse - */ -export const SignTxResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.SignTxResponse", - () => [ - { no: 1, name: "signed_tx_json", jsonName: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.BroadcastTxCommitRequest - */ -export const BroadcastTxCommitRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.BroadcastTxCommitRequest", - () => [ - { no: 1, name: "signed_tx_json", jsonName: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.BroadcastTxCommitResponse - */ -export const BroadcastTxCommitResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.BroadcastTxCommitResponse", - () => [ - { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.AddressToBech32Request - */ -export const AddressToBech32Request = proto3.makeMessageType( - "land.gno.gnonative.v1.AddressToBech32Request", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.AddressToBech32Response - */ -export const AddressToBech32Response = proto3.makeMessageType( - "land.gno.gnonative.v1.AddressToBech32Response", - () => [ - { no: 1, name: "bech32_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.AddressFromBech32Request - */ -export const AddressFromBech32Request = proto3.makeMessageType( - "land.gno.gnonative.v1.AddressFromBech32Request", - () => [ - { no: 1, name: "bech32_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.AddressFromBech32Response - */ -export const AddressFromBech32Response = proto3.makeMessageType( - "land.gno.gnonative.v1.AddressFromBech32Response", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.AddressFromMnemonicRequest - */ -export const AddressFromMnemonicRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.AddressFromMnemonicRequest", - () => [ - { no: 1, name: "mnemonic", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.AddressFromMnemonicResponse - */ -export const AddressFromMnemonicResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.AddressFromMnemonicResponse", - () => [ - { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HelloRequest - */ -export const HelloRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.HelloRequest", - () => [ - { no: 1, name: "name", jsonName: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HelloResponse - */ -export const HelloResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.HelloResponse", - () => [ - { no: 1, name: "greeting", jsonName: "Greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HelloStreamRequest - */ -export const HelloStreamRequest = proto3.makeMessageType( - "land.gno.gnonative.v1.HelloStreamRequest", - () => [ - { no: 1, name: "name", jsonName: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.HelloStreamResponse - */ -export const HelloStreamResponse = proto3.makeMessageType( - "land.gno.gnonative.v1.HelloStreamResponse", - () => [ - { no: 1, name: "greeting", jsonName: "Greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.GNONATIVETYPES_BytesList - */ -export const GNONATIVETYPES_BytesList = proto3.makeMessageType( - "land.gno.gnonative.v1.GNONATIVETYPES_BytesList", - () => [ - { no: 1, name: "Value", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ], -); - diff --git a/api/gen/es/gnonativetypes_pb.ts b/api/gen/es/gnonativetypes_pb.ts new file mode 100644 index 00000000..f350c61d --- /dev/null +++ b/api/gen/es/gnonativetypes_pb.ts @@ -0,0 +1,3074 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @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, protoInt64 } from "@bufbuild/protobuf"; + +/** + * messages + * + * @generated from message land.gno.gnonative.v1.SetRemoteRequest + */ +export class SetRemoteRequest extends Message { + /** + * @generated from field: string remote = 1; + */ + remote = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SetRemoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "remote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SetRemoteRequest { + return new SetRemoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SetRemoteRequest { + return new SetRemoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SetRemoteRequest { + return new SetRemoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: SetRemoteRequest | PlainMessage | undefined, b: SetRemoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SetRemoteRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.SetRemoteResponse + */ +export class SetRemoteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SetRemoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SetRemoteResponse { + return new SetRemoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SetRemoteResponse { + return new SetRemoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SetRemoteResponse { + return new SetRemoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: SetRemoteResponse | PlainMessage | undefined, b: SetRemoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SetRemoteResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetRemoteRequest + */ +export class GetRemoteRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetRemoteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRemoteRequest { + return new GetRemoteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRemoteRequest { + return new GetRemoteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRemoteRequest { + return new GetRemoteRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetRemoteRequest | PlainMessage | undefined, b: GetRemoteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRemoteRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetRemoteResponse + */ +export class GetRemoteResponse extends Message { + /** + * @generated from field: string remote = 1; + */ + remote = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetRemoteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "remote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRemoteResponse { + return new GetRemoteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRemoteResponse { + return new GetRemoteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRemoteResponse { + return new GetRemoteResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetRemoteResponse | PlainMessage | undefined, b: GetRemoteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRemoteResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.SetChainIDRequest + */ +export class SetChainIDRequest extends Message { + /** + * @generated from field: string chain_id = 1; + */ + chainId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SetChainIDRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SetChainIDRequest { + return new SetChainIDRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SetChainIDRequest { + return new SetChainIDRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SetChainIDRequest { + return new SetChainIDRequest().fromJsonString(jsonString, options); + } + + static equals(a: SetChainIDRequest | PlainMessage | undefined, b: SetChainIDRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SetChainIDRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.SetChainIDResponse + */ +export class SetChainIDResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SetChainIDResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SetChainIDResponse { + return new SetChainIDResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SetChainIDResponse { + return new SetChainIDResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SetChainIDResponse { + return new SetChainIDResponse().fromJsonString(jsonString, options); + } + + static equals(a: SetChainIDResponse | PlainMessage | undefined, b: SetChainIDResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SetChainIDResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetChainIDRequest + */ +export class GetChainIDRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetChainIDRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetChainIDRequest { + return new GetChainIDRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetChainIDRequest { + return new GetChainIDRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetChainIDRequest { + return new GetChainIDRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetChainIDRequest | PlainMessage | undefined, b: GetChainIDRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetChainIDRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetChainIDResponse + */ +export class GetChainIDResponse extends Message { + /** + * @generated from field: string chain_id = 1; + */ + chainId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetChainIDResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetChainIDResponse { + return new GetChainIDResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetChainIDResponse { + return new GetChainIDResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetChainIDResponse { + return new GetChainIDResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetChainIDResponse | PlainMessage | undefined, b: GetChainIDResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetChainIDResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.SetPasswordRequest + */ +export class SetPasswordRequest extends Message { + /** + * @generated from field: string password = 1; + */ + password = ""; + + /** + * The address of the account to set the password + * + * @generated from field: bytes address = 2; + */ + address = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SetPasswordRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SetPasswordRequest { + return new SetPasswordRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SetPasswordRequest { + return new SetPasswordRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SetPasswordRequest { + return new SetPasswordRequest().fromJsonString(jsonString, options); + } + + static equals(a: SetPasswordRequest | PlainMessage | undefined, b: SetPasswordRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SetPasswordRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.SetPasswordResponse + */ +export class SetPasswordResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SetPasswordResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SetPasswordResponse { + return new SetPasswordResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SetPasswordResponse { + return new SetPasswordResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SetPasswordResponse { + return new SetPasswordResponse().fromJsonString(jsonString, options); + } + + static equals(a: SetPasswordResponse | PlainMessage | undefined, b: SetPasswordResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SetPasswordResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.RotatePasswordRequest + */ +export class RotatePasswordRequest extends Message { + /** + * @generated from field: string new_password = 1; + */ + newPassword = ""; + + /** + * The addresses of the account to rotate the password + * + * @generated from field: repeated bytes addresses = 2; + */ + addresses: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.RotatePasswordRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "new_password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "addresses", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RotatePasswordRequest { + return new RotatePasswordRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RotatePasswordRequest { + return new RotatePasswordRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RotatePasswordRequest { + return new RotatePasswordRequest().fromJsonString(jsonString, options); + } + + static equals(a: RotatePasswordRequest | PlainMessage | undefined, b: RotatePasswordRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(RotatePasswordRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.RotatePasswordResponse + */ +export class RotatePasswordResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.RotatePasswordResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RotatePasswordResponse { + return new RotatePasswordResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RotatePasswordResponse { + return new RotatePasswordResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RotatePasswordResponse { + return new RotatePasswordResponse().fromJsonString(jsonString, options); + } + + static equals(a: RotatePasswordResponse | PlainMessage | undefined, b: RotatePasswordResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(RotatePasswordResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GenerateRecoveryPhraseRequest + */ +export class GenerateRecoveryPhraseRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GenerateRecoveryPhraseRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenerateRecoveryPhraseRequest { + return new GenerateRecoveryPhraseRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenerateRecoveryPhraseRequest { + return new GenerateRecoveryPhraseRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenerateRecoveryPhraseRequest { + return new GenerateRecoveryPhraseRequest().fromJsonString(jsonString, options); + } + + static equals(a: GenerateRecoveryPhraseRequest | PlainMessage | undefined, b: GenerateRecoveryPhraseRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GenerateRecoveryPhraseRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GenerateRecoveryPhraseResponse + */ +export class GenerateRecoveryPhraseResponse extends Message { + /** + * @generated from field: string phrase = 1; + */ + phrase = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GenerateRecoveryPhraseResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "phrase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GenerateRecoveryPhraseResponse { + return new GenerateRecoveryPhraseResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GenerateRecoveryPhraseResponse { + return new GenerateRecoveryPhraseResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GenerateRecoveryPhraseResponse { + return new GenerateRecoveryPhraseResponse().fromJsonString(jsonString, options); + } + + static equals(a: GenerateRecoveryPhraseResponse | PlainMessage | undefined, b: GenerateRecoveryPhraseResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GenerateRecoveryPhraseResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.KeyInfo + */ +export class KeyInfo extends Message { + /** + * 0: local, 1: ledger, 2: offline, 3: multi + * + * @generated from field: uint32 type = 1; + */ + type = 0; + + /** + * @generated from field: string name = 2; + */ + name = ""; + + /** + * @generated from field: bytes pub_key = 3; + */ + pubKey = new Uint8Array(0); + + /** + * @generated from field: bytes address = 4; + */ + address = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.KeyInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { 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 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): KeyInfo { + return new KeyInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): KeyInfo { + return new KeyInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): KeyInfo { + return new KeyInfo().fromJsonString(jsonString, options); + } + + static equals(a: KeyInfo | PlainMessage | undefined, b: KeyInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(KeyInfo, a, b); + } +} + +/** + * Coin holds some amount of one currency. + * A negative amount is invalid. + * + * @generated from message land.gno.gnonative.v1.Coin + */ +export class Coin extends Message { + /** + * Example: "ugnot" + * + * @generated from field: string denom = 1; + */ + denom = ""; + + /** + * @generated from field: sint64 amount = 2; + */ + amount = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.Coin"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "amount", kind: "scalar", T: 18 /* ScalarType.SINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Coin { + return new Coin().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Coin { + return new Coin().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Coin { + return new Coin().fromJsonString(jsonString, options); + } + + static equals(a: Coin | PlainMessage | undefined, b: Coin | PlainMessage | undefined): boolean { + return proto3.util.equals(Coin, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.BaseAccount + */ +export class BaseAccount extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + /** + * @generated from field: repeated land.gno.gnonative.v1.Coin coins = 2; + */ + coins: Coin[] = []; + + /** + * @generated from field: bytes pub_key = 3; + */ + pubKey = new Uint8Array(0); + + /** + * @generated from field: uint64 account_number = 4; + */ + accountNumber = protoInt64.zero; + + /** + * @generated from field: uint64 sequence = 5; + */ + sequence = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.BaseAccount"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { 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 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BaseAccount { + return new BaseAccount().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BaseAccount { + return new BaseAccount().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BaseAccount { + return new BaseAccount().fromJsonString(jsonString, options); + } + + static equals(a: BaseAccount | PlainMessage | undefined, b: BaseAccount | PlainMessage | undefined): boolean { + return proto3.util.equals(BaseAccount, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.ListKeyInfoRequest + */ +export class ListKeyInfoRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.ListKeyInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListKeyInfoRequest { + return new ListKeyInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListKeyInfoRequest { + return new ListKeyInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListKeyInfoRequest { + return new ListKeyInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListKeyInfoRequest | PlainMessage | undefined, b: ListKeyInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListKeyInfoRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.ListKeyInfoResponse + */ +export class ListKeyInfoResponse extends Message { + /** + * @generated from field: repeated land.gno.gnonative.v1.KeyInfo keys = 1 [json_name = "key_info"]; + */ + keys: KeyInfo[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.ListKeyInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "keys", jsonName: "key_info", kind: "message", T: KeyInfo, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListKeyInfoResponse { + return new ListKeyInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListKeyInfoResponse { + return new ListKeyInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListKeyInfoResponse { + return new ListKeyInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListKeyInfoResponse | PlainMessage | undefined, b: ListKeyInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListKeyInfoResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HasKeyByNameRequest + */ +export class HasKeyByNameRequest extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HasKeyByNameRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByNameRequest { + return new HasKeyByNameRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByNameRequest { + return new HasKeyByNameRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HasKeyByNameRequest { + return new HasKeyByNameRequest().fromJsonString(jsonString, options); + } + + static equals(a: HasKeyByNameRequest | PlainMessage | undefined, b: HasKeyByNameRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(HasKeyByNameRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HasKeyByNameResponse + */ +export class HasKeyByNameResponse extends Message { + /** + * @generated from field: bool has = 1; + */ + has = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HasKeyByNameResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "has", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByNameResponse { + return new HasKeyByNameResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByNameResponse { + return new HasKeyByNameResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HasKeyByNameResponse { + return new HasKeyByNameResponse().fromJsonString(jsonString, options); + } + + static equals(a: HasKeyByNameResponse | PlainMessage | undefined, b: HasKeyByNameResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(HasKeyByNameResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HasKeyByAddressRequest + */ +export class HasKeyByAddressRequest extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HasKeyByAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByAddressRequest { + return new HasKeyByAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByAddressRequest { + return new HasKeyByAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HasKeyByAddressRequest { + return new HasKeyByAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: HasKeyByAddressRequest | PlainMessage | undefined, b: HasKeyByAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(HasKeyByAddressRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HasKeyByAddressResponse + */ +export class HasKeyByAddressResponse extends Message { + /** + * @generated from field: bool has = 1; + */ + has = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HasKeyByAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "has", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByAddressResponse { + return new HasKeyByAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByAddressResponse { + return new HasKeyByAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HasKeyByAddressResponse { + return new HasKeyByAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: HasKeyByAddressResponse | PlainMessage | undefined, b: HasKeyByAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(HasKeyByAddressResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressRequest + */ +export class HasKeyByNameOrAddressRequest extends Message { + /** + * @generated from field: string name_or_bech32 = 1; + */ + nameOrBech32 = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HasKeyByNameOrAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByNameOrAddressRequest { + return new HasKeyByNameOrAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByNameOrAddressRequest { + return new HasKeyByNameOrAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HasKeyByNameOrAddressRequest { + return new HasKeyByNameOrAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: HasKeyByNameOrAddressRequest | PlainMessage | undefined, b: HasKeyByNameOrAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(HasKeyByNameOrAddressRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HasKeyByNameOrAddressResponse + */ +export class HasKeyByNameOrAddressResponse extends Message { + /** + * @generated from field: bool has = 1; + */ + has = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HasKeyByNameOrAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "has", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HasKeyByNameOrAddressResponse { + return new HasKeyByNameOrAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HasKeyByNameOrAddressResponse { + return new HasKeyByNameOrAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HasKeyByNameOrAddressResponse { + return new HasKeyByNameOrAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: HasKeyByNameOrAddressResponse | PlainMessage | undefined, b: HasKeyByNameOrAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(HasKeyByNameOrAddressResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameRequest + */ +export class GetKeyInfoByNameRequest extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByNameRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByNameRequest { + return new GetKeyInfoByNameRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByNameRequest { + return new GetKeyInfoByNameRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByNameRequest { + return new GetKeyInfoByNameRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetKeyInfoByNameRequest | PlainMessage | undefined, b: GetKeyInfoByNameRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetKeyInfoByNameRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameResponse + */ +export class GetKeyInfoByNameResponse extends Message { + /** + * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; + */ + key?: KeyInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByNameResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByNameResponse { + return new GetKeyInfoByNameResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByNameResponse { + return new GetKeyInfoByNameResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByNameResponse { + return new GetKeyInfoByNameResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetKeyInfoByNameResponse | PlainMessage | undefined, b: GetKeyInfoByNameResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetKeyInfoByNameResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressRequest + */ +export class GetKeyInfoByAddressRequest extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByAddressRequest { + return new GetKeyInfoByAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByAddressRequest { + return new GetKeyInfoByAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByAddressRequest { + return new GetKeyInfoByAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetKeyInfoByAddressRequest | PlainMessage | undefined, b: GetKeyInfoByAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetKeyInfoByAddressRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetKeyInfoByAddressResponse + */ +export class GetKeyInfoByAddressResponse extends Message { + /** + * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; + */ + key?: KeyInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByAddressResponse { + return new GetKeyInfoByAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByAddressResponse { + return new GetKeyInfoByAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByAddressResponse { + return new GetKeyInfoByAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetKeyInfoByAddressResponse | PlainMessage | undefined, b: GetKeyInfoByAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetKeyInfoByAddressResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest + */ +export class GetKeyInfoByNameOrAddressRequest extends Message { + /** + * @generated from field: string name_or_bech32 = 1; + */ + nameOrBech32 = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByNameOrAddressRequest { + return new GetKeyInfoByNameOrAddressRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByNameOrAddressRequest { + return new GetKeyInfoByNameOrAddressRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByNameOrAddressRequest { + return new GetKeyInfoByNameOrAddressRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetKeyInfoByNameOrAddressRequest | PlainMessage | undefined, b: GetKeyInfoByNameOrAddressRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetKeyInfoByNameOrAddressRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse + */ +export class GetKeyInfoByNameOrAddressResponse extends Message { + /** + * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; + */ + key?: KeyInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetKeyInfoByNameOrAddressResponse { + return new GetKeyInfoByNameOrAddressResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetKeyInfoByNameOrAddressResponse { + return new GetKeyInfoByNameOrAddressResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetKeyInfoByNameOrAddressResponse { + return new GetKeyInfoByNameOrAddressResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetKeyInfoByNameOrAddressResponse | PlainMessage | undefined, b: GetKeyInfoByNameOrAddressResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetKeyInfoByNameOrAddressResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.CreateAccountRequest + */ +export class CreateAccountRequest extends Message { + /** + * @generated from field: string name_or_bech32 = 1; + */ + nameOrBech32 = ""; + + /** + * @generated from field: string mnemonic = 2; + */ + mnemonic = ""; + + /** + * @generated from field: string bip39_passwd = 3; + */ + bip39Passwd = ""; + + /** + * @generated from field: string password = 4; + */ + password = ""; + + /** + * @generated from field: uint32 account = 5; + */ + account = 0; + + /** + * @generated from field: uint32 index = 6; + */ + index = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.CreateAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { 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 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateAccountRequest { + return new CreateAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateAccountRequest { + return new CreateAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateAccountRequest { + return new CreateAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: CreateAccountRequest | PlainMessage | undefined, b: CreateAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateAccountRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.CreateAccountResponse + */ +export class CreateAccountResponse extends Message { + /** + * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; + */ + key?: KeyInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.CreateAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateAccountResponse { + return new CreateAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateAccountResponse { + return new CreateAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateAccountResponse { + return new CreateAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: CreateAccountResponse | PlainMessage | undefined, b: CreateAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateAccountResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.ActivateAccountRequest + */ +export class ActivateAccountRequest extends Message { + /** + * @generated from field: string name_or_bech32 = 1; + */ + nameOrBech32 = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.ActivateAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActivateAccountRequest { + return new ActivateAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActivateAccountRequest { + return new ActivateAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActivateAccountRequest { + return new ActivateAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: ActivateAccountRequest | PlainMessage | undefined, b: ActivateAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ActivateAccountRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.ActivateAccountResponse + */ +export class ActivateAccountResponse extends Message { + /** + * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; + */ + key?: KeyInfo; + + /** + * True if the password has been set. If false, then call SetPassword. + * + * @generated from field: bool has_password = 2; + */ + hasPassword = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.ActivateAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, + { no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActivateAccountResponse { + return new ActivateAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActivateAccountResponse { + return new ActivateAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActivateAccountResponse { + return new ActivateAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: ActivateAccountResponse | PlainMessage | undefined, b: ActivateAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ActivateAccountResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetActivatedAccountRequest + */ +export class GetActivatedAccountRequest extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetActivatedAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActivatedAccountRequest { + return new GetActivatedAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActivatedAccountRequest { + return new GetActivatedAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActivatedAccountRequest { + return new GetActivatedAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActivatedAccountRequest | PlainMessage | undefined, b: GetActivatedAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActivatedAccountRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GetActivatedAccountResponse + */ +export class GetActivatedAccountResponse extends Message { + /** + * @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"]; + */ + key?: KeyInfo; + + /** + * True if the password has been set. If false, then call SetPassword. + * + * @generated from field: bool has_password = 2; + */ + hasPassword = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GetActivatedAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo }, + { no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActivatedAccountResponse { + return new GetActivatedAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActivatedAccountResponse { + return new GetActivatedAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActivatedAccountResponse { + return new GetActivatedAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActivatedAccountResponse | PlainMessage | undefined, b: GetActivatedAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActivatedAccountResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.QueryAccountRequest + */ +export class QueryAccountRequest extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.QueryAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountRequest { + return new QueryAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountRequest | PlainMessage | undefined, b: QueryAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.QueryAccountResponse + */ +export class QueryAccountResponse extends Message { + /** + * @generated from field: land.gno.gnonative.v1.BaseAccount account_info = 1; + */ + accountInfo?: BaseAccount; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.QueryAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "account_info", kind: "message", T: BaseAccount }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAccountResponse { + return new QueryAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAccountResponse { + return new QueryAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryAccountResponse { + return new QueryAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryAccountResponse | PlainMessage | undefined, b: QueryAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryAccountResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.DeleteAccountRequest + */ +export class DeleteAccountRequest extends Message { + /** + * @generated from field: string name_or_bech32 = 1; + */ + nameOrBech32 = ""; + + /** + * @generated from field: string password = 2; + */ + password = ""; + + /** + * @generated from field: bool skip_password = 3; + */ + skipPassword = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.DeleteAccountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { 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 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAccountRequest { + return new DeleteAccountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAccountRequest { + return new DeleteAccountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DeleteAccountRequest { + return new DeleteAccountRequest().fromJsonString(jsonString, options); + } + + static equals(a: DeleteAccountRequest | PlainMessage | undefined, b: DeleteAccountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(DeleteAccountRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.DeleteAccountResponse + */ +export class DeleteAccountResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.DeleteAccountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteAccountResponse { + return new DeleteAccountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteAccountResponse { + return new DeleteAccountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DeleteAccountResponse { + return new DeleteAccountResponse().fromJsonString(jsonString, options); + } + + static equals(a: DeleteAccountResponse | PlainMessage | undefined, b: DeleteAccountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DeleteAccountResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.QueryRequest + */ +export class QueryRequest extends Message { + /** + * Example: "vm/qrender" + * + * @generated from field: string path = 1; + */ + path = ""; + + /** + * Example: "gno.land/r/demo/boards\ntestboard" + * + * @generated from field: bytes data = 2; + */ + data = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.QueryRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryRequest { + return new QueryRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryRequest { + return new QueryRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryRequest { + return new QueryRequest().fromJsonString(jsonString, options); + } + + static equals(a: QueryRequest | PlainMessage | undefined, b: QueryRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.QueryResponse + */ +export class QueryResponse extends Message { + /** + * @generated from field: bytes result = 1; + */ + result = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.QueryResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryResponse { + return new QueryResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryResponse { + return new QueryResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QueryResponse { + return new QueryResponse().fromJsonString(jsonString, options); + } + + static equals(a: QueryResponse | PlainMessage | undefined, b: QueryResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QueryResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.RenderRequest + */ +export class RenderRequest extends Message { + /** + * Example: "gno.land/r/demo/boards" + * + * @generated from field: string package_path = 1; + */ + packagePath = ""; + + /** + * Example: "testboard/1" + * + * @generated from field: string args = 2; + */ + args = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.RenderRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "package_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "args", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RenderRequest { + return new RenderRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RenderRequest { + return new RenderRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RenderRequest { + return new RenderRequest().fromJsonString(jsonString, options); + } + + static equals(a: RenderRequest | PlainMessage | undefined, b: RenderRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(RenderRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.RenderResponse + */ +export class RenderResponse extends Message { + /** + * The Render function result (typically markdown) + * + * @generated from field: string result = 1; + */ + result = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.RenderResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RenderResponse { + return new RenderResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RenderResponse { + return new RenderResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RenderResponse { + return new RenderResponse().fromJsonString(jsonString, options); + } + + static equals(a: RenderResponse | PlainMessage | undefined, b: RenderResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(RenderResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.QEvalRequest + */ +export class QEvalRequest extends Message { + /** + * Example: "gno.land/r/demo/boards" + * + * @generated from field: string package_path = 1; + */ + packagePath = ""; + + /** + * Example: "GetBoardIDFromName(\"testboard\")" + * + * @generated from field: string expression = 2; + */ + expression = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.QEvalRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "package_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "expression", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QEvalRequest { + return new QEvalRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QEvalRequest { + return new QEvalRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QEvalRequest { + return new QEvalRequest().fromJsonString(jsonString, options); + } + + static equals(a: QEvalRequest | PlainMessage | undefined, b: QEvalRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(QEvalRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.QEvalResponse + */ +export class QEvalResponse extends Message { + /** + * A typed expression like "(1 gno.land/r/demo/boards.BoardID)\n(true bool)" + * + * @generated from field: string result = 1; + */ + result = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.QEvalResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QEvalResponse { + return new QEvalResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QEvalResponse { + return new QEvalResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QEvalResponse { + return new QEvalResponse().fromJsonString(jsonString, options); + } + + static equals(a: QEvalResponse | PlainMessage | undefined, b: QEvalResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(QEvalResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.MsgCall + */ +export class MsgCall extends Message { + /** + * Example: "gno.land/r/demo/boards" + * + * @generated from field: string package_path = 1; + */ + packagePath = ""; + + /** + * Example: "CreateReply" + * + * @generated from field: string fnc = 2; + */ + fnc = ""; + + /** + * list of arguments specific to the function + * Example: ["1", "1", "2", "my reply"] + * + * @generated from field: repeated string args = 3; + */ + args: string[] = []; + + /** + * @generated from field: repeated land.gno.gnonative.v1.Coin send = 4; + */ + send: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.MsgCall"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { 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: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCall { + return new MsgCall().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCall { + return new MsgCall().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgCall { + return new MsgCall().fromJsonString(jsonString, options); + } + + static equals(a: MsgCall | PlainMessage | undefined, b: MsgCall | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgCall, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.CallRequest + */ +export class CallRequest extends Message { + /** + * @generated from field: string gas_fee = 1; + */ + gasFee = ""; + + /** + * @generated from field: sint64 gas_wanted = 2; + */ + gasWanted = protoInt64.zero; + + /** + * @generated from field: string memo = 3; + */ + memo = ""; + + /** + * The address of the account to sign the transaction + * + * @generated from field: bytes caller_address = 4; + */ + callerAddress = new Uint8Array(0); + + /** + * list of calls to make in one transaction + * + * @generated from field: repeated land.gno.gnonative.v1.MsgCall msgs = 5 [json_name = "Msgs"]; + */ + msgs: MsgCall[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.CallRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { 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: "caller_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgCall, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CallRequest { + return new CallRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CallRequest { + return new CallRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CallRequest { + return new CallRequest().fromJsonString(jsonString, options); + } + + static equals(a: CallRequest | PlainMessage | undefined, b: CallRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(CallRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.CallResponse + */ +export class CallResponse extends Message { + /** + * @generated from field: bytes result = 1; + */ + result = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.CallResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CallResponse { + return new CallResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CallResponse { + return new CallResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CallResponse { + return new CallResponse().fromJsonString(jsonString, options); + } + + static equals(a: CallResponse | PlainMessage | undefined, b: CallResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CallResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.MsgSend + */ +export class MsgSend extends Message { + /** + * Example: The response of calling AddressFromBech32 with + * "g1juz2yxmdsa6audkp6ep9vfv80c8p5u76e03vvh" + * + * @generated from field: bytes to_address = 1; + */ + toAddress = new Uint8Array(0); + + /** + * Example: [ {Denom: "ugnot", Amount: 1000} ] + * + * @generated from field: repeated land.gno.gnonative.v1.Coin amount = 2; + */ + amount: Coin[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.MsgSend"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "to_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "amount", kind: "message", T: Coin, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSend { + return new MsgSend().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSend { + return new MsgSend().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgSend { + return new MsgSend().fromJsonString(jsonString, options); + } + + static equals(a: MsgSend | PlainMessage | undefined, b: MsgSend | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgSend, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.SendRequest + */ +export class SendRequest extends Message { + /** + * @generated from field: string gas_fee = 1; + */ + gasFee = ""; + + /** + * @generated from field: sint64 gas_wanted = 2; + */ + gasWanted = protoInt64.zero; + + /** + * Memo is optional + * + * @generated from field: string memo = 3; + */ + memo = ""; + + /** + * The address of the account to sign the transaction + * + * @generated from field: bytes caller_address = 4; + */ + callerAddress = new Uint8Array(0); + + /** + * list of send operations to make in one transaction + * + * @generated from field: repeated land.gno.gnonative.v1.MsgSend msgs = 5 [json_name = "Msgs"]; + */ + msgs: MsgSend[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SendRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { 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: "caller_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgSend, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SendRequest { + return new SendRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SendRequest { + return new SendRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SendRequest { + return new SendRequest().fromJsonString(jsonString, options); + } + + static equals(a: SendRequest | PlainMessage | undefined, b: SendRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SendRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.SendResponse + */ +export class SendResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SendResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SendResponse { + return new SendResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SendResponse { + return new SendResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SendResponse { + return new SendResponse().fromJsonString(jsonString, options); + } + + static equals(a: SendResponse | PlainMessage | undefined, b: SendResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SendResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.MsgRun + */ +export class MsgRun extends Message { + /** + * The code for the script package. Must have main(). + * Example: "package main\nfunc main() {\n println(\"Hello\")\n}" + * + * @generated from field: string package = 1; + */ + package = ""; + + /** + * Optional. Example: "1000ugnot" + * + * @generated from field: string send = 2; + */ + send = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.MsgRun"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "package", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "send", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRun { + return new MsgRun().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRun { + return new MsgRun().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MsgRun { + return new MsgRun().fromJsonString(jsonString, options); + } + + static equals(a: MsgRun | PlainMessage | undefined, b: MsgRun | PlainMessage | undefined): boolean { + return proto3.util.equals(MsgRun, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.RunRequest + */ +export class RunRequest extends Message { + /** + * @generated from field: string gas_fee = 1; + */ + gasFee = ""; + + /** + * @generated from field: sint64 gas_wanted = 2; + */ + gasWanted = protoInt64.zero; + + /** + * Memo is optional + * + * @generated from field: string memo = 3; + */ + memo = ""; + + /** + * The address of the account to sign the transaction + * + * @generated from field: bytes caller_address = 4; + */ + callerAddress = new Uint8Array(0); + + /** + * list of run operations to make in one transaction + * + * @generated from field: repeated land.gno.gnonative.v1.MsgRun msgs = 5 [json_name = "Msgs"]; + */ + msgs: MsgRun[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.RunRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { 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: "caller_address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 5, name: "msgs", jsonName: "Msgs", kind: "message", T: MsgRun, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RunRequest { + return new RunRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RunRequest { + return new RunRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RunRequest { + return new RunRequest().fromJsonString(jsonString, options); + } + + static equals(a: RunRequest | PlainMessage | undefined, b: RunRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(RunRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.RunResponse + */ +export class RunResponse extends Message { + /** + * The "console" output from the run + * + * @generated from field: string result = 1; + */ + result = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.RunResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RunResponse { + return new RunResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RunResponse { + return new RunResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RunResponse { + return new RunResponse().fromJsonString(jsonString, options); + } + + static equals(a: RunResponse | PlainMessage | undefined, b: RunResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(RunResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.MakeTxResponse + */ +export class MakeTxResponse extends Message { + /** + * The JSON encoding of the unsigned transaction + * + * @generated from field: string tx_json = 1; + */ + txJson = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.MakeTxResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MakeTxResponse { + return new MakeTxResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MakeTxResponse { + return new MakeTxResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MakeTxResponse { + return new MakeTxResponse().fromJsonString(jsonString, options); + } + + static equals(a: MakeTxResponse | PlainMessage | undefined, b: MakeTxResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(MakeTxResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.SignTxRequest + */ +export class SignTxRequest extends Message { + /** + * The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) + * + * @generated from field: string tx_json = 1; + */ + txJson = ""; + + /** + * The address of the account to sign the transaction + * + * @generated from field: bytes address = 2; + */ + address = new Uint8Array(0); + + /** + * The signer's account number on the blockchain. If 0 then query the blockchain for the value. + * + * @generated from field: uint64 account_number = 3; + */ + accountNumber = protoInt64.zero; + + /** + * 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 = 4; + */ + sequenceNumber = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SignTxRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "sequence_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignTxRequest { + return new SignTxRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignTxRequest { + return new SignTxRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignTxRequest { + return new SignTxRequest().fromJsonString(jsonString, options); + } + + static equals(a: SignTxRequest | PlainMessage | undefined, b: SignTxRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SignTxRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.SignTxResponse + */ +export class SignTxResponse extends Message { + /** + * The JSON encoding of the signed transaction (to use in BroadcastTx) + * + * @generated from field: string signed_tx_json = 1 [json_name = "tx_json"]; + */ + signedTxJson = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.SignTxResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signed_tx_json", jsonName: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignTxResponse { + return new SignTxResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignTxResponse { + return new SignTxResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignTxResponse { + return new SignTxResponse().fromJsonString(jsonString, options); + } + + static equals(a: SignTxResponse | PlainMessage | undefined, b: SignTxResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SignTxResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.EstimateGasRequest + */ +export class EstimateGasRequest extends Message { + /** + * The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) + * + * @generated from field: string tx_json = 1; + */ + txJson = ""; + + /** + * The address of the account to sign the transaction + * + * @generated from field: bytes address = 2; + */ + address = new Uint8Array(0); + + /** + * The security margin to apply to the estimated gas amount. + * This number is represents a decimal numeral value with two decimals precision, without the decimal separator. E.g. 1 means 0.01 and 10000 means 100.00. + * It will be multiplied by the estimated gas amount. + * + * @generated from field: uint32 security_margin = 3; + */ + securityMargin = 0; + + /** + * The update boolean to update the gas wanted field in the transaction if true. + * + * @generated from field: bool update_tx = 4; + */ + updateTx = false; + + /** + * The signer's account number on the blockchain. If 0 then query the blockchain for the value. + * + * @generated from field: uint64 account_number = 5; + */ + accountNumber = protoInt64.zero; + + /** + * 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 = 6; + */ + sequenceNumber = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.EstimateGasRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "security_margin", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "update_tx", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "account_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "sequence_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EstimateGasRequest { + return new EstimateGasRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EstimateGasRequest { + return new EstimateGasRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EstimateGasRequest { + return new EstimateGasRequest().fromJsonString(jsonString, options); + } + + static equals(a: EstimateGasRequest | PlainMessage | undefined, b: EstimateGasRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EstimateGasRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.EstimateGasResponse + */ +export class EstimateGasResponse extends Message { + /** + * The JSON encoding of the unsigned transaction + * + * @generated from field: string tx_json = 1; + */ + txJson = ""; + + /** + * The estimated gas wanted for the transaction + * + * @generated from field: sint64 gas_wanted = 2; + */ + gasWanted = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.EstimateGasResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "gas_wanted", kind: "scalar", T: 18 /* ScalarType.SINT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EstimateGasResponse { + return new EstimateGasResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EstimateGasResponse { + return new EstimateGasResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EstimateGasResponse { + return new EstimateGasResponse().fromJsonString(jsonString, options); + } + + static equals(a: EstimateGasResponse | PlainMessage | undefined, b: EstimateGasResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(EstimateGasResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.BroadcastTxCommitRequest + */ +export class BroadcastTxCommitRequest extends Message { + /** + * The JSON encoding of the signed transaction (from SignTx) + * + * @generated from field: string signed_tx_json = 1 [json_name = "tx_json"]; + */ + signedTxJson = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.BroadcastTxCommitRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signed_tx_json", jsonName: "tx_json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BroadcastTxCommitRequest { + return new BroadcastTxCommitRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BroadcastTxCommitRequest { + return new BroadcastTxCommitRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BroadcastTxCommitRequest { + return new BroadcastTxCommitRequest().fromJsonString(jsonString, options); + } + + static equals(a: BroadcastTxCommitRequest | PlainMessage | undefined, b: BroadcastTxCommitRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(BroadcastTxCommitRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.BroadcastTxCommitResponse + */ +export class BroadcastTxCommitResponse extends Message { + /** + * @generated from field: bytes result = 1; + */ + result = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.BroadcastTxCommitResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BroadcastTxCommitResponse { + return new BroadcastTxCommitResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BroadcastTxCommitResponse { + return new BroadcastTxCommitResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BroadcastTxCommitResponse { + return new BroadcastTxCommitResponse().fromJsonString(jsonString, options); + } + + static equals(a: BroadcastTxCommitResponse | PlainMessage | undefined, b: BroadcastTxCommitResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(BroadcastTxCommitResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.AddressToBech32Request + */ +export class AddressToBech32Request extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.AddressToBech32Request"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AddressToBech32Request { + return new AddressToBech32Request().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AddressToBech32Request { + return new AddressToBech32Request().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AddressToBech32Request { + return new AddressToBech32Request().fromJsonString(jsonString, options); + } + + static equals(a: AddressToBech32Request | PlainMessage | undefined, b: AddressToBech32Request | PlainMessage | undefined): boolean { + return proto3.util.equals(AddressToBech32Request, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.AddressToBech32Response + */ +export class AddressToBech32Response extends Message { + /** + * @generated from field: string bech32_address = 1; + */ + bech32Address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.AddressToBech32Response"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bech32_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AddressToBech32Response { + return new AddressToBech32Response().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AddressToBech32Response { + return new AddressToBech32Response().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AddressToBech32Response { + return new AddressToBech32Response().fromJsonString(jsonString, options); + } + + static equals(a: AddressToBech32Response | PlainMessage | undefined, b: AddressToBech32Response | PlainMessage | undefined): boolean { + return proto3.util.equals(AddressToBech32Response, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.AddressFromBech32Request + */ +export class AddressFromBech32Request extends Message { + /** + * @generated from field: string bech32_address = 1; + */ + bech32Address = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.AddressFromBech32Request"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bech32_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AddressFromBech32Request { + return new AddressFromBech32Request().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AddressFromBech32Request { + return new AddressFromBech32Request().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AddressFromBech32Request { + return new AddressFromBech32Request().fromJsonString(jsonString, options); + } + + static equals(a: AddressFromBech32Request | PlainMessage | undefined, b: AddressFromBech32Request | PlainMessage | undefined): boolean { + return proto3.util.equals(AddressFromBech32Request, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.AddressFromBech32Response + */ +export class AddressFromBech32Response extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.AddressFromBech32Response"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AddressFromBech32Response { + return new AddressFromBech32Response().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AddressFromBech32Response { + return new AddressFromBech32Response().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AddressFromBech32Response { + return new AddressFromBech32Response().fromJsonString(jsonString, options); + } + + static equals(a: AddressFromBech32Response | PlainMessage | undefined, b: AddressFromBech32Response | PlainMessage | undefined): boolean { + return proto3.util.equals(AddressFromBech32Response, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.AddressFromMnemonicRequest + */ +export class AddressFromMnemonicRequest extends Message { + /** + * @generated from field: string mnemonic = 1; + */ + mnemonic = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.AddressFromMnemonicRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mnemonic", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AddressFromMnemonicRequest { + return new AddressFromMnemonicRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AddressFromMnemonicRequest { + return new AddressFromMnemonicRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AddressFromMnemonicRequest { + return new AddressFromMnemonicRequest().fromJsonString(jsonString, options); + } + + static equals(a: AddressFromMnemonicRequest | PlainMessage | undefined, b: AddressFromMnemonicRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(AddressFromMnemonicRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.AddressFromMnemonicResponse + */ +export class AddressFromMnemonicResponse extends Message { + /** + * @generated from field: bytes address = 1; + */ + address = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.AddressFromMnemonicResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "address", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AddressFromMnemonicResponse { + return new AddressFromMnemonicResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AddressFromMnemonicResponse { + return new AddressFromMnemonicResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AddressFromMnemonicResponse { + return new AddressFromMnemonicResponse().fromJsonString(jsonString, options); + } + + static equals(a: AddressFromMnemonicResponse | PlainMessage | undefined, b: AddressFromMnemonicResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AddressFromMnemonicResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HelloRequest + */ +export class HelloRequest extends Message { + /** + * @generated from field: string name = 1 [json_name = "Name"]; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HelloRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", jsonName: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HelloRequest { + return new HelloRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HelloRequest { + return new HelloRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HelloRequest { + return new HelloRequest().fromJsonString(jsonString, options); + } + + static equals(a: HelloRequest | PlainMessage | undefined, b: HelloRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(HelloRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HelloResponse + */ +export class HelloResponse extends Message { + /** + * @generated from field: string greeting = 1 [json_name = "Greeting"]; + */ + greeting = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HelloResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "greeting", jsonName: "Greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HelloResponse { + return new HelloResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HelloResponse { + return new HelloResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HelloResponse { + return new HelloResponse().fromJsonString(jsonString, options); + } + + static equals(a: HelloResponse | PlainMessage | undefined, b: HelloResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(HelloResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HelloStreamRequest + */ +export class HelloStreamRequest extends Message { + /** + * @generated from field: string name = 1 [json_name = "Name"]; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HelloStreamRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", jsonName: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HelloStreamRequest { + return new HelloStreamRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HelloStreamRequest { + return new HelloStreamRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HelloStreamRequest { + return new HelloStreamRequest().fromJsonString(jsonString, options); + } + + static equals(a: HelloStreamRequest | PlainMessage | undefined, b: HelloStreamRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(HelloStreamRequest, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.HelloStreamResponse + */ +export class HelloStreamResponse extends Message { + /** + * @generated from field: string greeting = 1 [json_name = "Greeting"]; + */ + greeting = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.HelloStreamResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "greeting", jsonName: "Greeting", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HelloStreamResponse { + return new HelloStreamResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HelloStreamResponse { + return new HelloStreamResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HelloStreamResponse { + return new HelloStreamResponse().fromJsonString(jsonString, options); + } + + static equals(a: HelloStreamResponse | PlainMessage | undefined, b: HelloStreamResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(HelloStreamResponse, a, b); + } +} + +/** + * @generated from message land.gno.gnonative.v1.GNONATIVETYPES_BytesList + */ +export class GNONATIVETYPES_BytesList extends Message { + /** + * @generated from field: repeated bytes Value = 1; + */ + Value: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "land.gno.gnonative.v1.GNONATIVETYPES_BytesList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Value", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GNONATIVETYPES_BytesList { + return new GNONATIVETYPES_BytesList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GNONATIVETYPES_BytesList { + return new GNONATIVETYPES_BytesList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GNONATIVETYPES_BytesList { + return new GNONATIVETYPES_BytesList().fromJsonString(jsonString, options); + } + + static equals(a: GNONATIVETYPES_BytesList | PlainMessage | undefined, b: GNONATIVETYPES_BytesList | PlainMessage | undefined): boolean { + return proto3.util.equals(GNONATIVETYPES_BytesList, a, b); + } +} + diff --git a/api/gen/es/rpc_connect.d.ts b/api/gen/es/rpc_connect.d.ts deleted file mode 100644 index 9d32e9f0..00000000 --- a/api/gen/es/rpc_connect.d.ts +++ /dev/null @@ -1,455 +0,0 @@ -// @generated by protoc-gen-connect-es v1.4.0 -// @generated from file rpc.proto (package land.gno.gnonative.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, 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, RotatePasswordRequest, RotatePasswordResponse, RunRequest, RunResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse } from "./gnonativetypes_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * GnoNativeService is the service to interact with the Gno blockchain - * - * @generated from service land.gno.gnonative.v1.GnoNativeService - */ -export declare const GnoNativeService: { - readonly typeName: "land.gno.gnonative.v1.GnoNativeService", - readonly methods: { - /** - * 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 - */ - readonly setRemote: { - readonly name: "SetRemote", - readonly I: typeof SetRemoteRequest, - readonly O: typeof SetRemoteResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly getRemote: { - readonly name: "GetRemote", - readonly I: typeof GetRemoteRequest, - readonly O: typeof GetRemoteResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly setChainID: { - readonly name: "SetChainID", - readonly I: typeof SetChainIDRequest, - readonly O: typeof SetChainIDResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly getChainID: { - readonly name: "GetChainID", - readonly I: typeof GetChainIDRequest, - readonly O: typeof GetChainIDResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly generateRecoveryPhrase: { - readonly name: "GenerateRecoveryPhrase", - readonly I: typeof GenerateRecoveryPhraseRequest, - readonly O: typeof GenerateRecoveryPhraseResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Get the information for all keys in the keybase - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.ListKeyInfo - */ - readonly listKeyInfo: { - readonly name: "ListKeyInfo", - readonly I: typeof ListKeyInfoRequest, - readonly O: typeof ListKeyInfoResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly hasKeyByName: { - readonly name: "HasKeyByName", - readonly I: typeof HasKeyByNameRequest, - readonly O: typeof HasKeyByNameResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly hasKeyByAddress: { - readonly name: "HasKeyByAddress", - readonly I: typeof HasKeyByAddressRequest, - readonly O: typeof HasKeyByAddressResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly hasKeyByNameOrAddress: { - readonly name: "HasKeyByNameOrAddress", - readonly I: typeof HasKeyByNameOrAddressRequest, - readonly O: typeof HasKeyByNameOrAddressResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly getKeyInfoByName: { - readonly name: "GetKeyInfoByName", - readonly I: typeof GetKeyInfoByNameRequest, - readonly O: typeof GetKeyInfoByNameResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly getKeyInfoByAddress: { - readonly name: "GetKeyInfoByAddress", - readonly I: typeof GetKeyInfoByAddressRequest, - readonly O: typeof GetKeyInfoByAddressResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly getKeyInfoByNameOrAddress: { - readonly name: "GetKeyInfoByNameOrAddress", - readonly I: typeof GetKeyInfoByNameOrAddressRequest, - readonly O: typeof GetKeyInfoByNameOrAddressResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly createAccount: { - readonly name: "CreateAccount", - readonly I: typeof CreateAccountRequest, - readonly O: typeof CreateAccountResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is - * false, then you should call SetPassword before using a method which needs it. - * If the account is already activated, return its info. - * If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.ActivateAccount - */ - readonly activateAccount: { - readonly name: "ActivateAccount", - readonly I: typeof ActivateAccountRequest, - readonly O: typeof ActivateAccountResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Set the password for the account in the keybase with the given address. - * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. - * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SetPassword - */ - readonly setPassword: { - readonly name: "SetPassword", - readonly I: typeof SetPasswordRequest, - readonly O: typeof SetPasswordResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Rotate the password of a key to a new password for the accounts in the keybase with the given addresses. - * Before calling this, you must call SetPassword with the current password for each account. - * If there is an error, then roll back all accounts to the current password. - * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.RotatePassword - */ - readonly rotatePassword: { - readonly name: "RotatePassword", - readonly I: typeof RotatePasswordRequest, - readonly O: typeof RotatePasswordResponse, - readonly kind: MethodKind.Unary, - }, - /** - * GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount. - * If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress. - * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount - */ - readonly getActivatedAccount: { - readonly name: "GetActivatedAccount", - readonly I: typeof GetActivatedAccountRequest, - readonly O: typeof GetActivatedAccountResponse, - readonly kind: MethodKind.Unary, - }, - /** - * QueryAccount retrieves account information from the blockchain for a given - * address. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.QueryAccount - */ - readonly queryAccount: { - readonly name: "QueryAccount", - readonly I: typeof QueryAccountRequest, - readonly O: typeof QueryAccountResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly deleteAccount: { - readonly name: "DeleteAccount", - readonly I: typeof DeleteAccountRequest, - readonly O: typeof DeleteAccountResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly query: { - readonly name: "Query", - readonly I: typeof QueryRequest, - readonly O: typeof QueryResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly render: { - readonly name: "Render", - readonly I: typeof RenderRequest, - readonly O: typeof RenderResponse, - readonly kind: MethodKind.Unary, - }, - /** - * 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 - */ - readonly qEval: { - readonly name: "QEval", - readonly I: typeof QEvalRequest, - readonly O: typeof QEvalResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Call a specific realm function. Sign the transaction with the given caller_address. - * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. - * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. - * If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Call - */ - readonly call: { - readonly name: "Call", - readonly I: typeof CallRequest, - readonly O: typeof CallResponse, - readonly kind: MethodKind.ServerStreaming, - }, - /** - * Send currency from the account with the given caller_address to an account on the blockchain. - * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. - * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Send - */ - readonly send: { - readonly name: "Send", - readonly I: typeof SendRequest, - readonly O: typeof SendResponse, - readonly kind: MethodKind.ServerStreaming, - }, - /** - * 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". Sign the transaction with the given caller_address. - * This returns the "console" output. - * If there is no activated account with the given caller_address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Run - */ - readonly run: { - readonly name: "Run", - readonly I: typeof RunRequest, - 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 account with the given address. - * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. - * If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.SignTx - */ - 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. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressToBech32 - */ - readonly addressToBech32: { - readonly name: "AddressToBech32", - readonly I: typeof AddressToBech32Request, - readonly O: typeof AddressToBech32Response, - readonly kind: MethodKind.Unary, - }, - /** - * Convert a bech32 string address to a byte array address. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressFromBech32 - */ - readonly addressFromBech32: { - readonly name: "AddressFromBech32", - readonly I: typeof AddressFromBech32Request, - readonly O: typeof AddressFromBech32Response, - readonly kind: MethodKind.Unary, - }, - /** - * Convert a mnemonic (as in CreateAccount) to a byte array address. - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic - */ - readonly addressFromMnemonic: { - readonly name: "AddressFromMnemonic", - readonly I: typeof AddressFromMnemonicRequest, - readonly O: typeof AddressFromMnemonicResponse, - readonly kind: MethodKind.Unary, - }, - /** - * Hello is for debug purposes - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.Hello - */ - readonly hello: { - readonly name: "Hello", - readonly I: typeof HelloRequest, - readonly O: typeof HelloResponse, - readonly kind: MethodKind.Unary, - }, - /** - * HelloStream is for debug purposes - * - * @generated from rpc land.gno.gnonative.v1.GnoNativeService.HelloStream - */ - readonly helloStream: { - readonly name: "HelloStream", - readonly I: typeof HelloStreamRequest, - readonly O: typeof HelloStreamResponse, - readonly kind: MethodKind.ServerStreaming, - }, - } -}; - diff --git a/api/gen/es/rpc_connect.js b/api/gen/es/rpc_connect.ts similarity index 90% rename from api/gen/es/rpc_connect.js rename to api/gen/es/rpc_connect.ts index a5aa2109..5a3ffc98 100644 --- a/api/gen/es/rpc_connect.js +++ b/api/gen/es/rpc_connect.ts @@ -1,9 +1,9 @@ -// @generated by protoc-gen-connect-es v1.4.0 +// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts" // @generated from file rpc.proto (package land.gno.gnonative.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck -import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, 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, RotatePasswordRequest, RotatePasswordResponse, RunRequest, RunResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse } from "./gnonativetypes_pb.js"; +import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, EstimateGasRequest, EstimateGasResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, 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, RotatePasswordRequest, RotatePasswordResponse, RunRequest, RunResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse } from "./gnonativetypes_pb.js"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -371,6 +371,18 @@ export const GnoNativeService = { O: MakeTxResponse, kind: MethodKind.Unary, }, + /** + * EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin. + * If UpdateTx is true, then update the transaction with the gasWanted amount. + * + * @generated from rpc land.gno.gnonative.v1.GnoNativeService.EstimateGas + */ + estimateGas: { + name: "EstimateGas", + I: EstimateGasRequest, + O: EstimateGasResponse, + kind: MethodKind.Unary, + }, /** * Sign the transaction using the account with the given address. * If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. @@ -451,5 +463,5 @@ export const GnoNativeService = { kind: MethodKind.ServerStreaming, }, } -}; +} as const; diff --git a/api/gen/es/rpc_pb.js b/api/gen/es/rpc_pb.js deleted file mode 100644 index dc77be62..00000000 --- a/api/gen/es/rpc_pb.js +++ /dev/null @@ -1,69 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 -// @generated from file rpc.proto (package land.gno.gnonative.v1, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * The ErrCode enum defines errors for gRPC API functions. These are converted - * from the Go error types returned by gnoclient. - * - * ---------------- - * Special errors - * ---------------- - * - * @generated from enum land.gno.gnonative.v1.ErrCode - */ -export const ErrCode = 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"}, - ], -); - -/** - * @generated from message land.gno.gnonative.v1.ErrDetails - */ -export const ErrDetails = proto3.makeMessageType( - "land.gno.gnonative.v1.ErrDetails", - () => [ - { no: 1, name: "codes", kind: "enum", T: proto3.getEnumType(ErrCode), repeated: true }, - ], -); - diff --git a/api/gen/es/rpc_pb.d.ts b/api/gen/es/rpc_pb.ts similarity index 72% rename from api/gen/es/rpc_pb.d.ts rename to api/gen/es/rpc_pb.ts index 8477936b..dc4a68e2 100644 --- a/api/gen/es/rpc_pb.d.ts +++ b/api/gen/es/rpc_pb.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.7.2 +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" // @generated from file rpc.proto (package land.gno.gnonative.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -16,7 +16,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 * @@ -242,28 +242,80 @@ export declare enum ErrCode { */ ErrInvalidExpr = 219, } +// Retrieve enum metadata with: proto3.getEnumType(ErrCode) +proto3.util.setEnumType(ErrCode, "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" }, +]); /** * @generated from message land.gno.gnonative.v1.ErrDetails */ -export declare class ErrDetails extends Message { +export class ErrDetails extends Message { /** * @generated from field: repeated land.gno.gnonative.v1.ErrCode codes = 1; */ - codes: ErrCode[]; + codes: ErrCode[] = []; - constructor(data?: PartialMessage); + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } - static readonly runtime: typeof proto3; + static readonly runtime: typeof proto3 = proto3; static readonly typeName = "land.gno.gnonative.v1.ErrDetails"; - static readonly fields: FieldList; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "codes", kind: "enum", T: proto3.getEnumType(ErrCode), repeated: true }, + ]); - static fromBinary(bytes: Uint8Array, options?: Partial): ErrDetails; + static fromBinary(bytes: Uint8Array, options?: Partial): ErrDetails { + return new ErrDetails().fromBinary(bytes, options); + } - static fromJson(jsonValue: JsonValue, options?: Partial): ErrDetails; + static fromJson(jsonValue: JsonValue, options?: Partial): ErrDetails { + return new ErrDetails().fromJson(jsonValue, options); + } - static fromJsonString(jsonString: string, options?: Partial): ErrDetails; + static fromJsonString(jsonString: string, options?: Partial): ErrDetails { + return new ErrDetails().fromJsonString(jsonString, options); + } - static equals(a: ErrDetails | PlainMessage | undefined, b: ErrDetails | PlainMessage | undefined): boolean; + static equals(a: ErrDetails | PlainMessage | undefined, b: ErrDetails | PlainMessage | undefined): boolean { + return proto3.util.equals(ErrDetails, a, b); + } } diff --git a/api/gen/go/_goconnect/rpc.connect.go b/api/gen/go/_goconnect/rpc.connect.go index 06ec80fe..8a154f87 100644 --- a/api/gen/go/_goconnect/rpc.connect.go +++ b/api/gen/go/_goconnect/rpc.connect.go @@ -111,6 +111,9 @@ const ( // GnoNativeServiceMakeRunTxProcedure is the fully-qualified name of the GnoNativeService's // MakeRunTx RPC. GnoNativeServiceMakeRunTxProcedure = "/land.gno.gnonative.v1.GnoNativeService/MakeRunTx" + // GnoNativeServiceEstimateGasProcedure is the fully-qualified name of the GnoNativeService's + // EstimateGas RPC. + GnoNativeServiceEstimateGasProcedure = "/land.gno.gnonative.v1.GnoNativeService/EstimateGas" // 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 @@ -132,46 +135,6 @@ const ( GnoNativeServiceHelloStreamProcedure = "/land.gno.gnonative.v1.GnoNativeService/HelloStream" ) -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - gnoNativeServiceServiceDescriptor = _go.File_rpc_proto.Services().ByName("GnoNativeService") - gnoNativeServiceSetRemoteMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("SetRemote") - gnoNativeServiceGetRemoteMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GetRemote") - gnoNativeServiceSetChainIDMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("SetChainID") - gnoNativeServiceGetChainIDMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GetChainID") - gnoNativeServiceGenerateRecoveryPhraseMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GenerateRecoveryPhrase") - gnoNativeServiceListKeyInfoMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("ListKeyInfo") - gnoNativeServiceHasKeyByNameMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("HasKeyByName") - gnoNativeServiceHasKeyByAddressMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("HasKeyByAddress") - gnoNativeServiceHasKeyByNameOrAddressMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("HasKeyByNameOrAddress") - gnoNativeServiceGetKeyInfoByNameMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GetKeyInfoByName") - gnoNativeServiceGetKeyInfoByAddressMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GetKeyInfoByAddress") - gnoNativeServiceGetKeyInfoByNameOrAddressMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GetKeyInfoByNameOrAddress") - gnoNativeServiceCreateAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("CreateAccount") - gnoNativeServiceActivateAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("ActivateAccount") - gnoNativeServiceSetPasswordMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("SetPassword") - gnoNativeServiceRotatePasswordMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("RotatePassword") - gnoNativeServiceGetActivatedAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("GetActivatedAccount") - gnoNativeServiceQueryAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("QueryAccount") - gnoNativeServiceDeleteAccountMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("DeleteAccount") - gnoNativeServiceQueryMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("Query") - gnoNativeServiceRenderMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("Render") - gnoNativeServiceQEvalMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("QEval") - 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") - gnoNativeServiceHelloMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("Hello") - gnoNativeServiceHelloStreamMethodDescriptor = gnoNativeServiceServiceDescriptor.Methods().ByName("HelloStream") -) - // GnoNativeServiceClient is a client for the land.gno.gnonative.v1.GnoNativeService service. type GnoNativeServiceClient interface { // Set the connection address for the remote node. If you don't call this, @@ -279,6 +242,9 @@ type GnoNativeServiceClient interface { MakeSendTx(context.Context, *connect.Request[_go.SendRequest]) (*connect.Response[_go.MakeTxResponse], error) // Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). MakeRunTx(context.Context, *connect.Request[_go.RunRequest]) (*connect.Response[_go.MakeTxResponse], error) + // EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin. + // If UpdateTx is true, then update the transaction with the gasWanted amount. + EstimateGas(context.Context, *connect.Request[_go.EstimateGasRequest]) (*connect.Response[_go.EstimateGasResponse], error) // Sign the transaction using the account with the given address. // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. @@ -306,215 +272,222 @@ type GnoNativeServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewGnoNativeServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GnoNativeServiceClient { baseURL = strings.TrimRight(baseURL, "/") + gnoNativeServiceMethods := _go.File_rpc_proto.Services().ByName("GnoNativeService").Methods() return &gnoNativeServiceClient{ setRemote: connect.NewClient[_go.SetRemoteRequest, _go.SetRemoteResponse]( httpClient, baseURL+GnoNativeServiceSetRemoteProcedure, - connect.WithSchema(gnoNativeServiceSetRemoteMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("SetRemote")), connect.WithClientOptions(opts...), ), getRemote: connect.NewClient[_go.GetRemoteRequest, _go.GetRemoteResponse]( httpClient, baseURL+GnoNativeServiceGetRemoteProcedure, - connect.WithSchema(gnoNativeServiceGetRemoteMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetRemote")), connect.WithClientOptions(opts...), ), setChainID: connect.NewClient[_go.SetChainIDRequest, _go.SetChainIDResponse]( httpClient, baseURL+GnoNativeServiceSetChainIDProcedure, - connect.WithSchema(gnoNativeServiceSetChainIDMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("SetChainID")), connect.WithClientOptions(opts...), ), getChainID: connect.NewClient[_go.GetChainIDRequest, _go.GetChainIDResponse]( httpClient, baseURL+GnoNativeServiceGetChainIDProcedure, - connect.WithSchema(gnoNativeServiceGetChainIDMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetChainID")), connect.WithClientOptions(opts...), ), generateRecoveryPhrase: connect.NewClient[_go.GenerateRecoveryPhraseRequest, _go.GenerateRecoveryPhraseResponse]( httpClient, baseURL+GnoNativeServiceGenerateRecoveryPhraseProcedure, - connect.WithSchema(gnoNativeServiceGenerateRecoveryPhraseMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GenerateRecoveryPhrase")), connect.WithClientOptions(opts...), ), listKeyInfo: connect.NewClient[_go.ListKeyInfoRequest, _go.ListKeyInfoResponse]( httpClient, baseURL+GnoNativeServiceListKeyInfoProcedure, - connect.WithSchema(gnoNativeServiceListKeyInfoMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("ListKeyInfo")), connect.WithClientOptions(opts...), ), hasKeyByName: connect.NewClient[_go.HasKeyByNameRequest, _go.HasKeyByNameResponse]( httpClient, baseURL+GnoNativeServiceHasKeyByNameProcedure, - connect.WithSchema(gnoNativeServiceHasKeyByNameMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("HasKeyByName")), connect.WithClientOptions(opts...), ), hasKeyByAddress: connect.NewClient[_go.HasKeyByAddressRequest, _go.HasKeyByAddressResponse]( httpClient, baseURL+GnoNativeServiceHasKeyByAddressProcedure, - connect.WithSchema(gnoNativeServiceHasKeyByAddressMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("HasKeyByAddress")), connect.WithClientOptions(opts...), ), hasKeyByNameOrAddress: connect.NewClient[_go.HasKeyByNameOrAddressRequest, _go.HasKeyByNameOrAddressResponse]( httpClient, baseURL+GnoNativeServiceHasKeyByNameOrAddressProcedure, - connect.WithSchema(gnoNativeServiceHasKeyByNameOrAddressMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("HasKeyByNameOrAddress")), connect.WithClientOptions(opts...), ), getKeyInfoByName: connect.NewClient[_go.GetKeyInfoByNameRequest, _go.GetKeyInfoByNameResponse]( httpClient, baseURL+GnoNativeServiceGetKeyInfoByNameProcedure, - connect.WithSchema(gnoNativeServiceGetKeyInfoByNameMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetKeyInfoByName")), connect.WithClientOptions(opts...), ), getKeyInfoByAddress: connect.NewClient[_go.GetKeyInfoByAddressRequest, _go.GetKeyInfoByAddressResponse]( httpClient, baseURL+GnoNativeServiceGetKeyInfoByAddressProcedure, - connect.WithSchema(gnoNativeServiceGetKeyInfoByAddressMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetKeyInfoByAddress")), connect.WithClientOptions(opts...), ), getKeyInfoByNameOrAddress: connect.NewClient[_go.GetKeyInfoByNameOrAddressRequest, _go.GetKeyInfoByNameOrAddressResponse]( httpClient, baseURL+GnoNativeServiceGetKeyInfoByNameOrAddressProcedure, - connect.WithSchema(gnoNativeServiceGetKeyInfoByNameOrAddressMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetKeyInfoByNameOrAddress")), connect.WithClientOptions(opts...), ), createAccount: connect.NewClient[_go.CreateAccountRequest, _go.CreateAccountResponse]( httpClient, baseURL+GnoNativeServiceCreateAccountProcedure, - connect.WithSchema(gnoNativeServiceCreateAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("CreateAccount")), connect.WithClientOptions(opts...), ), activateAccount: connect.NewClient[_go.ActivateAccountRequest, _go.ActivateAccountResponse]( httpClient, baseURL+GnoNativeServiceActivateAccountProcedure, - connect.WithSchema(gnoNativeServiceActivateAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("ActivateAccount")), connect.WithClientOptions(opts...), ), setPassword: connect.NewClient[_go.SetPasswordRequest, _go.SetPasswordResponse]( httpClient, baseURL+GnoNativeServiceSetPasswordProcedure, - connect.WithSchema(gnoNativeServiceSetPasswordMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("SetPassword")), connect.WithClientOptions(opts...), ), rotatePassword: connect.NewClient[_go.RotatePasswordRequest, _go.RotatePasswordResponse]( httpClient, baseURL+GnoNativeServiceRotatePasswordProcedure, - connect.WithSchema(gnoNativeServiceRotatePasswordMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("RotatePassword")), connect.WithClientOptions(opts...), ), getActivatedAccount: connect.NewClient[_go.GetActivatedAccountRequest, _go.GetActivatedAccountResponse]( httpClient, baseURL+GnoNativeServiceGetActivatedAccountProcedure, - connect.WithSchema(gnoNativeServiceGetActivatedAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetActivatedAccount")), connect.WithClientOptions(opts...), ), queryAccount: connect.NewClient[_go.QueryAccountRequest, _go.QueryAccountResponse]( httpClient, baseURL+GnoNativeServiceQueryAccountProcedure, - connect.WithSchema(gnoNativeServiceQueryAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("QueryAccount")), connect.WithClientOptions(opts...), ), deleteAccount: connect.NewClient[_go.DeleteAccountRequest, _go.DeleteAccountResponse]( httpClient, baseURL+GnoNativeServiceDeleteAccountProcedure, - connect.WithSchema(gnoNativeServiceDeleteAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("DeleteAccount")), connect.WithClientOptions(opts...), ), query: connect.NewClient[_go.QueryRequest, _go.QueryResponse]( httpClient, baseURL+GnoNativeServiceQueryProcedure, - connect.WithSchema(gnoNativeServiceQueryMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Query")), connect.WithClientOptions(opts...), ), render: connect.NewClient[_go.RenderRequest, _go.RenderResponse]( httpClient, baseURL+GnoNativeServiceRenderProcedure, - connect.WithSchema(gnoNativeServiceRenderMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Render")), connect.WithClientOptions(opts...), ), qEval: connect.NewClient[_go.QEvalRequest, _go.QEvalResponse]( httpClient, baseURL+GnoNativeServiceQEvalProcedure, - connect.WithSchema(gnoNativeServiceQEvalMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("QEval")), connect.WithClientOptions(opts...), ), call: connect.NewClient[_go.CallRequest, _go.CallResponse]( httpClient, baseURL+GnoNativeServiceCallProcedure, - connect.WithSchema(gnoNativeServiceCallMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Call")), connect.WithClientOptions(opts...), ), send: connect.NewClient[_go.SendRequest, _go.SendResponse]( httpClient, baseURL+GnoNativeServiceSendProcedure, - connect.WithSchema(gnoNativeServiceSendMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Send")), connect.WithClientOptions(opts...), ), run: connect.NewClient[_go.RunRequest, _go.RunResponse]( httpClient, baseURL+GnoNativeServiceRunProcedure, - connect.WithSchema(gnoNativeServiceRunMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Run")), connect.WithClientOptions(opts...), ), makeCallTx: connect.NewClient[_go.CallRequest, _go.MakeTxResponse]( httpClient, baseURL+GnoNativeServiceMakeCallTxProcedure, - connect.WithSchema(gnoNativeServiceMakeCallTxMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("MakeCallTx")), connect.WithClientOptions(opts...), ), makeSendTx: connect.NewClient[_go.SendRequest, _go.MakeTxResponse]( httpClient, baseURL+GnoNativeServiceMakeSendTxProcedure, - connect.WithSchema(gnoNativeServiceMakeSendTxMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("MakeSendTx")), connect.WithClientOptions(opts...), ), makeRunTx: connect.NewClient[_go.RunRequest, _go.MakeTxResponse]( httpClient, baseURL+GnoNativeServiceMakeRunTxProcedure, - connect.WithSchema(gnoNativeServiceMakeRunTxMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("MakeRunTx")), + connect.WithClientOptions(opts...), + ), + estimateGas: connect.NewClient[_go.EstimateGasRequest, _go.EstimateGasResponse]( + httpClient, + baseURL+GnoNativeServiceEstimateGasProcedure, + connect.WithSchema(gnoNativeServiceMethods.ByName("EstimateGas")), connect.WithClientOptions(opts...), ), signTx: connect.NewClient[_go.SignTxRequest, _go.SignTxResponse]( httpClient, baseURL+GnoNativeServiceSignTxProcedure, - connect.WithSchema(gnoNativeServiceSignTxMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("SignTx")), connect.WithClientOptions(opts...), ), broadcastTxCommit: connect.NewClient[_go.BroadcastTxCommitRequest, _go.BroadcastTxCommitResponse]( httpClient, baseURL+GnoNativeServiceBroadcastTxCommitProcedure, - connect.WithSchema(gnoNativeServiceBroadcastTxCommitMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("BroadcastTxCommit")), connect.WithClientOptions(opts...), ), addressToBech32: connect.NewClient[_go.AddressToBech32Request, _go.AddressToBech32Response]( httpClient, baseURL+GnoNativeServiceAddressToBech32Procedure, - connect.WithSchema(gnoNativeServiceAddressToBech32MethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("AddressToBech32")), connect.WithClientOptions(opts...), ), addressFromBech32: connect.NewClient[_go.AddressFromBech32Request, _go.AddressFromBech32Response]( httpClient, baseURL+GnoNativeServiceAddressFromBech32Procedure, - connect.WithSchema(gnoNativeServiceAddressFromBech32MethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("AddressFromBech32")), connect.WithClientOptions(opts...), ), addressFromMnemonic: connect.NewClient[_go.AddressFromMnemonicRequest, _go.AddressFromMnemonicResponse]( httpClient, baseURL+GnoNativeServiceAddressFromMnemonicProcedure, - connect.WithSchema(gnoNativeServiceAddressFromMnemonicMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("AddressFromMnemonic")), connect.WithClientOptions(opts...), ), hello: connect.NewClient[_go.HelloRequest, _go.HelloResponse]( httpClient, baseURL+GnoNativeServiceHelloProcedure, - connect.WithSchema(gnoNativeServiceHelloMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Hello")), connect.WithClientOptions(opts...), ), helloStream: connect.NewClient[_go.HelloStreamRequest, _go.HelloStreamResponse]( httpClient, baseURL+GnoNativeServiceHelloStreamProcedure, - connect.WithSchema(gnoNativeServiceHelloStreamMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("HelloStream")), connect.WithClientOptions(opts...), ), } @@ -550,6 +523,7 @@ type gnoNativeServiceClient struct { makeCallTx *connect.Client[_go.CallRequest, _go.MakeTxResponse] makeSendTx *connect.Client[_go.SendRequest, _go.MakeTxResponse] makeRunTx *connect.Client[_go.RunRequest, _go.MakeTxResponse] + estimateGas *connect.Client[_go.EstimateGasRequest, _go.EstimateGasResponse] signTx *connect.Client[_go.SignTxRequest, _go.SignTxResponse] broadcastTxCommit *connect.Client[_go.BroadcastTxCommitRequest, _go.BroadcastTxCommitResponse] addressToBech32 *connect.Client[_go.AddressToBech32Request, _go.AddressToBech32Response] @@ -699,6 +673,11 @@ func (c *gnoNativeServiceClient) MakeRunTx(ctx context.Context, req *connect.Req return c.makeRunTx.CallUnary(ctx, req) } +// EstimateGas calls land.gno.gnonative.v1.GnoNativeService.EstimateGas. +func (c *gnoNativeServiceClient) EstimateGas(ctx context.Context, req *connect.Request[_go.EstimateGasRequest]) (*connect.Response[_go.EstimateGasResponse], error) { + return c.estimateGas.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) @@ -842,6 +821,9 @@ type GnoNativeServiceHandler interface { MakeSendTx(context.Context, *connect.Request[_go.SendRequest]) (*connect.Response[_go.MakeTxResponse], error) // Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). MakeRunTx(context.Context, *connect.Request[_go.RunRequest]) (*connect.Response[_go.MakeTxResponse], error) + // EstimateGas estimate the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin. + // If UpdateTx is true, then update the transaction with the gasWanted amount. + EstimateGas(context.Context, *connect.Request[_go.EstimateGasRequest]) (*connect.Response[_go.EstimateGasResponse], error) // Sign the transaction using the account with the given address. // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. @@ -866,214 +848,221 @@ type GnoNativeServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewGnoNativeServiceHandler(svc GnoNativeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { + gnoNativeServiceMethods := _go.File_rpc_proto.Services().ByName("GnoNativeService").Methods() gnoNativeServiceSetRemoteHandler := connect.NewUnaryHandler( GnoNativeServiceSetRemoteProcedure, svc.SetRemote, - connect.WithSchema(gnoNativeServiceSetRemoteMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("SetRemote")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceGetRemoteHandler := connect.NewUnaryHandler( GnoNativeServiceGetRemoteProcedure, svc.GetRemote, - connect.WithSchema(gnoNativeServiceGetRemoteMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetRemote")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceSetChainIDHandler := connect.NewUnaryHandler( GnoNativeServiceSetChainIDProcedure, svc.SetChainID, - connect.WithSchema(gnoNativeServiceSetChainIDMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("SetChainID")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceGetChainIDHandler := connect.NewUnaryHandler( GnoNativeServiceGetChainIDProcedure, svc.GetChainID, - connect.WithSchema(gnoNativeServiceGetChainIDMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetChainID")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceGenerateRecoveryPhraseHandler := connect.NewUnaryHandler( GnoNativeServiceGenerateRecoveryPhraseProcedure, svc.GenerateRecoveryPhrase, - connect.WithSchema(gnoNativeServiceGenerateRecoveryPhraseMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GenerateRecoveryPhrase")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceListKeyInfoHandler := connect.NewUnaryHandler( GnoNativeServiceListKeyInfoProcedure, svc.ListKeyInfo, - connect.WithSchema(gnoNativeServiceListKeyInfoMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("ListKeyInfo")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceHasKeyByNameHandler := connect.NewUnaryHandler( GnoNativeServiceHasKeyByNameProcedure, svc.HasKeyByName, - connect.WithSchema(gnoNativeServiceHasKeyByNameMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("HasKeyByName")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceHasKeyByAddressHandler := connect.NewUnaryHandler( GnoNativeServiceHasKeyByAddressProcedure, svc.HasKeyByAddress, - connect.WithSchema(gnoNativeServiceHasKeyByAddressMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("HasKeyByAddress")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceHasKeyByNameOrAddressHandler := connect.NewUnaryHandler( GnoNativeServiceHasKeyByNameOrAddressProcedure, svc.HasKeyByNameOrAddress, - connect.WithSchema(gnoNativeServiceHasKeyByNameOrAddressMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("HasKeyByNameOrAddress")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceGetKeyInfoByNameHandler := connect.NewUnaryHandler( GnoNativeServiceGetKeyInfoByNameProcedure, svc.GetKeyInfoByName, - connect.WithSchema(gnoNativeServiceGetKeyInfoByNameMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetKeyInfoByName")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceGetKeyInfoByAddressHandler := connect.NewUnaryHandler( GnoNativeServiceGetKeyInfoByAddressProcedure, svc.GetKeyInfoByAddress, - connect.WithSchema(gnoNativeServiceGetKeyInfoByAddressMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetKeyInfoByAddress")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceGetKeyInfoByNameOrAddressHandler := connect.NewUnaryHandler( GnoNativeServiceGetKeyInfoByNameOrAddressProcedure, svc.GetKeyInfoByNameOrAddress, - connect.WithSchema(gnoNativeServiceGetKeyInfoByNameOrAddressMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetKeyInfoByNameOrAddress")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceCreateAccountHandler := connect.NewUnaryHandler( GnoNativeServiceCreateAccountProcedure, svc.CreateAccount, - connect.WithSchema(gnoNativeServiceCreateAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("CreateAccount")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceActivateAccountHandler := connect.NewUnaryHandler( GnoNativeServiceActivateAccountProcedure, svc.ActivateAccount, - connect.WithSchema(gnoNativeServiceActivateAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("ActivateAccount")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceSetPasswordHandler := connect.NewUnaryHandler( GnoNativeServiceSetPasswordProcedure, svc.SetPassword, - connect.WithSchema(gnoNativeServiceSetPasswordMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("SetPassword")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceRotatePasswordHandler := connect.NewUnaryHandler( GnoNativeServiceRotatePasswordProcedure, svc.RotatePassword, - connect.WithSchema(gnoNativeServiceRotatePasswordMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("RotatePassword")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceGetActivatedAccountHandler := connect.NewUnaryHandler( GnoNativeServiceGetActivatedAccountProcedure, svc.GetActivatedAccount, - connect.WithSchema(gnoNativeServiceGetActivatedAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("GetActivatedAccount")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceQueryAccountHandler := connect.NewUnaryHandler( GnoNativeServiceQueryAccountProcedure, svc.QueryAccount, - connect.WithSchema(gnoNativeServiceQueryAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("QueryAccount")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceDeleteAccountHandler := connect.NewUnaryHandler( GnoNativeServiceDeleteAccountProcedure, svc.DeleteAccount, - connect.WithSchema(gnoNativeServiceDeleteAccountMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("DeleteAccount")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceQueryHandler := connect.NewUnaryHandler( GnoNativeServiceQueryProcedure, svc.Query, - connect.WithSchema(gnoNativeServiceQueryMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Query")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceRenderHandler := connect.NewUnaryHandler( GnoNativeServiceRenderProcedure, svc.Render, - connect.WithSchema(gnoNativeServiceRenderMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Render")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceQEvalHandler := connect.NewUnaryHandler( GnoNativeServiceQEvalProcedure, svc.QEval, - connect.WithSchema(gnoNativeServiceQEvalMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("QEval")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceCallHandler := connect.NewServerStreamHandler( GnoNativeServiceCallProcedure, svc.Call, - connect.WithSchema(gnoNativeServiceCallMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Call")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceSendHandler := connect.NewServerStreamHandler( GnoNativeServiceSendProcedure, svc.Send, - connect.WithSchema(gnoNativeServiceSendMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Send")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceRunHandler := connect.NewServerStreamHandler( GnoNativeServiceRunProcedure, svc.Run, - connect.WithSchema(gnoNativeServiceRunMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Run")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceMakeCallTxHandler := connect.NewUnaryHandler( GnoNativeServiceMakeCallTxProcedure, svc.MakeCallTx, - connect.WithSchema(gnoNativeServiceMakeCallTxMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("MakeCallTx")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceMakeSendTxHandler := connect.NewUnaryHandler( GnoNativeServiceMakeSendTxProcedure, svc.MakeSendTx, - connect.WithSchema(gnoNativeServiceMakeSendTxMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("MakeSendTx")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceMakeRunTxHandler := connect.NewUnaryHandler( GnoNativeServiceMakeRunTxProcedure, svc.MakeRunTx, - connect.WithSchema(gnoNativeServiceMakeRunTxMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("MakeRunTx")), + connect.WithHandlerOptions(opts...), + ) + gnoNativeServiceEstimateGasHandler := connect.NewUnaryHandler( + GnoNativeServiceEstimateGasProcedure, + svc.EstimateGas, + connect.WithSchema(gnoNativeServiceMethods.ByName("EstimateGas")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceSignTxHandler := connect.NewUnaryHandler( GnoNativeServiceSignTxProcedure, svc.SignTx, - connect.WithSchema(gnoNativeServiceSignTxMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("SignTx")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceBroadcastTxCommitHandler := connect.NewServerStreamHandler( GnoNativeServiceBroadcastTxCommitProcedure, svc.BroadcastTxCommit, - connect.WithSchema(gnoNativeServiceBroadcastTxCommitMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("BroadcastTxCommit")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceAddressToBech32Handler := connect.NewUnaryHandler( GnoNativeServiceAddressToBech32Procedure, svc.AddressToBech32, - connect.WithSchema(gnoNativeServiceAddressToBech32MethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("AddressToBech32")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceAddressFromBech32Handler := connect.NewUnaryHandler( GnoNativeServiceAddressFromBech32Procedure, svc.AddressFromBech32, - connect.WithSchema(gnoNativeServiceAddressFromBech32MethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("AddressFromBech32")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceAddressFromMnemonicHandler := connect.NewUnaryHandler( GnoNativeServiceAddressFromMnemonicProcedure, svc.AddressFromMnemonic, - connect.WithSchema(gnoNativeServiceAddressFromMnemonicMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("AddressFromMnemonic")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceHelloHandler := connect.NewUnaryHandler( GnoNativeServiceHelloProcedure, svc.Hello, - connect.WithSchema(gnoNativeServiceHelloMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("Hello")), connect.WithHandlerOptions(opts...), ) gnoNativeServiceHelloStreamHandler := connect.NewServerStreamHandler( GnoNativeServiceHelloStreamProcedure, svc.HelloStream, - connect.WithSchema(gnoNativeServiceHelloStreamMethodDescriptor), + connect.WithSchema(gnoNativeServiceMethods.ByName("HelloStream")), connect.WithHandlerOptions(opts...), ) return "/land.gno.gnonative.v1.GnoNativeService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { @@ -1134,6 +1123,8 @@ func NewGnoNativeServiceHandler(svc GnoNativeServiceHandler, opts ...connect.Han gnoNativeServiceMakeSendTxHandler.ServeHTTP(w, r) case GnoNativeServiceMakeRunTxProcedure: gnoNativeServiceMakeRunTxHandler.ServeHTTP(w, r) + case GnoNativeServiceEstimateGasProcedure: + gnoNativeServiceEstimateGasHandler.ServeHTTP(w, r) case GnoNativeServiceSignTxProcedure: gnoNativeServiceSignTxHandler.ServeHTTP(w, r) case GnoNativeServiceBroadcastTxCommitProcedure: @@ -1269,6 +1260,10 @@ func (UnimplementedGnoNativeServiceHandler) MakeRunTx(context.Context, *connect. return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.MakeRunTx is not implemented")) } +func (UnimplementedGnoNativeServiceHandler) EstimateGas(context.Context, *connect.Request[_go.EstimateGasRequest]) (*connect.Response[_go.EstimateGasResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("land.gno.gnonative.v1.GnoNativeService.EstimateGas 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")) } diff --git a/api/gen/go/gnonativetypes.pb.go b/api/gen/go/gnonativetypes.pb.go index da3a7b9f..a8fb673a 100644 --- a/api/gen/go/gnonativetypes.pb.go +++ b/api/gen/go/gnonativetypes.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.0 +// protoc-gen-go v1.36.6 // protoc (unknown) // source: gnonativetypes.proto @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -2914,6 +2915,152 @@ func (x *SignTxResponse) GetSignedTxJson() string { return "" } +type EstimateGasRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) + TxJson string `protobuf:"bytes,1,opt,name=tx_json,json=txJson,proto3" json:"tx_json,omitempty"` + // The address of the account to sign the transaction + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // The security margin to apply to the estimated gas amount. + // This number is represents a decimal numeral value with two decimals precision, without the decimal separator. E.g. 1 means 0.01 and 10000 means 100.00. + // It will be multiplied by the estimated gas amount. + SecurityMargin uint32 `protobuf:"varint,3,opt,name=security_margin,json=securityMargin,proto3" json:"security_margin,omitempty"` + // The update boolean to update the gas wanted field in the transaction if true. + UpdateTx bool `protobuf:"varint,4,opt,name=update_tx,json=updateTx,proto3" json:"update_tx,omitempty"` + // The signer's account number on the blockchain. If 0 then query the blockchain for the value. + AccountNumber uint64 `protobuf:"varint,5,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,6,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EstimateGasRequest) Reset() { + *x = EstimateGasRequest{} + mi := &file_gnonativetypes_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EstimateGasRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EstimateGasRequest) ProtoMessage() {} + +func (x *EstimateGasRequest) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[59] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EstimateGasRequest.ProtoReflect.Descriptor instead. +func (*EstimateGasRequest) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{59} +} + +func (x *EstimateGasRequest) GetTxJson() string { + if x != nil { + return x.TxJson + } + return "" +} + +func (x *EstimateGasRequest) GetAddress() []byte { + if x != nil { + return x.Address + } + return nil +} + +func (x *EstimateGasRequest) GetSecurityMargin() uint32 { + if x != nil { + return x.SecurityMargin + } + return 0 +} + +func (x *EstimateGasRequest) GetUpdateTx() bool { + if x != nil { + return x.UpdateTx + } + return false +} + +func (x *EstimateGasRequest) GetAccountNumber() uint64 { + if x != nil { + return x.AccountNumber + } + return 0 +} + +func (x *EstimateGasRequest) GetSequenceNumber() uint64 { + if x != nil { + return x.SequenceNumber + } + return 0 +} + +type EstimateGasResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // The JSON encoding of the unsigned transaction + TxJson string `protobuf:"bytes,1,opt,name=tx_json,json=txJson,proto3" json:"tx_json,omitempty"` + // The estimated gas wanted for the transaction + GasWanted int64 `protobuf:"zigzag64,2,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EstimateGasResponse) Reset() { + *x = EstimateGasResponse{} + mi := &file_gnonativetypes_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EstimateGasResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EstimateGasResponse) ProtoMessage() {} + +func (x *EstimateGasResponse) ProtoReflect() protoreflect.Message { + mi := &file_gnonativetypes_proto_msgTypes[60] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EstimateGasResponse.ProtoReflect.Descriptor instead. +func (*EstimateGasResponse) Descriptor() ([]byte, []int) { + return file_gnonativetypes_proto_rawDescGZIP(), []int{60} +} + +func (x *EstimateGasResponse) GetTxJson() string { + if x != nil { + return x.TxJson + } + return "" +} + +func (x *EstimateGasResponse) GetGasWanted() int64 { + if x != nil { + return x.GasWanted + } + return 0 +} + type BroadcastTxCommitRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // The JSON encoding of the signed transaction (from SignTx) @@ -2924,7 +3071,7 @@ type BroadcastTxCommitRequest struct { func (x *BroadcastTxCommitRequest) Reset() { *x = BroadcastTxCommitRequest{} - mi := &file_gnonativetypes_proto_msgTypes[59] + mi := &file_gnonativetypes_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2936,7 +3083,7 @@ func (x *BroadcastTxCommitRequest) String() string { func (*BroadcastTxCommitRequest) ProtoMessage() {} func (x *BroadcastTxCommitRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[59] + mi := &file_gnonativetypes_proto_msgTypes[61] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2949,7 +3096,7 @@ func (x *BroadcastTxCommitRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BroadcastTxCommitRequest.ProtoReflect.Descriptor instead. func (*BroadcastTxCommitRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{59} + return file_gnonativetypes_proto_rawDescGZIP(), []int{61} } func (x *BroadcastTxCommitRequest) GetSignedTxJson() string { @@ -2968,7 +3115,7 @@ type BroadcastTxCommitResponse struct { func (x *BroadcastTxCommitResponse) Reset() { *x = BroadcastTxCommitResponse{} - mi := &file_gnonativetypes_proto_msgTypes[60] + mi := &file_gnonativetypes_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2980,7 +3127,7 @@ func (x *BroadcastTxCommitResponse) String() string { func (*BroadcastTxCommitResponse) ProtoMessage() {} func (x *BroadcastTxCommitResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[60] + mi := &file_gnonativetypes_proto_msgTypes[62] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2993,7 +3140,7 @@ func (x *BroadcastTxCommitResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BroadcastTxCommitResponse.ProtoReflect.Descriptor instead. func (*BroadcastTxCommitResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{60} + return file_gnonativetypes_proto_rawDescGZIP(), []int{62} } func (x *BroadcastTxCommitResponse) GetResult() []byte { @@ -3012,7 +3159,7 @@ type AddressToBech32Request struct { func (x *AddressToBech32Request) Reset() { *x = AddressToBech32Request{} - mi := &file_gnonativetypes_proto_msgTypes[61] + mi := &file_gnonativetypes_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3024,7 +3171,7 @@ func (x *AddressToBech32Request) String() string { func (*AddressToBech32Request) ProtoMessage() {} func (x *AddressToBech32Request) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[61] + mi := &file_gnonativetypes_proto_msgTypes[63] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3037,7 +3184,7 @@ func (x *AddressToBech32Request) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressToBech32Request.ProtoReflect.Descriptor instead. func (*AddressToBech32Request) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{61} + return file_gnonativetypes_proto_rawDescGZIP(), []int{63} } func (x *AddressToBech32Request) GetAddress() []byte { @@ -3056,7 +3203,7 @@ type AddressToBech32Response struct { func (x *AddressToBech32Response) Reset() { *x = AddressToBech32Response{} - mi := &file_gnonativetypes_proto_msgTypes[62] + mi := &file_gnonativetypes_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3068,7 +3215,7 @@ func (x *AddressToBech32Response) String() string { func (*AddressToBech32Response) ProtoMessage() {} func (x *AddressToBech32Response) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[62] + mi := &file_gnonativetypes_proto_msgTypes[64] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3081,7 +3228,7 @@ func (x *AddressToBech32Response) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressToBech32Response.ProtoReflect.Descriptor instead. func (*AddressToBech32Response) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{62} + return file_gnonativetypes_proto_rawDescGZIP(), []int{64} } func (x *AddressToBech32Response) GetBech32Address() string { @@ -3100,7 +3247,7 @@ type AddressFromBech32Request struct { func (x *AddressFromBech32Request) Reset() { *x = AddressFromBech32Request{} - mi := &file_gnonativetypes_proto_msgTypes[63] + mi := &file_gnonativetypes_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3112,7 +3259,7 @@ func (x *AddressFromBech32Request) String() string { func (*AddressFromBech32Request) ProtoMessage() {} func (x *AddressFromBech32Request) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[63] + mi := &file_gnonativetypes_proto_msgTypes[65] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3125,7 +3272,7 @@ func (x *AddressFromBech32Request) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromBech32Request.ProtoReflect.Descriptor instead. func (*AddressFromBech32Request) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{63} + return file_gnonativetypes_proto_rawDescGZIP(), []int{65} } func (x *AddressFromBech32Request) GetBech32Address() string { @@ -3144,7 +3291,7 @@ type AddressFromBech32Response struct { func (x *AddressFromBech32Response) Reset() { *x = AddressFromBech32Response{} - mi := &file_gnonativetypes_proto_msgTypes[64] + mi := &file_gnonativetypes_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3156,7 +3303,7 @@ func (x *AddressFromBech32Response) String() string { func (*AddressFromBech32Response) ProtoMessage() {} func (x *AddressFromBech32Response) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[64] + mi := &file_gnonativetypes_proto_msgTypes[66] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3169,7 +3316,7 @@ func (x *AddressFromBech32Response) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromBech32Response.ProtoReflect.Descriptor instead. func (*AddressFromBech32Response) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{64} + return file_gnonativetypes_proto_rawDescGZIP(), []int{66} } func (x *AddressFromBech32Response) GetAddress() []byte { @@ -3188,7 +3335,7 @@ type AddressFromMnemonicRequest struct { func (x *AddressFromMnemonicRequest) Reset() { *x = AddressFromMnemonicRequest{} - mi := &file_gnonativetypes_proto_msgTypes[65] + mi := &file_gnonativetypes_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3200,7 +3347,7 @@ func (x *AddressFromMnemonicRequest) String() string { func (*AddressFromMnemonicRequest) ProtoMessage() {} func (x *AddressFromMnemonicRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[65] + mi := &file_gnonativetypes_proto_msgTypes[67] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3213,7 +3360,7 @@ func (x *AddressFromMnemonicRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromMnemonicRequest.ProtoReflect.Descriptor instead. func (*AddressFromMnemonicRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{65} + return file_gnonativetypes_proto_rawDescGZIP(), []int{67} } func (x *AddressFromMnemonicRequest) GetMnemonic() string { @@ -3232,7 +3379,7 @@ type AddressFromMnemonicResponse struct { func (x *AddressFromMnemonicResponse) Reset() { *x = AddressFromMnemonicResponse{} - mi := &file_gnonativetypes_proto_msgTypes[66] + mi := &file_gnonativetypes_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3244,7 +3391,7 @@ func (x *AddressFromMnemonicResponse) String() string { func (*AddressFromMnemonicResponse) ProtoMessage() {} func (x *AddressFromMnemonicResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[66] + mi := &file_gnonativetypes_proto_msgTypes[68] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3257,7 +3404,7 @@ func (x *AddressFromMnemonicResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AddressFromMnemonicResponse.ProtoReflect.Descriptor instead. func (*AddressFromMnemonicResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{66} + return file_gnonativetypes_proto_rawDescGZIP(), []int{68} } func (x *AddressFromMnemonicResponse) GetAddress() []byte { @@ -3276,7 +3423,7 @@ type HelloRequest struct { func (x *HelloRequest) Reset() { *x = HelloRequest{} - mi := &file_gnonativetypes_proto_msgTypes[67] + mi := &file_gnonativetypes_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3288,7 +3435,7 @@ func (x *HelloRequest) String() string { func (*HelloRequest) ProtoMessage() {} func (x *HelloRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[67] + mi := &file_gnonativetypes_proto_msgTypes[69] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3301,7 +3448,7 @@ func (x *HelloRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead. func (*HelloRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{67} + return file_gnonativetypes_proto_rawDescGZIP(), []int{69} } func (x *HelloRequest) GetName() string { @@ -3320,7 +3467,7 @@ type HelloResponse struct { func (x *HelloResponse) Reset() { *x = HelloResponse{} - mi := &file_gnonativetypes_proto_msgTypes[68] + mi := &file_gnonativetypes_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3332,7 +3479,7 @@ func (x *HelloResponse) String() string { func (*HelloResponse) ProtoMessage() {} func (x *HelloResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[68] + mi := &file_gnonativetypes_proto_msgTypes[70] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3345,7 +3492,7 @@ func (x *HelloResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead. func (*HelloResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{68} + return file_gnonativetypes_proto_rawDescGZIP(), []int{70} } func (x *HelloResponse) GetGreeting() string { @@ -3364,7 +3511,7 @@ type HelloStreamRequest struct { func (x *HelloStreamRequest) Reset() { *x = HelloStreamRequest{} - mi := &file_gnonativetypes_proto_msgTypes[69] + mi := &file_gnonativetypes_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3376,7 +3523,7 @@ func (x *HelloStreamRequest) String() string { func (*HelloStreamRequest) ProtoMessage() {} func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[69] + mi := &file_gnonativetypes_proto_msgTypes[71] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3389,7 +3536,7 @@ func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamRequest.ProtoReflect.Descriptor instead. func (*HelloStreamRequest) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{69} + return file_gnonativetypes_proto_rawDescGZIP(), []int{71} } func (x *HelloStreamRequest) GetName() string { @@ -3408,7 +3555,7 @@ type HelloStreamResponse struct { func (x *HelloStreamResponse) Reset() { *x = HelloStreamResponse{} - mi := &file_gnonativetypes_proto_msgTypes[70] + mi := &file_gnonativetypes_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3420,7 +3567,7 @@ func (x *HelloStreamResponse) String() string { func (*HelloStreamResponse) ProtoMessage() {} func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[70] + mi := &file_gnonativetypes_proto_msgTypes[72] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3433,7 +3580,7 @@ func (x *HelloStreamResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use HelloStreamResponse.ProtoReflect.Descriptor instead. func (*HelloStreamResponse) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{70} + return file_gnonativetypes_proto_rawDescGZIP(), []int{72} } func (x *HelloStreamResponse) GetGreeting() string { @@ -3452,7 +3599,7 @@ type GNONATIVETYPES_BytesList struct { func (x *GNONATIVETYPES_BytesList) Reset() { *x = GNONATIVETYPES_BytesList{} - mi := &file_gnonativetypes_proto_msgTypes[71] + mi := &file_gnonativetypes_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3464,7 +3611,7 @@ func (x *GNONATIVETYPES_BytesList) String() string { func (*GNONATIVETYPES_BytesList) ProtoMessage() {} func (x *GNONATIVETYPES_BytesList) ProtoReflect() protoreflect.Message { - mi := &file_gnonativetypes_proto_msgTypes[71] + mi := &file_gnonativetypes_proto_msgTypes[73] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3477,7 +3624,7 @@ func (x *GNONATIVETYPES_BytesList) ProtoReflect() protoreflect.Message { // Deprecated: Use GNONATIVETYPES_BytesList.ProtoReflect.Descriptor instead. func (*GNONATIVETYPES_BytesList) Descriptor() ([]byte, []int) { - return file_gnonativetypes_proto_rawDescGZIP(), []int{71} + return file_gnonativetypes_proto_rawDescGZIP(), []int{73} } func (x *GNONATIVETYPES_BytesList) GetValue() [][]byte { @@ -3489,334 +3636,217 @@ func (x *GNONATIVETYPES_BytesList) GetValue() [][]byte { var File_gnonativetypes_proto protoreflect.FileDescriptor -var file_gnonativetypes_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, - 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x2a, 0x0a, - 0x10, 0x53, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x12, - 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0x2b, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x22, - 0x2e, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, - 0x14, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, - 0x6e, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2f, 0x0a, 0x12, 0x47, 0x65, - 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x12, 0x53, - 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, - 0x0a, 0x15, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, - 0x65, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x52, 0x6f, 0x74, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x1f, 0x0a, 0x1d, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0x38, 0x0a, 0x1e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x22, 0x64, 0x0a, - 0x07, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x17, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x22, 0x34, 0x0a, 0x04, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x64, - 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, - 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x12, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb6, 0x01, 0x0a, 0x0b, 0x42, 0x61, - 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, - 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, - 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, - 0x25, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, - 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, - 0x63, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, - 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x36, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, - 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x29, 0x0a, 0x13, 0x48, 0x61, 0x73, 0x4b, 0x65, - 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x28, 0x0a, 0x14, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x61, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x68, 0x61, 0x73, 0x22, 0x32, 0x0a, 0x16, - 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x22, 0x2b, 0x0a, 0x17, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, - 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x68, 0x61, 0x73, 0x22, 0x44, 0x0a, - 0x1c, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, - 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, - 0x68, 0x33, 0x32, 0x22, 0x31, 0x0a, 0x1d, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, - 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x03, 0x68, 0x61, 0x73, 0x22, 0x2d, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, - 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x51, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, - 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, - 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x36, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4b, - 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x22, 0x54, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, - 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, - 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x48, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, - 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, - 0x6d, 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, - 0x22, 0x5a, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, - 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0xc7, 0x01, 0x0a, - 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, 0x72, - 0x5f, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, - 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x12, 0x1a, 0x0a, 0x08, 0x6d, - 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, - 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x70, 0x33, 0x39, - 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, - 0x69, 0x70, 0x33, 0x39, 0x50, 0x61, 0x73, 0x73, 0x77, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x4e, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, - 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6b, 0x65, - 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x3e, 0x0a, 0x16, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, 0x72, 0x5f, 0x62, 0x65, 0x63, 0x68, - 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x4f, 0x72, - 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x22, 0x73, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, - 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x61, 0x73, 0x5f, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, - 0x68, 0x61, 0x73, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x36, 0x0a, 0x1a, 0x47, - 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x22, 0x77, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x35, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, - 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x68, 0x61, 0x73, - 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0b, 0x68, 0x61, 0x73, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x2f, 0x0a, 0x13, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x5d, 0x0a, - 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x61, - 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x73, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x7d, 0x0a, 0x14, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6f, 0x72, 0x5f, - 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x61, - 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, - 0x6b, 0x69, 0x70, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x27, 0x0a, 0x0d, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x46, 0x0a, 0x0d, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, - 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x28, 0x0a, - 0x0e, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x51, 0x0a, 0x0c, 0x51, 0x45, 0x76, 0x61, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x27, 0x0a, 0x0d, 0x51, 0x45, - 0x76, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x12, - 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x61, - 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6e, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x66, 0x6e, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x64, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, - 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6f, 0x69, 0x6e, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x22, 0xb4, 0x01, 0x0a, 0x0b, 0x43, 0x61, - 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x73, - 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x73, 0x46, - 0x65, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, - 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x04, - 0x6d, 0x73, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, - 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x04, 0x4d, 0x73, 0x67, 0x73, - 0x22, 0x26, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x5d, 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, 0x33, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, - 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb4, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x73, 0x5f, 0x66, - 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x73, 0x46, 0x65, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x12, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, - 0x65, 0x6d, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x61, 0x6c, - 0x6c, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x04, 0x6d, 0x73, - 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, - 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x04, 0x4d, 0x73, 0x67, 0x73, 0x22, 0x0e, - 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, - 0x0a, 0x06, 0x4d, 0x73, 0x67, 0x52, 0x75, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, - 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x73, 0x65, 0x6e, 0x64, 0x22, 0xb2, 0x01, 0x0a, 0x0a, 0x52, 0x75, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x73, 0x5f, 0x66, 0x65, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x67, 0x61, 0x73, 0x46, 0x65, 0x65, 0x12, 0x1d, - 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x77, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x12, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, - 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x61, 0x6c, 0x6c, 0x65, - 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, - 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x52, 0x75, 0x6e, 0x52, 0x04, 0x4d, 0x73, 0x67, 0x73, 0x22, 0x25, 0x0a, 0x0b, 0x52, - 0x75, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x22, 0x29, 0x0a, 0x0e, 0x4d, 0x61, 0x6b, 0x65, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x78, 0x4a, 0x73, 0x6f, 0x6e, 0x22, 0x92, 0x01, - 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x17, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x74, 0x78, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0e, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x22, 0x31, 0x0a, 0x0e, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, - 0x78, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x78, - 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x18, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, - 0x73, 0x74, 0x54, 0x78, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1f, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x6a, - 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x78, 0x5f, 0x6a, 0x73, - 0x6f, 0x6e, 0x22, 0x33, 0x0a, 0x19, 0x42, 0x72, 0x6f, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x54, - 0x78, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x32, 0x0a, 0x16, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x40, 0x0a, 0x17, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x41, 0x0a, - 0x18, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x42, 0x65, 0x63, 0x68, - 0x33, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x65, 0x63, - 0x68, 0x33, 0x32, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x22, 0x35, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x42, - 0x65, 0x63, 0x68, 0x33, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x38, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, - 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, - 0x63, 0x22, 0x37, 0x0a, 0x1b, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x72, 0x6f, 0x6d, - 0x4d, 0x6e, 0x65, 0x6d, 0x6f, 0x6e, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, - 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2b, - 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x47, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x28, 0x0a, 0x12, 0x48, - 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x13, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x47, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x30, 0x0a, 0x18, 0x47, 0x4e, 0x4f, 0x4e, - 0x41, 0x54, 0x49, 0x56, 0x45, 0x54, 0x59, 0x50, 0x45, 0x53, 0x5f, 0x42, 0x79, 0x74, 0x65, 0x73, - 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0c, 0x52, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 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, -} +const file_gnonativetypes_proto_rawDesc = "" + + "\n" + + "\x14gnonativetypes.proto\x12\x15land.gno.gnonative.v1\"*\n" + + "\x10SetRemoteRequest\x12\x16\n" + + "\x06remote\x18\x01 \x01(\tR\x06remote\"\x13\n" + + "\x11SetRemoteResponse\"\x12\n" + + "\x10GetRemoteRequest\"+\n" + + "\x11GetRemoteResponse\x12\x16\n" + + "\x06remote\x18\x01 \x01(\tR\x06remote\".\n" + + "\x11SetChainIDRequest\x12\x19\n" + + "\bchain_id\x18\x01 \x01(\tR\achainId\"\x14\n" + + "\x12SetChainIDResponse\"\x13\n" + + "\x11GetChainIDRequest\"/\n" + + "\x12GetChainIDResponse\x12\x19\n" + + "\bchain_id\x18\x01 \x01(\tR\achainId\"J\n" + + "\x12SetPasswordRequest\x12\x1a\n" + + "\bpassword\x18\x01 \x01(\tR\bpassword\x12\x18\n" + + "\aaddress\x18\x02 \x01(\fR\aaddress\"\x15\n" + + "\x13SetPasswordResponse\"X\n" + + "\x15RotatePasswordRequest\x12!\n" + + "\fnew_password\x18\x01 \x01(\tR\vnewPassword\x12\x1c\n" + + "\taddresses\x18\x02 \x03(\fR\taddresses\"\x18\n" + + "\x16RotatePasswordResponse\"\x1f\n" + + "\x1dGenerateRecoveryPhraseRequest\"8\n" + + "\x1eGenerateRecoveryPhraseResponse\x12\x16\n" + + "\x06phrase\x18\x01 \x01(\tR\x06phrase\"d\n" + + "\aKeyInfo\x12\x12\n" + + "\x04type\x18\x01 \x01(\rR\x04type\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12\x17\n" + + "\apub_key\x18\x03 \x01(\fR\x06pubKey\x12\x18\n" + + "\aaddress\x18\x04 \x01(\fR\aaddress\"4\n" + + "\x04Coin\x12\x14\n" + + "\x05denom\x18\x01 \x01(\tR\x05denom\x12\x16\n" + + "\x06amount\x18\x02 \x01(\x12R\x06amount\"\xb6\x01\n" + + "\vBaseAccount\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\x121\n" + + "\x05coins\x18\x02 \x03(\v2\x1b.land.gno.gnonative.v1.CoinR\x05coins\x12\x17\n" + + "\apub_key\x18\x03 \x01(\fR\x06pubKey\x12%\n" + + "\x0eaccount_number\x18\x04 \x01(\x04R\raccountNumber\x12\x1a\n" + + "\bsequence\x18\x05 \x01(\x04R\bsequence\"\x14\n" + + "\x12ListKeyInfoRequest\"M\n" + + "\x13ListKeyInfoResponse\x126\n" + + "\x04keys\x18\x01 \x03(\v2\x1e.land.gno.gnonative.v1.KeyInfoR\bkey_info\")\n" + + "\x13HasKeyByNameRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"(\n" + + "\x14HasKeyByNameResponse\x12\x10\n" + + "\x03has\x18\x01 \x01(\bR\x03has\"2\n" + + "\x16HasKeyByAddressRequest\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\"+\n" + + "\x17HasKeyByAddressResponse\x12\x10\n" + + "\x03has\x18\x01 \x01(\bR\x03has\"D\n" + + "\x1cHasKeyByNameOrAddressRequest\x12$\n" + + "\x0ename_or_bech32\x18\x01 \x01(\tR\fnameOrBech32\"1\n" + + "\x1dHasKeyByNameOrAddressResponse\x12\x10\n" + + "\x03has\x18\x01 \x01(\bR\x03has\"-\n" + + "\x17GetKeyInfoByNameRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\"Q\n" + + "\x18GetKeyInfoByNameResponse\x125\n" + + "\x03key\x18\x01 \x01(\v2\x1e.land.gno.gnonative.v1.KeyInfoR\bkey_info\"6\n" + + "\x1aGetKeyInfoByAddressRequest\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\"T\n" + + "\x1bGetKeyInfoByAddressResponse\x125\n" + + "\x03key\x18\x01 \x01(\v2\x1e.land.gno.gnonative.v1.KeyInfoR\bkey_info\"H\n" + + " GetKeyInfoByNameOrAddressRequest\x12$\n" + + "\x0ename_or_bech32\x18\x01 \x01(\tR\fnameOrBech32\"Z\n" + + "!GetKeyInfoByNameOrAddressResponse\x125\n" + + "\x03key\x18\x01 \x01(\v2\x1e.land.gno.gnonative.v1.KeyInfoR\bkey_info\"\xc7\x01\n" + + "\x14CreateAccountRequest\x12$\n" + + "\x0ename_or_bech32\x18\x01 \x01(\tR\fnameOrBech32\x12\x1a\n" + + "\bmnemonic\x18\x02 \x01(\tR\bmnemonic\x12!\n" + + "\fbip39_passwd\x18\x03 \x01(\tR\vbip39Passwd\x12\x1a\n" + + "\bpassword\x18\x04 \x01(\tR\bpassword\x12\x18\n" + + "\aaccount\x18\x05 \x01(\rR\aaccount\x12\x14\n" + + "\x05index\x18\x06 \x01(\rR\x05index\"N\n" + + "\x15CreateAccountResponse\x125\n" + + "\x03key\x18\x01 \x01(\v2\x1e.land.gno.gnonative.v1.KeyInfoR\bkey_info\">\n" + + "\x16ActivateAccountRequest\x12$\n" + + "\x0ename_or_bech32\x18\x01 \x01(\tR\fnameOrBech32\"s\n" + + "\x17ActivateAccountResponse\x125\n" + + "\x03key\x18\x01 \x01(\v2\x1e.land.gno.gnonative.v1.KeyInfoR\bkey_info\x12!\n" + + "\fhas_password\x18\x02 \x01(\bR\vhasPassword\"6\n" + + "\x1aGetActivatedAccountRequest\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\"w\n" + + "\x1bGetActivatedAccountResponse\x125\n" + + "\x03key\x18\x01 \x01(\v2\x1e.land.gno.gnonative.v1.KeyInfoR\bkey_info\x12!\n" + + "\fhas_password\x18\x02 \x01(\bR\vhasPassword\"/\n" + + "\x13QueryAccountRequest\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\"]\n" + + "\x14QueryAccountResponse\x12E\n" + + "\faccount_info\x18\x01 \x01(\v2\".land.gno.gnonative.v1.BaseAccountR\vaccountInfo\"}\n" + + "\x14DeleteAccountRequest\x12$\n" + + "\x0ename_or_bech32\x18\x01 \x01(\tR\fnameOrBech32\x12\x1a\n" + + "\bpassword\x18\x02 \x01(\tR\bpassword\x12#\n" + + "\rskip_password\x18\x03 \x01(\bR\fskipPassword\"\x17\n" + + "\x15DeleteAccountResponse\"6\n" + + "\fQueryRequest\x12\x12\n" + + "\x04path\x18\x01 \x01(\tR\x04path\x12\x12\n" + + "\x04data\x18\x02 \x01(\fR\x04data\"'\n" + + "\rQueryResponse\x12\x16\n" + + "\x06result\x18\x01 \x01(\fR\x06result\"F\n" + + "\rRenderRequest\x12!\n" + + "\fpackage_path\x18\x01 \x01(\tR\vpackagePath\x12\x12\n" + + "\x04args\x18\x02 \x01(\tR\x04args\"(\n" + + "\x0eRenderResponse\x12\x16\n" + + "\x06result\x18\x01 \x01(\tR\x06result\"Q\n" + + "\fQEvalRequest\x12!\n" + + "\fpackage_path\x18\x01 \x01(\tR\vpackagePath\x12\x1e\n" + + "\n" + + "expression\x18\x02 \x01(\tR\n" + + "expression\"'\n" + + "\rQEvalResponse\x12\x16\n" + + "\x06result\x18\x01 \x01(\tR\x06result\"\x83\x01\n" + + "\aMsgCall\x12!\n" + + "\fpackage_path\x18\x01 \x01(\tR\vpackagePath\x12\x10\n" + + "\x03fnc\x18\x02 \x01(\tR\x03fnc\x12\x12\n" + + "\x04args\x18\x03 \x03(\tR\x04args\x12/\n" + + "\x04send\x18\x04 \x03(\v2\x1b.land.gno.gnonative.v1.CoinR\x04send\"\xb4\x01\n" + + "\vCallRequest\x12\x17\n" + + "\agas_fee\x18\x01 \x01(\tR\x06gasFee\x12\x1d\n" + + "\n" + + "gas_wanted\x18\x02 \x01(\x12R\tgasWanted\x12\x12\n" + + "\x04memo\x18\x03 \x01(\tR\x04memo\x12%\n" + + "\x0ecaller_address\x18\x04 \x01(\fR\rcallerAddress\x122\n" + + "\x04msgs\x18\x05 \x03(\v2\x1e.land.gno.gnonative.v1.MsgCallR\x04Msgs\"&\n" + + "\fCallResponse\x12\x16\n" + + "\x06result\x18\x01 \x01(\fR\x06result\"]\n" + + "\aMsgSend\x12\x1d\n" + + "\n" + + "to_address\x18\x01 \x01(\fR\ttoAddress\x123\n" + + "\x06amount\x18\x02 \x03(\v2\x1b.land.gno.gnonative.v1.CoinR\x06amount\"\xb4\x01\n" + + "\vSendRequest\x12\x17\n" + + "\agas_fee\x18\x01 \x01(\tR\x06gasFee\x12\x1d\n" + + "\n" + + "gas_wanted\x18\x02 \x01(\x12R\tgasWanted\x12\x12\n" + + "\x04memo\x18\x03 \x01(\tR\x04memo\x12%\n" + + "\x0ecaller_address\x18\x04 \x01(\fR\rcallerAddress\x122\n" + + "\x04msgs\x18\x05 \x03(\v2\x1e.land.gno.gnonative.v1.MsgSendR\x04Msgs\"\x0e\n" + + "\fSendResponse\"6\n" + + "\x06MsgRun\x12\x18\n" + + "\apackage\x18\x01 \x01(\tR\apackage\x12\x12\n" + + "\x04send\x18\x02 \x01(\tR\x04send\"\xb2\x01\n" + + "\n" + + "RunRequest\x12\x17\n" + + "\agas_fee\x18\x01 \x01(\tR\x06gasFee\x12\x1d\n" + + "\n" + + "gas_wanted\x18\x02 \x01(\x12R\tgasWanted\x12\x12\n" + + "\x04memo\x18\x03 \x01(\tR\x04memo\x12%\n" + + "\x0ecaller_address\x18\x04 \x01(\fR\rcallerAddress\x121\n" + + "\x04msgs\x18\x05 \x03(\v2\x1d.land.gno.gnonative.v1.MsgRunR\x04Msgs\"%\n" + + "\vRunResponse\x12\x16\n" + + "\x06result\x18\x01 \x01(\tR\x06result\")\n" + + "\x0eMakeTxResponse\x12\x17\n" + + "\atx_json\x18\x01 \x01(\tR\x06txJson\"\x92\x01\n" + + "\rSignTxRequest\x12\x17\n" + + "\atx_json\x18\x01 \x01(\tR\x06txJson\x12\x18\n" + + "\aaddress\x18\x02 \x01(\fR\aaddress\x12%\n" + + "\x0eaccount_number\x18\x03 \x01(\x04R\raccountNumber\x12'\n" + + "\x0fsequence_number\x18\x04 \x01(\x04R\x0esequenceNumber\"1\n" + + "\x0eSignTxResponse\x12\x1f\n" + + "\x0esigned_tx_json\x18\x01 \x01(\tR\atx_json\"\xdd\x01\n" + + "\x12EstimateGasRequest\x12\x17\n" + + "\atx_json\x18\x01 \x01(\tR\x06txJson\x12\x18\n" + + "\aaddress\x18\x02 \x01(\fR\aaddress\x12'\n" + + "\x0fsecurity_margin\x18\x03 \x01(\rR\x0esecurityMargin\x12\x1b\n" + + "\tupdate_tx\x18\x04 \x01(\bR\bupdateTx\x12%\n" + + "\x0eaccount_number\x18\x05 \x01(\x04R\raccountNumber\x12'\n" + + "\x0fsequence_number\x18\x06 \x01(\x04R\x0esequenceNumber\"M\n" + + "\x13EstimateGasResponse\x12\x17\n" + + "\atx_json\x18\x01 \x01(\tR\x06txJson\x12\x1d\n" + + "\n" + + "gas_wanted\x18\x02 \x01(\x12R\tgasWanted\";\n" + + "\x18BroadcastTxCommitRequest\x12\x1f\n" + + "\x0esigned_tx_json\x18\x01 \x01(\tR\atx_json\"3\n" + + "\x19BroadcastTxCommitResponse\x12\x16\n" + + "\x06result\x18\x01 \x01(\fR\x06result\"2\n" + + "\x16AddressToBech32Request\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\"@\n" + + "\x17AddressToBech32Response\x12%\n" + + "\x0ebech32_address\x18\x01 \x01(\tR\rbech32Address\"A\n" + + "\x18AddressFromBech32Request\x12%\n" + + "\x0ebech32_address\x18\x01 \x01(\tR\rbech32Address\"5\n" + + "\x19AddressFromBech32Response\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\"8\n" + + "\x1aAddressFromMnemonicRequest\x12\x1a\n" + + "\bmnemonic\x18\x01 \x01(\tR\bmnemonic\"7\n" + + "\x1bAddressFromMnemonicResponse\x12\x18\n" + + "\aaddress\x18\x01 \x01(\fR\aaddress\"\"\n" + + "\fHelloRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04Name\"+\n" + + "\rHelloResponse\x12\x1a\n" + + "\bgreeting\x18\x01 \x01(\tR\bGreeting\"(\n" + + "\x12HelloStreamRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04Name\"1\n" + + "\x13HelloStreamResponse\x12\x1a\n" + + "\bgreeting\x18\x01 \x01(\tR\bGreeting\"0\n" + + "\x18GNONATIVETYPES_BytesList\x12\x14\n" + + "\x05Value\x18\x01 \x03(\fR\x05ValueB)Z'github.com/gnolang/gnonative/api/gen/gob\x06proto3" var ( file_gnonativetypes_proto_rawDescOnce sync.Once - file_gnonativetypes_proto_rawDescData = file_gnonativetypes_proto_rawDesc + file_gnonativetypes_proto_rawDescData []byte ) func file_gnonativetypes_proto_rawDescGZIP() []byte { file_gnonativetypes_proto_rawDescOnce.Do(func() { - file_gnonativetypes_proto_rawDescData = protoimpl.X.CompressGZIP(file_gnonativetypes_proto_rawDescData) + file_gnonativetypes_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_gnonativetypes_proto_rawDesc), len(file_gnonativetypes_proto_rawDesc))) }) return file_gnonativetypes_proto_rawDescData } -var file_gnonativetypes_proto_msgTypes = make([]protoimpl.MessageInfo, 72) +var file_gnonativetypes_proto_msgTypes = make([]protoimpl.MessageInfo, 74) var file_gnonativetypes_proto_goTypes = []any{ (*SetRemoteRequest)(nil), // 0: land.gno.gnonative.v1.SetRemoteRequest (*SetRemoteResponse)(nil), // 1: land.gno.gnonative.v1.SetRemoteResponse @@ -3877,19 +3907,21 @@ var file_gnonativetypes_proto_goTypes = []any{ (*MakeTxResponse)(nil), // 56: land.gno.gnonative.v1.MakeTxResponse (*SignTxRequest)(nil), // 57: land.gno.gnonative.v1.SignTxRequest (*SignTxResponse)(nil), // 58: land.gno.gnonative.v1.SignTxResponse - (*BroadcastTxCommitRequest)(nil), // 59: land.gno.gnonative.v1.BroadcastTxCommitRequest - (*BroadcastTxCommitResponse)(nil), // 60: land.gno.gnonative.v1.BroadcastTxCommitResponse - (*AddressToBech32Request)(nil), // 61: land.gno.gnonative.v1.AddressToBech32Request - (*AddressToBech32Response)(nil), // 62: land.gno.gnonative.v1.AddressToBech32Response - (*AddressFromBech32Request)(nil), // 63: land.gno.gnonative.v1.AddressFromBech32Request - (*AddressFromBech32Response)(nil), // 64: land.gno.gnonative.v1.AddressFromBech32Response - (*AddressFromMnemonicRequest)(nil), // 65: land.gno.gnonative.v1.AddressFromMnemonicRequest - (*AddressFromMnemonicResponse)(nil), // 66: land.gno.gnonative.v1.AddressFromMnemonicResponse - (*HelloRequest)(nil), // 67: land.gno.gnonative.v1.HelloRequest - (*HelloResponse)(nil), // 68: land.gno.gnonative.v1.HelloResponse - (*HelloStreamRequest)(nil), // 69: land.gno.gnonative.v1.HelloStreamRequest - (*HelloStreamResponse)(nil), // 70: land.gno.gnonative.v1.HelloStreamResponse - (*GNONATIVETYPES_BytesList)(nil), // 71: land.gno.gnonative.v1.GNONATIVETYPES_BytesList + (*EstimateGasRequest)(nil), // 59: land.gno.gnonative.v1.EstimateGasRequest + (*EstimateGasResponse)(nil), // 60: land.gno.gnonative.v1.EstimateGasResponse + (*BroadcastTxCommitRequest)(nil), // 61: land.gno.gnonative.v1.BroadcastTxCommitRequest + (*BroadcastTxCommitResponse)(nil), // 62: land.gno.gnonative.v1.BroadcastTxCommitResponse + (*AddressToBech32Request)(nil), // 63: land.gno.gnonative.v1.AddressToBech32Request + (*AddressToBech32Response)(nil), // 64: land.gno.gnonative.v1.AddressToBech32Response + (*AddressFromBech32Request)(nil), // 65: land.gno.gnonative.v1.AddressFromBech32Request + (*AddressFromBech32Response)(nil), // 66: land.gno.gnonative.v1.AddressFromBech32Response + (*AddressFromMnemonicRequest)(nil), // 67: land.gno.gnonative.v1.AddressFromMnemonicRequest + (*AddressFromMnemonicResponse)(nil), // 68: land.gno.gnonative.v1.AddressFromMnemonicResponse + (*HelloRequest)(nil), // 69: land.gno.gnonative.v1.HelloRequest + (*HelloResponse)(nil), // 70: land.gno.gnonative.v1.HelloResponse + (*HelloStreamRequest)(nil), // 71: land.gno.gnonative.v1.HelloStreamRequest + (*HelloStreamResponse)(nil), // 72: land.gno.gnonative.v1.HelloStreamResponse + (*GNONATIVETYPES_BytesList)(nil), // 73: land.gno.gnonative.v1.GNONATIVETYPES_BytesList } var file_gnonativetypes_proto_depIdxs = []int32{ 15, // 0: land.gno.gnonative.v1.BaseAccount.coins:type_name -> land.gno.gnonative.v1.Coin @@ -3922,9 +3954,9 @@ func file_gnonativetypes_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_gnonativetypes_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_gnonativetypes_proto_rawDesc), len(file_gnonativetypes_proto_rawDesc)), NumEnums: 0, - NumMessages: 72, + NumMessages: 74, NumExtensions: 0, NumServices: 0, }, @@ -3933,7 +3965,6 @@ func file_gnonativetypes_proto_init() { MessageInfos: file_gnonativetypes_proto_msgTypes, }.Build() File_gnonativetypes_proto = out.File - file_gnonativetypes_proto_rawDesc = nil file_gnonativetypes_proto_goTypes = nil file_gnonativetypes_proto_depIdxs = nil } diff --git a/api/gen/go/rpc.pb.go b/api/gen/go/rpc.pb.go index 9cadd8bd..3a09b23b 100644 --- a/api/gen/go/rpc.pb.go +++ b/api/gen/go/rpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.0 +// protoc-gen-go v1.36.6 // protoc (unknown) // source: rpc.proto @@ -11,6 +11,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -239,311 +240,99 @@ func (x *ErrDetails) GetCodes() []ErrCode { var File_rpc_proto protoreflect.FileDescriptor -var file_rpc_proto_rawDesc = []byte{ - 0x0a, 0x09, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x61, 0x6e, - 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x42, 0x0a, 0x0a, 0x45, 0x72, 0x72, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0e, 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, 0x45, 0x72, - 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x2a, 0xb4, 0x06, 0x0a, - 0x07, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x6e, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x4f, 0x44, 0x4f, 0x10, - 0x01, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x4e, 0x6f, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x49, - 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x72, 0x72, - 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x10, 0x64, 0x12, 0x18, - 0x0a, 0x14, 0x45, 0x72, 0x72, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x72, 0x75, 0x70, 0x74, 0x65, 0x64, 0x10, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x4d, - 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x10, 0x66, 0x12, 0x14, 0x0a, - 0x10, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x10, 0x67, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x72, 0x72, 0x44, 0x65, 0x73, 0x65, 0x72, 0x69, - 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x68, 0x12, 0x12, 0x0a, 0x0e, 0x45, - 0x72, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x10, 0x69, 0x12, - 0x10, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x10, - 0x6a, 0x12, 0x1c, 0x0a, 0x17, 0x45, 0x72, 0x72, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, - 0x79, 0x54, 0x79, 0x70, 0x65, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x96, 0x01, 0x12, - 0x19, 0x0a, 0x14, 0x45, 0x72, 0x72, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x4e, - 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0x97, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x45, 0x72, - 0x72, 0x4e, 0x6f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x10, 0x98, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x52, 0x75, 0x6e, 0x47, 0x52, 0x50, - 0x43, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x10, 0x99, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x45, 0x72, - 0x72, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x65, - 0x64, 0x10, 0x9a, 0x01, 0x12, 0x10, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x54, 0x78, 0x44, 0x65, 0x63, - 0x6f, 0x64, 0x65, 0x10, 0xc8, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x10, 0xc9, 0x01, 0x12, - 0x14, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x55, 0x6e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x65, 0x64, 0x10, 0xca, 0x01, 0x12, 0x19, 0x0a, 0x14, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x73, 0x75, - 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6e, 0x64, 0x73, 0x10, 0xcb, 0x01, - 0x12, 0x16, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x10, 0xcc, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x49, - 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x10, 0xcd, 0x01, - 0x12, 0x16, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x10, 0xce, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x49, - 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x10, 0xcf, 0x01, 0x12, - 0x19, 0x0a, 0x14, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x73, 0x75, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, - 0x6e, 0x74, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x10, 0xd0, 0x01, 0x12, 0x14, 0x0a, 0x0f, 0x45, 0x72, - 0x72, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x10, 0xd1, 0x01, - 0x12, 0x18, 0x0a, 0x13, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x47, 0x61, - 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x10, 0xd2, 0x01, 0x12, 0x10, 0x0a, 0x0b, 0x45, 0x72, - 0x72, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x47, 0x61, 0x73, 0x10, 0xd3, 0x01, 0x12, 0x14, 0x0a, 0x0f, - 0x45, 0x72, 0x72, 0x4d, 0x65, 0x6d, 0x6f, 0x54, 0x6f, 0x6f, 0x4c, 0x61, 0x72, 0x67, 0x65, 0x10, - 0xd4, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x73, 0x75, 0x66, 0x66, 0x69, - 0x63, 0x69, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, 0x10, 0xd5, 0x01, 0x12, 0x19, 0x0a, 0x14, 0x45, - 0x72, 0x72, 0x54, 0x6f, 0x6f, 0x4d, 0x61, 0x6e, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x73, 0x10, 0xd6, 0x01, 0x12, 0x14, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x4e, 0x6f, 0x53, - 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x10, 0xd7, 0x01, 0x12, 0x13, 0x0a, 0x0e, - 0x45, 0x72, 0x72, 0x47, 0x61, 0x73, 0x4f, 0x76, 0x65, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x10, 0xd8, - 0x01, 0x12, 0x16, 0x0a, 0x11, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x50, - 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, 0xe3, 0x1c, 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, - 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, - 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x09, 0x47, 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, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, - 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x12, 0x28, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, - 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x29, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, - 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, - 0x6e, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0a, 0x47, - 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x12, 0x28, 0x2e, 0x6c, 0x61, 0x6e, 0x64, - 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, - 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, - 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x85, - 0x01, 0x0a, 0x16, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, - 0x65, 0x72, 0x79, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x12, 0x34, 0x2e, 0x6c, 0x61, 0x6e, 0x64, - 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, - 0x72, 0x79, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x35, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, - 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, - 0x79, 0x49, 0x6e, 0x66, 0x6f, 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, 0x4c, 0x69, - 0x73, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 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, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x0c, - 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x2e, 0x6c, - 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, - 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x0f, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, - 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 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, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 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, - 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x15, 0x48, 0x61, 0x73, 0x4b, - 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x33, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, - 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x61, 0x73, 0x4b, 0x65, 0x79, - 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, - 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, - 0x61, 0x73, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x10, - 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x2e, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, - 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, - 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2f, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, - 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, - 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x7c, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, - 0x79, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, - 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 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, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x8e, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x37, 0x2e, - 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, - 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, - 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x4f, - 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x6a, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x2b, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, - 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, - 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x0f, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x2d, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, - 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, - 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, - 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, - 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x29, 0x2e, - 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, - 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x0e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2c, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, - 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x6f, 0x74, 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, - 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x74, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x31, 0x2e, 0x6c, 0x61, 0x6e, - 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, - 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x67, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x2a, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, - 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, - 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0d, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2b, 0x2e, 0x6c, 0x61, - 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6c, 0x61, 0x6e, 0x64, 0x2e, - 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 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, 0x51, 0x75, 0x65, 0x72, 0x79, 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, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x06, 0x52, 0x65, - 0x6e, 0x64, 0x65, 0x72, 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, 0x52, 0x65, 0x6e, - 0x64, 0x65, 0x72, 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, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x52, 0x0a, 0x05, 0x51, 0x45, 0x76, 0x61, 0x6c, 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, 0x51, 0x45, 0x76, 0x61, 0x6c, 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, 0x51, 0x45, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x04, 0x43, 0x61, 0x6c, 0x6c, 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, 0x23, 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, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x04, 0x53, 0x65, 0x6e, 0x64, - 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, 0x23, 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, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x4e, 0x0a, 0x03, 0x52, - 0x75, 0x6e, 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, 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, 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, - 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, 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, -} +const file_rpc_proto_rawDesc = "" + + "\n" + + "\trpc.proto\x12\x15land.gno.gnonative.v1\x1a\x14gnonativetypes.proto\"B\n" + + "\n" + + "ErrDetails\x124\n" + + "\x05codes\x18\x01 \x03(\x0e2\x1e.land.gno.gnonative.v1.ErrCodeR\x05codes*\xb4\x06\n" + + "\aErrCode\x12\r\n" + + "\tUndefined\x10\x00\x12\b\n" + + "\x04TODO\x10\x01\x12\x15\n" + + "\x11ErrNotImplemented\x10\x02\x12\x0f\n" + + "\vErrInternal\x10\x03\x12\x13\n" + + "\x0fErrInvalidInput\x10d\x12\x18\n" + + "\x14ErrBridgeInterrupted\x10e\x12\x13\n" + + "\x0fErrMissingInput\x10f\x12\x14\n" + + "\x10ErrSerialization\x10g\x12\x16\n" + + "\x12ErrDeserialization\x10h\x12\x12\n" + + "\x0eErrInitService\x10i\x12\x10\n" + + "\fErrSetRemote\x10j\x12\x1c\n" + + "\x17ErrCryptoKeyTypeUnknown\x10\x96\x01\x12\x19\n" + + "\x14ErrCryptoKeyNotFound\x10\x97\x01\x12\x17\n" + + "\x12ErrNoActiveAccount\x10\x98\x01\x12\x15\n" + + "\x10ErrRunGRPCServer\x10\x99\x01\x12\x18\n" + + "\x13ErrDecryptionFailed\x10\x9a\x01\x12\x10\n" + + "\vErrTxDecode\x10\xc8\x01\x12\x17\n" + + "\x12ErrInvalidSequence\x10\xc9\x01\x12\x14\n" + + "\x0fErrUnauthorized\x10\xca\x01\x12\x19\n" + + "\x14ErrInsufficientFunds\x10\xcb\x01\x12\x16\n" + + "\x11ErrUnknownRequest\x10\xcc\x01\x12\x16\n" + + "\x11ErrInvalidAddress\x10\xcd\x01\x12\x16\n" + + "\x11ErrUnknownAddress\x10\xce\x01\x12\x15\n" + + "\x10ErrInvalidPubKey\x10\xcf\x01\x12\x19\n" + + "\x14ErrInsufficientCoins\x10\xd0\x01\x12\x14\n" + + "\x0fErrInvalidCoins\x10\xd1\x01\x12\x18\n" + + "\x13ErrInvalidGasWanted\x10\xd2\x01\x12\x10\n" + + "\vErrOutOfGas\x10\xd3\x01\x12\x14\n" + + "\x0fErrMemoTooLarge\x10\xd4\x01\x12\x17\n" + + "\x12ErrInsufficientFee\x10\xd5\x01\x12\x19\n" + + "\x14ErrTooManySignatures\x10\xd6\x01\x12\x14\n" + + "\x0fErrNoSignatures\x10\xd7\x01\x12\x13\n" + + "\x0eErrGasOverflow\x10\xd8\x01\x12\x16\n" + + "\x11ErrInvalidPkgPath\x10\xd9\x01\x12\x13\n" + + "\x0eErrInvalidStmt\x10\xda\x01\x12\x13\n" + + "\x0eErrInvalidExpr\x10\xdb\x012\xc9\x1d\n" + + "\x10GnoNativeService\x12^\n" + + "\tSetRemote\x12'.land.gno.gnonative.v1.SetRemoteRequest\x1a(.land.gno.gnonative.v1.SetRemoteResponse\x12^\n" + + "\tGetRemote\x12'.land.gno.gnonative.v1.GetRemoteRequest\x1a(.land.gno.gnonative.v1.GetRemoteResponse\x12a\n" + + "\n" + + "SetChainID\x12(.land.gno.gnonative.v1.SetChainIDRequest\x1a).land.gno.gnonative.v1.SetChainIDResponse\x12a\n" + + "\n" + + "GetChainID\x12(.land.gno.gnonative.v1.GetChainIDRequest\x1a).land.gno.gnonative.v1.GetChainIDResponse\x12\x85\x01\n" + + "\x16GenerateRecoveryPhrase\x124.land.gno.gnonative.v1.GenerateRecoveryPhraseRequest\x1a5.land.gno.gnonative.v1.GenerateRecoveryPhraseResponse\x12d\n" + + "\vListKeyInfo\x12).land.gno.gnonative.v1.ListKeyInfoRequest\x1a*.land.gno.gnonative.v1.ListKeyInfoResponse\x12g\n" + + "\fHasKeyByName\x12*.land.gno.gnonative.v1.HasKeyByNameRequest\x1a+.land.gno.gnonative.v1.HasKeyByNameResponse\x12p\n" + + "\x0fHasKeyByAddress\x12-.land.gno.gnonative.v1.HasKeyByAddressRequest\x1a..land.gno.gnonative.v1.HasKeyByAddressResponse\x12\x82\x01\n" + + "\x15HasKeyByNameOrAddress\x123.land.gno.gnonative.v1.HasKeyByNameOrAddressRequest\x1a4.land.gno.gnonative.v1.HasKeyByNameOrAddressResponse\x12s\n" + + "\x10GetKeyInfoByName\x12..land.gno.gnonative.v1.GetKeyInfoByNameRequest\x1a/.land.gno.gnonative.v1.GetKeyInfoByNameResponse\x12|\n" + + "\x13GetKeyInfoByAddress\x121.land.gno.gnonative.v1.GetKeyInfoByAddressRequest\x1a2.land.gno.gnonative.v1.GetKeyInfoByAddressResponse\x12\x8e\x01\n" + + "\x19GetKeyInfoByNameOrAddress\x127.land.gno.gnonative.v1.GetKeyInfoByNameOrAddressRequest\x1a8.land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse\x12j\n" + + "\rCreateAccount\x12+.land.gno.gnonative.v1.CreateAccountRequest\x1a,.land.gno.gnonative.v1.CreateAccountResponse\x12p\n" + + "\x0fActivateAccount\x12-.land.gno.gnonative.v1.ActivateAccountRequest\x1a..land.gno.gnonative.v1.ActivateAccountResponse\x12d\n" + + "\vSetPassword\x12).land.gno.gnonative.v1.SetPasswordRequest\x1a*.land.gno.gnonative.v1.SetPasswordResponse\x12m\n" + + "\x0eRotatePassword\x12,.land.gno.gnonative.v1.RotatePasswordRequest\x1a-.land.gno.gnonative.v1.RotatePasswordResponse\x12|\n" + + "\x13GetActivatedAccount\x121.land.gno.gnonative.v1.GetActivatedAccountRequest\x1a2.land.gno.gnonative.v1.GetActivatedAccountResponse\x12g\n" + + "\fQueryAccount\x12*.land.gno.gnonative.v1.QueryAccountRequest\x1a+.land.gno.gnonative.v1.QueryAccountResponse\x12j\n" + + "\rDeleteAccount\x12+.land.gno.gnonative.v1.DeleteAccountRequest\x1a,.land.gno.gnonative.v1.DeleteAccountResponse\x12R\n" + + "\x05Query\x12#.land.gno.gnonative.v1.QueryRequest\x1a$.land.gno.gnonative.v1.QueryResponse\x12U\n" + + "\x06Render\x12$.land.gno.gnonative.v1.RenderRequest\x1a%.land.gno.gnonative.v1.RenderResponse\x12R\n" + + "\x05QEval\x12#.land.gno.gnonative.v1.QEvalRequest\x1a$.land.gno.gnonative.v1.QEvalResponse\x12Q\n" + + "\x04Call\x12\".land.gno.gnonative.v1.CallRequest\x1a#.land.gno.gnonative.v1.CallResponse0\x01\x12Q\n" + + "\x04Send\x12\".land.gno.gnonative.v1.SendRequest\x1a#.land.gno.gnonative.v1.SendResponse0\x01\x12N\n" + + "\x03Run\x12!.land.gno.gnonative.v1.RunRequest\x1a\".land.gno.gnonative.v1.RunResponse0\x01\x12W\n" + + "\n" + + "MakeCallTx\x12\".land.gno.gnonative.v1.CallRequest\x1a%.land.gno.gnonative.v1.MakeTxResponse\x12W\n" + + "\n" + + "MakeSendTx\x12\".land.gno.gnonative.v1.SendRequest\x1a%.land.gno.gnonative.v1.MakeTxResponse\x12U\n" + + "\tMakeRunTx\x12!.land.gno.gnonative.v1.RunRequest\x1a%.land.gno.gnonative.v1.MakeTxResponse\x12d\n" + + "\vEstimateGas\x12).land.gno.gnonative.v1.EstimateGasRequest\x1a*.land.gno.gnonative.v1.EstimateGasResponse\x12U\n" + + "\x06SignTx\x12$.land.gno.gnonative.v1.SignTxRequest\x1a%.land.gno.gnonative.v1.SignTxResponse\x12x\n" + + "\x11BroadcastTxCommit\x12/.land.gno.gnonative.v1.BroadcastTxCommitRequest\x1a0.land.gno.gnonative.v1.BroadcastTxCommitResponse0\x01\x12p\n" + + "\x0fAddressToBech32\x12-.land.gno.gnonative.v1.AddressToBech32Request\x1a..land.gno.gnonative.v1.AddressToBech32Response\x12v\n" + + "\x11AddressFromBech32\x12/.land.gno.gnonative.v1.AddressFromBech32Request\x1a0.land.gno.gnonative.v1.AddressFromBech32Response\x12|\n" + + "\x13AddressFromMnemonic\x121.land.gno.gnonative.v1.AddressFromMnemonicRequest\x1a2.land.gno.gnonative.v1.AddressFromMnemonicResponse\x12R\n" + + "\x05Hello\x12#.land.gno.gnonative.v1.HelloRequest\x1a$.land.gno.gnonative.v1.HelloResponse\x12f\n" + + "\vHelloStream\x12).land.gno.gnonative.v1.HelloStreamRequest\x1a*.land.gno.gnonative.v1.HelloStreamResponse0\x01B/Z'github.com/gnolang/gnonative/api/gen/go\xa2\x02\x03RTGb\x06proto3" var ( file_rpc_proto_rawDescOnce sync.Once - file_rpc_proto_rawDescData = file_rpc_proto_rawDesc + file_rpc_proto_rawDescData []byte ) func file_rpc_proto_rawDescGZIP() []byte { file_rpc_proto_rawDescOnce.Do(func() { - file_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_proto_rawDescData) + file_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rpc_proto_rawDesc), len(file_rpc_proto_rawDesc))) }) return file_rpc_proto_rawDescData } @@ -578,46 +367,48 @@ var file_rpc_proto_goTypes = []any{ (*CallRequest)(nil), // 24: land.gno.gnonative.v1.CallRequest (*SendRequest)(nil), // 25: land.gno.gnonative.v1.SendRequest (*RunRequest)(nil), // 26: land.gno.gnonative.v1.RunRequest - (*SignTxRequest)(nil), // 27: land.gno.gnonative.v1.SignTxRequest - (*BroadcastTxCommitRequest)(nil), // 28: land.gno.gnonative.v1.BroadcastTxCommitRequest - (*AddressToBech32Request)(nil), // 29: land.gno.gnonative.v1.AddressToBech32Request - (*AddressFromBech32Request)(nil), // 30: land.gno.gnonative.v1.AddressFromBech32Request - (*AddressFromMnemonicRequest)(nil), // 31: land.gno.gnonative.v1.AddressFromMnemonicRequest - (*HelloRequest)(nil), // 32: land.gno.gnonative.v1.HelloRequest - (*HelloStreamRequest)(nil), // 33: land.gno.gnonative.v1.HelloStreamRequest - (*SetRemoteResponse)(nil), // 34: land.gno.gnonative.v1.SetRemoteResponse - (*GetRemoteResponse)(nil), // 35: land.gno.gnonative.v1.GetRemoteResponse - (*SetChainIDResponse)(nil), // 36: land.gno.gnonative.v1.SetChainIDResponse - (*GetChainIDResponse)(nil), // 37: land.gno.gnonative.v1.GetChainIDResponse - (*GenerateRecoveryPhraseResponse)(nil), // 38: land.gno.gnonative.v1.GenerateRecoveryPhraseResponse - (*ListKeyInfoResponse)(nil), // 39: land.gno.gnonative.v1.ListKeyInfoResponse - (*HasKeyByNameResponse)(nil), // 40: land.gno.gnonative.v1.HasKeyByNameResponse - (*HasKeyByAddressResponse)(nil), // 41: land.gno.gnonative.v1.HasKeyByAddressResponse - (*HasKeyByNameOrAddressResponse)(nil), // 42: land.gno.gnonative.v1.HasKeyByNameOrAddressResponse - (*GetKeyInfoByNameResponse)(nil), // 43: land.gno.gnonative.v1.GetKeyInfoByNameResponse - (*GetKeyInfoByAddressResponse)(nil), // 44: land.gno.gnonative.v1.GetKeyInfoByAddressResponse - (*GetKeyInfoByNameOrAddressResponse)(nil), // 45: land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse - (*CreateAccountResponse)(nil), // 46: land.gno.gnonative.v1.CreateAccountResponse - (*ActivateAccountResponse)(nil), // 47: land.gno.gnonative.v1.ActivateAccountResponse - (*SetPasswordResponse)(nil), // 48: land.gno.gnonative.v1.SetPasswordResponse - (*RotatePasswordResponse)(nil), // 49: land.gno.gnonative.v1.RotatePasswordResponse - (*GetActivatedAccountResponse)(nil), // 50: land.gno.gnonative.v1.GetActivatedAccountResponse - (*QueryAccountResponse)(nil), // 51: land.gno.gnonative.v1.QueryAccountResponse - (*DeleteAccountResponse)(nil), // 52: land.gno.gnonative.v1.DeleteAccountResponse - (*QueryResponse)(nil), // 53: land.gno.gnonative.v1.QueryResponse - (*RenderResponse)(nil), // 54: land.gno.gnonative.v1.RenderResponse - (*QEvalResponse)(nil), // 55: land.gno.gnonative.v1.QEvalResponse - (*CallResponse)(nil), // 56: land.gno.gnonative.v1.CallResponse - (*SendResponse)(nil), // 57: land.gno.gnonative.v1.SendResponse - (*RunResponse)(nil), // 58: land.gno.gnonative.v1.RunResponse - (*MakeTxResponse)(nil), // 59: land.gno.gnonative.v1.MakeTxResponse - (*SignTxResponse)(nil), // 60: land.gno.gnonative.v1.SignTxResponse - (*BroadcastTxCommitResponse)(nil), // 61: land.gno.gnonative.v1.BroadcastTxCommitResponse - (*AddressToBech32Response)(nil), // 62: land.gno.gnonative.v1.AddressToBech32Response - (*AddressFromBech32Response)(nil), // 63: land.gno.gnonative.v1.AddressFromBech32Response - (*AddressFromMnemonicResponse)(nil), // 64: land.gno.gnonative.v1.AddressFromMnemonicResponse - (*HelloResponse)(nil), // 65: land.gno.gnonative.v1.HelloResponse - (*HelloStreamResponse)(nil), // 66: land.gno.gnonative.v1.HelloStreamResponse + (*EstimateGasRequest)(nil), // 27: land.gno.gnonative.v1.EstimateGasRequest + (*SignTxRequest)(nil), // 28: land.gno.gnonative.v1.SignTxRequest + (*BroadcastTxCommitRequest)(nil), // 29: land.gno.gnonative.v1.BroadcastTxCommitRequest + (*AddressToBech32Request)(nil), // 30: land.gno.gnonative.v1.AddressToBech32Request + (*AddressFromBech32Request)(nil), // 31: land.gno.gnonative.v1.AddressFromBech32Request + (*AddressFromMnemonicRequest)(nil), // 32: land.gno.gnonative.v1.AddressFromMnemonicRequest + (*HelloRequest)(nil), // 33: land.gno.gnonative.v1.HelloRequest + (*HelloStreamRequest)(nil), // 34: land.gno.gnonative.v1.HelloStreamRequest + (*SetRemoteResponse)(nil), // 35: land.gno.gnonative.v1.SetRemoteResponse + (*GetRemoteResponse)(nil), // 36: land.gno.gnonative.v1.GetRemoteResponse + (*SetChainIDResponse)(nil), // 37: land.gno.gnonative.v1.SetChainIDResponse + (*GetChainIDResponse)(nil), // 38: land.gno.gnonative.v1.GetChainIDResponse + (*GenerateRecoveryPhraseResponse)(nil), // 39: land.gno.gnonative.v1.GenerateRecoveryPhraseResponse + (*ListKeyInfoResponse)(nil), // 40: land.gno.gnonative.v1.ListKeyInfoResponse + (*HasKeyByNameResponse)(nil), // 41: land.gno.gnonative.v1.HasKeyByNameResponse + (*HasKeyByAddressResponse)(nil), // 42: land.gno.gnonative.v1.HasKeyByAddressResponse + (*HasKeyByNameOrAddressResponse)(nil), // 43: land.gno.gnonative.v1.HasKeyByNameOrAddressResponse + (*GetKeyInfoByNameResponse)(nil), // 44: land.gno.gnonative.v1.GetKeyInfoByNameResponse + (*GetKeyInfoByAddressResponse)(nil), // 45: land.gno.gnonative.v1.GetKeyInfoByAddressResponse + (*GetKeyInfoByNameOrAddressResponse)(nil), // 46: land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse + (*CreateAccountResponse)(nil), // 47: land.gno.gnonative.v1.CreateAccountResponse + (*ActivateAccountResponse)(nil), // 48: land.gno.gnonative.v1.ActivateAccountResponse + (*SetPasswordResponse)(nil), // 49: land.gno.gnonative.v1.SetPasswordResponse + (*RotatePasswordResponse)(nil), // 50: land.gno.gnonative.v1.RotatePasswordResponse + (*GetActivatedAccountResponse)(nil), // 51: land.gno.gnonative.v1.GetActivatedAccountResponse + (*QueryAccountResponse)(nil), // 52: land.gno.gnonative.v1.QueryAccountResponse + (*DeleteAccountResponse)(nil), // 53: land.gno.gnonative.v1.DeleteAccountResponse + (*QueryResponse)(nil), // 54: land.gno.gnonative.v1.QueryResponse + (*RenderResponse)(nil), // 55: land.gno.gnonative.v1.RenderResponse + (*QEvalResponse)(nil), // 56: land.gno.gnonative.v1.QEvalResponse + (*CallResponse)(nil), // 57: land.gno.gnonative.v1.CallResponse + (*SendResponse)(nil), // 58: land.gno.gnonative.v1.SendResponse + (*RunResponse)(nil), // 59: land.gno.gnonative.v1.RunResponse + (*MakeTxResponse)(nil), // 60: land.gno.gnonative.v1.MakeTxResponse + (*EstimateGasResponse)(nil), // 61: land.gno.gnonative.v1.EstimateGasResponse + (*SignTxResponse)(nil), // 62: land.gno.gnonative.v1.SignTxResponse + (*BroadcastTxCommitResponse)(nil), // 63: land.gno.gnonative.v1.BroadcastTxCommitResponse + (*AddressToBech32Response)(nil), // 64: land.gno.gnonative.v1.AddressToBech32Response + (*AddressFromBech32Response)(nil), // 65: land.gno.gnonative.v1.AddressFromBech32Response + (*AddressFromMnemonicResponse)(nil), // 66: land.gno.gnonative.v1.AddressFromMnemonicResponse + (*HelloResponse)(nil), // 67: land.gno.gnonative.v1.HelloResponse + (*HelloStreamResponse)(nil), // 68: 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 @@ -649,50 +440,52 @@ var file_rpc_proto_depIdxs = []int32{ 24, // 26: land.gno.gnonative.v1.GnoNativeService.MakeCallTx:input_type -> land.gno.gnonative.v1.CallRequest 25, // 27: land.gno.gnonative.v1.GnoNativeService.MakeSendTx:input_type -> land.gno.gnonative.v1.SendRequest 26, // 28: land.gno.gnonative.v1.GnoNativeService.MakeRunTx:input_type -> land.gno.gnonative.v1.RunRequest - 27, // 29: land.gno.gnonative.v1.GnoNativeService.SignTx:input_type -> land.gno.gnonative.v1.SignTxRequest - 28, // 30: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:input_type -> land.gno.gnonative.v1.BroadcastTxCommitRequest - 29, // 31: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:input_type -> land.gno.gnonative.v1.AddressToBech32Request - 30, // 32: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:input_type -> land.gno.gnonative.v1.AddressFromBech32Request - 31, // 33: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:input_type -> land.gno.gnonative.v1.AddressFromMnemonicRequest - 32, // 34: land.gno.gnonative.v1.GnoNativeService.Hello:input_type -> land.gno.gnonative.v1.HelloRequest - 33, // 35: land.gno.gnonative.v1.GnoNativeService.HelloStream:input_type -> land.gno.gnonative.v1.HelloStreamRequest - 34, // 36: land.gno.gnonative.v1.GnoNativeService.SetRemote:output_type -> land.gno.gnonative.v1.SetRemoteResponse - 35, // 37: land.gno.gnonative.v1.GnoNativeService.GetRemote:output_type -> land.gno.gnonative.v1.GetRemoteResponse - 36, // 38: land.gno.gnonative.v1.GnoNativeService.SetChainID:output_type -> land.gno.gnonative.v1.SetChainIDResponse - 37, // 39: land.gno.gnonative.v1.GnoNativeService.GetChainID:output_type -> land.gno.gnonative.v1.GetChainIDResponse - 38, // 40: land.gno.gnonative.v1.GnoNativeService.GenerateRecoveryPhrase:output_type -> land.gno.gnonative.v1.GenerateRecoveryPhraseResponse - 39, // 41: land.gno.gnonative.v1.GnoNativeService.ListKeyInfo:output_type -> land.gno.gnonative.v1.ListKeyInfoResponse - 40, // 42: land.gno.gnonative.v1.GnoNativeService.HasKeyByName:output_type -> land.gno.gnonative.v1.HasKeyByNameResponse - 41, // 43: land.gno.gnonative.v1.GnoNativeService.HasKeyByAddress:output_type -> land.gno.gnonative.v1.HasKeyByAddressResponse - 42, // 44: land.gno.gnonative.v1.GnoNativeService.HasKeyByNameOrAddress:output_type -> land.gno.gnonative.v1.HasKeyByNameOrAddressResponse - 43, // 45: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByName:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameResponse - 44, // 46: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByAddressResponse - 45, // 47: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse - 46, // 48: land.gno.gnonative.v1.GnoNativeService.CreateAccount:output_type -> land.gno.gnonative.v1.CreateAccountResponse - 47, // 49: land.gno.gnonative.v1.GnoNativeService.ActivateAccount:output_type -> land.gno.gnonative.v1.ActivateAccountResponse - 48, // 50: land.gno.gnonative.v1.GnoNativeService.SetPassword:output_type -> land.gno.gnonative.v1.SetPasswordResponse - 49, // 51: land.gno.gnonative.v1.GnoNativeService.RotatePassword:output_type -> land.gno.gnonative.v1.RotatePasswordResponse - 50, // 52: land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount:output_type -> land.gno.gnonative.v1.GetActivatedAccountResponse - 51, // 53: land.gno.gnonative.v1.GnoNativeService.QueryAccount:output_type -> land.gno.gnonative.v1.QueryAccountResponse - 52, // 54: land.gno.gnonative.v1.GnoNativeService.DeleteAccount:output_type -> land.gno.gnonative.v1.DeleteAccountResponse - 53, // 55: land.gno.gnonative.v1.GnoNativeService.Query:output_type -> land.gno.gnonative.v1.QueryResponse - 54, // 56: land.gno.gnonative.v1.GnoNativeService.Render:output_type -> land.gno.gnonative.v1.RenderResponse - 55, // 57: land.gno.gnonative.v1.GnoNativeService.QEval:output_type -> land.gno.gnonative.v1.QEvalResponse - 56, // 58: land.gno.gnonative.v1.GnoNativeService.Call:output_type -> land.gno.gnonative.v1.CallResponse - 57, // 59: land.gno.gnonative.v1.GnoNativeService.Send:output_type -> land.gno.gnonative.v1.SendResponse - 58, // 60: land.gno.gnonative.v1.GnoNativeService.Run:output_type -> land.gno.gnonative.v1.RunResponse - 59, // 61: land.gno.gnonative.v1.GnoNativeService.MakeCallTx:output_type -> land.gno.gnonative.v1.MakeTxResponse - 59, // 62: land.gno.gnonative.v1.GnoNativeService.MakeSendTx:output_type -> land.gno.gnonative.v1.MakeTxResponse - 59, // 63: land.gno.gnonative.v1.GnoNativeService.MakeRunTx:output_type -> land.gno.gnonative.v1.MakeTxResponse - 60, // 64: land.gno.gnonative.v1.GnoNativeService.SignTx:output_type -> land.gno.gnonative.v1.SignTxResponse - 61, // 65: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:output_type -> land.gno.gnonative.v1.BroadcastTxCommitResponse - 62, // 66: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:output_type -> land.gno.gnonative.v1.AddressToBech32Response - 63, // 67: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:output_type -> land.gno.gnonative.v1.AddressFromBech32Response - 64, // 68: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:output_type -> land.gno.gnonative.v1.AddressFromMnemonicResponse - 65, // 69: land.gno.gnonative.v1.GnoNativeService.Hello:output_type -> land.gno.gnonative.v1.HelloResponse - 66, // 70: land.gno.gnonative.v1.GnoNativeService.HelloStream:output_type -> land.gno.gnonative.v1.HelloStreamResponse - 36, // [36:71] is the sub-list for method output_type - 1, // [1:36] is the sub-list for method input_type + 27, // 29: land.gno.gnonative.v1.GnoNativeService.EstimateGas:input_type -> land.gno.gnonative.v1.EstimateGasRequest + 28, // 30: land.gno.gnonative.v1.GnoNativeService.SignTx:input_type -> land.gno.gnonative.v1.SignTxRequest + 29, // 31: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:input_type -> land.gno.gnonative.v1.BroadcastTxCommitRequest + 30, // 32: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:input_type -> land.gno.gnonative.v1.AddressToBech32Request + 31, // 33: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:input_type -> land.gno.gnonative.v1.AddressFromBech32Request + 32, // 34: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:input_type -> land.gno.gnonative.v1.AddressFromMnemonicRequest + 33, // 35: land.gno.gnonative.v1.GnoNativeService.Hello:input_type -> land.gno.gnonative.v1.HelloRequest + 34, // 36: land.gno.gnonative.v1.GnoNativeService.HelloStream:input_type -> land.gno.gnonative.v1.HelloStreamRequest + 35, // 37: land.gno.gnonative.v1.GnoNativeService.SetRemote:output_type -> land.gno.gnonative.v1.SetRemoteResponse + 36, // 38: land.gno.gnonative.v1.GnoNativeService.GetRemote:output_type -> land.gno.gnonative.v1.GetRemoteResponse + 37, // 39: land.gno.gnonative.v1.GnoNativeService.SetChainID:output_type -> land.gno.gnonative.v1.SetChainIDResponse + 38, // 40: land.gno.gnonative.v1.GnoNativeService.GetChainID:output_type -> land.gno.gnonative.v1.GetChainIDResponse + 39, // 41: land.gno.gnonative.v1.GnoNativeService.GenerateRecoveryPhrase:output_type -> land.gno.gnonative.v1.GenerateRecoveryPhraseResponse + 40, // 42: land.gno.gnonative.v1.GnoNativeService.ListKeyInfo:output_type -> land.gno.gnonative.v1.ListKeyInfoResponse + 41, // 43: land.gno.gnonative.v1.GnoNativeService.HasKeyByName:output_type -> land.gno.gnonative.v1.HasKeyByNameResponse + 42, // 44: land.gno.gnonative.v1.GnoNativeService.HasKeyByAddress:output_type -> land.gno.gnonative.v1.HasKeyByAddressResponse + 43, // 45: land.gno.gnonative.v1.GnoNativeService.HasKeyByNameOrAddress:output_type -> land.gno.gnonative.v1.HasKeyByNameOrAddressResponse + 44, // 46: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByName:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameResponse + 45, // 47: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByAddressResponse + 46, // 48: land.gno.gnonative.v1.GnoNativeService.GetKeyInfoByNameOrAddress:output_type -> land.gno.gnonative.v1.GetKeyInfoByNameOrAddressResponse + 47, // 49: land.gno.gnonative.v1.GnoNativeService.CreateAccount:output_type -> land.gno.gnonative.v1.CreateAccountResponse + 48, // 50: land.gno.gnonative.v1.GnoNativeService.ActivateAccount:output_type -> land.gno.gnonative.v1.ActivateAccountResponse + 49, // 51: land.gno.gnonative.v1.GnoNativeService.SetPassword:output_type -> land.gno.gnonative.v1.SetPasswordResponse + 50, // 52: land.gno.gnonative.v1.GnoNativeService.RotatePassword:output_type -> land.gno.gnonative.v1.RotatePasswordResponse + 51, // 53: land.gno.gnonative.v1.GnoNativeService.GetActivatedAccount:output_type -> land.gno.gnonative.v1.GetActivatedAccountResponse + 52, // 54: land.gno.gnonative.v1.GnoNativeService.QueryAccount:output_type -> land.gno.gnonative.v1.QueryAccountResponse + 53, // 55: land.gno.gnonative.v1.GnoNativeService.DeleteAccount:output_type -> land.gno.gnonative.v1.DeleteAccountResponse + 54, // 56: land.gno.gnonative.v1.GnoNativeService.Query:output_type -> land.gno.gnonative.v1.QueryResponse + 55, // 57: land.gno.gnonative.v1.GnoNativeService.Render:output_type -> land.gno.gnonative.v1.RenderResponse + 56, // 58: land.gno.gnonative.v1.GnoNativeService.QEval:output_type -> land.gno.gnonative.v1.QEvalResponse + 57, // 59: land.gno.gnonative.v1.GnoNativeService.Call:output_type -> land.gno.gnonative.v1.CallResponse + 58, // 60: land.gno.gnonative.v1.GnoNativeService.Send:output_type -> land.gno.gnonative.v1.SendResponse + 59, // 61: land.gno.gnonative.v1.GnoNativeService.Run:output_type -> land.gno.gnonative.v1.RunResponse + 60, // 62: land.gno.gnonative.v1.GnoNativeService.MakeCallTx:output_type -> land.gno.gnonative.v1.MakeTxResponse + 60, // 63: land.gno.gnonative.v1.GnoNativeService.MakeSendTx:output_type -> land.gno.gnonative.v1.MakeTxResponse + 60, // 64: land.gno.gnonative.v1.GnoNativeService.MakeRunTx:output_type -> land.gno.gnonative.v1.MakeTxResponse + 61, // 65: land.gno.gnonative.v1.GnoNativeService.EstimateGas:output_type -> land.gno.gnonative.v1.EstimateGasResponse + 62, // 66: land.gno.gnonative.v1.GnoNativeService.SignTx:output_type -> land.gno.gnonative.v1.SignTxResponse + 63, // 67: land.gno.gnonative.v1.GnoNativeService.BroadcastTxCommit:output_type -> land.gno.gnonative.v1.BroadcastTxCommitResponse + 64, // 68: land.gno.gnonative.v1.GnoNativeService.AddressToBech32:output_type -> land.gno.gnonative.v1.AddressToBech32Response + 65, // 69: land.gno.gnonative.v1.GnoNativeService.AddressFromBech32:output_type -> land.gno.gnonative.v1.AddressFromBech32Response + 66, // 70: land.gno.gnonative.v1.GnoNativeService.AddressFromMnemonic:output_type -> land.gno.gnonative.v1.AddressFromMnemonicResponse + 67, // 71: land.gno.gnonative.v1.GnoNativeService.Hello:output_type -> land.gno.gnonative.v1.HelloResponse + 68, // 72: land.gno.gnonative.v1.GnoNativeService.HelloStream:output_type -> land.gno.gnonative.v1.HelloStreamResponse + 37, // [37:73] is the sub-list for method output_type + 1, // [1:37] 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 @@ -708,7 +501,7 @@ func file_rpc_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_rpc_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_rpc_proto_rawDesc), len(file_rpc_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, @@ -720,7 +513,6 @@ func file_rpc_proto_init() { MessageInfos: file_rpc_proto_msgTypes, }.Build() File_rpc_proto = out.File - file_rpc_proto_rawDesc = nil file_rpc_proto_goTypes = nil file_rpc_proto_depIdxs = nil } diff --git a/api/gnonativetypes.proto b/api/gnonativetypes.proto index fa6e8177..ddeaaeb0 100644 --- a/api/gnonativetypes.proto +++ b/api/gnonativetypes.proto @@ -313,6 +313,30 @@ message SignTxResponse { string signed_tx_json = 1 [json_name = "tx_json"]; } +message EstimateGasRequest { + // The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) + string tx_json = 1; + // The address of the account to sign the transaction + bytes address = 2; + // The security margin to apply to the estimated gas amount. + // This number is represents a decimal numeral value with two decimals precision, without the decimal separator. E.g. 1 means 0.01 and 10000 means 100.00. + // It will be multiplied by the estimated gas amount. + uint32 security_margin = 3; + // The update boolean to update the gas wanted field in the transaction if true. + bool update_tx = 4; + // The signer's account number on the blockchain. If 0 then query the blockchain for the value. + uint64 account_number = 5; + // The sequence number of the signer's transactions on the blockchain. If 0 then query the blockchain for the value. + uint64 sequence_number = 6; +} + +message EstimateGasResponse { + // The JSON encoding of the unsigned transaction + string tx_json = 1; + // The estimated gas wanted for the transaction + sint64 gas_wanted = 2; +} + message BroadcastTxCommitRequest { // The JSON encoding of the signed transaction (from SignTx) string signed_tx_json = 1 [json_name = "tx_json"]; diff --git a/api/gnonativetypes/gnonativetypes.go b/api/gnonativetypes/gnonativetypes.go index 15c5d248..53a8edee 100644 --- a/api/gnonativetypes/gnonativetypes.go +++ b/api/gnonativetypes/gnonativetypes.go @@ -4,11 +4,9 @@ type SetRemoteRequest struct { Remote string `json:"remote" yaml:"remote"` } -type SetRemoteResponse struct { -} +type SetRemoteResponse struct{} -type GetRemoteRequest struct { -} +type GetRemoteRequest struct{} type GetRemoteResponse struct { Remote string `json:"remote" yaml:"remote"` @@ -18,11 +16,9 @@ type SetChainIDRequest struct { ChainID string `json:"chain_id" yaml:"chain_id"` } -type SetChainIDResponse struct { -} +type SetChainIDResponse struct{} -type GetChainIDRequest struct { -} +type GetChainIDRequest struct{} type GetChainIDResponse struct { ChainID string `json:"chain_id" yaml:"chain_id"` @@ -34,8 +30,7 @@ type SetPasswordRequest struct { Address []byte `json:"address" yaml:"address"` } -type SetPasswordResponse struct { -} +type SetPasswordResponse struct{} type RotatePasswordRequest struct { NewPassword string `json:"new_password" yaml:"new_password"` @@ -43,11 +38,9 @@ type RotatePasswordRequest struct { Addresses [][]byte `json:"addresses" yaml:"addresses"` } -type RotatePasswordResponse struct { -} +type RotatePasswordResponse struct{} -type GenerateRecoveryPhraseRequest struct { -} +type GenerateRecoveryPhraseRequest struct{} type GenerateRecoveryPhraseResponse struct { Phrase string `json:"phrase" yaml:"phrase"` @@ -77,8 +70,7 @@ type BaseAccount struct { Sequence uint64 `json:"sequence" yaml:"sequence"` } -type ListKeyInfoRequest struct { -} +type ListKeyInfoRequest struct{} type ListKeyInfoResponse struct { Keys []*KeyInfo `json:"key_info" yaml:"key_info"` @@ -179,8 +171,7 @@ type DeleteAccountRequest struct { SkipPassword bool `json:"skip_password" yaml:"skip_password"` } -type DeleteAccountResponse struct { -} +type DeleteAccountResponse struct{} type QueryRequest struct { // Example: "vm/qrender" @@ -261,8 +252,7 @@ type SendRequest struct { Msgs []MsgSend } -type SendResponse struct { -} +type SendResponse struct{} type MsgRun struct { // The code for the script package. Must have main(). @@ -309,6 +299,30 @@ type SignTxResponse struct { SignedTxJSON string `json:"tx_json" yaml:"tx_json"` } +type EstimateGasRequest struct { + // The JSON encoding of the unsigned transaction (from MakeCallTx, etc.) + TxJSON string `json:"tx_json" yaml:"tx_json"` + // The address of the account to sign the transaction + Address []byte `json:"address" yaml:"address"` + // The security margin to apply to the estimated gas amount. + // This number represents a decimal numeral value with two decimals precision, without the decimal separator. E.g. 1 means 0.01 and 10000 means 100.00. + // It will be multiplied by the estimated gas amount. + SecurityMargin uint32 `json:"security_margin" yaml:"security_margin"` + // The update boolean to update the gas wanted field in the transaction if true. + UpdateTx bool `json:"update_tx" yaml:"update_tx"` + // 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 EstimateGasResponse struct { + // The JSON encoding of the unsigned transaction + TxJSON string `json:"tx_json" yaml:"tx_json"` + // The estimated gas wanted for the transaction + GasWanted int64 `json:"gas_wanted" yaml:"gas_wanted"` +} + type BroadcastTxCommitRequest struct { // The JSON encoding of the signed transaction (from SignTx) SignedTxJSON string `json:"tx_json" yaml:"tx_json"` diff --git a/api/gnonativetypes/package.go b/api/gnonativetypes/package.go index 4a937b6a..89f1f33f 100644 --- a/api/gnonativetypes/package.go +++ b/api/gnonativetypes/package.go @@ -71,6 +71,8 @@ var Package = amino.RegisterPackage(amino.NewPackage( MakeTxResponse{}, SignTxRequest{}, SignTxResponse{}, + EstimateGasRequest{}, + EstimateGasResponse{}, BroadcastTxCommitRequest{}, BroadcastTxCommitResponse{}, AddressToBech32Request{}, diff --git a/api/rpc.proto b/api/rpc.proto index a2ce57fb..f8539518 100644 --- a/api/rpc.proto +++ b/api/rpc.proto @@ -142,6 +142,10 @@ service GnoNativeService { // Make an unsigned transaction to temporarily load the code in package on the blockchain and run main(). rpc MakeRunTx(RunRequest) returns (MakeTxResponse); + // EstimateGas estimates the least amount of gas required for the transaction to go through on the chain (minimum gas wanted), with a security margin. + // If UpdateTx is true, then update the transaction with the gasWanted amount. + rpc EstimateGas(EstimateGasRequest) returns (EstimateGasResponse); + // Sign the transaction using the account with the given address. // If there is no activated account with the given address, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. diff --git a/buf.gen.yaml b/buf.gen.yaml index e167fce7..5d741420 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -7,8 +7,10 @@ plugins: out: ./api/gen/go opt: module=github.com/gnolang/gnonative/api/gen/go - remote: buf.build/bufbuild/es:v1.7.2 + opt: target=ts out: ./api/gen/es - remote: buf.build/connectrpc/es:v1.4.0 + opt: target=ts out: ./api/gen/es - remote: buf.build/protocolbuffers/csharp out: ./api/gen/csharp diff --git a/expo/.gitignore b/expo/.gitignore index 5d6a0b18..bc760b21 100644 --- a/expo/.gitignore +++ b/expo/.gitignore @@ -59,3 +59,6 @@ yarn-error.log # go framework android/libs/* ios/Frameworks/* + +# api vendor +src/api/vendor/ diff --git a/expo/Makefile b/expo/Makefile index dd6dea3d..31ef31de 100644 --- a/expo/Makefile +++ b/expo/Makefile @@ -1,5 +1,9 @@ PROJECT_DIR := $(shell go list -m -f '{{.Dir}}') +API_SRC := $(PROJECT_DIR)/api/gen/es +API_SRC_FILES := $(shell find $(PROJECT_DIR)/api/gen/es -iname '*.js' -o -iname '*.ts') +API_VENDOR := src/api/vendor + ANDROID_FRAMEWORK_SRC_DIR := $(PROJECT_DIR)/framework/android ANDROID_FRAMEWORK_OUTPUT_DIR := android/libs ANDROID_FRAMEWORK_FILES := gnocore.aar gnocore-sources.jar @@ -20,13 +24,26 @@ go_deps := $(PROJECT_DIR)/go.mod $(PROJECT_DIR)/go.sum $(go_files) build: build.android build.ios -clean: clean.android clean.ios +clean: clean.android clean.ios clean.api cd $(PROJECT_DIR); $(MAKE) clean .PHONY: clean +######### API ######### + +build.api: $(API_VENDOR) +.PHONY: build.api + +$(API_VENDOR): $(API_SRC_FILES) + mkdir -p $(API_VENDOR) + cp -r $^ $(API_VENDOR) + touch $@ + +clean.api: + rm -fr $(API_VENDOR) + ######### ANDROID ######### -build.android: $(ANDROID_FRAMEWORK_DST) +build.android: $(ANDROID_FRAMEWORK_DST) build.api .PHONY: build.android $(ANDROID_FRAMEWORK_SRC): $(go_deps) @@ -42,7 +59,7 @@ clean.android: ######### IOS ######### -build.ios: $(IOS_FRAMEWORK_DST) +build.ios: $(IOS_FRAMEWORK_DST) build.api .PHONY: build.ios $(IOS_FRAMEWORK_SRC): $(go_deps) diff --git a/expo/package-lock.json b/expo/package-lock.json index c435a98b..6976421d 100644 --- a/expo/package-lock.json +++ b/expo/package-lock.json @@ -9,8 +9,6 @@ "version": "0.1.2", "license": "MIT", "dependencies": { - "@buf/gnolang_gnonative.bufbuild_es": "^1.8.0-20241030100906-5ceb62413f58.3", - "@buf/gnolang_gnonative.connectrpc_es": "^1.4.0-20241030100906-5ceb62413f58.3", "@bufbuild/protobuf": "^1.8.0", "@connectrpc/connect": "^1.4.0", "@connectrpc/connect-web": "^1.4.0", @@ -2463,30 +2461,6 @@ "dev": true, "peer": true }, - "node_modules/@buf/gnolang_gnonative.bufbuild_es": { - "version": "1.8.0-20241030100906-5ceb62413f58.3", - "resolved": "https://buf.build/gen/npm/v1/@buf/gnolang_gnonative.bufbuild_es/-/gnolang_gnonative.bufbuild_es-1.8.0-20241030100906-5ceb62413f58.3.tgz", - "peerDependencies": { - "@bufbuild/protobuf": "^1.8.0" - } - }, - "node_modules/@buf/gnolang_gnonative.connectrpc_es": { - "version": "1.4.0-20241030100906-5ceb62413f58.3", - "resolved": "https://buf.build/gen/npm/v1/@buf/gnolang_gnonative.connectrpc_es/-/gnolang_gnonative.connectrpc_es-1.4.0-20241030100906-5ceb62413f58.3.tgz", - "dependencies": { - "@buf/gnolang_gnonative.bufbuild_es": "1.7.2-20241030100906-5ceb62413f58.2" - }, - "peerDependencies": { - "@connectrpc/connect": "^1.4.0" - } - }, - "node_modules/@buf/gnolang_gnonative.connectrpc_es/node_modules/@buf/gnolang_gnonative.bufbuild_es": { - "version": "1.7.2-20241030100906-5ceb62413f58.2", - "resolved": "https://buf.build/gen/npm/v1/@buf/gnolang_gnonative.bufbuild_es/-/gnolang_gnonative.bufbuild_es-1.7.2-20241030100906-5ceb62413f58.2.tgz", - "peerDependencies": { - "@bufbuild/protobuf": "^1.7.2" - } - }, "node_modules/@bufbuild/protobuf": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.10.0.tgz", diff --git a/expo/package.json b/expo/package.json index 046e2ee4..7ab36cea 100644 --- a/expo/package.json +++ b/expo/package.json @@ -29,8 +29,6 @@ "license": "MIT", "homepage": "https://github.com/gnolang/gnonative#readme", "dependencies": { - "@buf/gnolang_gnonative.bufbuild_es": "^1.8.0-20241030100906-5ceb62413f58.3", - "@buf/gnolang_gnonative.connectrpc_es": "^1.4.0-20241030100906-5ceb62413f58.3", "@bufbuild/protobuf": "^1.8.0", "@connectrpc/connect": "^1.4.0", "@connectrpc/connect-web": "^1.4.0", diff --git a/expo/src/api/GnoNativeApi.ts b/expo/src/api/GnoNativeApi.ts index 39218154..13e92eb3 100644 --- a/expo/src/api/GnoNativeApi.ts +++ b/expo/src/api/GnoNativeApi.ts @@ -1,3 +1,6 @@ +import { PromiseClient } from '@connectrpc/connect'; + +import { GnoKeyApi, BridgeStatus, Config } from './types'; import { AddressFromBech32Request, AddressToBech32Request, @@ -46,11 +49,10 @@ import { SignTxResponse, RotatePasswordRequest, RotatePasswordResponse, -} from '@buf/gnolang_gnonative.bufbuild_es/gnonativetypes_pb'; -import { GnoNativeService } from '@buf/gnolang_gnonative.connectrpc_es/rpc_connect'; -import { PromiseClient } from '@connectrpc/connect'; - -import { GnoKeyApi, BridgeStatus, Config } from './types'; + EstimateGasRequest, + EstimateGasResponse, +} from './vendor/gnonativetypes_pb'; +import { GnoNativeService } from './vendor/rpc_connect'; import { GoBridge, GoBridgeInterface } from '../GoBridge'; import * as Grpc from '../grpc/client'; @@ -81,8 +83,8 @@ export class GnoNativeApi implements GnoKeyApi, GoBridgeInterface { console.log('GoBridge GRPC client instance. Done.'); try { - await this.clientInstance.setRemote(new SetRemoteRequest({ remote: this.config.remote })); - await this.clientInstance.setChainID( + await this.clientInstance?.setRemote(new SetRemoteRequest({ remote: this.config.remote })); + await this.clientInstance?.setChainID( new SetChainIDRequest({ chainId: this.config.chain_id }), ); console.log('✅ GnoNative bridge initialized.'); @@ -134,6 +136,28 @@ export class GnoNativeApi implements GnoKeyApi, GoBridgeInterface { return response; } + async estimateGas( + txJson: string, + address: Uint8Array, + securityMargin: number, + updateTx: boolean, + accountNumber: bigint = BigInt(0), + sequenceNumber: bigint = BigInt(0), + ): Promise { + const client = this.#getClient(); + const response = client.estimateGas( + new EstimateGasRequest({ + txJson, + address, + securityMargin, + updateTx, + accountNumber, + sequenceNumber, + }), + ); + return response; + } + async setChainID(chainId: string): Promise { const client = this.#getClient(); const response = client.setChainID(new SetChainIDRequest({ chainId })); diff --git a/expo/src/api/types.ts b/expo/src/api/types.ts index 21201641..91c30c1d 100644 --- a/expo/src/api/types.ts +++ b/expo/src/api/types.ts @@ -13,10 +13,11 @@ import { RotatePasswordResponse, KeyInfo, SignTxResponse, + EstimateGasResponse, MakeTxResponse, BroadcastTxCommitResponse, Coin, -} from '@buf/gnolang_gnonative.bufbuild_es/gnonativetypes_pb'; +} from './vendor/gnonativetypes_pb'; export enum BridgeStatus { Stopped, @@ -87,6 +88,14 @@ export interface GnoKeyApi { accountNumber?: bigint, sequenceNumber?: bigint, ): Promise; + estimateGas( + txJson: string, + address: Uint8Array, + securityMargin: number, + updateTx: boolean, + accountNumber?: bigint, + sequenceNumber?: bigint, + ): Promise; makeCallTx( packagePath: string, fnc: string, diff --git a/expo/src/grpc/client.ts b/expo/src/grpc/client.ts index de6ea12f..26577458 100644 --- a/expo/src/grpc/client.ts +++ b/expo/src/grpc/client.ts @@ -1,7 +1,7 @@ -import { GnoNativeService } from '@buf/gnolang_gnonative.connectrpc_es/rpc_connect'; import { createPromiseClient, PromiseClient } from '@connectrpc/connect'; import { createNativeGrpcTransport } from './transport_native'; +import { GnoNativeService } from '../api/vendor/rpc_connect'; // Create a GnoNativeService client export function createClient(_port: number): PromiseClient { diff --git a/expo/src/grpc/error.ts b/expo/src/grpc/error.ts index 7262df1c..72c8b3c9 100644 --- a/expo/src/grpc/error.ts +++ b/expo/src/grpc/error.ts @@ -1,6 +1,7 @@ -import { ErrCode } from '@buf/gnolang_gnonative.bufbuild_es/rpc_pb'; import { Code, ConnectError } from '@connectrpc/connect'; +import { ErrCode } from '../api/vendor/rpc_pb'; + class GRPCError extends Error { public GrpcCode: Code; diff --git a/expo/src/index.ts b/expo/src/index.ts index 1cad58ae..1f10f74d 100644 --- a/expo/src/index.ts +++ b/expo/src/index.ts @@ -17,8 +17,8 @@ export function addChangeListener(listener: (event: ChangeEventPayload) => void) export { ChangeEventPayload, GnonativeView, GnonativeViewProps }; export * from './provider/gnonative-provider'; -export * from '@buf/gnolang_gnonative.bufbuild_es/gnonativetypes_pb'; -export * from '@buf/gnolang_gnonative.bufbuild_es/rpc_pb'; +export * from './api/vendor/gnonativetypes_pb'; +export * from './api/vendor/rpc_pb'; export { GRPCError } from './grpc/error'; export * from './api/GnoNativeApi'; diff --git a/expo/tsconfig.json b/expo/tsconfig.json index a24ec0ff..2fa03a75 100644 --- a/expo/tsconfig.json +++ b/expo/tsconfig.json @@ -1,4 +1,3 @@ -// @generated by expo-module-scripts { "extends": "expo-module-scripts/tsconfig.base", "compilerOptions": { diff --git a/gen.sum b/gen.sum index 230a9918..69c7fdaa 100644 --- a/gen.sum +++ b/gen.sum @@ -1,6 +1,6 @@ -6e83444a5442d6193322aae8a4689a540f5bc6d3 Makefile -9af96527271aa3f174d2d3cd77d1fd97a86fb9a0 api/gnonativetypes.proto -a998e0288e8e49cc144cb8cef7b27f4bf50abecb api/gnonativetypes/gnonativetypes.go -7629497a31ca70807e1472e490b12b0366d04cb1 api/gnonativetypes/package.go -4bd83e09a6173e8302f97a91461eb85112e86053 api/rpc.proto -6d40815761d7431997e742edc802ff455c1a5e5d buf.gen.yaml +db011306fec5f34668398da58861399025f4abc8 Makefile +7a387d7bfb5d14219f29c20f514ba776614ce115 api/gnonativetypes.proto +b3a62b4554dce917cce1508d128ce8eb13728362 api/gnonativetypes/gnonativetypes.go +c68dfdb1ce5523ded45cf1ea8b047c818fa287b2 api/gnonativetypes/package.go +5121c32fa3005f1c424cea70c1d527cfa906fec2 api/rpc.proto +82528f7a615e9c3f322667fcc4e1100a00b1a708 buf.gen.yaml diff --git a/go.mod b/go.mod index 188c1c10..250c23c6 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,14 @@ module github.com/gnolang/gnonative -go 1.22 +go 1.23 -toolchain go1.22.5 +toolchain go1.23.7 require ( connectrpc.com/connect v1.16.2 connectrpc.com/grpchealth v1.3.0 connectrpc.com/grpcreflect v1.2.0 - github.com/gnolang/gno v0.0.0-20241029141810-12bd8da50dc1 + github.com/gnolang/gno v0.0.0-20250331145021-c48fc5a8e8ef github.com/oklog/run v1.1.0 github.com/peterbourgon/ff/v3 v3.4.0 github.com/peterbourgon/unixtransport v0.0.3 @@ -17,9 +17,9 @@ require ( go.uber.org/multierr v1.11.0 go.uber.org/zap v1.27.0 golang.org/x/mobile v0.0.0-20230531173138-3c911d8e3eda - golang.org/x/net v0.28.0 + golang.org/x/net v0.34.0 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 - google.golang.org/protobuf v1.34.2 + google.golang.org/protobuf v1.36.3 moul.io/u v1.27.0 ) @@ -28,43 +28,44 @@ require ( github.com/btcsuite/btcd/btcutil v1.1.6 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cockroachdb/apd/v3 v3.2.1 // indirect - github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect + github.com/cosmos/ledger-cosmos-go v0.14.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect - github.com/gnolang/overflow v0.0.0-20170615021017-4d914c927216 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect 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.3 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rs/xid v1.6.0 // indirect - github.com/stretchr/testify v1.9.0 // indirect + github.com/sig-0/insertion-queue v0.0.0-20241004125609-6b3ca841346b // indirect + github.com/stretchr/testify v1.10.0 // indirect github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect github.com/zondax/hid v0.9.2 // indirect github.com/zondax/ledger-go v0.14.3 // indirect - go.opentelemetry.io/otel v1.29.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.29.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.29.0 // indirect - go.opentelemetry.io/otel/metric v1.29.0 // indirect - go.opentelemetry.io/otel/sdk v1.29.0 // indirect - go.opentelemetry.io/otel/sdk/metric v1.29.0 // indirect - go.opentelemetry.io/otel/trace v1.29.0 // indirect - go.opentelemetry.io/proto/otlp v1.3.1 // indirect - golang.org/x/crypto v0.26.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.34.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.34.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.34.0 // indirect + go.opentelemetry.io/otel/metric v1.34.0 // indirect + go.opentelemetry.io/otel/sdk v1.34.0 // indirect + go.opentelemetry.io/otel/sdk/metric v1.34.0 // indirect + go.opentelemetry.io/otel/trace v1.34.0 // indirect + go.opentelemetry.io/proto/otlp v1.5.0 // indirect + golang.org/x/crypto v0.32.0 // indirect golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect - golang.org/x/mod v0.20.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/term v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect - golang.org/x/tools v0.24.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect - google.golang.org/grpc v1.65.0 // indirect + golang.org/x/mod v0.22.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.29.0 // indirect + golang.org/x/term v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect + golang.org/x/tools v0.29.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20250115164207-1a7da9e5054f // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect + google.golang.org/grpc v1.69.4 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 3ea34695..3c448ef2 100644 --- a/go.sum +++ b/go.sum @@ -40,8 +40,8 @@ github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK3 github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cockroachdb/apd/v3 v3.2.1 h1:U+8j7t0axsIgvQUqthuNm82HIrYXodOV2iWLWtEaIwg= github.com/cockroachdb/apd/v3 v3.2.1/go.mod h1:klXJcjp+FffLTHlhIG69tezTDvdP065naDsHzKhYSqc= -github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= -github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= +github.com/cosmos/ledger-cosmos-go v0.14.0 h1:WfCHricT3rPbkPSVKRH+L4fQGKYHuGOK9Edpel8TYpE= +github.com/cosmos/ledger-cosmos-go v0.14.0/go.mod h1:E07xCWSBl3mTGofZ2QnL4cIUzMbbGVyik84QYKbX3RA= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -59,10 +59,10 @@ 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.0.0-20241029141810-12bd8da50dc1 h1:MCnDuYOD9MCO5AVN0eHXs9jrLWdHq5P5rYxR1xtQ4XI= -github.com/gnolang/gno v0.0.0-20241029141810-12bd8da50dc1/go.mod h1:vmnj2WrqRU9/FsHcRSXQdXzQPYYaYns/kYa+x+C0v14= -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/gnolang/gno v0.0.0-20250114141614-d54d00470dd1 h1:+alAep+xeCs0eZ0gX9w49SzMrJLNn6kCn/GdigL5/gE= +github.com/gnolang/gno v0.0.0-20250114141614-d54d00470dd1/go.mod h1:rrkFgXBwKCYw/Rt62+RUVAXe6cG7TPYHiX87ocMnTdI= +github.com/gnolang/gno v0.0.0-20250331145021-c48fc5a8e8ef h1:s03lVK0RiVdcko0PV14eGEl9Mpz7s+plj7tFUyAe82k= +github.com/gnolang/gno v0.0.0-20250331145021-c48fc5a8e8ef/go.mod h1:uMBHj+WwBv4kU7WZZ6M6jMXTzjDU4yBSCVSL3zWOuGA= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -91,8 +91,8 @@ github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= 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.22.0 h1:asbCHRVmodnJTuQ3qamDwqVOIjwqUPTYmYuemVOx+Ys= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0/go.mod h1:ggCgvZ2r7uOoQjOyu2Y1NhHmEPPzzuhWgcza5M1Ji1I= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1 h1:VNqngBF40hVlDloBruUehVYC3ArSgIyScOAyMRqBxRg= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1/go.mod h1:RBRO7fro65R6tjKzYgLAFo0t1QEXY1Dp+i/bvpRiqiQ= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= 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= @@ -138,13 +138,15 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/xid v1.6.0 h1:fV591PaemRlL6JfRxGDEPl69wICngIQ3shQtzfy2gxU= github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/sig-0/insertion-queue v0.0.0-20241004125609-6b3ca841346b h1:oV47z+jotrLVvhiLRNzACVe7/qZ8DcRlMlDucR/FARo= +github.com/sig-0/insertion-queue v0.0.0-20241004125609-6b3ca841346b/go.mod h1:JprPCeMgYyLKJoAy9nxpVScm7NwFSwpibdrUKm4kcw0= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= @@ -154,8 +156,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502/go.mod h1:p9lPsd+cx33L3H9nNoecRRxPssFKUwwI50I3pZ0yT+8= @@ -167,22 +169,24 @@ github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfU github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= -go.opentelemetry.io/otel v1.29.0 h1:PdomN/Al4q/lN6iBJEN3AwPvUiHPMlt93c8bqTG5Llw= -go.opentelemetry.io/otel v1.29.0/go.mod h1:N/WtXPs1CNCUEx+Agz5uouwCba+i+bJGFicT8SR4NP8= -go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.29.0 h1:k6fQVDQexDE+3jG2SfCQjnHS7OamcP73YMoxEVq5B6k= -go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.29.0/go.mod h1:t4BrYLHU450Zo9fnydWlIuswB1bm7rM8havDpWOJeDo= -go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.29.0 h1:xvhQxJ/C9+RTnAj5DpTg7LSM1vbbMTiXt7e9hsfqHNw= -go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.29.0/go.mod h1:Fcvs2Bz1jkDM+Wf5/ozBGmi3tQ/c9zPKLnsipnfhGAo= -go.opentelemetry.io/otel/metric v1.29.0 h1:vPf/HFWTNkPu1aYeIsc98l4ktOQaL6LeSoeV2g+8YLc= -go.opentelemetry.io/otel/metric v1.29.0/go.mod h1:auu/QWieFVWx+DmQOUMgj0F8LHWdgalxXqvp7BII/W8= -go.opentelemetry.io/otel/sdk v1.29.0 h1:vkqKjk7gwhS8VaWb0POZKmIEDimRCMsopNYnriHyryo= -go.opentelemetry.io/otel/sdk v1.29.0/go.mod h1:pM8Dx5WKnvxLCb+8lG1PRNIDxu9g9b9g59Qr7hfAAok= -go.opentelemetry.io/otel/sdk/metric v1.29.0 h1:K2CfmJohnRgvZ9UAj2/FhIf/okdWcNdBwe1m8xFXiSY= -go.opentelemetry.io/otel/sdk/metric v1.29.0/go.mod h1:6zZLdCl2fkauYoZIOn/soQIDSWFmNSRcICarHfuhNJQ= -go.opentelemetry.io/otel/trace v1.29.0 h1:J/8ZNK4XgR7a21DZUAsbF8pZ5Jcw1VhACmnYt39JTi4= -go.opentelemetry.io/otel/trace v1.29.0/go.mod h1:eHl3w0sp3paPkYstJOmAimxhiFXPg+MMTlEh3nsQgWQ= -go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= -go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.34.0 h1:zRLXxLCgL1WyKsPVrgbSdMN4c0FMkDAskSTQP+0hdUY= +go.opentelemetry.io/otel v1.34.0/go.mod h1:OWFPOQ+h4G8xpyjgqo4SxJYdDQ/qmRH+wivy7zzx9oI= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.34.0 h1:ajl4QczuJVA2TU9W9AGw++86Xga/RKt//16z/yxPgdk= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.34.0/go.mod h1:Vn3/rlOJ3ntf/Q3zAI0V5lDnTbHGaUsNUeF6nZmm7pA= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.34.0 h1:opwv08VbCZ8iecIWs+McMdHRcAXzjAeda3uG2kI/hcA= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.34.0/go.mod h1:oOP3ABpW7vFHulLpE8aYtNBodrHhMTrvfxUXGvqm7Ac= +go.opentelemetry.io/otel/metric v1.34.0 h1:+eTR3U0MyfWjRDhmFMxe2SsW64QrZ84AOhvqS7Y+PoQ= +go.opentelemetry.io/otel/metric v1.34.0/go.mod h1:CEDrp0fy2D0MvkXE+dPV7cMi8tWZwX3dmaIhwPOaqHE= +go.opentelemetry.io/otel/sdk v1.34.0 h1:95zS4k/2GOy069d321O8jWgYsW3MzVV+KuSPKp7Wr1A= +go.opentelemetry.io/otel/sdk v1.34.0/go.mod h1:0e/pNiaMAqaykJGKbi+tSjWfNNHMTxoC9qANsCzbyxU= +go.opentelemetry.io/otel/sdk/metric v1.34.0 h1:5CeK9ujjbFVL5c1PhLuStg1wxA7vQv7ce1EK0Gyvahk= +go.opentelemetry.io/otel/sdk/metric v1.34.0/go.mod h1:jQ/r8Ze28zRKoNRdkjCZxfs6YvBTG1+YIqyFVFYec5w= +go.opentelemetry.io/otel/trace v1.34.0 h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC8mh/k= +go.opentelemetry.io/otel/trace v1.34.0/go.mod h1:Svm7lSjQD7kG7KJ/MUHPVXSDGz2OX4h0M2jHBhmSfRE= +go.opentelemetry.io/proto/otlp v1.5.0 h1:xJvq7gMzB31/d406fB8U5CBdyQGw4P399D1aQWU/3i4= +go.opentelemetry.io/proto/otlp v1.5.0/go.mod h1:keN8WnHxOy8PG0rQZjJJ5A2ebUoafqWp0eVQ4yIXvJ4= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= @@ -191,15 +195,13 @@ go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= -go.uber.org/zap/exp v0.2.0 h1:FtGenNNeCATRB3CmB/yEUnjEFeJWpB/pMcy7e2bKPYs= -go.uber.org/zap/exp v0.2.0/go.mod h1:t0gqAIdh1MfKv9EwN/dLwfZnJxe9ITAZN78HEWPFWDQ= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= +golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY= golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -207,8 +209,8 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= -golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= +golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -219,15 +221,15 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= -golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= +golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -245,47 +247,47 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= +golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= +golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 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.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= -golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= +golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= +golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= 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= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd h1:BBOTEWLuuEGQy9n1y9MhVJ9Qt0BDu21X8qZs71/uPZo= -google.golang.org/genproto/googleapis/api v0.0.0-20240822170219-fc7c04adadcd/go.mod h1:fO8wJzT2zbQbAjbIoos1285VfEIYKDDY+Dt+WpTkh6g= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd h1:6TEm2ZxXoQmFWFlt1vNxvVOa1Q0dXFQD1m/rYjXmS0E= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= -google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= -google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= +google.golang.org/genproto/googleapis/api v0.0.0-20250115164207-1a7da9e5054f h1:gap6+3Gk41EItBuyi4XX/bp4oqJ3UwuIMl25yGinuAA= +google.golang.org/genproto/googleapis/api v0.0.0-20250115164207-1a7da9e5054f/go.mod h1:Ic02D47M+zbarjYYUlK57y316f2MoN0gjAwI3f2S95o= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f h1:OxYkA3wjPsZyBylwymxSHa7ViiW1Sml4ToBrncvFehI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f/go.mod h1:+2Yz8+CLJbIfL9z73EW45avw8Lmge3xVElCP9zEKi50= +google.golang.org/grpc v1.69.4 h1:MF5TftSMkd8GLw/m0KM6V8CMOCY6NZ1NQDPGFgbTt4A= +google.golang.org/grpc v1.69.4/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.36.3 h1:82DV7MYdb8anAVi3qge1wSnMDrnKK7ebr+I0hHRN1BU= +google.golang.org/protobuf v1.36.3/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/service/api.go b/service/api.go index 44e8c24f..4b916c45 100644 --- a/service/api.go +++ b/service/api.go @@ -249,7 +249,7 @@ func (s *gnoNativeService) SetPassword(ctx context.Context, req *connect.Request func (s *gnoNativeService) RotatePassword(ctx context.Context, req *connect.Request[api_gen.RotatePasswordRequest]) (*connect.Response[api_gen.RotatePasswordResponse], error) { // Get all the signers, before trying to update the password. - var signers = make([]*gnoclient.SignerFromKeybase, len(req.Msg.Addresses)) + signers := make([]*gnoclient.SignerFromKeybase, len(req.Msg.Addresses)) for i := range len(req.Msg.Addresses) { var err error if signers[i], err = s.getSigner(req.Msg.Addresses[i]); err != nil { @@ -675,8 +675,47 @@ func (s *gnoNativeService) ClientSignTx(tx std.Tx, addr []byte, accountNumber, s return c.SignTx(tx, accountNumber, sequenceNumber) } +func (s *gnoNativeService) EstimateGas(ctx context.Context, req *connect.Request[api_gen.EstimateGasRequest]) (*connect.Response[api_gen.EstimateGasResponse], error) { + var tx std.Tx + if err := amino.UnmarshalJSON([]byte(req.Msg.TxJson), &tx); err != nil { + return nil, err + } + + signedTx, err := s.ClientSignTx(tx, req.Msg.Address, req.Msg.AccountNumber, req.Msg.SequenceNumber) + if err != nil { + return nil, getGrpcError(err) + } + + c, err := s.getClient(nil) + if err != nil { + return nil, getGrpcError(err) + } + + amount, err := c.EstimateGas(signedTx) + if err != nil { + return nil, getGrpcError(err) + } + + // Apply the security margin. + // The security margin is a decimal numeral without the decimal seprator. + gasWanted := int64(float64(amount) * float64(req.Msg.SecurityMargin) / 100) + + // Update the transaction + if req.Msg.UpdateTx { + tx.Fee.GasWanted = gasWanted + } + + txJSON, err := amino.MarshalJSON(tx) + if err != nil { + return nil, err + } + + return connect.NewResponse(&api_gen.EstimateGasResponse{TxJson: string(txJSON), GasWanted: gasWanted}), nil +} + func (s *gnoNativeService) BroadcastTxCommit(ctx context.Context, req *connect.Request[api_gen.BroadcastTxCommitRequest], - stream *connect.ServerStream[api_gen.BroadcastTxCommitResponse]) error { + stream *connect.ServerStream[api_gen.BroadcastTxCommitResponse], +) error { signedTx := &std.Tx{} if err := amino.UnmarshalJSON([]byte(req.Msg.SignedTxJson), signedTx); err != nil { return err