diff --git a/gen.sum b/gen.sum index ade512db..fb15a682 100644 --- a/gen.sum +++ b/gen.sum @@ -1,6 +1,6 @@ ceb2922aa6e25cc4b9256163c5a31443770af3a6 Makefile 3f8e7619fa38e476bb3d35923f6c2676cfe8809b buf.gen.yaml 827e0ce83389840415f6a88043c8187678b186b6 service/gnomobiletypes/gnomobiletypes.go -a70f41ab1dfe959b3c941432cac8ce26d2846067 service/gnomobiletypes/package.go -fc5fa36a79a58fe4596e8fbb19a45f629533bc35 service/rpc/gnomobiletypes.proto +e5935b8dbad1f0c9056eaccdf3fc1f9e322ace6e service/gnomobiletypes/package.go +9ca3b1c1312066ddcdf835bb00ff965274b01d44 service/rpc/gnomobiletypes.proto 35b0d73b0a18905eed4b4b5d7ba4ff80f9cdc58b service/rpc/rpc.proto diff --git a/gnoboard/android/app/src/main/java/land/gno/gnomobile/v1/Gnomobiletypes.java b/gnoboard/android/app/src/main/java/land/gno/gnomobile/v1/Gnomobiletypes.java index a3c516f1..eb93208b 100644 --- a/gnoboard/android/app/src/main/java/land/gno/gnomobile/v1/Gnomobiletypes.java +++ b/gnoboard/android/app/src/main/java/land/gno/gnomobile/v1/Gnomobiletypes.java @@ -13,12 +13,12 @@ public interface SetRemoteRequestOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @return The remote. */ java.lang.String getRemote(); /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @return The bytes for remote. */ com.google.protobuf.ByteString @@ -42,7 +42,7 @@ private SetRemoteRequest() { public static final int REMOTE_FIELD_NUMBER = 1; private java.lang.String remote_; /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @return The remote. */ @java.lang.Override @@ -50,7 +50,7 @@ public java.lang.String getRemote() { return remote_; } /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @return The bytes for remote. */ @java.lang.Override @@ -59,7 +59,7 @@ public java.lang.String getRemote() { return com.google.protobuf.ByteString.copyFromUtf8(remote_); } /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @param value The remote to set. */ private void setRemote( @@ -69,14 +69,14 @@ private void setRemote( remote_ = value; } /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; */ private void clearRemote() { remote_ = getDefaultInstance().getRemote(); } /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @param value The bytes for remote to set. */ private void setRemoteBytes( @@ -188,7 +188,7 @@ private Builder() { /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @return The remote. */ @java.lang.Override @@ -196,7 +196,7 @@ public java.lang.String getRemote() { return instance.getRemote(); } /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @return The bytes for remote. */ @java.lang.Override @@ -205,7 +205,7 @@ public java.lang.String getRemote() { return instance.getRemoteBytes(); } /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @param value The remote to set. * @return This builder for chaining. */ @@ -216,7 +216,7 @@ public Builder setRemote( return this; } /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @return This builder for chaining. */ public Builder clearRemote() { @@ -225,7 +225,7 @@ public Builder clearRemote() { return this; } /** - * string Remote = 1 [json_name = "Remote"]; + * string remote = 1 [json_name = "remote"]; * @param value The bytes for remote to set. * @return This builder for chaining. */ @@ -497,16 +497,16 @@ public interface SetChainIDRequestOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { /** - * string ChainID = 1 [json_name = "ChainID"]; - * @return The chainID. + * string chain_id = 1 [json_name = "chainId"]; + * @return The chainId. */ - java.lang.String getChainID(); + java.lang.String getChainId(); /** - * string ChainID = 1 [json_name = "ChainID"]; - * @return The bytes for chainID. + * string chain_id = 1 [json_name = "chainId"]; + * @return The bytes for chainId. */ com.google.protobuf.ByteString - getChainIDBytes(); + getChainIdBytes(); } /** * Protobuf type {@code land.gno.gnomobile.v1.SetChainIDRequest} @@ -517,52 +517,52 @@ public static final class SetChainIDRequest extends // @@protoc_insertion_point(message_implements:land.gno.gnomobile.v1.SetChainIDRequest) SetChainIDRequestOrBuilder { private SetChainIDRequest() { - chainID_ = ""; + chainId_ = ""; } - public static final int CHAINID_FIELD_NUMBER = 1; - private java.lang.String chainID_; + public static final int CHAIN_ID_FIELD_NUMBER = 1; + private java.lang.String chainId_; /** - * string ChainID = 1 [json_name = "ChainID"]; - * @return The chainID. + * string chain_id = 1 [json_name = "chainId"]; + * @return The chainId. */ @java.lang.Override - public java.lang.String getChainID() { - return chainID_; + public java.lang.String getChainId() { + return chainId_; } /** - * string ChainID = 1 [json_name = "ChainID"]; - * @return The bytes for chainID. + * string chain_id = 1 [json_name = "chainId"]; + * @return The bytes for chainId. */ @java.lang.Override public com.google.protobuf.ByteString - getChainIDBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(chainID_); + getChainIdBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(chainId_); } /** - * string ChainID = 1 [json_name = "ChainID"]; - * @param value The chainID to set. + * string chain_id = 1 [json_name = "chainId"]; + * @param value The chainId to set. */ - private void setChainID( + private void setChainId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); - chainID_ = value; + chainId_ = value; } /** - * string ChainID = 1 [json_name = "ChainID"]; + * string chain_id = 1 [json_name = "chainId"]; */ - private void clearChainID() { + private void clearChainId() { - chainID_ = getDefaultInstance().getChainID(); + chainId_ = getDefaultInstance().getChainId(); } /** - * string ChainID = 1 [json_name = "ChainID"]; - * @param value The bytes for chainID to set. + * string chain_id = 1 [json_name = "chainId"]; + * @param value The bytes for chainId to set. */ - private void setChainIDBytes( + private void setChainIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); - chainID_ = value.toStringUtf8(); + chainId_ = value.toStringUtf8(); } @@ -664,51 +664,51 @@ private Builder() { /** - * string ChainID = 1 [json_name = "ChainID"]; - * @return The chainID. + * string chain_id = 1 [json_name = "chainId"]; + * @return The chainId. */ @java.lang.Override - public java.lang.String getChainID() { - return instance.getChainID(); + public java.lang.String getChainId() { + return instance.getChainId(); } /** - * string ChainID = 1 [json_name = "ChainID"]; - * @return The bytes for chainID. + * string chain_id = 1 [json_name = "chainId"]; + * @return The bytes for chainId. */ @java.lang.Override public com.google.protobuf.ByteString - getChainIDBytes() { - return instance.getChainIDBytes(); + getChainIdBytes() { + return instance.getChainIdBytes(); } /** - * string ChainID = 1 [json_name = "ChainID"]; - * @param value The chainID to set. + * string chain_id = 1 [json_name = "chainId"]; + * @param value The chainId to set. * @return This builder for chaining. */ - public Builder setChainID( + public Builder setChainId( java.lang.String value) { copyOnWrite(); - instance.setChainID(value); + instance.setChainId(value); return this; } /** - * string ChainID = 1 [json_name = "ChainID"]; + * string chain_id = 1 [json_name = "chainId"]; * @return This builder for chaining. */ - public Builder clearChainID() { + public Builder clearChainId() { copyOnWrite(); - instance.clearChainID(); + instance.clearChainId(); return this; } /** - * string ChainID = 1 [json_name = "ChainID"]; - * @param value The bytes for chainID to set. + * string chain_id = 1 [json_name = "chainId"]; + * @param value The bytes for chainId to set. * @return This builder for chaining. */ - public Builder setChainIDBytes( + public Builder setChainIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); - instance.setChainIDBytes(value); + instance.setChainIdBytes(value); return this; } @@ -728,7 +728,7 @@ protected final java.lang.Object dynamicMethod( } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { - "chainID_", + "chainId_", }; java.lang.String info = "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208"; @@ -973,12 +973,12 @@ public interface SetPasswordRequestOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @return The password. */ java.lang.String getPassword(); /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @return The bytes for password. */ com.google.protobuf.ByteString @@ -998,7 +998,7 @@ private SetPasswordRequest() { public static final int PASSWORD_FIELD_NUMBER = 1; private java.lang.String password_; /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @return The password. */ @java.lang.Override @@ -1006,7 +1006,7 @@ public java.lang.String getPassword() { return password_; } /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @return The bytes for password. */ @java.lang.Override @@ -1015,7 +1015,7 @@ public java.lang.String getPassword() { return com.google.protobuf.ByteString.copyFromUtf8(password_); } /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @param value The password to set. */ private void setPassword( @@ -1025,14 +1025,14 @@ private void setPassword( password_ = value; } /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; */ private void clearPassword() { password_ = getDefaultInstance().getPassword(); } /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @param value The bytes for password to set. */ private void setPasswordBytes( @@ -1140,7 +1140,7 @@ private Builder() { /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @return The password. */ @java.lang.Override @@ -1148,7 +1148,7 @@ public java.lang.String getPassword() { return instance.getPassword(); } /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @return The bytes for password. */ @java.lang.Override @@ -1157,7 +1157,7 @@ public java.lang.String getPassword() { return instance.getPasswordBytes(); } /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @param value The password to set. * @return This builder for chaining. */ @@ -1168,7 +1168,7 @@ public Builder setPassword( return this; } /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @return This builder for chaining. */ public Builder clearPassword() { @@ -1177,7 +1177,7 @@ public Builder clearPassword() { return this; } /** - * string Password = 1 [json_name = "Password"]; + * string password = 1 [json_name = "password"]; * @param value The bytes for password to set. * @return This builder for chaining. */ @@ -1631,12 +1631,12 @@ public interface GenerateRecoveryPhraseResponseOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @return The phrase. */ java.lang.String getPhrase(); /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @return The bytes for phrase. */ com.google.protobuf.ByteString @@ -1656,7 +1656,7 @@ private GenerateRecoveryPhraseResponse() { public static final int PHRASE_FIELD_NUMBER = 1; private java.lang.String phrase_; /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @return The phrase. */ @java.lang.Override @@ -1664,7 +1664,7 @@ public java.lang.String getPhrase() { return phrase_; } /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @return The bytes for phrase. */ @java.lang.Override @@ -1673,7 +1673,7 @@ public java.lang.String getPhrase() { return com.google.protobuf.ByteString.copyFromUtf8(phrase_); } /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @param value The phrase to set. */ private void setPhrase( @@ -1683,14 +1683,14 @@ private void setPhrase( phrase_ = value; } /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; */ private void clearPhrase() { phrase_ = getDefaultInstance().getPhrase(); } /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @param value The bytes for phrase to set. */ private void setPhraseBytes( @@ -1798,7 +1798,7 @@ private Builder() { /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @return The phrase. */ @java.lang.Override @@ -1806,7 +1806,7 @@ public java.lang.String getPhrase() { return instance.getPhrase(); } /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @return The bytes for phrase. */ @java.lang.Override @@ -1815,7 +1815,7 @@ public java.lang.String getPhrase() { return instance.getPhraseBytes(); } /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @param value The phrase to set. * @return This builder for chaining. */ @@ -1826,7 +1826,7 @@ public Builder setPhrase( return this; } /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @return This builder for chaining. */ public Builder clearPhrase() { @@ -1835,7 +1835,7 @@ public Builder clearPhrase() { return this; } /** - * string Phrase = 1 [json_name = "Phrase"]; + * string phrase = 1 [json_name = "phrase"]; * @param value The bytes for phrase to set. * @return This builder for chaining. */ @@ -1925,24 +1925,24 @@ public interface DeleteAccountRequestOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @return The nameOrBech32. */ java.lang.String getNameOrBech32(); /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @return The bytes for nameOrBech32. */ com.google.protobuf.ByteString getNameOrBech32Bytes(); /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @return The password. */ java.lang.String getPassword(); /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @return The bytes for password. */ com.google.protobuf.ByteString @@ -1960,10 +1960,10 @@ private DeleteAccountRequest() { nameOrBech32_ = ""; password_ = ""; } - public static final int NAMEORBECH32_FIELD_NUMBER = 1; + public static final int NAME_OR_BECH32_FIELD_NUMBER = 1; private java.lang.String nameOrBech32_; /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @return The nameOrBech32. */ @java.lang.Override @@ -1971,7 +1971,7 @@ public java.lang.String getNameOrBech32() { return nameOrBech32_; } /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @return The bytes for nameOrBech32. */ @java.lang.Override @@ -1980,7 +1980,7 @@ public java.lang.String getNameOrBech32() { return com.google.protobuf.ByteString.copyFromUtf8(nameOrBech32_); } /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @param value The nameOrBech32 to set. */ private void setNameOrBech32( @@ -1990,14 +1990,14 @@ private void setNameOrBech32( nameOrBech32_ = value; } /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; */ private void clearNameOrBech32() { nameOrBech32_ = getDefaultInstance().getNameOrBech32(); } /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @param value The bytes for nameOrBech32 to set. */ private void setNameOrBech32Bytes( @@ -2010,7 +2010,7 @@ private void setNameOrBech32Bytes( public static final int PASSWORD_FIELD_NUMBER = 2; private java.lang.String password_; /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @return The password. */ @java.lang.Override @@ -2018,7 +2018,7 @@ public java.lang.String getPassword() { return password_; } /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @return The bytes for password. */ @java.lang.Override @@ -2027,7 +2027,7 @@ public java.lang.String getPassword() { return com.google.protobuf.ByteString.copyFromUtf8(password_); } /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @param value The password to set. */ private void setPassword( @@ -2037,14 +2037,14 @@ private void setPassword( password_ = value; } /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; */ private void clearPassword() { password_ = getDefaultInstance().getPassword(); } /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @param value The bytes for password to set. */ private void setPasswordBytes( @@ -2152,7 +2152,7 @@ private Builder() { /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @return The nameOrBech32. */ @java.lang.Override @@ -2160,7 +2160,7 @@ public java.lang.String getNameOrBech32() { return instance.getNameOrBech32(); } /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @return The bytes for nameOrBech32. */ @java.lang.Override @@ -2169,7 +2169,7 @@ public java.lang.String getNameOrBech32() { return instance.getNameOrBech32Bytes(); } /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @param value The nameOrBech32 to set. * @return This builder for chaining. */ @@ -2180,7 +2180,7 @@ public Builder setNameOrBech32( return this; } /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @return This builder for chaining. */ public Builder clearNameOrBech32() { @@ -2189,7 +2189,7 @@ public Builder clearNameOrBech32() { return this; } /** - * string NameOrBech32 = 1 [json_name = "NameOrBech32"]; + * string name_or_bech32 = 1 [json_name = "nameOrBech32"]; * @param value The bytes for nameOrBech32 to set. * @return This builder for chaining. */ @@ -2201,7 +2201,7 @@ public Builder setNameOrBech32Bytes( } /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @return The password. */ @java.lang.Override @@ -2209,7 +2209,7 @@ public java.lang.String getPassword() { return instance.getPassword(); } /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @return The bytes for password. */ @java.lang.Override @@ -2218,7 +2218,7 @@ public java.lang.String getPassword() { return instance.getPasswordBytes(); } /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @param value The password to set. * @return This builder for chaining. */ @@ -2229,7 +2229,7 @@ public Builder setPassword( return this; } /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @return This builder for chaining. */ public Builder clearPassword() { @@ -2238,7 +2238,7 @@ public Builder clearPassword() { return this; } /** - * string Password = 2 [json_name = "Password"]; + * string password = 2 [json_name = "password"]; * @param value The bytes for password to set. * @return This builder for chaining. */ @@ -2512,19 +2512,31 @@ public interface QueryRequestOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { /** - * string Path = 1 [json_name = "Path"]; + *
+     * Example: "vm/qrender"
+     * 
+ * + * string path = 1 [json_name = "path"]; * @return The path. */ java.lang.String getPath(); /** - * string Path = 1 [json_name = "Path"]; + *
+     * Example: "vm/qrender"
+     * 
+ * + * string path = 1 [json_name = "path"]; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); /** - * bytes Data = 2 [json_name = "Data"]; + *
+     * Example: "gno.land/r/demo/boards\ntestboard"
+     * 
+ * + * bytes data = 2 [json_name = "data"]; * @return The data. */ com.google.protobuf.ByteString getData(); @@ -2544,7 +2556,11 @@ private QueryRequest() { public static final int PATH_FIELD_NUMBER = 1; private java.lang.String path_; /** - * string Path = 1 [json_name = "Path"]; + *
+     * Example: "vm/qrender"
+     * 
+ * + * string path = 1 [json_name = "path"]; * @return The path. */ @java.lang.Override @@ -2552,7 +2568,11 @@ public java.lang.String getPath() { return path_; } /** - * string Path = 1 [json_name = "Path"]; + *
+     * Example: "vm/qrender"
+     * 
+ * + * string path = 1 [json_name = "path"]; * @return The bytes for path. */ @java.lang.Override @@ -2561,7 +2581,11 @@ public java.lang.String getPath() { return com.google.protobuf.ByteString.copyFromUtf8(path_); } /** - * string Path = 1 [json_name = "Path"]; + *
+     * Example: "vm/qrender"
+     * 
+ * + * string path = 1 [json_name = "path"]; * @param value The path to set. */ private void setPath( @@ -2571,14 +2595,22 @@ private void setPath( path_ = value; } /** - * string Path = 1 [json_name = "Path"]; + *
+     * Example: "vm/qrender"
+     * 
+ * + * string path = 1 [json_name = "path"]; */ private void clearPath() { path_ = getDefaultInstance().getPath(); } /** - * string Path = 1 [json_name = "Path"]; + *
+     * Example: "vm/qrender"
+     * 
+ * + * string path = 1 [json_name = "path"]; * @param value The bytes for path to set. */ private void setPathBytes( @@ -2591,7 +2623,11 @@ private void setPathBytes( public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** - * bytes Data = 2 [json_name = "Data"]; + *
+     * Example: "gno.land/r/demo/boards\ntestboard"
+     * 
+ * + * bytes data = 2 [json_name = "data"]; * @return The data. */ @java.lang.Override @@ -2599,7 +2635,11 @@ public com.google.protobuf.ByteString getData() { return data_; } /** - * bytes Data = 2 [json_name = "Data"]; + *
+     * Example: "gno.land/r/demo/boards\ntestboard"
+     * 
+ * + * bytes data = 2 [json_name = "data"]; * @param value The data to set. */ private void setData(com.google.protobuf.ByteString value) { @@ -2608,7 +2648,11 @@ private void setData(com.google.protobuf.ByteString value) { data_ = value; } /** - * bytes Data = 2 [json_name = "Data"]; + *
+     * Example: "gno.land/r/demo/boards\ntestboard"
+     * 
+ * + * bytes data = 2 [json_name = "data"]; */ private void clearData() { @@ -2713,7 +2757,11 @@ private Builder() { /** - * string Path = 1 [json_name = "Path"]; + *
+       * Example: "vm/qrender"
+       * 
+ * + * string path = 1 [json_name = "path"]; * @return The path. */ @java.lang.Override @@ -2721,7 +2769,11 @@ public java.lang.String getPath() { return instance.getPath(); } /** - * string Path = 1 [json_name = "Path"]; + *
+       * Example: "vm/qrender"
+       * 
+ * + * string path = 1 [json_name = "path"]; * @return The bytes for path. */ @java.lang.Override @@ -2730,7 +2782,11 @@ public java.lang.String getPath() { return instance.getPathBytes(); } /** - * string Path = 1 [json_name = "Path"]; + *
+       * Example: "vm/qrender"
+       * 
+ * + * string path = 1 [json_name = "path"]; * @param value The path to set. * @return This builder for chaining. */ @@ -2741,7 +2797,11 @@ public Builder setPath( return this; } /** - * string Path = 1 [json_name = "Path"]; + *
+       * Example: "vm/qrender"
+       * 
+ * + * string path = 1 [json_name = "path"]; * @return This builder for chaining. */ public Builder clearPath() { @@ -2750,7 +2810,11 @@ public Builder clearPath() { return this; } /** - * string Path = 1 [json_name = "Path"]; + *
+       * Example: "vm/qrender"
+       * 
+ * + * string path = 1 [json_name = "path"]; * @param value The bytes for path to set. * @return This builder for chaining. */ @@ -2762,7 +2826,11 @@ public Builder setPathBytes( } /** - * bytes Data = 2 [json_name = "Data"]; + *
+       * Example: "gno.land/r/demo/boards\ntestboard"
+       * 
+ * + * bytes data = 2 [json_name = "data"]; * @return The data. */ @java.lang.Override @@ -2770,7 +2838,11 @@ public com.google.protobuf.ByteString getData() { return instance.getData(); } /** - * bytes Data = 2 [json_name = "Data"]; + *
+       * Example: "gno.land/r/demo/boards\ntestboard"
+       * 
+ * + * bytes data = 2 [json_name = "data"]; * @param value The data to set. * @return This builder for chaining. */ @@ -2780,7 +2852,11 @@ public Builder setData(com.google.protobuf.ByteString value) { return this; } /** - * bytes Data = 2 [json_name = "Data"]; + *
+       * Example: "gno.land/r/demo/boards\ntestboard"
+       * 
+ * + * bytes data = 2 [json_name = "data"]; * @return This builder for chaining. */ public Builder clearData() { @@ -2870,7 +2946,7 @@ public interface QueryResponseOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @return The result. */ com.google.protobuf.ByteString getResult(); @@ -2889,7 +2965,7 @@ private QueryResponse() { public static final int RESULT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString result_; /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @return The result. */ @java.lang.Override @@ -2897,7 +2973,7 @@ public com.google.protobuf.ByteString getResult() { return result_; } /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @param value The result to set. */ private void setResult(com.google.protobuf.ByteString value) { @@ -2906,7 +2982,7 @@ private void setResult(com.google.protobuf.ByteString value) { result_ = value; } /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; */ private void clearResult() { @@ -3011,7 +3087,7 @@ private Builder() { /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @return The result. */ @java.lang.Override @@ -3019,7 +3095,7 @@ public com.google.protobuf.ByteString getResult() { return instance.getResult(); } /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @param value The result to set. * @return This builder for chaining. */ @@ -3029,7 +3105,7 @@ public Builder setResult(com.google.protobuf.ByteString value) { return this; } /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @return This builder for chaining. */ public Builder clearResult() { @@ -3117,48 +3193,80 @@ public interface CallRequestOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+     * Example: "gno.land/r/demo/boards"
+     * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @return The packagePath. */ java.lang.String getPackagePath(); /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+     * Example: "gno.land/r/demo/boards"
+     * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @return The bytes for packagePath. */ com.google.protobuf.ByteString getPackagePathBytes(); /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+     * Example: "CreateReply"
+     * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @return The fnc. */ java.lang.String getFnc(); /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+     * Example: "CreateReply"
+     * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @return The bytes for fnc. */ com.google.protobuf.ByteString getFncBytes(); /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @return A list containing the args. */ java.util.List getArgsList(); /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @return The count of args. */ int getArgsCount(); /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param index The index of the element to return. * @return The args at the given index. */ @@ -3166,42 +3274,42 @@ public interface CallRequestOrBuilder extends getArgsBytes(int index); /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @return The gasFee. */ java.lang.String getGasFee(); /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @return The bytes for gasFee. */ com.google.protobuf.ByteString getGasFeeBytes(); /** - * sint64 GasWanted = 5 [json_name = "GasWanted"]; + * sint64 gas_wanted = 5 [json_name = "gasWanted"]; * @return The gasWanted. */ long getGasWanted(); /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @return The send. */ java.lang.String getSend(); /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @return The bytes for send. */ com.google.protobuf.ByteString getSendBytes(); /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @return The memo. */ java.lang.String getMemo(); /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @return The bytes for memo. */ com.google.protobuf.ByteString @@ -3223,10 +3331,14 @@ private CallRequest() { send_ = ""; memo_ = ""; } - public static final int PACKAGEPATH_FIELD_NUMBER = 1; + public static final int PACKAGE_PATH_FIELD_NUMBER = 1; private java.lang.String packagePath_; /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+     * Example: "gno.land/r/demo/boards"
+     * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @return The packagePath. */ @java.lang.Override @@ -3234,7 +3346,11 @@ public java.lang.String getPackagePath() { return packagePath_; } /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+     * Example: "gno.land/r/demo/boards"
+     * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @return The bytes for packagePath. */ @java.lang.Override @@ -3243,7 +3359,11 @@ public java.lang.String getPackagePath() { return com.google.protobuf.ByteString.copyFromUtf8(packagePath_); } /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+     * Example: "gno.land/r/demo/boards"
+     * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @param value The packagePath to set. */ private void setPackagePath( @@ -3253,14 +3373,22 @@ private void setPackagePath( packagePath_ = value; } /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+     * Example: "gno.land/r/demo/boards"
+     * 
+ * + * string package_path = 1 [json_name = "packagePath"]; */ private void clearPackagePath() { packagePath_ = getDefaultInstance().getPackagePath(); } /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+     * Example: "gno.land/r/demo/boards"
+     * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @param value The bytes for packagePath to set. */ private void setPackagePathBytes( @@ -3273,7 +3401,11 @@ private void setPackagePathBytes( public static final int FNC_FIELD_NUMBER = 2; private java.lang.String fnc_; /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+     * Example: "CreateReply"
+     * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @return The fnc. */ @java.lang.Override @@ -3281,7 +3413,11 @@ public java.lang.String getFnc() { return fnc_; } /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+     * Example: "CreateReply"
+     * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @return The bytes for fnc. */ @java.lang.Override @@ -3290,7 +3426,11 @@ public java.lang.String getFnc() { return com.google.protobuf.ByteString.copyFromUtf8(fnc_); } /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+     * Example: "CreateReply"
+     * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @param value The fnc to set. */ private void setFnc( @@ -3300,14 +3440,22 @@ private void setFnc( fnc_ = value; } /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+     * Example: "CreateReply"
+     * 
+ * + * string fnc = 2 [json_name = "fnc"]; */ private void clearFnc() { fnc_ = getDefaultInstance().getFnc(); } /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+     * Example: "CreateReply"
+     * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @param value The bytes for fnc to set. */ private void setFncBytes( @@ -3320,7 +3468,11 @@ private void setFncBytes( public static final int ARGS_FIELD_NUMBER = 3; private com.google.protobuf.Internal.ProtobufList args_; /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @return A list containing the args. */ @java.lang.Override @@ -3328,7 +3480,11 @@ public java.util.List getArgsList() { return args_; } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @return The count of args. */ @java.lang.Override @@ -3336,7 +3492,11 @@ public int getArgsCount() { return args_.size(); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param index The index of the element to return. * @return The args at the given index. */ @@ -3345,7 +3505,11 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param index The index of the value to return. * @return The bytes of the args at the given index. */ @@ -3363,7 +3527,11 @@ private void ensureArgsIsMutable() { } } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param index The index to set the value at. * @param value The args to set. */ @@ -3374,7 +3542,11 @@ private void setArgs( args_.set(index, value); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param value The args to add. */ private void addArgs( @@ -3384,7 +3556,11 @@ private void addArgs( args_.add(value); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param values The args to add. */ private void addAllArgs( @@ -3394,13 +3570,21 @@ private void addAllArgs( values, args_); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; */ private void clearArgs() { args_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+     * list of arguments specific to the function
+     * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param value The bytes of the args to add. */ private void addArgsBytes( @@ -3410,10 +3594,10 @@ private void addArgsBytes( args_.add(value.toStringUtf8()); } - public static final int GASFEE_FIELD_NUMBER = 4; + public static final int GAS_FEE_FIELD_NUMBER = 4; private java.lang.String gasFee_; /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @return The gasFee. */ @java.lang.Override @@ -3421,7 +3605,7 @@ public java.lang.String getGasFee() { return gasFee_; } /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @return The bytes for gasFee. */ @java.lang.Override @@ -3430,7 +3614,7 @@ public java.lang.String getGasFee() { return com.google.protobuf.ByteString.copyFromUtf8(gasFee_); } /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @param value The gasFee to set. */ private void setGasFee( @@ -3440,14 +3624,14 @@ private void setGasFee( gasFee_ = value; } /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; */ private void clearGasFee() { gasFee_ = getDefaultInstance().getGasFee(); } /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @param value The bytes for gasFee to set. */ private void setGasFeeBytes( @@ -3457,10 +3641,10 @@ private void setGasFeeBytes( } - public static final int GASWANTED_FIELD_NUMBER = 5; + public static final int GAS_WANTED_FIELD_NUMBER = 5; private long gasWanted_; /** - * sint64 GasWanted = 5 [json_name = "GasWanted"]; + * sint64 gas_wanted = 5 [json_name = "gasWanted"]; * @return The gasWanted. */ @java.lang.Override @@ -3468,7 +3652,7 @@ public long getGasWanted() { return gasWanted_; } /** - * sint64 GasWanted = 5 [json_name = "GasWanted"]; + * sint64 gas_wanted = 5 [json_name = "gasWanted"]; * @param value The gasWanted to set. */ private void setGasWanted(long value) { @@ -3476,7 +3660,7 @@ private void setGasWanted(long value) { gasWanted_ = value; } /** - * sint64 GasWanted = 5 [json_name = "GasWanted"]; + * sint64 gas_wanted = 5 [json_name = "gasWanted"]; */ private void clearGasWanted() { @@ -3486,7 +3670,7 @@ private void clearGasWanted() { public static final int SEND_FIELD_NUMBER = 6; private java.lang.String send_; /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @return The send. */ @java.lang.Override @@ -3494,7 +3678,7 @@ public java.lang.String getSend() { return send_; } /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @return The bytes for send. */ @java.lang.Override @@ -3503,7 +3687,7 @@ public java.lang.String getSend() { return com.google.protobuf.ByteString.copyFromUtf8(send_); } /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @param value The send to set. */ private void setSend( @@ -3513,14 +3697,14 @@ private void setSend( send_ = value; } /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; */ private void clearSend() { send_ = getDefaultInstance().getSend(); } /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @param value The bytes for send to set. */ private void setSendBytes( @@ -3533,7 +3717,7 @@ private void setSendBytes( public static final int MEMO_FIELD_NUMBER = 7; private java.lang.String memo_; /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @return The memo. */ @java.lang.Override @@ -3541,7 +3725,7 @@ public java.lang.String getMemo() { return memo_; } /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @return The bytes for memo. */ @java.lang.Override @@ -3550,7 +3734,7 @@ public java.lang.String getMemo() { return com.google.protobuf.ByteString.copyFromUtf8(memo_); } /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @param value The memo to set. */ private void setMemo( @@ -3560,14 +3744,14 @@ private void setMemo( memo_ = value; } /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; */ private void clearMemo() { memo_ = getDefaultInstance().getMemo(); } /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @param value The bytes for memo to set. */ private void setMemoBytes( @@ -3675,7 +3859,11 @@ private Builder() { /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+       * Example: "gno.land/r/demo/boards"
+       * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @return The packagePath. */ @java.lang.Override @@ -3683,7 +3871,11 @@ public java.lang.String getPackagePath() { return instance.getPackagePath(); } /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+       * Example: "gno.land/r/demo/boards"
+       * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @return The bytes for packagePath. */ @java.lang.Override @@ -3692,7 +3884,11 @@ public java.lang.String getPackagePath() { return instance.getPackagePathBytes(); } /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+       * Example: "gno.land/r/demo/boards"
+       * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @param value The packagePath to set. * @return This builder for chaining. */ @@ -3703,7 +3899,11 @@ public Builder setPackagePath( return this; } /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+       * Example: "gno.land/r/demo/boards"
+       * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @return This builder for chaining. */ public Builder clearPackagePath() { @@ -3712,7 +3912,11 @@ public Builder clearPackagePath() { return this; } /** - * string PackagePath = 1 [json_name = "PackagePath"]; + *
+       * Example: "gno.land/r/demo/boards"
+       * 
+ * + * string package_path = 1 [json_name = "packagePath"]; * @param value The bytes for packagePath to set. * @return This builder for chaining. */ @@ -3724,7 +3928,11 @@ public Builder setPackagePathBytes( } /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+       * Example: "CreateReply"
+       * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @return The fnc. */ @java.lang.Override @@ -3732,7 +3940,11 @@ public java.lang.String getFnc() { return instance.getFnc(); } /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+       * Example: "CreateReply"
+       * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @return The bytes for fnc. */ @java.lang.Override @@ -3741,7 +3953,11 @@ public java.lang.String getFnc() { return instance.getFncBytes(); } /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+       * Example: "CreateReply"
+       * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @param value The fnc to set. * @return This builder for chaining. */ @@ -3752,7 +3968,11 @@ public Builder setFnc( return this; } /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+       * Example: "CreateReply"
+       * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @return This builder for chaining. */ public Builder clearFnc() { @@ -3761,7 +3981,11 @@ public Builder clearFnc() { return this; } /** - * string Fnc = 2 [json_name = "Fnc"]; + *
+       * Example: "CreateReply"
+       * 
+ * + * string fnc = 2 [json_name = "fnc"]; * @param value The bytes for fnc to set. * @return This builder for chaining. */ @@ -3773,7 +3997,11 @@ public Builder setFncBytes( } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+       * list of arguments specific to the function
+       * 
+ * + * repeated string args = 3 [json_name = "args"]; * @return A list containing the args. */ @java.lang.Override @@ -3783,7 +4011,11 @@ public Builder setFncBytes( instance.getArgsList()); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+       * list of arguments specific to the function
+       * 
+ * + * repeated string args = 3 [json_name = "args"]; * @return The count of args. */ @java.lang.Override @@ -3791,7 +4023,11 @@ public int getArgsCount() { return instance.getArgsCount(); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+       * list of arguments specific to the function
+       * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param index The index of the element to return. * @return The args at the given index. */ @@ -3800,7 +4036,11 @@ public java.lang.String getArgs(int index) { return instance.getArgs(index); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+       * list of arguments specific to the function
+       * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param index The index of the value to return. * @return The bytes of the args at the given index. */ @@ -3810,7 +4050,11 @@ public java.lang.String getArgs(int index) { return instance.getArgsBytes(index); } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+       * list of arguments specific to the function
+       * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. @@ -3822,7 +4066,11 @@ public Builder setArgs( return this; } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+       * list of arguments specific to the function
+       * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param value The args to add. * @return This builder for chaining. */ @@ -3833,7 +4081,11 @@ public Builder addArgs( return this; } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+       * list of arguments specific to the function
+       * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param values The args to add. * @return This builder for chaining. */ @@ -3844,7 +4096,11 @@ public Builder addAllArgs( return this; } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+       * list of arguments specific to the function
+       * 
+ * + * repeated string args = 3 [json_name = "args"]; * @return This builder for chaining. */ public Builder clearArgs() { @@ -3853,7 +4109,11 @@ public Builder clearArgs() { return this; } /** - * repeated string Args = 3 [json_name = "Args"]; + *
+       * list of arguments specific to the function
+       * 
+ * + * repeated string args = 3 [json_name = "args"]; * @param value The bytes of the args to add. * @return This builder for chaining. */ @@ -3865,7 +4125,7 @@ public Builder addArgsBytes( } /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @return The gasFee. */ @java.lang.Override @@ -3873,7 +4133,7 @@ public java.lang.String getGasFee() { return instance.getGasFee(); } /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @return The bytes for gasFee. */ @java.lang.Override @@ -3882,7 +4142,7 @@ public java.lang.String getGasFee() { return instance.getGasFeeBytes(); } /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @param value The gasFee to set. * @return This builder for chaining. */ @@ -3893,7 +4153,7 @@ public Builder setGasFee( return this; } /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @return This builder for chaining. */ public Builder clearGasFee() { @@ -3902,7 +4162,7 @@ public Builder clearGasFee() { return this; } /** - * string GasFee = 4 [json_name = "GasFee"]; + * string gas_fee = 4 [json_name = "gasFee"]; * @param value The bytes for gasFee to set. * @return This builder for chaining. */ @@ -3914,7 +4174,7 @@ public Builder setGasFeeBytes( } /** - * sint64 GasWanted = 5 [json_name = "GasWanted"]; + * sint64 gas_wanted = 5 [json_name = "gasWanted"]; * @return The gasWanted. */ @java.lang.Override @@ -3922,7 +4182,7 @@ public long getGasWanted() { return instance.getGasWanted(); } /** - * sint64 GasWanted = 5 [json_name = "GasWanted"]; + * sint64 gas_wanted = 5 [json_name = "gasWanted"]; * @param value The gasWanted to set. * @return This builder for chaining. */ @@ -3932,7 +4192,7 @@ public Builder setGasWanted(long value) { return this; } /** - * sint64 GasWanted = 5 [json_name = "GasWanted"]; + * sint64 gas_wanted = 5 [json_name = "gasWanted"]; * @return This builder for chaining. */ public Builder clearGasWanted() { @@ -3942,7 +4202,7 @@ public Builder clearGasWanted() { } /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @return The send. */ @java.lang.Override @@ -3950,7 +4210,7 @@ public java.lang.String getSend() { return instance.getSend(); } /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @return The bytes for send. */ @java.lang.Override @@ -3959,7 +4219,7 @@ public java.lang.String getSend() { return instance.getSendBytes(); } /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @param value The send to set. * @return This builder for chaining. */ @@ -3970,7 +4230,7 @@ public Builder setSend( return this; } /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @return This builder for chaining. */ public Builder clearSend() { @@ -3979,7 +4239,7 @@ public Builder clearSend() { return this; } /** - * string Send = 6 [json_name = "Send"]; + * string send = 6 [json_name = "send"]; * @param value The bytes for send to set. * @return This builder for chaining. */ @@ -3991,7 +4251,7 @@ public Builder setSendBytes( } /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @return The memo. */ @java.lang.Override @@ -3999,7 +4259,7 @@ public java.lang.String getMemo() { return instance.getMemo(); } /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @return The bytes for memo. */ @java.lang.Override @@ -4008,7 +4268,7 @@ public java.lang.String getMemo() { return instance.getMemoBytes(); } /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @param value The memo to set. * @return This builder for chaining. */ @@ -4019,7 +4279,7 @@ public Builder setMemo( return this; } /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @return This builder for chaining. */ public Builder clearMemo() { @@ -4028,7 +4288,7 @@ public Builder clearMemo() { return this; } /** - * string Memo = 7 [json_name = "Memo"]; + * string memo = 7 [json_name = "memo"]; * @param value The bytes for memo to set. * @return This builder for chaining. */ @@ -4125,7 +4385,7 @@ public interface CallResponseOrBuilder extends com.google.protobuf.MessageLiteOrBuilder { /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @return The result. */ com.google.protobuf.ByteString getResult(); @@ -4144,7 +4404,7 @@ private CallResponse() { public static final int RESULT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString result_; /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @return The result. */ @java.lang.Override @@ -4152,7 +4412,7 @@ public com.google.protobuf.ByteString getResult() { return result_; } /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @param value The result to set. */ private void setResult(com.google.protobuf.ByteString value) { @@ -4161,7 +4421,7 @@ private void setResult(com.google.protobuf.ByteString value) { result_ = value; } /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; */ private void clearResult() { @@ -4266,7 +4526,7 @@ private Builder() { /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @return The result. */ @java.lang.Override @@ -4274,7 +4534,7 @@ public com.google.protobuf.ByteString getResult() { return instance.getResult(); } /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @param value The result to set. * @return This builder for chaining. */ @@ -4284,7 +4544,7 @@ public Builder setResult(com.google.protobuf.ByteString value) { return this; } /** - * bytes Result = 1 [json_name = "Result"]; + * bytes result = 1 [json_name = "result"]; * @return This builder for chaining. */ public Builder clearResult() { diff --git a/gnoboard/ios/Sources/rpc/gnomobiletypes.pb.swift b/gnoboard/ios/Sources/rpc/gnomobiletypes.pb.swift index 53a60a4f..a327bfa4 100644 --- a/gnoboard/ios/Sources/rpc/gnomobiletypes.pb.swift +++ b/gnoboard/ios/Sources/rpc/gnomobiletypes.pb.swift @@ -138,8 +138,10 @@ public struct Land_Gno_Gnomobile_V1_QueryRequest { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. + /// Example: "vm/qrender" public var path: String = String() + /// Example: "gno.land/r/demo/boards\ntestboard" public var data: Data = Data() public var unknownFields = SwiftProtobuf.UnknownStorage() @@ -164,10 +166,13 @@ public struct Land_Gno_Gnomobile_V1_CallRequest { // `Message` and `Message+*Additions` files in the SwiftProtobuf library for // methods supported on all messages. + /// Example: "gno.land/r/demo/boards" public var packagePath: String = String() + /// Example: "CreateReply" public var fnc: String = String() + /// list of arguments specific to the function public var args: [String] = [] public var gasFee: String = String() @@ -219,7 +224,7 @@ fileprivate let _protobuf_package = "land.gno.gnomobile.v1" extension Land_Gno_Gnomobile_V1_SetRemoteRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SetRemoteRequest" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "Remote"), + 1: .same(proto: "remote"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -270,7 +275,7 @@ extension Land_Gno_Gnomobile_V1_SetRemoteResponse: SwiftProtobuf.Message, SwiftP extension Land_Gno_Gnomobile_V1_SetChainIDRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SetChainIDRequest" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "ChainID"), + 1: .standard(proto: "chain_id"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -321,7 +326,7 @@ extension Land_Gno_Gnomobile_V1_SetChainIDResponse: SwiftProtobuf.Message, Swift extension Land_Gno_Gnomobile_V1_SetPasswordRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".SetPasswordRequest" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "Password"), + 1: .same(proto: "password"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -391,7 +396,7 @@ extension Land_Gno_Gnomobile_V1_GenerateRecoveryPhraseRequest: SwiftProtobuf.Mes extension Land_Gno_Gnomobile_V1_GenerateRecoveryPhraseResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".GenerateRecoveryPhraseResponse" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "Phrase"), + 1: .same(proto: "phrase"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -423,8 +428,8 @@ extension Land_Gno_Gnomobile_V1_GenerateRecoveryPhraseResponse: SwiftProtobuf.Me extension Land_Gno_Gnomobile_V1_DeleteAccountRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".DeleteAccountRequest" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "NameOrBech32"), - 2: .same(proto: "Password"), + 1: .standard(proto: "name_or_bech32"), + 2: .same(proto: "password"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -480,8 +485,8 @@ extension Land_Gno_Gnomobile_V1_DeleteAccountResponse: SwiftProtobuf.Message, Sw extension Land_Gno_Gnomobile_V1_QueryRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".QueryRequest" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "Path"), - 2: .same(proto: "Data"), + 1: .same(proto: "path"), + 2: .same(proto: "data"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -518,7 +523,7 @@ extension Land_Gno_Gnomobile_V1_QueryRequest: SwiftProtobuf.Message, SwiftProtob extension Land_Gno_Gnomobile_V1_QueryResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".QueryResponse" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "Result"), + 1: .same(proto: "result"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -550,13 +555,13 @@ extension Land_Gno_Gnomobile_V1_QueryResponse: SwiftProtobuf.Message, SwiftProto extension Land_Gno_Gnomobile_V1_CallRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".CallRequest" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "PackagePath"), - 2: .same(proto: "Fnc"), - 3: .same(proto: "Args"), - 4: .same(proto: "GasFee"), - 5: .same(proto: "GasWanted"), - 6: .same(proto: "Send"), - 7: .same(proto: "Memo"), + 1: .standard(proto: "package_path"), + 2: .same(proto: "fnc"), + 3: .same(proto: "args"), + 4: .standard(proto: "gas_fee"), + 5: .standard(proto: "gas_wanted"), + 6: .same(proto: "send"), + 7: .same(proto: "memo"), ] public mutating func decodeMessage(decoder: inout D) throws { @@ -618,7 +623,7 @@ extension Land_Gno_Gnomobile_V1_CallRequest: SwiftProtobuf.Message, SwiftProtobu extension Land_Gno_Gnomobile_V1_CallResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { public static let protoMessageName: String = _protobuf_package + ".CallResponse" public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [ - 1: .same(proto: "Result"), + 1: .same(proto: "result"), ] public mutating func decodeMessage(decoder: inout D) throws { diff --git a/gnoboard/src/api/gnomobiletypes_pb.d.ts b/gnoboard/src/api/gnomobiletypes_pb.d.ts index 26e7de1a..eff353cd 100644 --- a/gnoboard/src/api/gnomobiletypes_pb.d.ts +++ b/gnoboard/src/api/gnomobiletypes_pb.d.ts @@ -13,9 +13,9 @@ import { Message, proto3 } from "@bufbuild/protobuf"; */ export declare class SetRemoteRequest extends Message { /** - * @generated from field: string Remote = 1; + * @generated from field: string remote = 1; */ - Remote: string; + remote: string; constructor(data?: PartialMessage); @@ -56,9 +56,9 @@ export declare class SetRemoteResponse extends Message { */ export declare class SetChainIDRequest extends Message { /** - * @generated from field: string ChainID = 1; + * @generated from field: string chain_id = 1; */ - ChainID: string; + chainId: string; constructor(data?: PartialMessage); @@ -99,9 +99,9 @@ export declare class SetChainIDResponse extends Message { */ export declare class SetPasswordRequest extends Message { /** - * @generated from field: string Password = 1; + * @generated from field: string password = 1; */ - Password: string; + password: string; constructor(data?: PartialMessage); @@ -161,9 +161,9 @@ export declare class GenerateRecoveryPhraseRequest extends Message { /** - * @generated from field: string Phrase = 1; + * @generated from field: string phrase = 1; */ - Phrase: string; + phrase: string; constructor(data?: PartialMessage); @@ -185,14 +185,14 @@ export declare class GenerateRecoveryPhraseResponse extends Message { /** - * @generated from field: string NameOrBech32 = 1; + * @generated from field: string name_or_bech32 = 1; */ - NameOrBech32: string; + nameOrBech32: string; /** - * @generated from field: string Password = 2; + * @generated from field: string password = 2; */ - Password: string; + password: string; constructor(data?: PartialMessage); @@ -233,14 +233,18 @@ export declare class DeleteAccountResponse extends Message { /** - * @generated from field: string Path = 1; + * Example: "vm/qrender" + * + * @generated from field: string path = 1; */ - Path: string; + path: string; /** - * @generated from field: bytes Data = 2; + * Example: "gno.land/r/demo/boards\ntestboard" + * + * @generated from field: bytes data = 2; */ - Data: Uint8Array; + data: Uint8Array; constructor(data?: PartialMessage); @@ -262,9 +266,9 @@ export declare class QueryRequest extends Message { */ export declare class QueryResponse extends Message { /** - * @generated from field: bytes Result = 1; + * @generated from field: bytes result = 1; */ - Result: Uint8Array; + result: Uint8Array; constructor(data?: PartialMessage); @@ -286,39 +290,45 @@ export declare class QueryResponse extends Message { */ export declare class CallRequest extends Message { /** - * @generated from field: string PackagePath = 1; + * Example: "gno.land/r/demo/boards" + * + * @generated from field: string package_path = 1; */ - PackagePath: string; + packagePath: string; /** - * @generated from field: string Fnc = 2; + * Example: "CreateReply" + * + * @generated from field: string fnc = 2; */ - Fnc: string; + fnc: string; /** - * @generated from field: repeated string Args = 3; + * list of arguments specific to the function + * + * @generated from field: repeated string args = 3; */ - Args: string[]; + args: string[]; /** - * @generated from field: string GasFee = 4; + * @generated from field: string gas_fee = 4; */ - GasFee: string; + gasFee: string; /** - * @generated from field: sint64 GasWanted = 5; + * @generated from field: sint64 gas_wanted = 5; */ - GasWanted: bigint; + gasWanted: bigint; /** - * @generated from field: string Send = 6; + * @generated from field: string send = 6; */ - Send: string; + send: string; /** - * @generated from field: string Memo = 7; + * @generated from field: string memo = 7; */ - Memo: string; + memo: string; constructor(data?: PartialMessage); @@ -340,9 +350,9 @@ export declare class CallRequest extends Message { */ export declare class CallResponse extends Message { /** - * @generated from field: bytes Result = 1; + * @generated from field: bytes result = 1; */ - Result: Uint8Array; + result: Uint8Array; constructor(data?: PartialMessage); diff --git a/gnoboard/src/api/gnomobiletypes_pb.js b/gnoboard/src/api/gnomobiletypes_pb.js index 6ce2c732..2bf6d393 100644 --- a/gnoboard/src/api/gnomobiletypes_pb.js +++ b/gnoboard/src/api/gnomobiletypes_pb.js @@ -13,7 +13,7 @@ import { proto3 } from "@bufbuild/protobuf"; export const SetRemoteRequest = proto3.makeMessageType( "land.gno.gnomobile.v1.SetRemoteRequest", () => [ - { no: 1, name: "Remote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "remote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ], ); @@ -31,7 +31,7 @@ export const SetRemoteResponse = proto3.makeMessageType( export const SetChainIDRequest = proto3.makeMessageType( "land.gno.gnomobile.v1.SetChainIDRequest", () => [ - { no: 1, name: "ChainID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ], ); @@ -49,7 +49,7 @@ export const SetChainIDResponse = proto3.makeMessageType( export const SetPasswordRequest = proto3.makeMessageType( "land.gno.gnomobile.v1.SetPasswordRequest", () => [ - { no: 1, name: "Password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ], ); @@ -75,7 +75,7 @@ export const GenerateRecoveryPhraseRequest = proto3.makeMessageType( export const GenerateRecoveryPhraseResponse = proto3.makeMessageType( "land.gno.gnomobile.v1.GenerateRecoveryPhraseResponse", () => [ - { no: 1, name: "Phrase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "phrase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ], ); @@ -85,8 +85,8 @@ export const GenerateRecoveryPhraseResponse = proto3.makeMessageType( export const DeleteAccountRequest = proto3.makeMessageType( "land.gno.gnomobile.v1.DeleteAccountRequest", () => [ - { no: 1, name: "NameOrBech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "Password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ], ); @@ -104,8 +104,8 @@ export const DeleteAccountResponse = proto3.makeMessageType( export const QueryRequest = proto3.makeMessageType( "land.gno.gnomobile.v1.QueryRequest", () => [ - { no: 1, name: "Path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "Data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ], ); @@ -115,7 +115,7 @@ export const QueryRequest = proto3.makeMessageType( export const QueryResponse = proto3.makeMessageType( "land.gno.gnomobile.v1.QueryResponse", () => [ - { no: 1, name: "Result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ], ); @@ -125,13 +125,13 @@ export const QueryResponse = proto3.makeMessageType( export const CallRequest = proto3.makeMessageType( "land.gno.gnomobile.v1.CallRequest", () => [ - { no: 1, name: "PackagePath", 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: "GasFee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "GasWanted", kind: "scalar", T: 18 /* ScalarType.SINT64 */ }, - { no: 6, name: "Send", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "Memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { 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: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "gas_wanted", kind: "scalar", T: 18 /* ScalarType.SINT64 */ }, + { no: 6, name: "send", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "memo", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ], ); @@ -141,7 +141,7 @@ export const CallRequest = proto3.makeMessageType( export const CallResponse = proto3.makeMessageType( "land.gno.gnomobile.v1.CallResponse", () => [ - { no: 1, name: "Result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 1, name: "result", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ], ); diff --git a/gnoboard/src/hooks/use-gno.ts b/gnoboard/src/hooks/use-gno.ts index 7cc89de6..a4efedb5 100644 --- a/gnoboard/src/hooks/use-gno.ts +++ b/gnoboard/src/hooks/use-gno.ts @@ -57,7 +57,7 @@ export const useGno = (): GnoResponse => { const generateRecoveryPhrase = async () => { const client = await getClient(); const response = await client.generateRecoveryPhrase(new GenerateRecoveryPhraseRequest()); - return response.Phrase; + return response.phrase; }; const listKeyInfo = async () => { @@ -78,7 +78,7 @@ export const useGno = (): GnoResponse => { const setPassword = async (password: string) => { const client = await getClient(); - const response = await client.setPassword(new SetPasswordRequest({ Password: password })); + const response = await client.setPassword(new SetPasswordRequest({ password })); return response; }; @@ -86,8 +86,8 @@ export const useGno = (): GnoResponse => { const client = await getClient(); const response = await client.deleteAccount( new DeleteAccountRequest({ - NameOrBech32: nameOrBech32, - Password: password })); + nameOrBech32, + password })); return response; }; @@ -95,11 +95,11 @@ export const useGno = (): GnoResponse => { const client = await getClient(); const reponse = await client.call( new CallRequest({ - PackagePath: packagePath, - Fnc: fnc, - Args: args, - GasFee: gasFee, - GasWanted: BigInt(gasWanted), + packagePath, + fnc, + args, + gasFee, + gasWanted: BigInt(gasWanted), }), ); return reponse; diff --git a/gnoboard/src/screens/devmode/index.tsx b/gnoboard/src/screens/devmode/index.tsx index 7060453a..d88e8a63 100644 --- a/gnoboard/src/screens/devmode/index.tsx +++ b/gnoboard/src/screens/devmode/index.tsx @@ -23,7 +23,7 @@ function DevMode() { try { const response = await gno.call('gno.land/r/demo/boards', 'CreateReply', args, gasFee, gasWanted); console.log('response: ', response); - setAppConsole(Buffer.from(response.Result).toString()); + setAppConsole(Buffer.from(response.result).toString()); } catch (error) { console.log(error); setAppConsole('error' + JSON.stringify(error)); diff --git a/go.mod b/go.mod index d3a7a2f0..40c56edc 100644 --- a/go.mod +++ b/go.mod @@ -48,13 +48,16 @@ require ( go.etcd.io/bbolt v1.3.7 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/crypto v0.13.0 // indirect - golang.org/x/mod v0.12.0 // indirect + golang.org/x/mod v0.13.0 // indirect golang.org/x/sync v0.3.0 // indirect golang.org/x/sys v0.12.0 // indirect golang.org/x/term v0.12.0 // indirect golang.org/x/text v0.13.0 // indirect - golang.org/x/tools v0.12.1-0.20230818130535-1517d1a3ba60 // indirect + golang.org/x/tools v0.13.0 // indirect google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd // indirect ) -replace golang.org/x/mobile => github.com/berty/mobile v0.0.11 // temporary, see https://github.com/golang/mobile/pull/58 and https://github.com/golang/mobile/pull/82 +replace ( + github.com/gnolang/gno => github.com/berty/gno v0.0.1 // temporary until PRs merged into upstream, see https://github.com/berty/gno/pull/2 + golang.org/x/mobile => github.com/berty/mobile v0.0.11 // temporary, see https://github.com/golang/mobile/pull/58 and https://github.com/golang/mobile/pull/82 +) diff --git a/go.sum b/go.sum index 2851d9d1..892f7782 100644 --- a/go.sum +++ b/go.sum @@ -11,6 +11,8 @@ github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAE github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= +github.com/berty/gno v0.0.1 h1:wmGJWKhE4hWLSyEohVVNd/q+he5gQzfZ/Uc5n7B1LJo= +github.com/berty/gno v0.0.1/go.mod h1:YNCegQ86Wzq9eM2wYnb6zik/rK3DjwiVd7iFgH5CJXg= github.com/berty/mobile v0.0.11 h1:EMN2VGSJYKqKMTmFLg7FEAOZ68HxruCmbAkh//YX4Eo= github.com/berty/mobile v0.0.11/go.mod h1:kQNMt2gXlYXNazoSeytBi7knmDN7YS/JzMKFYxgoNxc= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= @@ -62,8 +64,6 @@ github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 h1:JWuenKqqX8nojt github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 h1:7HZCaLC5+BZpmbhCOZJ293Lz68O7PYrF2EzeiFMwCLk= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/gnolang/gno v0.0.0-20230922195728-5a7d005fc14f h1:15gqt24pSYkPuOBDbUAGxAlFcfUf7xya0wVP0jqbQCY= -github.com/gnolang/gno v0.0.0-20230922195728-5a7d005fc14f/go.mod h1:dtwSoPiPCcGxACg4y2iJVWZ/vuU133n4kwF28mx6Krg= github.com/gnolang/goleveldb v0.0.9 h1:Q7rGko9oXMKtQA+Apeeed5a3sjba/mcDhzJGoTVLCKE= github.com/gnolang/goleveldb v0.0.9/go.mod h1:Dz6p9bmpy/FBESTgduiThZt5mToVDipcHGzj/zUOo8E= github.com/gnolang/overflow v0.0.0-20170615021017-4d914c927216 h1:GKvsK3oLWG9B1GL7WP/VqwM6C92j5tIvB844oggL9Lk= @@ -202,8 +202,8 @@ golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvx golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -249,8 +249,8 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.12.1-0.20230818130535-1517d1a3ba60 h1:o4bs4seAAlSiZQAZbO6/RP5XBCZCooQS3Pgc0AUjWts= -golang.org/x/tools v0.12.1-0.20230818130535-1517d1a3ba60/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ= +golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/service/api.go b/service/api.go index a53834c5..64121bad 100644 --- a/service/api.go +++ b/service/api.go @@ -23,7 +23,7 @@ func (s *gnomobileService) SetRemote(ctx context.Context, req *connect.Request[r // Set the chain ID for the remote node. If you don't call this, the default is "dev" func (s *gnomobileService) SetChainID(ctx context.Context, req *connect.Request[rpc.SetChainIDRequest]) (*connect.Response[rpc.SetChainIDResponse], error) { - s.getSigner().ChainID = req.Msg.ChainID + s.getSigner().ChainID = req.Msg.ChainId return connect.NewResponse(&rpc.SetChainIDResponse{}), nil } diff --git a/service/gnomobiletypes/package.go b/service/gnomobiletypes/package.go index 93412db6..b2650c55 100644 --- a/service/gnomobiletypes/package.go +++ b/service/gnomobiletypes/package.go @@ -26,4 +26,4 @@ var Package = amino.RegisterPackage(amino.NewPackage( QueryResponse{}, CallRequest{}, CallResponse{}, -)) +).WithComments(path.Join(amino.GetCallersDirname(), "gnomobiletypes.go"))) diff --git a/service/rpc/gnomobiletypes.pb.go b/service/rpc/gnomobiletypes.pb.go index 3fb7f5a9..9e93cf39 100644 --- a/service/rpc/gnomobiletypes.pb.go +++ b/service/rpc/gnomobiletypes.pb.go @@ -26,7 +26,7 @@ type SetRemoteRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Remote string `protobuf:"bytes,1,opt,name=Remote,proto3" json:"Remote,omitempty"` + Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` } func (x *SetRemoteRequest) Reset() { @@ -111,7 +111,7 @@ type SetChainIDRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ChainID string `protobuf:"bytes,1,opt,name=ChainID,proto3" json:"ChainID,omitempty"` + ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } func (x *SetChainIDRequest) Reset() { @@ -146,9 +146,9 @@ func (*SetChainIDRequest) Descriptor() ([]byte, []int) { return file_gnomobiletypes_proto_rawDescGZIP(), []int{2} } -func (x *SetChainIDRequest) GetChainID() string { +func (x *SetChainIDRequest) GetChainId() string { if x != nil { - return x.ChainID + return x.ChainId } return "" } @@ -196,7 +196,7 @@ type SetPasswordRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Password string `protobuf:"bytes,1,opt,name=Password,proto3" json:"Password,omitempty"` + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` } func (x *SetPasswordRequest) Reset() { @@ -319,7 +319,7 @@ type GenerateRecoveryPhraseResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Phrase string `protobuf:"bytes,1,opt,name=Phrase,proto3" json:"Phrase,omitempty"` + Phrase string `protobuf:"bytes,1,opt,name=phrase,proto3" json:"phrase,omitempty"` } func (x *GenerateRecoveryPhraseResponse) Reset() { @@ -366,8 +366,8 @@ type DeleteAccountRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - NameOrBech32 string `protobuf:"bytes,1,opt,name=NameOrBech32,proto3" json:"NameOrBech32,omitempty"` - Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"` + NameOrBech32 string `protobuf:"bytes,1,opt,name=name_or_bech32,json=nameOrBech32,proto3" json:"name_or_bech32,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` } func (x *DeleteAccountRequest) Reset() { @@ -459,8 +459,10 @@ type QueryRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Path string `protobuf:"bytes,1,opt,name=Path,proto3" json:"Path,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` + // Example: "vm/qrender" + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + // Example: "gno.land/r/demo/boards\ntestboard" + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } func (x *QueryRequest) Reset() { @@ -514,7 +516,7 @@ type QueryResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Result []byte `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"` + Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` } func (x *QueryResponse) Reset() { @@ -561,13 +563,16 @@ type CallRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PackagePath string `protobuf:"bytes,1,opt,name=PackagePath,proto3" json:"PackagePath,omitempty"` - Fnc string `protobuf:"bytes,2,opt,name=Fnc,proto3" json:"Fnc,omitempty"` - Args []string `protobuf:"bytes,3,rep,name=Args,proto3" json:"Args,omitempty"` - GasFee string `protobuf:"bytes,4,opt,name=GasFee,proto3" json:"GasFee,omitempty"` - GasWanted int64 `protobuf:"zigzag64,5,opt,name=GasWanted,proto3" json:"GasWanted,omitempty"` - Send string `protobuf:"bytes,6,opt,name=Send,proto3" json:"Send,omitempty"` - Memo string `protobuf:"bytes,7,opt,name=Memo,proto3" json:"Memo,omitempty"` + // Example: "gno.land/r/demo/boards" + PackagePath string `protobuf:"bytes,1,opt,name=package_path,json=packagePath,proto3" json:"package_path,omitempty"` + // Example: "CreateReply" + Fnc string `protobuf:"bytes,2,opt,name=fnc,proto3" json:"fnc,omitempty"` + // list of arguments specific to the function + Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` + GasFee string `protobuf:"bytes,4,opt,name=gas_fee,json=gasFee,proto3" json:"gas_fee,omitempty"` + GasWanted int64 `protobuf:"zigzag64,5,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"` + Send string `protobuf:"bytes,6,opt,name=send,proto3" json:"send,omitempty"` + Memo string `protobuf:"bytes,7,opt,name=memo,proto3" json:"memo,omitempty"` } func (x *CallRequest) Reset() { @@ -656,7 +661,7 @@ type CallResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Result []byte `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"` + Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` } func (x *CallResponse) Reset() { @@ -705,54 +710,55 @@ var file_gnomobiletypes_proto_rawDesc = []byte{ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x6c, 0x61, 0x6e, 0x64, 0x2e, 0x67, 0x6e, 0x6f, 0x2e, 0x67, 0x6e, 0x6f, 0x6d, 0x6f, 0x62, 0x69, 0x6c, 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, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x52, 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, 0x2d, + 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, 0x2e, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x22, 0x14, 0x0a, - 0x12, 0x53, 0x65, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x30, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 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, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x22, 0x56, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x22, 0x0a, 0x0c, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, 0x68, 0x33, 0x32, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x4e, 0x61, 0x6d, 0x65, 0x4f, 0x72, 0x42, 0x65, 0x63, - 0x68, 0x33, 0x32, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 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, 0x50, 0x61, 0x74, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, - 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, - 0x22, 0x27, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xb3, 0x01, 0x0a, 0x0b, 0x43, 0x61, - 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x46, - 0x6e, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x46, 0x6e, 0x63, 0x12, 0x12, 0x0a, - 0x04, 0x41, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x41, 0x72, 0x67, - 0x73, 0x12, 0x16, 0x0a, 0x06, 0x47, 0x61, 0x73, 0x46, 0x65, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x47, 0x61, 0x73, 0x46, 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x47, 0x61, 0x73, - 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x12, 0x52, 0x09, 0x47, 0x61, - 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x65, 0x6e, 0x64, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x4d, - 0x65, 0x6d, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x4d, 0x65, 0x6d, 0x6f, 0x22, - 0x26, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6e, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x67, 0x6e, - 0x6f, 0x6d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, - 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 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, 0x30, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x50, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 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, 0x58, 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, 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, 0xb6, 0x01, 0x0a, + 0x0b, 0x43, 0x61, 0x6c, 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, + 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, 0x17, 0x0a, 0x07, 0x67, 0x61, 0x73, 0x5f, 0x66, 0x65, 0x65, + 0x18, 0x04, 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, 0x05, 0x20, 0x01, + 0x28, 0x12, 0x52, 0x09, 0x67, 0x61, 0x73, 0x57, 0x61, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x73, 0x65, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6e, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6d, 0x65, 0x6d, 0x6f, 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, 0x42, 0x2a, 0x5a, + 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6e, 0x6f, 0x6c, + 0x61, 0x6e, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x6d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x2f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/service/rpc/gnomobiletypes.proto b/service/rpc/gnomobiletypes.proto index fa0f772a..feff9281 100644 --- a/service/rpc/gnomobiletypes.proto +++ b/service/rpc/gnomobiletypes.proto @@ -5,21 +5,21 @@ option go_package = "github.com/gnolang/gnomobile/service/rpc"; // messages message SetRemoteRequest { - string Remote = 1; + string remote = 1; } message SetRemoteResponse { } message SetChainIDRequest { - string ChainID = 1; + string chain_id = 1; } message SetChainIDResponse { } message SetPasswordRequest { - string Password = 1; + string password = 1; } message SetPasswordResponse { @@ -29,36 +29,41 @@ message GenerateRecoveryPhraseRequest { } message GenerateRecoveryPhraseResponse { - string Phrase = 1; + string phrase = 1; } message DeleteAccountRequest { - string NameOrBech32 = 1; - string Password = 2; + string name_or_bech32 = 1; + string password = 2; } message DeleteAccountResponse { } message QueryRequest { - string Path = 1; - bytes Data = 2; + // Example: "vm/qrender" + string path = 1; + // Example: "gno.land/r/demo/boards\ntestboard" + bytes data = 2; } message QueryResponse { - bytes Result = 1; + bytes result = 1; } message CallRequest { - string PackagePath = 1; - string Fnc = 2; - repeated string Args = 3; - string GasFee = 4; - sint64 GasWanted = 5; - string Send = 6; - string Memo = 7; + // Example: "gno.land/r/demo/boards" + string package_path = 1; + // Example: "CreateReply" + string fnc = 2; + // list of arguments specific to the function + repeated string args = 3; + string gas_fee = 4; + sint64 gas_wanted = 5; + string send = 6; + string memo = 7; } message CallResponse { - bytes Result = 1; + bytes result = 1; } \ No newline at end of file