Skip to content

Commit f332abb

Browse files
authored
fix: Remove deprecated API methods. Require caller address. (#184)
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]>
1 parent cf99636 commit f332abb

19 files changed

+1070
-3915
lines changed

api/gen/csharp/Gnonativetypes.cs

+158-1,022
Large diffs are not rendered by default.

api/gen/csharp/Rpc.cs

+9-14
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static RpcReflection() {
4545
"ARIZChRFcnJUb29NYW55U2lnbmF0dXJlcxDWARIUCg9FcnJOb1NpZ25hdHVy",
4646
"ZXMQ1wESEwoORXJyR2FzT3ZlcmZsb3cQ2AESFgoRRXJySW52YWxpZFBrZ1Bh",
4747
"dGgQ2QESEwoORXJySW52YWxpZFN0bXQQ2gESEwoORXJySW52YWxpZEV4cHIQ",
48-
"2wEyxB4KEEdub05hdGl2ZVNlcnZpY2USXgoJU2V0UmVtb3RlEicubGFuZC5n",
48+
"2wEy4xwKEEdub05hdGl2ZVNlcnZpY2USXgoJU2V0UmVtb3RlEicubGFuZC5n",
4949
"bm8uZ25vbmF0aXZlLnYxLlNldFJlbW90ZVJlcXVlc3QaKC5sYW5kLmduby5n",
5050
"bm9uYXRpdmUudjEuU2V0UmVtb3RlUmVzcG9uc2USXgoJR2V0UmVtb3RlEicu",
5151
"bGFuZC5nbm8uZ25vbmF0aXZlLnYxLkdldFJlbW90ZVJlcXVlc3QaKC5sYW5k",
@@ -78,19 +78,14 @@ static RpcReflection() {
7878
"dGl2ZS52MS5HZXRLZXlJbmZvQnlOYW1lT3JBZGRyZXNzUmVzcG9uc2USagoN",
7979
"Q3JlYXRlQWNjb3VudBIrLmxhbmQuZ25vLmdub25hdGl2ZS52MS5DcmVhdGVB",
8080
"Y2NvdW50UmVxdWVzdBosLmxhbmQuZ25vLmdub25hdGl2ZS52MS5DcmVhdGVB",
81-
"Y2NvdW50UmVzcG9uc2USagoNU2VsZWN0QWNjb3VudBIrLmxhbmQuZ25vLmdu",
82-
"b25hdGl2ZS52MS5TZWxlY3RBY2NvdW50UmVxdWVzdBosLmxhbmQuZ25vLmdu",
83-
"b25hdGl2ZS52MS5TZWxlY3RBY2NvdW50UmVzcG9uc2UScAoPQWN0aXZhdGVB",
84-
"Y2NvdW50Ei0ubGFuZC5nbm8uZ25vbmF0aXZlLnYxLkFjdGl2YXRlQWNjb3Vu",
85-
"dFJlcXVlc3QaLi5sYW5kLmduby5nbm9uYXRpdmUudjEuQWN0aXZhdGVBY2Nv",
86-
"dW50UmVzcG9uc2USZAoLU2V0UGFzc3dvcmQSKS5sYW5kLmduby5nbm9uYXRp",
87-
"dmUudjEuU2V0UGFzc3dvcmRSZXF1ZXN0GioubGFuZC5nbm8uZ25vbmF0aXZl",
88-
"LnYxLlNldFBhc3N3b3JkUmVzcG9uc2USbQoOVXBkYXRlUGFzc3dvcmQSLC5s",
89-
"YW5kLmduby5nbm9uYXRpdmUudjEuVXBkYXRlUGFzc3dvcmRSZXF1ZXN0Gi0u",
90-
"bGFuZC5nbm8uZ25vbmF0aXZlLnYxLlVwZGF0ZVBhc3N3b3JkUmVzcG9uc2US",
91-
"cwoQR2V0QWN0aXZlQWNjb3VudBIuLmxhbmQuZ25vLmdub25hdGl2ZS52MS5H",
92-
"ZXRBY3RpdmVBY2NvdW50UmVxdWVzdBovLmxhbmQuZ25vLmdub25hdGl2ZS52",
93-
"MS5HZXRBY3RpdmVBY2NvdW50UmVzcG9uc2USfAoTR2V0QWN0aXZhdGVkQWNj",
81+
"Y2NvdW50UmVzcG9uc2UScAoPQWN0aXZhdGVBY2NvdW50Ei0ubGFuZC5nbm8u",
82+
"Z25vbmF0aXZlLnYxLkFjdGl2YXRlQWNjb3VudFJlcXVlc3QaLi5sYW5kLmdu",
83+
"by5nbm9uYXRpdmUudjEuQWN0aXZhdGVBY2NvdW50UmVzcG9uc2USZAoLU2V0",
84+
"UGFzc3dvcmQSKS5sYW5kLmduby5nbm9uYXRpdmUudjEuU2V0UGFzc3dvcmRS",
85+
"ZXF1ZXN0GioubGFuZC5nbm8uZ25vbmF0aXZlLnYxLlNldFBhc3N3b3JkUmVz",
86+
"cG9uc2USbQoOVXBkYXRlUGFzc3dvcmQSLC5sYW5kLmduby5nbm9uYXRpdmUu",
87+
"djEuVXBkYXRlUGFzc3dvcmRSZXF1ZXN0Gi0ubGFuZC5nbm8uZ25vbmF0aXZl",
88+
"LnYxLlVwZGF0ZVBhc3N3b3JkUmVzcG9uc2USfAoTR2V0QWN0aXZhdGVkQWNj",
9489
"b3VudBIxLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRBY3RpdmF0ZWRBY2Nv",
9590
"dW50UmVxdWVzdBoyLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRBY3RpdmF0",
9691
"ZWRBY2NvdW50UmVzcG9uc2USZwoMUXVlcnlBY2NvdW50EioubGFuZC5nbm8u",

api/gen/csharp/RpcGrpc.cs

-183
Large diffs are not rendered by default.

api/gen/es/gnonativetypes_pb.d.ts

-105
Original file line numberDiff line numberDiff line change
@@ -844,61 +844,6 @@ export declare class CreateAccountResponse extends Message<CreateAccountResponse
844844
static equals(a: CreateAccountResponse | PlainMessage<CreateAccountResponse> | undefined, b: CreateAccountResponse | PlainMessage<CreateAccountResponse> | undefined): boolean;
845845
}
846846

847-
/**
848-
* @generated from message land.gno.gnonative.v1.SelectAccountRequest
849-
*/
850-
export declare class SelectAccountRequest extends Message<SelectAccountRequest> {
851-
/**
852-
* @generated from field: string name_or_bech32 = 1;
853-
*/
854-
nameOrBech32: string;
855-
856-
constructor(data?: PartialMessage<SelectAccountRequest>);
857-
858-
static readonly runtime: typeof proto3;
859-
static readonly typeName = "land.gno.gnonative.v1.SelectAccountRequest";
860-
static readonly fields: FieldList;
861-
862-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SelectAccountRequest;
863-
864-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SelectAccountRequest;
865-
866-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SelectAccountRequest;
867-
868-
static equals(a: SelectAccountRequest | PlainMessage<SelectAccountRequest> | undefined, b: SelectAccountRequest | PlainMessage<SelectAccountRequest> | undefined): boolean;
869-
}
870-
871-
/**
872-
* @generated from message land.gno.gnonative.v1.SelectAccountResponse
873-
*/
874-
export declare class SelectAccountResponse extends Message<SelectAccountResponse> {
875-
/**
876-
* @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"];
877-
*/
878-
key?: KeyInfo;
879-
880-
/**
881-
* True if the password has been set. If false, then call SetPassword.
882-
*
883-
* @generated from field: bool has_password = 2;
884-
*/
885-
hasPassword: boolean;
886-
887-
constructor(data?: PartialMessage<SelectAccountResponse>);
888-
889-
static readonly runtime: typeof proto3;
890-
static readonly typeName = "land.gno.gnonative.v1.SelectAccountResponse";
891-
static readonly fields: FieldList;
892-
893-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SelectAccountResponse;
894-
895-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SelectAccountResponse;
896-
897-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SelectAccountResponse;
898-
899-
static equals(a: SelectAccountResponse | PlainMessage<SelectAccountResponse> | undefined, b: SelectAccountResponse | PlainMessage<SelectAccountResponse> | undefined): boolean;
900-
}
901-
902847
/**
903848
* @generated from message land.gno.gnonative.v1.ActivateAccountRequest
904849
*/
@@ -954,56 +899,6 @@ export declare class ActivateAccountResponse extends Message<ActivateAccountResp
954899
static equals(a: ActivateAccountResponse | PlainMessage<ActivateAccountResponse> | undefined, b: ActivateAccountResponse | PlainMessage<ActivateAccountResponse> | undefined): boolean;
955900
}
956901

