Skip to content

Commit

Permalink
fix: Remove deprecated API methods. Require caller address. (#184)
Browse files Browse the repository at this point in the history
We have now updated known apps (dSocial, gnoboard) to use the new API,
so we can remove support for the "active account".

* Remove API methods `SelectAccount` and `GetActiveAccount`. Run `make
regenerate` .
* In the `gnoNativeService` struct, remove `activeAccount`. Remove
support for it from `getSigner`..In `convertCallRequest`, etc. require
the `callerAddress`.
* In expo/src/api, in types.ts and GnoNativeApi.ts, make the address
param required in `setPassword`, `call` and `send`.

Signed-off-by: Jeff Thompson <[email protected]>
  • Loading branch information
jefft0 authored Oct 10, 2024
1 parent cf99636 commit f332abb
Show file tree
Hide file tree
Showing 19 changed files with 1,070 additions and 3,915 deletions.
1,180 changes: 158 additions & 1,022 deletions api/gen/csharp/Gnonativetypes.cs

Large diffs are not rendered by default.

23 changes: 9 additions & 14 deletions api/gen/csharp/Rpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static RpcReflection() {
"ARIZChRFcnJUb29NYW55U2lnbmF0dXJlcxDWARIUCg9FcnJOb1NpZ25hdHVy",
"ZXMQ1wESEwoORXJyR2FzT3ZlcmZsb3cQ2AESFgoRRXJySW52YWxpZFBrZ1Bh",
"dGgQ2QESEwoORXJySW52YWxpZFN0bXQQ2gESEwoORXJySW52YWxpZEV4cHIQ",
"2wEyxB4KEEdub05hdGl2ZVNlcnZpY2USXgoJU2V0UmVtb3RlEicubGFuZC5n",
"2wEy4xwKEEdub05hdGl2ZVNlcnZpY2USXgoJU2V0UmVtb3RlEicubGFuZC5n",
"bm8uZ25vbmF0aXZlLnYxLlNldFJlbW90ZVJlcXVlc3QaKC5sYW5kLmduby5n",
"bm9uYXRpdmUudjEuU2V0UmVtb3RlUmVzcG9uc2USXgoJR2V0UmVtb3RlEicu",
"bGFuZC5nbm8uZ25vbmF0aXZlLnYxLkdldFJlbW90ZVJlcXVlc3QaKC5sYW5k",
Expand Down Expand Up @@ -78,19 +78,14 @@ static RpcReflection() {
"dGl2ZS52MS5HZXRLZXlJbmZvQnlOYW1lT3JBZGRyZXNzUmVzcG9uc2USagoN",
"Q3JlYXRlQWNjb3VudBIrLmxhbmQuZ25vLmdub25hdGl2ZS52MS5DcmVhdGVB",
"Y2NvdW50UmVxdWVzdBosLmxhbmQuZ25vLmdub25hdGl2ZS52MS5DcmVhdGVB",
"Y2NvdW50UmVzcG9uc2USagoNU2VsZWN0QWNjb3VudBIrLmxhbmQuZ25vLmdu",
"b25hdGl2ZS52MS5TZWxlY3RBY2NvdW50UmVxdWVzdBosLmxhbmQuZ25vLmdu",
"b25hdGl2ZS52MS5TZWxlY3RBY2NvdW50UmVzcG9uc2UScAoPQWN0aXZhdGVB",
"Y2NvdW50Ei0ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkFjdGl2YXRlQWNjb3Vu",
"dFJlcXVlc3QaLi5sYW5kLmduby5nbm9uYXRpdmUudjEuQWN0aXZhdGVBY2Nv",
"dW50UmVzcG9uc2USZAoLU2V0UGFzc3dvcmQSKS5sYW5kLmduby5nbm9uYXRp",
"dmUudjEuU2V0UGFzc3dvcmRSZXF1ZXN0GioubGFuZC5nbm8uZ25vbmF0aXZl",
"LnYxLlNldFBhc3N3b3JkUmVzcG9uc2USbQoOVXBkYXRlUGFzc3dvcmQSLC5s",
"YW5kLmduby5nbm9uYXRpdmUudjEuVXBkYXRlUGFzc3dvcmRSZXF1ZXN0Gi0u",
"bGFuZC5nbm8uZ25vbmF0aXZlLnYxLlVwZGF0ZVBhc3N3b3JkUmVzcG9uc2US",
"cwoQR2V0QWN0aXZlQWNjb3VudBIuLmxhbmQuZ25vLmdub25hdGl2ZS52MS5H",
"ZXRBY3RpdmVBY2NvdW50UmVxdWVzdBovLmxhbmQuZ25vLmdub25hdGl2ZS52",
"MS5HZXRBY3RpdmVBY2NvdW50UmVzcG9uc2USfAoTR2V0QWN0aXZhdGVkQWNj",
"Y2NvdW50UmVzcG9uc2UScAoPQWN0aXZhdGVBY2NvdW50Ei0ubGFuZC5nbm8u",
"Z25vbmF0aXZlLnYxLkFjdGl2YXRlQWNjb3VudFJlcXVlc3QaLi5sYW5kLmdu",
"by5nbm9uYXRpdmUudjEuQWN0aXZhdGVBY2NvdW50UmVzcG9uc2USZAoLU2V0",
"UGFzc3dvcmQSKS5sYW5kLmduby5nbm9uYXRpdmUudjEuU2V0UGFzc3dvcmRS",
"ZXF1ZXN0GioubGFuZC5nbm8uZ25vbmF0aXZlLnYxLlNldFBhc3N3b3JkUmVz",
"cG9uc2USbQoOVXBkYXRlUGFzc3dvcmQSLC5sYW5kLmduby5nbm9uYXRpdmUu",
"djEuVXBkYXRlUGFzc3dvcmRSZXF1ZXN0Gi0ubGFuZC5nbm8uZ25vbmF0aXZl",
"LnYxLlVwZGF0ZVBhc3N3b3JkUmVzcG9uc2USfAoTR2V0QWN0aXZhdGVkQWNj",
"b3VudBIxLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRBY3RpdmF0ZWRBY2Nv",
"dW50UmVxdWVzdBoyLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRBY3RpdmF0",
"ZWRBY2NvdW50UmVzcG9uc2USZwoMUXVlcnlBY2NvdW50EioubGFuZC5nbm8u",
Expand Down
183 changes: 0 additions & 183 deletions api/gen/csharp/RpcGrpc.cs

Large diffs are not rendered by default.

105 changes: 0 additions & 105 deletions api/gen/es/gnonativetypes_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -844,61 +844,6 @@ export declare class CreateAccountResponse extends Message<CreateAccountResponse
static equals(a: CreateAccountResponse | PlainMessage<CreateAccountResponse> | undefined, b: CreateAccountResponse | PlainMessage<CreateAccountResponse> | undefined): boolean;
}

/**
* @generated from message land.gno.gnonative.v1.SelectAccountRequest
*/
export declare class SelectAccountRequest extends Message<SelectAccountRequest> {
/**
* @generated from field: string name_or_bech32 = 1;
*/
nameOrBech32: string;

constructor(data?: PartialMessage<SelectAccountRequest>);

static readonly runtime: typeof proto3;
static readonly typeName = "land.gno.gnonative.v1.SelectAccountRequest";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SelectAccountRequest;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SelectAccountRequest;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SelectAccountRequest;

static equals(a: SelectAccountRequest | PlainMessage<SelectAccountRequest> | undefined, b: SelectAccountRequest | PlainMessage<SelectAccountRequest> | undefined): boolean;
}

/**
* @generated from message land.gno.gnonative.v1.SelectAccountResponse
*/
export declare class SelectAccountResponse extends Message<SelectAccountResponse> {
/**
* @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"];
*/
key?: KeyInfo;

/**
* True if the password has been set. If false, then call SetPassword.
*
* @generated from field: bool has_password = 2;
*/
hasPassword: boolean;

constructor(data?: PartialMessage<SelectAccountResponse>);

static readonly runtime: typeof proto3;
static readonly typeName = "land.gno.gnonative.v1.SelectAccountResponse";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SelectAccountResponse;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SelectAccountResponse;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SelectAccountResponse;

static equals(a: SelectAccountResponse | PlainMessage<SelectAccountResponse> | undefined, b: SelectAccountResponse | PlainMessage<SelectAccountResponse> | undefined): boolean;
}

/**
* @generated from message land.gno.gnonative.v1.ActivateAccountRequest
*/
Expand Down Expand Up @@ -954,56 +899,6 @@ export declare class ActivateAccountResponse extends Message<ActivateAccountResp
static equals(a: ActivateAccountResponse | PlainMessage<ActivateAccountResponse> | undefined, b: ActivateAccountResponse | PlainMessage<ActivateAccountResponse> | undefined): boolean;
}

/**
* @generated from message land.gno.gnonative.v1.GetActiveAccountRequest
*/
export declare class GetActiveAccountRequest extends Message<GetActiveAccountRequest> {
constructor(data?: PartialMessage<GetActiveAccountRequest>);

static readonly runtime: typeof proto3;
static readonly typeName = "land.gno.gnonative.v1.GetActiveAccountRequest";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetActiveAccountRequest;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetActiveAccountRequest;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetActiveAccountRequest;

static equals(a: GetActiveAccountRequest | PlainMessage<GetActiveAccountRequest> | undefined, b: GetActiveAccountRequest | PlainMessage<GetActiveAccountRequest> | undefined): boolean;
}

/**
* @generated from message land.gno.gnonative.v1.GetActiveAccountResponse
*/
export declare class GetActiveAccountResponse extends Message<GetActiveAccountResponse> {
/**
* @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"];
*/
key?: KeyInfo;

/**
* True if the password has been set. If false, then call SetPassword.
*
* @generated from field: bool has_password = 2;
*/
hasPassword: boolean;

constructor(data?: PartialMessage<GetActiveAccountResponse>);

static readonly runtime: typeof proto3;
static readonly typeName = "land.gno.gnonative.v1.GetActiveAccountResponse";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetActiveAccountResponse;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetActiveAccountResponse;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetActiveAccountResponse;

static equals(a: GetActiveAccountResponse | PlainMessage<GetActiveAccountResponse> | undefined, b: GetActiveAccountResponse | PlainMessage<GetActiveAccountResponse> | undefined): boolean;
}

/**
* @generated from message land.gno.gnonative.v1.GetActivatedAccountRequest
*/
Expand Down
40 changes: 0 additions & 40 deletions api/gen/es/gnonativetypes_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,27 +339,6 @@ export const CreateAccountResponse = proto3.makeMessageType(
],
);

