Skip to content

Commit

Permalink
[docs] Update EventFilter type in guide documentation (#20782)
Browse files Browse the repository at this point in the history
## Description 

Update EventFilter type in guide documentation

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] gRPC:
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
  • Loading branch information
andy78644 authored Jan 6, 2025
1 parent fb49e8c commit 210a086
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/content/guides/developer/sui-101/using-events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,13 @@ To filter the events returned from your queries, use the following data structur

| Query | Description | JSON-RPC Parameter Example |
| ----------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `All` | All events | `{"All": []}` |
| `All` | All events | `{"All": []}` |
| `Any` | Events emitted from any of the given filter | `{"Any": SuiEventFilter[]}` |
| `Transaction` | Events emitted from the specified transaction | `{"Transaction":"DGUe2TXiJdN3FI6MH1FwghYbiHw+NKu8Nh579zdFtUk="}` |
| `MoveModule` | Events emitted from the specified Move module | `{"MoveModule":{"package":"<PACKAGE-ID>", "module":"nft"}}` |
| `MoveEventModule` | Events emitted, defined on the specified Move module. | `{"MoveEventModule": {"package": "<DEFINING-PACKAGE-ID>", "module": "nft"}}` |
| `MoveEvent` | Move struct name of the event | `{"MoveEvent":"::nft::MintNFTEvent"}` |
| `EventType` | Type of event described in Events section | `{"EventType": "NewObject"}` |
| `MoveEventType` | Move struct name of the event | `{"MoveEventType":"::nft::MintNFTEvent"}` |
| `Sender` | Query by sender address | `{"Sender":"0x008e9c621f4fdb210b873aab59a1e5bf32ddb1d33ee85eb069b348c234465106"}` |
| `Recipient` | Query by recipient | `{"Recipient":{"AddressOwner":"0xa3c00467938b392a12355397bdd3d319cea5c9b8f4fc9c51b46b8e15a807f030"}}` |
| `Object` | Return events associated with the given object | `{"Object":"0x727b37454ab13d5c1dbb22e8741bff72b145d1e660f71b275c01f24e7860e5e5"}` |
| `TimeRange` | Return events emitted in [start_time, end_time] interval | `{"TimeRange":{"startTime":1669039504014, "endTime":1669039604014}}` |

### Query events in Rust
Expand Down

0 comments on commit 210a086

Please sign in to comment.