Skip to content

Commit

Permalink
[indexer] Add type_str for events and move resources (aptos-labs#3781)
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenyang007 authored Sep 2, 2022
1 parent 7c16ff6 commit 78daa17
Show file tree
Hide file tree
Showing 19 changed files with 2,108 additions and 2,087 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ message EventOutput {
EventKeyOutput key = 2;
uint64 sequence_number = 3;
string type = 4;
string data = 5;
string type_str = 5;
string data = 6;
}

message EventKeyOutput {
Expand Down Expand Up @@ -124,10 +125,11 @@ message MoveModuleOutput {
message MoveResourceOutput {
string address = 1;
string module = 2;
string name = 3;
repeated string generic_type_params = 4;
string data = 5;
bool is_deleted = 6;
string type_str = 3;
string name = 4;
repeated string generic_type_params = 5;
string data = 6;
bool is_deleted = 7;
uint64 wsc_index = 8;
}

Expand Down
13 changes: 6 additions & 7 deletions crates/aptos-protos/proto/aptos/extractor/v1/extractor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ message Event {
EventKey key = 1;
uint64 sequence_number = 2;
MoveType type = 3;
string type_str = 5;
string data = 4;
}

Expand Down Expand Up @@ -182,7 +183,8 @@ message DeleteModule {
message DeleteResource {
string address = 1;
bytes state_key_hash = 2;
MoveStructTag resource = 3;
MoveStructTag type = 3;
string type_str = 4;
}

message DeleteTableItem {
Expand All @@ -206,7 +208,9 @@ message WriteModule {
message WriteResource {
string address = 1;
bytes state_key_hash = 2;
MoveResource data = 3;
MoveStructTag type = 3;
string type_str = 4;
string data = 5;
}

message WriteTableData {
Expand Down Expand Up @@ -356,11 +360,6 @@ message EntryFunctionId {
string name = 2;
}

message MoveResource {
MoveStructTag type = 1;
string data = 2;
}

message MoveModuleId {
string address = 1;
string name = 2;
Expand Down
868 changes: 441 additions & 427 deletions crates/aptos-protos/src/pb/aptos.block_output.v1.rs

Large diffs are not rendered by default.

42 changes: 41 additions & 1 deletion crates/aptos-protos/src/pb/aptos.block_output.v1.serde.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 78daa17

Please sign in to comment.