Documentation
¶
Index ¶
- Constants
- func NewGnoNativeServiceHandler(svc GnoNativeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type GnoNativeServiceClient
- type GnoNativeServiceHandler
- type UnimplementedGnoNativeServiceHandler
- func (UnimplementedGnoNativeServiceHandler) AddressFromBech32(context.Context, *connect.Request[_go.AddressFromBech32Request]) (*connect.Response[_go.AddressFromBech32Response], error)
- func (UnimplementedGnoNativeServiceHandler) AddressToBech32(context.Context, *connect.Request[_go.AddressToBech32Request]) (*connect.Response[_go.AddressToBech32Response], error)
- func (UnimplementedGnoNativeServiceHandler) Call(context.Context, *connect.Request[_go.CallRequest], ...) error
- func (UnimplementedGnoNativeServiceHandler) CreateAccount(context.Context, *connect.Request[_go.CreateAccountRequest]) (*connect.Response[_go.CreateAccountResponse], error)
- func (UnimplementedGnoNativeServiceHandler) DeleteAccount(context.Context, *connect.Request[_go.DeleteAccountRequest]) (*connect.Response[_go.DeleteAccountResponse], error)
- func (UnimplementedGnoNativeServiceHandler) GenerateRecoveryPhrase(context.Context, *connect.Request[_go.GenerateRecoveryPhraseRequest]) (*connect.Response[_go.GenerateRecoveryPhraseResponse], error)
- func (UnimplementedGnoNativeServiceHandler) GetActiveAccount(context.Context, *connect.Request[_go.GetActiveAccountRequest]) (*connect.Response[_go.GetActiveAccountResponse], error)
- func (UnimplementedGnoNativeServiceHandler) GetChainID(context.Context, *connect.Request[_go.GetChainIDRequest]) (*connect.Response[_go.GetChainIDResponse], error)
- func (UnimplementedGnoNativeServiceHandler) GetKeyInfoByAddress(context.Context, *connect.Request[_go.GetKeyInfoByAddressRequest]) (*connect.Response[_go.GetKeyInfoByAddressResponse], error)
- func (UnimplementedGnoNativeServiceHandler) GetKeyInfoByName(context.Context, *connect.Request[_go.GetKeyInfoByNameRequest]) (*connect.Response[_go.GetKeyInfoByNameResponse], error)
- func (UnimplementedGnoNativeServiceHandler) GetKeyInfoByNameOrAddress(context.Context, *connect.Request[_go.GetKeyInfoByNameOrAddressRequest]) (*connect.Response[_go.GetKeyInfoByNameOrAddressResponse], error)
- func (UnimplementedGnoNativeServiceHandler) GetRemote(context.Context, *connect.Request[_go.GetRemoteRequest]) (*connect.Response[_go.GetRemoteResponse], error)
- func (UnimplementedGnoNativeServiceHandler) HasKeyByAddress(context.Context, *connect.Request[_go.HasKeyByAddressRequest]) (*connect.Response[_go.HasKeyByAddressResponse], error)
- func (UnimplementedGnoNativeServiceHandler) HasKeyByName(context.Context, *connect.Request[_go.HasKeyByNameRequest]) (*connect.Response[_go.HasKeyByNameResponse], error)
- func (UnimplementedGnoNativeServiceHandler) HasKeyByNameOrAddress(context.Context, *connect.Request[_go.HasKeyByNameOrAddressRequest]) (*connect.Response[_go.HasKeyByNameOrAddressResponse], error)
- func (UnimplementedGnoNativeServiceHandler) Hello(context.Context, *connect.Request[_go.HelloRequest]) (*connect.Response[_go.HelloResponse], error)
- func (UnimplementedGnoNativeServiceHandler) HelloStream(context.Context, *connect.Request[_go.HelloStreamRequest], ...) error
- func (UnimplementedGnoNativeServiceHandler) ListKeyInfo(context.Context, *connect.Request[_go.ListKeyInfoRequest]) (*connect.Response[_go.ListKeyInfoResponse], error)
- func (UnimplementedGnoNativeServiceHandler) QEval(context.Context, *connect.Request[_go.QEvalRequest]) (*connect.Response[_go.QEvalResponse], error)
- func (UnimplementedGnoNativeServiceHandler) Query(context.Context, *connect.Request[_go.QueryRequest]) (*connect.Response[_go.QueryResponse], error)
- func (UnimplementedGnoNativeServiceHandler) QueryAccount(context.Context, *connect.Request[_go.QueryAccountRequest]) (*connect.Response[_go.QueryAccountResponse], error)
- func (UnimplementedGnoNativeServiceHandler) Render(context.Context, *connect.Request[_go.RenderRequest]) (*connect.Response[_go.RenderResponse], error)
- func (UnimplementedGnoNativeServiceHandler) Run(context.Context, *connect.Request[_go.RunRequest], ...) error
- func (UnimplementedGnoNativeServiceHandler) SelectAccount(context.Context, *connect.Request[_go.SelectAccountRequest]) (*connect.Response[_go.SelectAccountResponse], error)
- func (UnimplementedGnoNativeServiceHandler) Send(context.Context, *connect.Request[_go.SendRequest], ...) error
- func (UnimplementedGnoNativeServiceHandler) SetChainID(context.Context, *connect.Request[_go.SetChainIDRequest]) (*connect.Response[_go.SetChainIDResponse], error)
- func (UnimplementedGnoNativeServiceHandler) SetPassword(context.Context, *connect.Request[_go.SetPasswordRequest]) (*connect.Response[_go.SetPasswordResponse], error)
- func (UnimplementedGnoNativeServiceHandler) SetRemote(context.Context, *connect.Request[_go.SetRemoteRequest]) (*connect.Response[_go.SetRemoteResponse], error)
Constants ¶
const ( // GnoNativeServiceSetRemoteProcedure is the fully-qualified name of the GnoNativeService's // SetRemote RPC. GnoNativeServiceSetRemoteProcedure = "/land.gno.gnonative.v1.GnoNativeService/SetRemote" // GnoNativeServiceGetRemoteProcedure is the fully-qualified name of the GnoNativeService's // GetRemote RPC. GnoNativeServiceGetRemoteProcedure = "/land.gno.gnonative.v1.GnoNativeService/GetRemote" // GnoNativeServiceSetChainIDProcedure is the fully-qualified name of the GnoNativeService's // SetChainID RPC. GnoNativeServiceSetChainIDProcedure = "/land.gno.gnonative.v1.GnoNativeService/SetChainID" // GnoNativeServiceGetChainIDProcedure is the fully-qualified name of the GnoNativeService's // GetChainID RPC. GnoNativeServiceGetChainIDProcedure = "/land.gno.gnonative.v1.GnoNativeService/GetChainID" // GnoNativeServiceGenerateRecoveryPhraseProcedure is the fully-qualified name of the // GnoNativeService's GenerateRecoveryPhrase RPC. GnoNativeServiceGenerateRecoveryPhraseProcedure = "/land.gno.gnonative.v1.GnoNativeService/GenerateRecoveryPhrase" // GnoNativeServiceListKeyInfoProcedure is the fully-qualified name of the GnoNativeService's // ListKeyInfo RPC. GnoNativeServiceListKeyInfoProcedure = "/land.gno.gnonative.v1.GnoNativeService/ListKeyInfo" // GnoNativeServiceHasKeyByNameProcedure is the fully-qualified name of the GnoNativeService's // HasKeyByName RPC. GnoNativeServiceHasKeyByNameProcedure = "/land.gno.gnonative.v1.GnoNativeService/HasKeyByName" // GnoNativeServiceHasKeyByAddressProcedure is the fully-qualified name of the GnoNativeService's // HasKeyByAddress RPC. GnoNativeServiceHasKeyByAddressProcedure = "/land.gno.gnonative.v1.GnoNativeService/HasKeyByAddress" // GnoNativeServiceHasKeyByNameOrAddressProcedure is the fully-qualified name of the // GnoNativeService's HasKeyByNameOrAddress RPC. GnoNativeServiceHasKeyByNameOrAddressProcedure = "/land.gno.gnonative.v1.GnoNativeService/HasKeyByNameOrAddress" // GnoNativeServiceGetKeyInfoByNameProcedure is the fully-qualified name of the GnoNativeService's // GetKeyInfoByName RPC. GnoNativeServiceGetKeyInfoByNameProcedure = "/land.gno.gnonative.v1.GnoNativeService/GetKeyInfoByName" // GnoNativeServiceGetKeyInfoByAddressProcedure is the fully-qualified name of the // GnoNativeService's GetKeyInfoByAddress RPC. GnoNativeServiceGetKeyInfoByAddressProcedure = "/land.gno.gnonative.v1.GnoNativeService/GetKeyInfoByAddress" // GnoNativeServiceGetKeyInfoByNameOrAddressProcedure is the fully-qualified name of the // GnoNativeService's GetKeyInfoByNameOrAddress RPC. GnoNativeServiceGetKeyInfoByNameOrAddressProcedure = "/land.gno.gnonative.v1.GnoNativeService/GetKeyInfoByNameOrAddress" // GnoNativeServiceCreateAccountProcedure is the fully-qualified name of the GnoNativeService's // CreateAccount RPC. GnoNativeServiceCreateAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/CreateAccount" // GnoNativeServiceSelectAccountProcedure is the fully-qualified name of the GnoNativeService's // SelectAccount RPC. GnoNativeServiceSelectAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/SelectAccount" // GnoNativeServiceSetPasswordProcedure is the fully-qualified name of the GnoNativeService's // SetPassword RPC. GnoNativeServiceSetPasswordProcedure = "/land.gno.gnonative.v1.GnoNativeService/SetPassword" // GnoNativeServiceGetActiveAccountProcedure is the fully-qualified name of the GnoNativeService's // GetActiveAccount RPC. GnoNativeServiceGetActiveAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/GetActiveAccount" // GnoNativeServiceQueryAccountProcedure is the fully-qualified name of the GnoNativeService's // QueryAccount RPC. GnoNativeServiceQueryAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/QueryAccount" // GnoNativeServiceDeleteAccountProcedure is the fully-qualified name of the GnoNativeService's // DeleteAccount RPC. GnoNativeServiceDeleteAccountProcedure = "/land.gno.gnonative.v1.GnoNativeService/DeleteAccount" // GnoNativeServiceQueryProcedure is the fully-qualified name of the GnoNativeService's Query RPC. GnoNativeServiceQueryProcedure = "/land.gno.gnonative.v1.GnoNativeService/Query" // GnoNativeServiceRenderProcedure is the fully-qualified name of the GnoNativeService's Render RPC. GnoNativeServiceRenderProcedure = "/land.gno.gnonative.v1.GnoNativeService/Render" // GnoNativeServiceQEvalProcedure is the fully-qualified name of the GnoNativeService's QEval RPC. GnoNativeServiceQEvalProcedure = "/land.gno.gnonative.v1.GnoNativeService/QEval" // GnoNativeServiceCallProcedure is the fully-qualified name of the GnoNativeService's Call RPC. GnoNativeServiceCallProcedure = "/land.gno.gnonative.v1.GnoNativeService/Call" // GnoNativeServiceSendProcedure is the fully-qualified name of the GnoNativeService's Send RPC. GnoNativeServiceSendProcedure = "/land.gno.gnonative.v1.GnoNativeService/Send" // GnoNativeServiceRunProcedure is the fully-qualified name of the GnoNativeService's Run RPC. GnoNativeServiceRunProcedure = "/land.gno.gnonative.v1.GnoNativeService/Run" // GnoNativeServiceAddressToBech32Procedure is the fully-qualified name of the GnoNativeService's // AddressToBech32 RPC. GnoNativeServiceAddressToBech32Procedure = "/land.gno.gnonative.v1.GnoNativeService/AddressToBech32" // GnoNativeServiceAddressFromBech32Procedure is the fully-qualified name of the GnoNativeService's // AddressFromBech32 RPC. GnoNativeServiceAddressFromBech32Procedure = "/land.gno.gnonative.v1.GnoNativeService/AddressFromBech32" // GnoNativeServiceHelloProcedure is the fully-qualified name of the GnoNativeService's Hello RPC. GnoNativeServiceHelloProcedure = "/land.gno.gnonative.v1.GnoNativeService/Hello" // GnoNativeServiceHelloStreamProcedure is the fully-qualified name of the GnoNativeService's // HelloStream RPC. GnoNativeServiceHelloStreamProcedure = "/land.gno.gnonative.v1.GnoNativeService/HelloStream" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// GnoNativeServiceName is the fully-qualified name of the GnoNativeService service.
GnoNativeServiceName = "land.gno.gnonative.v1.GnoNativeService"
)
Variables ¶
This section is empty.
Functions ¶
func NewGnoNativeServiceHandler ¶
func NewGnoNativeServiceHandler(svc GnoNativeServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewGnoNativeServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type GnoNativeServiceClient ¶
type GnoNativeServiceClient interface { // Set the connection address for the remote node. If you don't call this, // the default is "127.0.0.1:26657" SetRemote(context.Context, *connect.Request[_go.SetRemoteRequest]) (*connect.Response[_go.SetRemoteResponse], error) // Get the connection address for the remote node. The response is either // the initial default, or the value which was set with SetRemote GetRemote(context.Context, *connect.Request[_go.GetRemoteRequest]) (*connect.Response[_go.GetRemoteResponse], error) // Set the chain ID for the remote node. If you don't call this, the default // is "dev" SetChainID(context.Context, *connect.Request[_go.SetChainIDRequest]) (*connect.Response[_go.SetChainIDResponse], error) // Get the chain ID for the remote node. The response is either // the initial default, or the value which was set with SetChainID GetChainID(context.Context, *connect.Request[_go.GetChainIDRequest]) (*connect.Response[_go.GetChainIDResponse], error) // Generate a recovery phrase of BIP39 mnemonic words using entropy from the // crypto library random number generator. This can be used as the mnemonic in // CreateAccount. GenerateRecoveryPhrase(context.Context, *connect.Request[_go.GenerateRecoveryPhraseRequest]) (*connect.Response[_go.GenerateRecoveryPhraseResponse], error) // Get the information for all keys in the keybase ListKeyInfo(context.Context, *connect.Request[_go.ListKeyInfoRequest]) (*connect.Response[_go.ListKeyInfoResponse], error) // Check for the key in the keybase with the given name. // In the response, set has true if the keybase has the key. HasKeyByName(context.Context, *connect.Request[_go.HasKeyByNameRequest]) (*connect.Response[_go.HasKeyByNameResponse], error) // Check for the key in the keybase with the given address. // In the response, set has true if the keybase has the key. HasKeyByAddress(context.Context, *connect.Request[_go.HasKeyByAddressRequest]) (*connect.Response[_go.HasKeyByAddressResponse], error) // Check for the key in the keybase with the given name or bech32 string address. // In the response, set has true if the keybase has the key. HasKeyByNameOrAddress(context.Context, *connect.Request[_go.HasKeyByNameOrAddressRequest]) (*connect.Response[_go.HasKeyByNameOrAddressResponse], error) // Get the information for the key in the keybase with the given name. // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. GetKeyInfoByName(context.Context, *connect.Request[_go.GetKeyInfoByNameRequest]) (*connect.Response[_go.GetKeyInfoByNameResponse], error) // Get the information for the key in the keybase with the given address. // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. GetKeyInfoByAddress(context.Context, *connect.Request[_go.GetKeyInfoByAddressRequest]) (*connect.Response[_go.GetKeyInfoByAddressResponse], error) // Get the information for the key in the keybase with the given name or bech32 string address. // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. GetKeyInfoByNameOrAddress(context.Context, *connect.Request[_go.GetKeyInfoByNameOrAddressRequest]) (*connect.Response[_go.GetKeyInfoByNameOrAddressResponse], error) // Create a new account the keybase using the name an password specified by SetAccount. // If an account with the same name already exists in the keybase, // this replaces it. (If you don't want to replace it, then it's your responsibility // to use GetKeyInfoByName to check if it exists before calling this.) CreateAccount(context.Context, *connect.Request[_go.CreateAccountRequest]) (*connect.Response[_go.CreateAccountResponse], error) // SelectAccount selects the active account to use for later operations SelectAccount(context.Context, *connect.Request[_go.SelectAccountRequest]) (*connect.Response[_go.SelectAccountResponse], error) // Set the password for the active account in the keybase, used for later operations. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. SetPassword(context.Context, *connect.Request[_go.SetPasswordRequest]) (*connect.Response[_go.SetPasswordResponse], error) // GetActiveAccount gets the active account which was set by SelectAccount. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // (To check if there is an active account, use ListKeyInfo and check the // length of the result.) GetActiveAccount(context.Context, *connect.Request[_go.GetActiveAccountRequest]) (*connect.Response[_go.GetActiveAccountResponse], error) // QueryAccount retrieves account information from the blockchain for a given // address. QueryAccount(context.Context, *connect.Request[_go.QueryAccountRequest]) (*connect.Response[_go.QueryAccountResponse], error) // DeleteAccount deletes the account with the given name, using the password // to ensure access. However, if skip_password is true, then ignore the // password. // If the account doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. DeleteAccount(context.Context, *connect.Request[_go.DeleteAccountRequest]) (*connect.Response[_go.DeleteAccountResponse], error) // Make an ABCI query to the remote node. Query(context.Context, *connect.Request[_go.QueryRequest]) (*connect.Response[_go.QueryResponse], error) // Render calls the Render function for package_path with optional args. The // package path should include the prefix like "gno.land/". This is similar to // using a browser URL <testnet>/<pkgPath>:<args> where <pkgPath> doesn't have // the prefix like "gno.land/". Render(context.Context, *connect.Request[_go.RenderRequest]) (*connect.Response[_go.RenderResponse], error) // QEval evaluates the given expression with the realm code at package_path. // The package path should include the prefix like "gno.land/". The expression // is usually a function call like "GetBoardIDFromName(\"testboard\")". The // return value is a typed expression like // "(1 gno.land/r/demo/boards.BoardID)\n(true bool)". // If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. QEval(context.Context, *connect.Request[_go.QEvalRequest]) (*connect.Response[_go.QEvalResponse], error) // Call a specific realm function. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. // If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. Call(context.Context, *connect.Request[_go.CallRequest]) (*connect.ServerStreamForClient[_go.CallResponse], error) // Send currency from the active account to an account on the blockchain. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. Send(context.Context, *connect.Request[_go.SendRequest]) (*connect.ServerStreamForClient[_go.SendResponse], error) // Temporarily load the code in package on the blockchain and run main() which can // call realm functions and use println() to output to the "console". // This returns the "console" output. Run(context.Context, *connect.Request[_go.RunRequest]) (*connect.ServerStreamForClient[_go.RunResponse], error) // Convert a byte array address to a bech32 string address. AddressToBech32(context.Context, *connect.Request[_go.AddressToBech32Request]) (*connect.Response[_go.AddressToBech32Response], error) // Convert a bech32 string address to a byte array address. AddressFromBech32(context.Context, *connect.Request[_go.AddressFromBech32Request]) (*connect.Response[_go.AddressFromBech32Response], error) // Hello is for debug purposes Hello(context.Context, *connect.Request[_go.HelloRequest]) (*connect.Response[_go.HelloResponse], error) // HelloStream is for debug purposes HelloStream(context.Context, *connect.Request[_go.HelloStreamRequest]) (*connect.ServerStreamForClient[_go.HelloStreamResponse], error) }
GnoNativeServiceClient is a client for the land.gno.gnonative.v1.GnoNativeService service.
func NewGnoNativeServiceClient ¶
func NewGnoNativeServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GnoNativeServiceClient
NewGnoNativeServiceClient constructs a client for the land.gno.gnonative.v1.GnoNativeService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type GnoNativeServiceHandler ¶
type GnoNativeServiceHandler interface { // Set the connection address for the remote node. If you don't call this, // the default is "127.0.0.1:26657" SetRemote(context.Context, *connect.Request[_go.SetRemoteRequest]) (*connect.Response[_go.SetRemoteResponse], error) // Get the connection address for the remote node. The response is either // the initial default, or the value which was set with SetRemote GetRemote(context.Context, *connect.Request[_go.GetRemoteRequest]) (*connect.Response[_go.GetRemoteResponse], error) // Set the chain ID for the remote node. If you don't call this, the default // is "dev" SetChainID(context.Context, *connect.Request[_go.SetChainIDRequest]) (*connect.Response[_go.SetChainIDResponse], error) // Get the chain ID for the remote node. The response is either // the initial default, or the value which was set with SetChainID GetChainID(context.Context, *connect.Request[_go.GetChainIDRequest]) (*connect.Response[_go.GetChainIDResponse], error) // Generate a recovery phrase of BIP39 mnemonic words using entropy from the // crypto library random number generator. This can be used as the mnemonic in // CreateAccount. GenerateRecoveryPhrase(context.Context, *connect.Request[_go.GenerateRecoveryPhraseRequest]) (*connect.Response[_go.GenerateRecoveryPhraseResponse], error) // Get the information for all keys in the keybase ListKeyInfo(context.Context, *connect.Request[_go.ListKeyInfoRequest]) (*connect.Response[_go.ListKeyInfoResponse], error) // Check for the key in the keybase with the given name. // In the response, set has true if the keybase has the key. HasKeyByName(context.Context, *connect.Request[_go.HasKeyByNameRequest]) (*connect.Response[_go.HasKeyByNameResponse], error) // Check for the key in the keybase with the given address. // In the response, set has true if the keybase has the key. HasKeyByAddress(context.Context, *connect.Request[_go.HasKeyByAddressRequest]) (*connect.Response[_go.HasKeyByAddressResponse], error) // Check for the key in the keybase with the given name or bech32 string address. // In the response, set has true if the keybase has the key. HasKeyByNameOrAddress(context.Context, *connect.Request[_go.HasKeyByNameOrAddressRequest]) (*connect.Response[_go.HasKeyByNameOrAddressResponse], error) // Get the information for the key in the keybase with the given name. // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. GetKeyInfoByName(context.Context, *connect.Request[_go.GetKeyInfoByNameRequest]) (*connect.Response[_go.GetKeyInfoByNameResponse], error) // Get the information for the key in the keybase with the given address. // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. GetKeyInfoByAddress(context.Context, *connect.Request[_go.GetKeyInfoByAddressRequest]) (*connect.Response[_go.GetKeyInfoByAddressResponse], error) // Get the information for the key in the keybase with the given name or bech32 string address. // If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. GetKeyInfoByNameOrAddress(context.Context, *connect.Request[_go.GetKeyInfoByNameOrAddressRequest]) (*connect.Response[_go.GetKeyInfoByNameOrAddressResponse], error) // Create a new account the keybase using the name an password specified by SetAccount. // If an account with the same name already exists in the keybase, // this replaces it. (If you don't want to replace it, then it's your responsibility // to use GetKeyInfoByName to check if it exists before calling this.) CreateAccount(context.Context, *connect.Request[_go.CreateAccountRequest]) (*connect.Response[_go.CreateAccountResponse], error) // SelectAccount selects the active account to use for later operations SelectAccount(context.Context, *connect.Request[_go.SelectAccountRequest]) (*connect.Response[_go.SelectAccountResponse], error) // Set the password for the active account in the keybase, used for later operations. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. SetPassword(context.Context, *connect.Request[_go.SetPasswordRequest]) (*connect.Response[_go.SetPasswordResponse], error) // GetActiveAccount gets the active account which was set by SelectAccount. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // (To check if there is an active account, use ListKeyInfo and check the // length of the result.) GetActiveAccount(context.Context, *connect.Request[_go.GetActiveAccountRequest]) (*connect.Response[_go.GetActiveAccountResponse], error) // QueryAccount retrieves account information from the blockchain for a given // address. QueryAccount(context.Context, *connect.Request[_go.QueryAccountRequest]) (*connect.Response[_go.QueryAccountResponse], error) // DeleteAccount deletes the account with the given name, using the password // to ensure access. However, if skip_password is true, then ignore the // password. // If the account doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. DeleteAccount(context.Context, *connect.Request[_go.DeleteAccountRequest]) (*connect.Response[_go.DeleteAccountResponse], error) // Make an ABCI query to the remote node. Query(context.Context, *connect.Request[_go.QueryRequest]) (*connect.Response[_go.QueryResponse], error) // Render calls the Render function for package_path with optional args. The // package path should include the prefix like "gno.land/". This is similar to // using a browser URL <testnet>/<pkgPath>:<args> where <pkgPath> doesn't have // the prefix like "gno.land/". Render(context.Context, *connect.Request[_go.RenderRequest]) (*connect.Response[_go.RenderResponse], error) // QEval evaluates the given expression with the realm code at package_path. // The package path should include the prefix like "gno.land/". The expression // is usually a function call like "GetBoardIDFromName(\"testboard\")". The // return value is a typed expression like // "(1 gno.land/r/demo/boards.BoardID)\n(true bool)". // If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. QEval(context.Context, *connect.Request[_go.QEvalRequest]) (*connect.Response[_go.QEvalResponse], error) // Call a specific realm function. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. // If the path of a realm function call is unrecognized, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrUnknownRequest. Call(context.Context, *connect.Request[_go.CallRequest], *connect.ServerStream[_go.CallResponse]) error // Send currency from the active account to an account on the blockchain. // If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount. // If the password is wrong, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrDecryptionFailed. Send(context.Context, *connect.Request[_go.SendRequest], *connect.ServerStream[_go.SendResponse]) error // Temporarily load the code in package on the blockchain and run main() which can // call realm functions and use println() to output to the "console". // This returns the "console" output. Run(context.Context, *connect.Request[_go.RunRequest], *connect.ServerStream[_go.RunResponse]) error // Convert a byte array address to a bech32 string address. AddressToBech32(context.Context, *connect.Request[_go.AddressToBech32Request]) (*connect.Response[_go.AddressToBech32Response], error) // Convert a bech32 string address to a byte array address. AddressFromBech32(context.Context, *connect.Request[_go.AddressFromBech32Request]) (*connect.Response[_go.AddressFromBech32Response], error) // Hello is for debug purposes Hello(context.Context, *connect.Request[_go.HelloRequest]) (*connect.Response[_go.HelloResponse], error) // HelloStream is for debug purposes HelloStream(context.Context, *connect.Request[_go.HelloStreamRequest], *connect.ServerStream[_go.HelloStreamResponse]) error }
GnoNativeServiceHandler is an implementation of the land.gno.gnonative.v1.GnoNativeService service.
type UnimplementedGnoNativeServiceHandler ¶
type UnimplementedGnoNativeServiceHandler struct{}
UnimplementedGnoNativeServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedGnoNativeServiceHandler) AddressFromBech32 ¶
func (UnimplementedGnoNativeServiceHandler) AddressFromBech32(context.Context, *connect.Request[_go.AddressFromBech32Request]) (*connect.Response[_go.AddressFromBech32Response], error)
func (UnimplementedGnoNativeServiceHandler) AddressToBech32 ¶
func (UnimplementedGnoNativeServiceHandler) AddressToBech32(context.Context, *connect.Request[_go.AddressToBech32Request]) (*connect.Response[_go.AddressToBech32Response], error)
func (UnimplementedGnoNativeServiceHandler) Call ¶
func (UnimplementedGnoNativeServiceHandler) Call(context.Context, *connect.Request[_go.CallRequest], *connect.ServerStream[_go.CallResponse]) error
func (UnimplementedGnoNativeServiceHandler) CreateAccount ¶
func (UnimplementedGnoNativeServiceHandler) CreateAccount(context.Context, *connect.Request[_go.CreateAccountRequest]) (*connect.Response[_go.CreateAccountResponse], error)
func (UnimplementedGnoNativeServiceHandler) DeleteAccount ¶
func (UnimplementedGnoNativeServiceHandler) DeleteAccount(context.Context, *connect.Request[_go.DeleteAccountRequest]) (*connect.Response[_go.DeleteAccountResponse], error)
func (UnimplementedGnoNativeServiceHandler) GenerateRecoveryPhrase ¶
func (UnimplementedGnoNativeServiceHandler) GenerateRecoveryPhrase(context.Context, *connect.Request[_go.GenerateRecoveryPhraseRequest]) (*connect.Response[_go.GenerateRecoveryPhraseResponse], error)
func (UnimplementedGnoNativeServiceHandler) GetActiveAccount ¶
func (UnimplementedGnoNativeServiceHandler) GetActiveAccount(context.Context, *connect.Request[_go.GetActiveAccountRequest]) (*connect.Response[_go.GetActiveAccountResponse], error)
func (UnimplementedGnoNativeServiceHandler) GetChainID ¶
func (UnimplementedGnoNativeServiceHandler) GetChainID(context.Context, *connect.Request[_go.GetChainIDRequest]) (*connect.Response[_go.GetChainIDResponse], error)
func (UnimplementedGnoNativeServiceHandler) GetKeyInfoByAddress ¶
func (UnimplementedGnoNativeServiceHandler) GetKeyInfoByAddress(context.Context, *connect.Request[_go.GetKeyInfoByAddressRequest]) (*connect.Response[_go.GetKeyInfoByAddressResponse], error)
func (UnimplementedGnoNativeServiceHandler) GetKeyInfoByName ¶
func (UnimplementedGnoNativeServiceHandler) GetKeyInfoByName(context.Context, *connect.Request[_go.GetKeyInfoByNameRequest]) (*connect.Response[_go.GetKeyInfoByNameResponse], error)
func (UnimplementedGnoNativeServiceHandler) GetKeyInfoByNameOrAddress ¶
func (UnimplementedGnoNativeServiceHandler) GetKeyInfoByNameOrAddress(context.Context, *connect.Request[_go.GetKeyInfoByNameOrAddressRequest]) (*connect.Response[_go.GetKeyInfoByNameOrAddressResponse], error)
func (UnimplementedGnoNativeServiceHandler) GetRemote ¶
func (UnimplementedGnoNativeServiceHandler) GetRemote(context.Context, *connect.Request[_go.GetRemoteRequest]) (*connect.Response[_go.GetRemoteResponse], error)
func (UnimplementedGnoNativeServiceHandler) HasKeyByAddress ¶
func (UnimplementedGnoNativeServiceHandler) HasKeyByAddress(context.Context, *connect.Request[_go.HasKeyByAddressRequest]) (*connect.Response[_go.HasKeyByAddressResponse], error)
func (UnimplementedGnoNativeServiceHandler) HasKeyByName ¶
func (UnimplementedGnoNativeServiceHandler) HasKeyByName(context.Context, *connect.Request[_go.HasKeyByNameRequest]) (*connect.Response[_go.HasKeyByNameResponse], error)
func (UnimplementedGnoNativeServiceHandler) HasKeyByNameOrAddress ¶
func (UnimplementedGnoNativeServiceHandler) HasKeyByNameOrAddress(context.Context, *connect.Request[_go.HasKeyByNameOrAddressRequest]) (*connect.Response[_go.HasKeyByNameOrAddressResponse], error)
func (UnimplementedGnoNativeServiceHandler) Hello ¶
func (UnimplementedGnoNativeServiceHandler) Hello(context.Context, *connect.Request[_go.HelloRequest]) (*connect.Response[_go.HelloResponse], error)
func (UnimplementedGnoNativeServiceHandler) HelloStream ¶
func (UnimplementedGnoNativeServiceHandler) HelloStream(context.Context, *connect.Request[_go.HelloStreamRequest], *connect.ServerStream[_go.HelloStreamResponse]) error
func (UnimplementedGnoNativeServiceHandler) ListKeyInfo ¶
func (UnimplementedGnoNativeServiceHandler) ListKeyInfo(context.Context, *connect.Request[_go.ListKeyInfoRequest]) (*connect.Response[_go.ListKeyInfoResponse], error)
func (UnimplementedGnoNativeServiceHandler) QEval ¶
func (UnimplementedGnoNativeServiceHandler) QEval(context.Context, *connect.Request[_go.QEvalRequest]) (*connect.Response[_go.QEvalResponse], error)
func (UnimplementedGnoNativeServiceHandler) Query ¶
func (UnimplementedGnoNativeServiceHandler) Query(context.Context, *connect.Request[_go.QueryRequest]) (*connect.Response[_go.QueryResponse], error)
func (UnimplementedGnoNativeServiceHandler) QueryAccount ¶
func (UnimplementedGnoNativeServiceHandler) QueryAccount(context.Context, *connect.Request[_go.QueryAccountRequest]) (*connect.Response[_go.QueryAccountResponse], error)
func (UnimplementedGnoNativeServiceHandler) Render ¶
func (UnimplementedGnoNativeServiceHandler) Render(context.Context, *connect.Request[_go.RenderRequest]) (*connect.Response[_go.RenderResponse], error)
func (UnimplementedGnoNativeServiceHandler) Run ¶
func (UnimplementedGnoNativeServiceHandler) Run(context.Context, *connect.Request[_go.RunRequest], *connect.ServerStream[_go.RunResponse]) error
func (UnimplementedGnoNativeServiceHandler) SelectAccount ¶
func (UnimplementedGnoNativeServiceHandler) SelectAccount(context.Context, *connect.Request[_go.SelectAccountRequest]) (*connect.Response[_go.SelectAccountResponse], error)
func (UnimplementedGnoNativeServiceHandler) Send ¶
func (UnimplementedGnoNativeServiceHandler) Send(context.Context, *connect.Request[_go.SendRequest], *connect.ServerStream[_go.SendResponse]) error
func (UnimplementedGnoNativeServiceHandler) SetChainID ¶
func (UnimplementedGnoNativeServiceHandler) SetChainID(context.Context, *connect.Request[_go.SetChainIDRequest]) (*connect.Response[_go.SetChainIDResponse], error)
func (UnimplementedGnoNativeServiceHandler) SetPassword ¶
func (UnimplementedGnoNativeServiceHandler) SetPassword(context.Context, *connect.Request[_go.SetPasswordRequest]) (*connect.Response[_go.SetPasswordResponse], error)
func (UnimplementedGnoNativeServiceHandler) SetRemote ¶
func (UnimplementedGnoNativeServiceHandler) SetRemote(context.Context, *connect.Request[_go.SetRemoteRequest]) (*connect.Response[_go.SetRemoteResponse], error)