/**
* @generated from message land.gno.gnonative.v1.SelectAccountRequest
*/
export const SelectAccountRequest = proto3.makeMessageType(
"land.gno.gnonative.v1.SelectAccountRequest",
() => [
{ no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ },
],
);

/**
* @generated from message land.gno.gnonative.v1.SelectAccountResponse
*/
export const SelectAccountResponse = proto3.makeMessageType(
"land.gno.gnonative.v1.SelectAccountResponse",
() => [
{ no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo },
{ no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
],
);

/**
* @generated from message land.gno.gnonative.v1.ActivateAccountRequest
*/
Expand All @@ -381,25 +360,6 @@ export const ActivateAccountResponse = proto3.makeMessageType(
],
);

/**
* @generated from message land.gno.gnonative.v1.GetActiveAccountRequest
*/
export const GetActiveAccountRequest = proto3.makeMessageType(
"land.gno.gnonative.v1.GetActiveAccountRequest",
[],
);

/**
* @generated from message land.gno.gnonative.v1.GetActiveAccountResponse
*/
export const GetActiveAccountResponse = proto3.makeMessageType(
"land.gno.gnonative.v1.GetActiveAccountResponse",
() => [
{ no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo },
{ no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
],
);

/**
* @generated from message land.gno.gnonative.v1.GetActivatedAccountRequest
*/
Expand Down
31 changes: 1 addition & 30 deletions api/gen/es/rpc_connect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable */
// @ts-nocheck

import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, GetActiveAccountRequest, GetActiveAccountResponse, GetChainIDRequest, GetChainIDResponse, GetKeyInfoByAddressRequest, GetKeyInfoByAddressResponse, GetKeyInfoByNameOrAddressRequest, GetKeyInfoByNameOrAddressResponse, GetKeyInfoByNameRequest, GetKeyInfoByNameResponse, GetRemoteRequest, GetRemoteResponse, HasKeyByAddressRequest, HasKeyByAddressResponse, HasKeyByNameOrAddressRequest, HasKeyByNameOrAddressResponse, HasKeyByNameRequest, HasKeyByNameResponse, HelloRequest, HelloResponse, HelloStreamRequest, HelloStreamResponse, ListKeyInfoRequest, ListKeyInfoResponse, MakeTxResponse, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SelectAccountRequest, SelectAccountResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse, UpdatePasswordRequest, UpdatePasswordResponse } from "./gnonativetypes_pb.js";
import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, GetChainIDRequest, GetChainIDResponse, GetKeyInfoByAddressRequest, GetKeyInfoByAddressResponse, GetKeyInfoByNameOrAddressRequest, GetKeyInfoByNameOrAddressResponse, GetKeyInfoByNameRequest, GetKeyInfoByNameResponse, GetRemoteRequest, GetRemoteResponse, HasKeyByAddressRequest, HasKeyByAddressResponse, HasKeyByNameOrAddressRequest, HasKeyByNameOrAddressResponse, HasKeyByNameRequest, HasKeyByNameResponse, HelloRequest, HelloResponse, HelloStreamRequest, HelloStreamResponse, ListKeyInfoRequest, ListKeyInfoResponse, MakeTxResponse, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse, UpdatePasswordRequest, UpdatePasswordResponse } from "./gnonativetypes_pb.js";
import { MethodKind } from "@bufbuild/protobuf";