957-
/**
958-
* @generated from message land.gno.gnonative.v1.GetActiveAccountRequest
959-
*/
960-
export declare class GetActiveAccountRequest extends Message<GetActiveAccountRequest> {
961-
constructor(data?: PartialMessage<GetActiveAccountRequest>);
962-
963-
static readonly runtime: typeof proto3;
964-
static readonly typeName = "land.gno.gnonative.v1.GetActiveAccountRequest";
965-
static readonly fields: FieldList;
966-
967-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetActiveAccountRequest;
968-
969-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetActiveAccountRequest;
970-
971-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetActiveAccountRequest;
972-
973-
static equals(a: GetActiveAccountRequest | PlainMessage<GetActiveAccountRequest> | undefined, b: GetActiveAccountRequest | PlainMessage<GetActiveAccountRequest> | undefined): boolean;
974-
}
975-
976-
/**
977-
* @generated from message land.gno.gnonative.v1.GetActiveAccountResponse
978-
*/
979-
export declare class GetActiveAccountResponse extends Message<GetActiveAccountResponse> {
980-
/**
981-
* @generated from field: land.gno.gnonative.v1.KeyInfo key = 1 [json_name = "key_info"];
982-
*/
983-
key?: KeyInfo;
984-
985-
/**
986-
* True if the password has been set. If false, then call SetPassword.
987-
*
988-
* @generated from field: bool has_password = 2;
989-
*/
990-
hasPassword: boolean;
991-
992-
constructor(data?: PartialMessage<GetActiveAccountResponse>);
993-
994-
static readonly runtime: typeof proto3;
995-
static readonly typeName = "land.gno.gnonative.v1.GetActiveAccountResponse";
996-
static readonly fields: FieldList;
997-
998-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetActiveAccountResponse;
999-
1000-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetActiveAccountResponse;
1001-
1002-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetActiveAccountResponse;
1003-
1004-
static equals(a: GetActiveAccountResponse | PlainMessage<GetActiveAccountResponse> | undefined, b: GetActiveAccountResponse | PlainMessage<GetActiveAccountResponse> | undefined): boolean;
1005-
}
1006-
1007902
/**
1008903
* @generated from message land.gno.gnonative.v1.GetActivatedAccountRequest
1009904
*/

