Skip to content

Commit

Permalink
[module events] update token events and switch v1 with v2 (#14432)
Browse files Browse the repository at this point in the history
* DropHelper: fix num_tasks gauge (#15048)

* [module events] update token events

* [event v2] add coin register event

* switch instead of double emitting

* deal with NewEpochEvent

* fixup! deal with NewEpochEvent

* fixup! fixup! deal with NewEpochEvent

---------

Co-authored-by: Alden Hu <[email protected]>
  • Loading branch information
lightmark and msmouse authored Oct 26, 2024
1 parent d4c5493 commit 5010494
Show file tree
Hide file tree
Showing 79 changed files with 2,591 additions and 2,298 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

19 changes: 1 addition & 18 deletions api/goldens/aptos_api__tests__events_test__test_get_events.json
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
[
{
"version": "0",
"guid": {
"creation_number": "0",
"account_address": "0xa550c18"
},
"sequence_number": "0",
"type": "0x1::account::CoinRegisterEvent",
"data": {
"type_info": {
"account_address": "0x1",
"module_name": "0x6170746f735f636f696e",
"struct_name": "0x4170746f73436f696e"
}
}
}
]
[]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"data": {
"authentication_key": "0xcef8ffd1ab9017e96132df8a56b22de39a8155e1c3fc32affbbf93eb624b532a",
"coin_register_events": {
"counter": "1",
"counter": "0",
"guid": {
"id": {
"addr": "0xa550c18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"data": {
"authentication_key": "0xcef8ffd1ab9017e96132df8a56b22de39a8155e1c3fc32affbbf93eb624b532a",
"coin_register_events": {
"counter": "1",
"counter": "0",
"guid": {
"id": {
"addr": "0xa550c18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,24 +124,6 @@
"epoch": "1",
"round": "1",
"events": [
{
"guid": {
"creation_number": "0",
"account_address": "0x0"
},
"sequence_number": "0",
"type": "0x1::block::NewBlock",
"data": {
"epoch": "1",
"failed_proposer_indices": [],
"hash": "",
"height": "1",
"previous_block_votes_bitvec": "0x00",
"proposer": "0x66b22b7465af92a9dc8d07d2878716d9dffbbb280830a7d8cf80334b5da812ef",
"round": "1",
"time_microseconds": "500000"
}
},
{
"guid": {
"creation_number": "3",
Expand Down Expand Up @@ -188,7 +170,7 @@
"data": {
"authentication_key": "0xcef8ffd1ab9017e96132df8a56b22de39a8155e1c3fc32affbbf93eb624b532a",
"coin_register_events": {
"counter": "1",
"counter": "0",
"guid": {
"id": {
"addr": "0xa550c18",
Expand Down Expand Up @@ -261,7 +243,7 @@
"data": {
"authentication_key": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"coin_register_events": {
"counter": "1",
"counter": "0",
"guid": {
"id": {
"addr": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
Expand Down Expand Up @@ -317,11 +299,12 @@
{
"guid": {
"creation_number": "0",
"account_address": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf"
"account_address": "0x0"
},
"sequence_number": "0",
"type": "0x1::account::CoinRegisterEvent",
"type": "0x1::account::CoinRegister",
"data": {
"account": "0x34bf7e2d17674feb234371a7ea58efd715f0e56ba20ebf13789480d9d643afaf",
"type_info": {
"account_address": "0x1",
"module_name": "0x6170746f735f636f696e",
Expand Down
Loading

0 comments on commit 5010494

Please sign in to comment.