/**
Expand Down Expand Up @@ -172,20 +172,6 @@ export declare const GnoNativeService: {
readonly O: typeof CreateAccountResponse,
readonly kind: MethodKind.Unary,
},
/**
* SelectAccount selects the active account to use for later operations. If the response has_password is
* false, then you should set the password before using a method which needs it.
* If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
* DEPRECATED. Use ActivateAccount.
*
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.SelectAccount
*/
readonly selectAccount: {
readonly name: "SelectAccount",
readonly I: typeof SelectAccountRequest,
readonly O: typeof SelectAccountResponse,
readonly kind: MethodKind.Unary,
},
/**
* Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is
* false, then you should call SetPassword before using a method which needs it.
Expand Down Expand Up @@ -227,21 +213,6 @@ export declare const GnoNativeService: {
readonly O: typeof UpdatePasswordResponse,
readonly kind: MethodKind.Unary,
},
/**
* GetActiveAccount gets the active account which was set by SelectAccount.
* If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
* (To check if there is an active account, use ListKeyInfo and check the
* length of the result.)
* DEPRECATED: Use GetActivatedAccount.
*
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActiveAccount
*/
readonly getActiveAccount: {
readonly name: "GetActiveAccount",
readonly I: typeof GetActiveAccountRequest,
readonly O: typeof GetActiveAccountResponse,
readonly kind: MethodKind.Unary,
},
/**
* GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount.
* If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress.
Expand Down
31 changes: 1 addition & 30 deletions api/gen/es/rpc_connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable */
// @ts-nocheck

