feat(accounts): implement Account Number query (#18989)

Co-authored-by: unknown unknown <unknown@unknown>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
This commit is contained in:
testinginprod
2024-01-09 18:23:41 +00:00
committed by GitHub
co-authored by unknown unknown Marko Facundo Medica
parent 6ffc209043
commit e1f478da41
6 changed files with 1527 additions and 138 deletions
+15
View File
@@ -15,6 +15,8 @@ service Query {
rpc Schema(SchemaRequest) returns (SchemaResponse) {};
// AccountType returns the account type for an address.
rpc AccountType(AccountTypeRequest) returns (AccountTypeResponse) {};
// AccountNumber returns the account number given the account address.
rpc AccountNumber(AccountNumberRequest) returns (AccountNumberResponse) {};
// SimulateUserOperation simulates a user operation.
rpc SimulateUserOperation(SimulateUserOperationRequest) returns (SimulateUserOperationResponse) {};
}
@@ -70,6 +72,19 @@ message AccountTypeResponse {
string account_type = 1;
}
// AccountNumberRequest returns the account number given the address.
message AccountNumberRequest {
// address is the address of the account we want to know the number of.
string address = 1;
}
// AccountNumberResponse is the response returned when querying the
// account number by address.
message AccountNumberResponse {
// number is the account number of the provided address.
uint64 number = 1;
}
// SimulateUserOperationRequest is the query request used to simulate a
// UserOperation.
message SimulateUserOperationRequest {