-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Indexer-Grpc-V2] Add proto for filters. (#15851)
- Loading branch information
Showing
10 changed files
with
2,244 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Copyright © Aptos Foundation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
syntax = "proto3"; | ||
|
||
package aptos.indexer.v1; | ||
|
||
import "aptos/transaction/v1/transaction.proto"; | ||
|
||
message LogicalAndFilters { | ||
repeated BooleanTransactionFilter filters = 1; | ||
} | ||
|
||
message LogicalOrFilters { | ||
repeated BooleanTransactionFilter filters = 1; | ||
} | ||
|
||
message TransactionRootFilter { | ||
optional bool success = 1; | ||
optional aptos.transaction.v1.Transaction.TransactionType transaction_type = 2; | ||
} | ||
|
||
message EntryFunctionFilter { | ||
optional string address = 1; | ||
optional string module_name = 2; | ||
optional string function = 3; | ||
} | ||
|
||
message UserTransactionPayloadFilter { | ||
optional EntryFunctionFilter entry_function_filter = 1; | ||
} | ||
|
||
message UserTransactionFilter { | ||
optional string sender = 1; | ||
optional UserTransactionPayloadFilter payload_filter = 2; | ||
} | ||
|
||
|
||
message MoveStructTagFilter { | ||
optional string address = 1; | ||
optional string module = 2; | ||
optional string name = 3; | ||
} | ||
|
||
message EventFilter { | ||
optional MoveStructTagFilter struct_type = 1; | ||
optional string data_substring_filter = 2; | ||
} | ||
|
||
message APIFilter { | ||
optional TransactionRootFilter transaction_root_filter = 1; | ||
optional UserTransactionFilter user_transaction_filter = 2; | ||
optional EventFilter event_filter = 3; | ||
} | ||
|
||
message BooleanTransactionFilter { | ||
oneof filter { | ||
APIFilter api_filter = 1; | ||
LogicalAndFilters logical_and = 2; | ||
LogicalOrFilters logical_or = 3; | ||
BooleanTransactionFilter logical_not = 4; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 10 additions & 9 deletions
19
protos/python/aptos_protos/aptos/indexer/v1/raw_data_pb2.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.