import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, GetActiveAccountRequest, GetActiveAccountResponse, GetChainIDRequest, GetChainIDResponse, GetKeyInfoByAddressRequest, GetKeyInfoByAddressResponse, GetKeyInfoByNameOrAddressRequest, GetKeyInfoByNameOrAddressResponse, GetKeyInfoByNameRequest, GetKeyInfoByNameResponse, GetRemoteRequest, GetRemoteResponse, HasKeyByAddressRequest, HasKeyByAddressResponse, HasKeyByNameOrAddressRequest, HasKeyByNameOrAddressResponse, HasKeyByNameRequest, HasKeyByNameResponse, HelloRequest, HelloResponse, HelloStreamRequest, HelloStreamResponse, ListKeyInfoRequest, ListKeyInfoResponse, MakeTxResponse, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SelectAccountRequest, SelectAccountResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse, UpdatePasswordRequest, UpdatePasswordResponse } from "./gnonativetypes_pb.js";
import { ActivateAccountRequest, ActivateAccountResponse, AddressFromBech32Request, AddressFromBech32Response, AddressFromMnemonicRequest, AddressFromMnemonicResponse, AddressToBech32Request, AddressToBech32Response, BroadcastTxCommitRequest, BroadcastTxCommitResponse, CallRequest, CallResponse, CreateAccountRequest, CreateAccountResponse, DeleteAccountRequest, DeleteAccountResponse, GenerateRecoveryPhraseRequest, GenerateRecoveryPhraseResponse, GetActivatedAccountRequest, GetActivatedAccountResponse, GetChainIDRequest, GetChainIDResponse, GetKeyInfoByAddressRequest, GetKeyInfoByAddressResponse, GetKeyInfoByNameOrAddressRequest, GetKeyInfoByNameOrAddressResponse, GetKeyInfoByNameRequest, GetKeyInfoByNameResponse, GetRemoteRequest, GetRemoteResponse, HasKeyByAddressRequest, HasKeyByAddressResponse, HasKeyByNameOrAddressRequest, HasKeyByNameOrAddressResponse, HasKeyByNameRequest, HasKeyByNameResponse, HelloRequest, HelloResponse, HelloStreamRequest, HelloStreamResponse, ListKeyInfoRequest, ListKeyInfoResponse, MakeTxResponse, QEvalRequest, QEvalResponse, QueryAccountRequest, QueryAccountResponse, QueryRequest, QueryResponse, RenderRequest, RenderResponse, RunRequest, RunResponse, SendRequest, SendResponse, SetChainIDRequest, SetChainIDResponse, SetPasswordRequest, SetPasswordResponse, SetRemoteRequest, SetRemoteResponse, SignTxRequest, SignTxResponse, UpdatePasswordRequest, UpdatePasswordResponse } from "./gnonativetypes_pb.js";
import { MethodKind } from "@bufbuild/protobuf";