api/gen/es/gnonativetypes_pb.js

-40
Original file line numberDiff line numberDiff line change
@@ -339,27 +339,6 @@ export const CreateAccountResponse = proto3.makeMessageType(
339339
],
340340
);
341341

342-
/**
343-
* @generated from message land.gno.gnonative.v1.SelectAccountRequest
344-
*/
345-
export const SelectAccountRequest = proto3.makeMessageType(
346-
"land.gno.gnonative.v1.SelectAccountRequest",
347-
() => [
348-
{ no: 1, name: "name_or_bech32", kind: "scalar", T: 9 /* ScalarType.STRING */ },
349-
],
350-
);
351-
352-
/**
353-
* @generated from message land.gno.gnonative.v1.SelectAccountResponse
354-
*/
355-
export const SelectAccountResponse = proto3.makeMessageType(
356-
"land.gno.gnonative.v1.SelectAccountResponse",
357-
() => [
358-
{ no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo },
359-
{ no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
360-
],
361-
);
362-
363342
/**
364343
* @generated from message land.gno.gnonative.v1.ActivateAccountRequest
365344
*/
@@ -381,25 +360,6 @@ export const ActivateAccountResponse = proto3.makeMessageType(
381360
],
382361
);
383362

384-
/**
385-
* @generated from message land.gno.gnonative.v1.GetActiveAccountRequest
386-
*/
387-
export const GetActiveAccountRequest = proto3.makeMessageType(
388-
"land.gno.gnonative.v1.GetActiveAccountRequest",
389-
[],
390-
);
391-
392-
/**
393-
* @generated from message land.gno.gnonative.v1.GetActiveAccountResponse
394-
*/
395-
export const GetActiveAccountResponse = proto3.makeMessageType(
396-
"land.gno.gnonative.v1.GetActiveAccountResponse",
397-
() => [
398-
{ no: 1, name: "key", jsonName: "key_info", kind: "message", T: KeyInfo },
399-
{ no: 2, name: "has_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
400-
],
401-
);
402-
403363
/**
404364
* @generated from message land.gno.gnonative.v1.GetActivatedAccountRequest
405365
*/

api/gen/es/rpc_connect.d.ts

+1-30
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* eslint-disable */
44
// @ts-nocheck
55

6-
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";
6+
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";
77
import { MethodKind } from "@bufbuild/protobuf";
88

99
/**
@@ -172,20 +172,6 @@ export declare const GnoNativeService: {
172172
readonly O: typeof CreateAccountResponse,
173173
readonly kind: MethodKind.Unary,
174174
},
175-
/**
176-
* SelectAccount selects the active account to use for later operations. If the response has_password is
177-
* false, then you should set the password before using a method which needs it.
178-
* If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
179-
* DEPRECATED. Use ActivateAccount.
180-
*
181-
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.SelectAccount
182-
*/
183-
readonly selectAccount: {
184-
readonly name: "SelectAccount",
185-
readonly I: typeof SelectAccountRequest,
186-
readonly O: typeof SelectAccountResponse,
187-
readonly kind: MethodKind.Unary,
188-
},
189175
/**
190176
* Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is
191177
* false, then you should call SetPassword before using a method which needs it.
@@ -227,21 +213,6 @@ export declare const GnoNativeService: {
227213
readonly O: typeof UpdatePasswordResponse,
228214
readonly kind: MethodKind.Unary,
229215
},
230-
/**
231-
* GetActiveAccount gets the active account which was set by SelectAccount.
232-
* If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
233-
* (To check if there is an active account, use ListKeyInfo and check the
234-
* length of the result.)
235-
* DEPRECATED: Use GetActivatedAccount.
236-
*
237-
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActiveAccount
238-
*/
239-
readonly getActiveAccount: {
240-
readonly name: "GetActiveAccount",
241-
readonly I: typeof GetActiveAccountRequest,
242-
readonly O: typeof GetActiveAccountResponse,
243-
readonly kind: MethodKind.Unary,
244-
},
245216
/**
246217
* GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount.
247218
* If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress.

api/gen/es/rpc_connect.js

+1-30
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* eslint-disable */
44
// @ts-nocheck
55

6-
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";
6+
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";
77
import { MethodKind } from "@bufbuild/protobuf";
88

99
/**
@@ -172,20 +172,6 @@ export const GnoNativeService = {
172172
O: CreateAccountResponse,
173173
kind: MethodKind.Unary,
174174
},
175-
/**
176-
* SelectAccount selects the active account to use for later operations. If the response has_password is
177-
* false, then you should set the password before using a method which needs it.
178-
* If the key doesn't exist, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrCryptoKeyNotFound.
179-
* DEPRECATED. Use ActivateAccount.
180-
*
181-
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.SelectAccount
182-
*/
183-
selectAccount: {
184-
name: "SelectAccount",
185-
I: SelectAccountRequest,
186-
O: SelectAccountResponse,
187-
kind: MethodKind.Unary,
188-
},
189175
/**
190176
* Find the account in the keybase with the given name_or_bech32 and activate it. If the response has_password is
191177
* false, then you should call SetPassword before using a method which needs it.
@@ -227,21 +213,6 @@ export const GnoNativeService = {
227213
O: UpdatePasswordResponse,
228214
kind: MethodKind.Unary,
229215
},
230-
/**
231-
* GetActiveAccount gets the active account which was set by SelectAccount.
232-
* If no active account has been set with SelectAccount, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrNoActiveAccount.
233-
* (To check if there is an active account, use ListKeyInfo and check the
234-
* length of the result.)
235-
* DEPRECATED: Use GetActivatedAccount.
236-
*
237-
* @generated from rpc land.gno.gnonative.v1.GnoNativeService.GetActiveAccount
238-
*/
239-
getActiveAccount: {
240-
name: "GetActiveAccount",
241-
I: GetActiveAccountRequest,
242-
O: GetActiveAccountResponse,
243-
kind: MethodKind.Unary,
244-
},
245216
/**
246217
* GetActivatedAccount gets the info of the account by address which has been activated by ActivateAccount.
247218
* If there the given address is not specified, return [ErrCode](#land.gno.gnonative.v1.ErrCode).ErrInvalidAddress.

0 commit comments

Comments
 (0)