/**
Expand Down Expand Up @@ -172,20 +172,6 @@ export const GnoNativeService = {
O: CreateAccountResponse,
kind: MethodKind.Unary,
},
/**
* SelectAccount selects the active account to use for later operations. If the response has_password is
* false, then you should set the password before using a method which needs it.
* If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
* DEPRECATED. Use ActivateAccount.
*
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.SelectAccount
*/
selectAccount: {
name: "SelectAccount",
I: SelectAccountRequest,
O: SelectAccountResponse,
kind: MethodKind.Unary,
},
/**
* Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is
* false, then you should call SetPassword before using a method which needs it.
Expand Down Expand Up @@ -227,21 +213,6 @@ export const GnoNativeService = {
O: UpdatePasswordResponse,
kind: MethodKind.Unary,
},
/**
* GetActiveAccount gets the active account which was set by SelectAccount.
* If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
* (To check if there is an active account, use ListKeyInfo and check the
* length of the result.)
* DEPRECATED: Use GetActivatedAccount.
*
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActiveAccount
*/
getActiveAccount: {
name: "GetActiveAccount",
I: GetActiveAccountRequest,
O: GetActiveAccountResponse,
kind: MethodKind.Unary,
},
/**
* GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount.
* If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress.
Expand Down
Loading

0 comments on commit f332abb

Please sign in to comment.